Step * 2 of Lemma es-interface-accum-programmable


1. Info Type
2. Type
3. Type
4. EClass(A)
5. B
6. B ⟶ A ⟶ B
7. EClass(B)@i'
8. λB,r. if (#(B 0) =z 1)
        then if (#(r) =z 1) then {f[only(r);only(B 0)]} else {f[x;only(B 0)]} fi 
        else {}
        fi i.X,(self)'|
Y
∈ EClass(B)@i'
9. ∀es:EO+(Info). ∀e:E.
     ((Y es e)
     if (#(X es e) =z 1)
       then if (#(Prior(Y) es e) =z 1) then {f[only(Prior(Y) es e);only(X es e)]} else {f[x;only(X es e)]} fi 
       else {}
       fi 
     ∈ bag(B))
⊢ es-interface-accum(f;x;X) Y ∈ EClass(B)
BY
Assert ⌜Singlevalued(Y)⌝⋅ }

1
.....assertion..... 
1. Info Type
2. Type
3. Type
4. EClass(A)
5. B
6. B ⟶ A ⟶ B
7. EClass(B)@i'
8. λB,r. if (#(B 0) =z 1)
        then if (#(r) =z 1) then {f[only(r);only(B 0)]} else {f[x;only(B 0)]} fi 
        else {}
        fi i.X,(self)'|
Y
∈ EClass(B)@i'
9. ∀es:EO+(Info). ∀e:E.
     ((Y es e)
     if (#(X es e) =z 1)
       then if (#(Prior(Y) es e) =z 1) then {f[only(Prior(Y) es e);only(X es e)]} else {f[x;only(X es e)]} fi 
       else {}
       fi 
     ∈ bag(B))
⊢ Singlevalued(Y)

2
1. Info Type
2. Type
3. Type
4. EClass(A)
5. B
6. B ⟶ A ⟶ B
7. EClass(B)@i'
8. λB,r. if (#(B 0) =z 1)
        then if (#(r) =z 1) then {f[only(r);only(B 0)]} else {f[x;only(B 0)]} fi 
        else {}
        fi i.X,(self)'|
Y
∈ EClass(B)@i'
9. ∀es:EO+(Info). ∀e:E.
     ((Y es e)
     if (#(X es e) =z 1)
       then if (#(Prior(Y) es e) =z 1) then {f[only(Prior(Y) es e);only(X es e)]} else {f[x;only(X es e)]} fi 
       else {}
       fi 
     ∈ bag(B))
10. Singlevalued(Y)
⊢ es-interface-accum(f;x;X) Y ∈ EClass(B)


Latex:


Latex:

1.  Info  :  Type
2.  A  :  Type
3.  B  :  Type
4.  X  :  EClass(A)
5.  x  :  B
6.  f  :  B  {}\mrightarrow{}  A  {}\mrightarrow{}  B
7.  Y  :  EClass(B)@i'
8.  \mlambda{}B,r.  if  (\#(B  0)  =\msubz{}  1)
                then  if  (\#(r)  =\msubz{}  1)  then  \{f[only(r);only(B  0)]\}  else  \{f[x;only(B  0)]\}  fi 
                else  \{\}
                fi  |\mlambda{}i.X,(self)'|
=  Y@i'
9.  \mforall{}es:EO+(Info).  \mforall{}e:E.
          ((Y  es  e)
          =  if  (\#(X  es  e)  =\msubz{}  1)
              then  if  (\#(Prior(Y)  es  e)  =\msubz{}  1)
                        then  \{f[only(Prior(Y)  es  e);only(X  es  e)]\}
                        else  \{f[x;only(X  es  e)]\}
                        fi 
              else  \{\}
              fi  )
\mvdash{}  es-interface-accum(f;x;X)  =  Y


By


Latex:
Assert  \mkleeneopen{}Singlevalued(Y)\mkleeneclose{}\mcdot{}




Home Index