Step * 1 of Lemma decidable-bar-rec-equal-spector


1. : ℕ
2. Base
3. ind Base
4. base Base
5. dec Base
⊢ decidable-bar-rec(dec;base;ind;n;s) ≤ spector-bar-rec(λn,s. if dec then else fi n,s. case dec s
                                                                                                 of inl(r) =>
                                                                                                 base r
                                                                                                 inr(x) =>
                                                                                                 ⊥;ind;n;s)
BY
RepUR ``decidable-bar-rec decidable-bar-rec-spec spector-bar-rec`` }

1
1. : ℕ
2. Base
3. ind Base
4. base Base
5. dec Base
⊢ fix((λdecidable-bar-rec,n,s. case dec s
                               of inl(r) =>
                               base r
                               inr(x) =>
                               ind t.(decidable-bar-rec (n 1) s.t@n)))) 
  
  s ≤ fix((λspector-bar-rec,n,s. if if dec then else fi  ≤n
                                then case dec of inl(r) => base inr(x) => ⊥
                                else ind t.(spector-bar-rec (n 1) s.t@n))
                                fi )) 
      
      s


Latex:


Latex:

1.  n  :  \mBbbN{}
2.  s  :  Base
3.  ind  :  Base
4.  base  :  Base
5.  dec  :  Base
\mvdash{}  decidable-bar-rec(dec;base;ind;n;s) 
    \mleq{}  spector-bar-rec(\mlambda{}n,s.  if  dec  n  s  then  0  else  n  +  1  fi  ;\mlambda{}n,s.  case  dec  n  s
                                                                                                                          of  inl(r)  =>
                                                                                                                          base  n  s  r
                                                                                                                          |  inr(x)  =>
                                                                                                                          \mbot{};ind;n;s)


By


Latex:
RepUR  ``decidable-bar-rec  decidable-bar-rec-spec  spector-bar-rec``  0




Home Index