Step * 2 of Lemma evalall-append-nil


1. Base
2. (evalall(l []))↓
⊢ l ≤ evalall(l [])
BY
(All (Unfold `evalall`)
   THEN Compactness (-1)
   THEN SqUnhide
   THEN MoveToConcl 1
   THEN NatInd (-1)
   THEN Reduce 0
   THEN Strictness
   THEN Try ((RWO "fun_exp_unroll_1" THENA Auto))
   THEN Reduce 0
   THEN (UnivCD THENA Auto)
   THEN BotDiv
   THEN HasValueD (-1)
   THEN RW UnrollLoopsC 0
   THEN Reduce 0
   THEN (CallByValueReduce THENA Trivial)
   THEN Repeat (HVimplies2 [2])) }

1
1. : ℤ
2. 0 < j
3. ∀l:Base
     ((fix((λevalall,t. eval in
                        if is pair then let a,b 
                                            in eval a' evalall in
                                               eval b' evalall in
                                                 <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                     inl y
                                                                    else if is inr then eval evalall outr(x) in
                                                                                          inr 
                                                                         else x)) 
       (l []))↓
      evalall,t. eval in
                     if is pair then let a,b 
                                         in eval a' evalall in
                                            eval b' evalall in
                                              <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                  inl y
                                                                 else if is inr then eval evalall outr(x) in
                                                                                       inr 
                                                                      else x^j 
         ⊥ 
         (l []))↓
      (l ≤ fix((λevalall,t. eval in
                              if is pair then let a,b 
                                                  in eval a' evalall in
                                                     eval b' evalall in
                                                       <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                           inl y
                                                                          else if is inr
                                                                               eval evalall outr(x) in
                                                                               inr 
                                                                               else x)) 
             (l [])))
4. Base@i
5. (fix((λevalall,t. eval in
                     if is pair then let a,b 
                                         in eval a' evalall in
                                            eval b' evalall in
                                              <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                  inl y
                                                                 else if is inr then eval evalall outr(x) in
                                                                                       inr 
                                                                      else x)) 
    <fst((l [])), snd((l []))>)↓@i
6. (eval a' = λevalall,t. eval in
                          if is pair then let a,b 
                                              in eval a' evalall in
                                                 eval b' evalall in
                                                   <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                       inl y
                                                                      else if is inr then eval evalall outr(x) in
                                                                                            inr 
                                                                           else x^j 
              ⊥ 
              (fst((l []))) in
    eval b' = λevalall,t. eval in
                          if is pair then let a,b 
                                              in eval a' evalall in
                                                 eval b' evalall in
                                                   <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                       inl y
                                                                      else if is inr then eval evalall outr(x) in
                                                                                            inr 
                                                                           else x^j 
              ⊥ 
              (snd((l []))) in
      <a', b'>)↓@i
7. 0 ≤ 0
8. [] ~ <fst((l [])), snd((l []))>
⊢ l ≤ eval a' fix((λevalall,t. eval in
                                 if is pair then let a,b 
                                                     in eval a' evalall in
                                                        eval b' evalall in
                                                          <a', b'>
                                 otherwise if is inl then eval evalall outl(x) in
                                                            inl y
                                           else if is inr then eval evalall outr(x) in
                                                                 inr 
                                                else x)) 
                (fst((l []))) in
      eval b' fix((λevalall,t. eval in
                                 if is pair then let a,b 
                                                     in eval a' evalall in
                                                        eval b' evalall in
                                                          <a', b'>
                                 otherwise if is inl then eval evalall outl(x) in
                                                            inl y
                                           else if is inr then eval evalall outr(x) in
                                                                 inr 
                                                else x)) 
                (snd((l []))) in
        <a', b'>

2
1. : ℤ
2. 0 < j
3. ∀l:Base
     ((fix((λevalall,t. eval in
                        if is pair then let a,b 
                                            in eval a' evalall in
                                               eval b' evalall in
                                                 <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                     inl y
                                                                    else if is inr then eval evalall outr(x) in
                                                                                          inr 
                                                                         else x)) 
       (l []))↓
      evalall,t. eval in
                     if is pair then let a,b 
                                         in eval a' evalall in
                                            eval b' evalall in
                                              <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                  inl y
                                                                 else if is inr then eval evalall outr(x) in
                                                                                       inr 
                                                                      else x^j 
         ⊥ 
         (l []))↓
      (l ≤ fix((λevalall,t. eval in
                              if is pair then let a,b 
                                                  in eval a' evalall in
                                                     eval b' evalall in
                                                       <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                           inl y
                                                                          else if is inr
                                                                               eval evalall outr(x) in
                                                                               inr 
                                                                               else x)) 
             (l [])))
4. Base@i
5. (fix((λevalall,t. eval in
                     if is pair then let a,b 
                                         in eval a' evalall in
                                            eval b' evalall in
                                              <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                  inl y
                                                                 else if is inr then eval evalall outr(x) in
                                                                                       inr 
                                                                      else x)) 
    (inl outl(l [])))↓@i
6. (eval = λevalall,t. eval in
                         if is pair then let a,b 
                                             in eval a' evalall in
                                                eval b' evalall in
                                                  <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                      inl y
                                                                     else if is inr then eval evalall outr(x) in
                                                                                           inr 
                                                                          else x^j 
             ⊥ 
             outl(l []) in
    inl y)↓@i
7. 0 ≤ 0
8. ∀a,b:Top.  (b b)
9. [] inl outl(l [])
⊢ l ≤ eval fix((λevalall,t. eval in
                                if is pair then let a,b 
                                                    in eval a' evalall in
                                                       eval b' evalall in
                                                         <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                             inl y
                                                                            else if is inr then eval evalall 
                                                                                                           outr(x) in
                                                                                                  inr 
                                                                                 else x)) 
               outl(l []) in
      inl y

3
1. : ℤ
2. 0 < j
3. ∀l:Base
     ((fix((λevalall,t. eval in
                        if is pair then let a,b 
                                            in eval a' evalall in
                                               eval b' evalall in
                                                 <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                     inl y
                                                                    else if is inr then eval evalall outr(x) in
                                                                                          inr 
                                                                         else x)) 
       (l []))↓
      evalall,t. eval in
                     if is pair then let a,b 
                                         in eval a' evalall in
                                            eval b' evalall in
                                              <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                  inl y
                                                                 else if is inr then eval evalall outr(x) in
                                                                                       inr 
                                                                      else x^j 
         ⊥ 
         (l []))↓
      (l ≤ fix((λevalall,t. eval in
                              if is pair then let a,b 
                                                  in eval a' evalall in
                                                     eval b' evalall in
                                                       <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                           inl y
                                                                          else if is inr
                                                                               eval evalall outr(x) in
                                                                               inr 
                                                                               else x)) 
             (l [])))
4. Base@i
5. (fix((λevalall,t. eval in
                     if is pair then let a,b 
                                         in eval a' evalall in
                                            eval b' evalall in
                                              <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                  inl y
                                                                 else if is inr then eval evalall outr(x) in
                                                                                       inr 
                                                                      else x)) 
    (inr outr(l []) ))↓@i
6. (eval = λevalall,t. eval in
                         if is pair then let a,b 
                                             in eval a' evalall in
                                                eval b' evalall in
                                                  <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                      inl y
                                                                     else if is inr then eval evalall outr(x) in
                                                                                           inr 
                                                                          else x^j 
             ⊥ 
             outr(l []) in
    inr )↓@i
7. 0 ≤ 0
8. ∀a,b:Top.  (b b)
9. ∀a,b:Top.  (b b)
10. [] inr outr(l []) 
⊢ l ≤ eval fix((λevalall,t. eval in
                                if is pair then let a,b 
                                                    in eval a' evalall in
                                                       eval b' evalall in
                                                         <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                             inl y
                                                                            else if is inr then eval evalall 
                                                                                                           outr(x) in
                                                                                                  inr 
                                                                                 else x)) 
               outr(l []) in
      inr 

4
1. : ℤ
2. 0 < j
3. ∀l:Base
     ((fix((λevalall,t. eval in
                        if is pair then let a,b 
                                            in eval a' evalall in
                                               eval b' evalall in
                                                 <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                     inl y
                                                                    else if is inr then eval evalall outr(x) in
                                                                                          inr 
                                                                         else x)) 
       (l []))↓
      evalall,t. eval in
                     if is pair then let a,b 
                                         in eval a' evalall in
                                            eval b' evalall in
                                              <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                  inl y
                                                                 else if is inr then eval evalall outr(x) in
                                                                                       inr 
                                                                      else x^j 
         ⊥ 
         (l []))↓
      (l ≤ fix((λevalall,t. eval in
                              if is pair then let a,b 
                                                  in eval a' evalall in
                                                     eval b' evalall in
                                                       <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                           inl y
                                                                          else if is inr
                                                                               eval evalall outr(x) in
                                                                               inr 
                                                                               else x)) 
             (l [])))
4. Base@i
5. (fix((λevalall,t. eval in
                     if is pair then let a,b 
                                         in eval a' evalall in
                                            eval b' evalall in
                                              <a', b'> otherwise if is inl then eval evalall outl(x) in
                                                                                  inl y
                                                                 else if is inr then eval evalall outr(x) in
                                                                                       inr 
                                                                      else x)) 
    (l []))↓@i
6. (l [])↓@i
7. (l [])↓
8. ∀a,b:Top.  (if [] is pair then otherwise b)
9. ∀a,b:Top.  (if [] is inl then else b)
10. ∀a,b:Top.  (if [] is inr then else b)
⊢ l ≤ []


Latex:


Latex:

1.  l  :  Base
2.  (evalall(l  @  []))\mdownarrow{}
\mvdash{}  l  \mleq{}  evalall(l  @  [])


By


Latex:
(All  (Unfold  `evalall`)
  THEN  Compactness  (-1)
  THEN  SqUnhide
  THEN  MoveToConcl  1
  THEN  NatInd  (-1)
  THEN  Reduce  0
  THEN  Strictness
  THEN  Try  ((RWO  "fun\_exp\_unroll\_1"  0  THENA  Auto))
  THEN  Reduce  0
  THEN  (UnivCD  THENA  Auto)
  THEN  BotDiv
  THEN  HasValueD  (-1)
  THEN  RW  UnrollLoopsC  0
  THEN  Reduce  0
  THEN  (CallByValueReduce  0  THENA  Trivial)
  THEN  Repeat  (HVimplies2  0  [2]))




Home Index