Nuprl Lemma : es-interface-accum-programmable

[Info,A,B:Type]. ∀[X:EClass(A)]. ∀[x:B]. ∀[f:B ⟶ A ⟶ B].
  (es-interface-accum(f;x;X)
  = λ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)'|
  ∈ EClass(B))


Proof




Definitions occuring in Statement :  rec-combined-class: f|X,(self)'| es-interface-accum: es-interface-accum(f;x;X) eclass: EClass(A[eo; e]) ifthenelse: if then else fi  eq_int: (i =z j) uall: [x:A]. B[x] so_apply: x[s1;s2] apply: a lambda: λx.A[x] function: x:A ⟶ B[x] natural_number: $n universe: Type equal: t ∈ T bag-only: only(bs) bag-size: #(bs) single-bag: {x} empty-bag: {}
Definitions unfolded in proof :  uall: [x:A]. B[x] member: t ∈ T nat: le: A ≤ B and: P ∧ Q less_than': less_than'(a;b) false: False not: ¬A implies:  Q prop: so_lambda: λ2x.t[x] int_seg: {i..j-} lelt: i ≤ j < k less_than: a < b squash: T true: True subtype_rel: A ⊆B all: x:A. B[x] bool: 𝔹 unit: Unit it: btrue: tt ifthenelse: if then else fi  uiff: uiff(P;Q) uimplies: supposing a so_apply: x[s1;s2] cand: c∧ B decidable: Dec(P) or: P ∨ Q satisfiable_int_formula: satisfiable_int_formula(fmla) exists: x:A. B[x] top: Top bfalse: ff sq_type: SQType(T) guard: {T} bnot: ¬bb assert: b nequal: a ≠ b ∈  so_lambda: λ2y.t[x; y] eclass: EClass(A[eo; e]) rec-combined-class: f|X,(self)'| eclass-val: X(e) in-eclass: e ∈b X sv-class: Singlevalued(X) iff: ⇐⇒ Q rev_implies:  Q eq_int: (i =z j) es-interface-accum: es-interface-accum(f;x;X) strongwellfounded: SWellFounded(R[x; y]) ge: i ≥  es-E-interface: E(X) so_apply: x[s] sq_stable: SqStable(P) es-prior-val: (X)' append: as bs so_lambda: so_lambda(x,y,z.t[x; y; z]) so_apply: x[s1;s2;s3] cons: [a b]

Latex:
\mforall{}[Info,A,B:Type].  \mforall{}[X:EClass(A)].  \mforall{}[x:B].  \mforall{}[f:B  {}\mrightarrow{}  A  {}\mrightarrow{}  B].
    (es-interface-accum(f;x;X)
    =  \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)'|)



Date html generated: 2016_05_17-AM-08_12_18
Last ObjectModification: 2016_01_17-PM-02_52_28

Theory : event-ordering


Home Index