Step * 1 2 of Lemma combine-list-as-reduce

.....wf..... 
1. Type
2. A ⟶ A ⟶ A
3. Assoc(A;λx,y. f[x;y])
4. Comm(A;λx,y. f[x;y])
5. List
6. 0 < ||L||
7. L' List
8. (L' [last(L)]) ∈ (A List)
9. ∀L:A List. (0 < ||L||  (isl(reduce(λx,y. case of inl(z) => inl f[x;z] inr(z) => inl x;inr ⋅ ;L)) tt))
10. List
11. (L' [last(L)]) ∈ (A List)
⊢ combine-list(x,y.f[x;y];z) outl(reduce(λx,y. case of inl(z) => inl f[x;z] inr(z) => inl x;inr ⋅ ;z)) ∈ A ∈ ℙ
BY
TACTIC:(RepeatFor (MemCD) THEN Try (Complete (Auto)) THEN RWO "-3" THEN Auto) }


Latex:


Latex:
.....wf..... 
1.  A  :  Type
2.  f  :  A  {}\mrightarrow{}  A  {}\mrightarrow{}  A
3.  Assoc(A;\mlambda{}x,y.  f[x;y])
4.  Comm(A;\mlambda{}x,y.  f[x;y])
5.  L  :  A  List
6.  0  <  ||L||
7.  L'  :  A  List
8.  L  =  (L'  @  [last(L)])
9.  \mforall{}L:A  List
          (0  <  ||L||  {}\mRightarrow{}  (isl(reduce(\mlambda{}x,y.  case  y  of  inl(z)  =>  inl  f[x;z]  |  inr(z)  =>  inl  x;inr  \mcdot{}  ;L))  \msim{}  t\000Ct))
10.  z  :  A  List
11.  z  =  (L'  @  [last(L)])
\mvdash{}  combine-list(x,y.f[x;y];z)
    =  outl(reduce(\mlambda{}x,y.  case  y  of  inl(z)  =>  inl  f[x;z]  |  inr(z)  =>  inl  x;inr  \mcdot{}  ;z))  \mmember{}  \mBbbP{}


By


Latex:
TACTIC:(RepeatFor  2  (MemCD)  THEN  Try  (Complete  (Auto))  THEN  RWO  "-3"  0  THEN  Auto)




Home Index