Step * 1 1 1 2 1 2 1 of Lemma howard-bar-rec-equal-spector


1. : ℤ
2. 0 < j
3. ∀n:ℕ. ∀s,ind,base,mon,M:Base.
     howard-bar-rec,n,s. case s
                           of inl(x) =>
                           let k,p 
                           in base (mon p)
                           inr(x) =>
                           ind t.(howard-bar-rec (n 1) s.t@n))^j 
      ⊥ 
      
      s ≤ fix((λspector-bar-rec,n,s. if if then else fi  ≤n
                                    then case of inl(x) => let k,p in base (mon p) inr(x) => ⊥
                                    else ind t.(spector-bar-rec (n 1) s.t@n))
                                    fi )) 
          
          s)
4. : ℕ
5. Base
6. ind Base
7. base Base
8. mon Base
9. Base
10. is-exception(case s
 of inl(x) =>
 let k,p 
 in base (mon p)
 inr(x) =>
 ind 
 t.(λhoward-bar-rec,n,s. case s
                           of inl(x) =>
                           let k,p 
                           in base (mon p)
                           inr(x) =>
                           ind t.(howard-bar-rec (n 1) s.t@n))^j 
      ⊥ 
      (n 1) 
      s.t@n)))
11. s ∈ Top Top
12. Top
13. (M s) (inr ) ∈ (Top Top)
14. 1 ≤ff
⊢ ind 
  t.(λhoward-bar-rec,n,s. case s
                            of inl(x) =>
                            let k,p 
                            in base (mon p)
                            inr(x) =>
                            ind t.(howard-bar-rec (n 1) s.t@n))^j 
       ⊥ 
       (n 1) 
       s.t@n)) ≤ ind 
                 t.(fix((λspector-bar-rec,n,s. if if then else fi  ≤n
                                                then case s
                                                      of inl(x) =>
                                                      let k,p 
                                                      in base (mon p)
                                                      inr(x) =>
                                                      ⊥
                                                else ind t.(spector-bar-rec (n 1) s.t@n))
                                                fi )) 
                      (n 1) 
                      s.t@n))
BY
SqLeCD }

1
1. : ℤ
2. 0 < j
3. ∀n:ℕ. ∀s,ind,base,mon,M:Base.
     howard-bar-rec,n,s. case s
                           of inl(x) =>
                           let k,p 
                           in base (mon p)
                           inr(x) =>
                           ind t.(howard-bar-rec (n 1) s.t@n))^j 
      ⊥ 
      
      s ≤ fix((λspector-bar-rec,n,s. if if then else fi  ≤n
                                    then case of inl(x) => let k,p in base (mon p) inr(x) => ⊥
                                    else ind t.(spector-bar-rec (n 1) s.t@n))
                                    fi )) 
          
          s)
4. : ℕ
5. Base
6. ind Base
7. base Base
8. mon Base
9. Base
10. is-exception(case s
 of inl(x) =>
 let k,p 
 in base (mon p)
 inr(x) =>
 ind 
 t.(λhoward-bar-rec,n,s. case s
                           of inl(x) =>
                           let k,p 
                           in base (mon p)
                           inr(x) =>
                           ind t.(howard-bar-rec (n 1) s.t@n))^j 
      ⊥ 
      (n 1) 
      s.t@n)))
11. s ∈ Top Top
12. Top
13. (M s) (inr ) ∈ (Top Top)
14. 1 ≤ff
⊢ ind s ≤ ind s

2
1. : ℤ
2. 0 < j
3. ∀n:ℕ. ∀s,ind,base,mon,M:Base.
     howard-bar-rec,n,s. case s
                           of inl(x) =>
                           let k,p 
                           in base (mon p)
                           inr(x) =>
                           ind t.(howard-bar-rec (n 1) s.t@n))^j 
      ⊥ 
      
      s ≤ fix((λspector-bar-rec,n,s. if if then else fi  ≤n
                                    then case of inl(x) => let k,p in base (mon p) inr(x) => ⊥
                                    else ind t.(spector-bar-rec (n 1) s.t@n))
                                    fi )) 
          
          s)
4. : ℕ
5. Base
6. ind Base
7. base Base
8. mon Base
9. Base
10. is-exception(case s
 of inl(x) =>
 let k,p 
 in base (mon p)
 inr(x) =>
 ind 
 t.(λhoward-bar-rec,n,s. case s
                           of inl(x) =>
                           let k,p 
                           in base (mon p)
                           inr(x) =>
                           ind t.(howard-bar-rec (n 1) s.t@n))^j 
      ⊥ 
      (n 1) 
      s.t@n)))
11. s ∈ Top Top
12. Top
13. (M s) (inr ) ∈ (Top Top)
14. 1 ≤ff
⊢ λt.(λhoward-bar-rec,n,s. case s
                           of inl(x) =>
                           let k,p 
                           in base (mon p)
                           inr(x) =>
                           ind t.(howard-bar-rec (n 1) s.t@n))^j 
      ⊥ 
      (n 1) 
      s.t@n) ≤ λt.(fix((λspector-bar-rec,n,s. if if then else fi  ≤n
                                             then case s
                                                   of inl(x) =>
                                                   let k,p 
                                                   in base (mon p)
                                                   inr(x) =>
                                                   ⊥
                                             else ind t.(spector-bar-rec (n 1) s.t@n))
                                             fi )) 
                   (n 1) 
                   s.t@n)


Latex:


Latex:

1.  j  :  \mBbbZ{}
2.  0  <  j
3.  \mforall{}n:\mBbbN{}.  \mforall{}s,ind,base,mon,M:Base.
          (\mlambda{}howard-bar-rec,n,s.  case  M  n  s
                                                      of  inl(x)  =>
                                                      let  k,p  =  x 
                                                      in  base  n  s  (mon  n  k  s  p)
                                                      |  inr(x)  =>
                                                      ind  n  s  (\mlambda{}t.(howard-bar-rec  (n  +  1)  s.t@n))\^{}j  -  1 
            \mbot{} 
            n 
            s  \mleq{}  fix((\mlambda{}spector-bar-rec,n,s.  if  if  M  n  s  then  0  else  n  +  1  fi    \mleq{}z  n
                                                                        then  case  M  n  s
                                                                                    of  inl(x)  =>
                                                                                    let  k,p  =  x 
                                                                                    in  base  n  s  (mon  n  k  s  p)
                                                                                    |  inr(x)  =>
                                                                                    \mbot{}
                                                                        else  ind  n  s  (\mlambda{}t.(spector-bar-rec  (n  +  1)  s.t@n))
                                                                        fi  )) 
                    n 
                    s)
4.  n  :  \mBbbN{}
5.  s  :  Base
6.  ind  :  Base
7.  base  :  Base
8.  mon  :  Base
9.  M  :  Base
10.  is-exception(case  M  n  s
  of  inl(x)  =>
  let  k,p  =  x 
  in  base  n  s  (mon  n  k  s  p)
  |  inr(x)  =>
  ind  n  s 
  (\mlambda{}t.(\mlambda{}howard-bar-rec,n,s.  case  M  n  s
                                                      of  inl(x)  =>
                                                      let  k,p  =  x 
                                                      in  base  n  s  (mon  n  k  s  p)
                                                      |  inr(x)  =>
                                                      ind  n  s  (\mlambda{}t.(howard-bar-rec  (n  +  1)  s.t@n))\^{}j  -  1 
            \mbot{} 
            (n  +  1) 
            s.t@n)))
11.  M  n  s  \mmember{}  Top  +  Top
12.  y  :  Top
13.  (M  n  s)  =  (inr  y  )
14.  n  +  1  \mleq{}z  n  \msim{}  ff
\mvdash{}  ind  n  s 
    (\mlambda{}t.(\mlambda{}howard-bar-rec,n,s.  case  M  n  s
                                                        of  inl(x)  =>
                                                        let  k,p  =  x 
                                                        in  base  n  s  (mon  n  k  s  p)
                                                        |  inr(x)  =>
                                                        ind  n  s  (\mlambda{}t.(howard-bar-rec  (n  +  1)  s.t@n))\^{}j  -  1 
              \mbot{} 
              (n  +  1) 
              s.t@n))  \mleq{}  ind  n  s 
                                  (\mlambda{}t.(fix((\mlambda{}spector-bar-rec,n,s.  if  if  M  n  s  then  0  else  n  +  1  fi    \mleq{}z  n
                                                                                                then  case  M  n  s
                                                                                                            of  inl(x)  =>
                                                                                                            let  k,p  =  x 
                                                                                                            in  base  n  s  (mon  n  k  s  p)
                                                                                                            |  inr(x)  =>
                                                                                                            \mbot{}
                                                                                                else  ind  n  s  (\mlambda{}t.(spector-bar-rec  (n  +  1)  s.t@n))
                                                                                                fi  )) 
                                            (n  +  1) 
                                            s.t@n))


By


Latex:
SqLeCD




Home Index