Nuprl Lemma : binary-tree-ext

binary-tree() ≡ lbl:Atom × if lbl =a "Leaf" then ℤ
                           if lbl =a "Node" then left:binary-tree() × binary-tree()
                           else Void
                           fi 


Proof




Definitions occuring in Statement :  binary-tree: binary-tree(),  ifthenelse: if b then t else f fi ,  eq_atom: x =a y,  ext-eq: A ≡ B,  product: x:A × B[x],  int: ℤ,  token: "$token",  atom: Atom,  void: Void
Definitions unfolded in proof :  ext-eq: A ≡ B,  and: P ∧ Q,  subtype_rel: A ⊆r B,  member: t ∈ T,  binary-tree: binary-tree(),  uall: ∀[x:A]. B[x],  all: ∀x:A. B[x],  implies: P ⇒ Q,  bool: 𝔹,  unit: Unit,  it: ⋅,  btrue: tt,  uiff: uiff(P;Q),  uimplies: b supposing a,  ifthenelse: if b then t else f fi ,  sq_type: SQType(T),  guard: {T},  eq_atom: x =a y,  bfalse: ff,  exists: ∃x:A. B[x],  prop: ℙ,  or: P ∨ Q,  bnot: ¬bb,  assert: ↑b,  false: False,  binary-treeco_size: binary-treeco_size(p),  nat: ℕ,  so_lambda: λ2x.t[x],  so_apply: x[s],  has-value: (a)↓,  binary-tree_size: binary-tree_size(p),  le: A ≤ B,  less_than': less_than'(a;b),  not: ¬A
Lemmas referenced :  nat_properties,  binary-tree_size_wf,  false_wf,  add-nat,  binary-treeco_wf,  ifthenelse_wf,  binary-tree_wf,  set-value-type,  has-value_wf-partial,  int-value-type,  value-type-has-value,  base_wf,  le_wf,  set_subtype_base,  nat_wf,  subtype_partial_sqtype_base,  binary-treeco_size_wf,  int_subtype_base,  neg_assert_of_eq_atom,  assert-bnot,  bool_subtype_base,  bool_cases_sqequal,  equal_wf,  eqff_to_assert,  atom_subtype_base,  subtype_base_sq,  assert_of_eq_atom,  eqtt_to_assert,  bool_wf,  eq_atom_wf,  binary-treeco-ext
Rules used in proof :  sqequalSubstitution,  sqequalTransitivity,  computationStep,  sqequalReflexivity,  independent_pairFormation,  lambdaEquality,  sqequalHypSubstitution,  setElimination,  thin,  rename,  cut,  lemma_by_obid,  hypothesis,  promote_hyp,  productElimination,  hypothesis_subsumption,  hypothesisEquality,  applyEquality,  sqequalRule,  dependent_pairEquality,  isectElimination,  tokenEquality,  lambdaFormation,  unionElimination,  equalityElimination,  equalityTransitivity,  equalitySymmetry,  independent_isectElimination,  because_Cache,  instantiate,  cumulativity,  atomEquality,  dependent_functionElimination,  independent_functionElimination,  dependent_pairFormation,  voidElimination,  dependent_set_memberEquality,  natural_numberEquality,  intEquality,  baseApply,  closedConclusion,  baseClosed,  equalityEquality,  callbyvalueAdd,  universeEquality,  productEquality,  voidEquality,  sqleReflexivity

Latex:
binary-tree()  \mequiv{}  lbl:Atom  \mtimes{}  if  lbl  =a  "Leaf"  then  \mBbbZ{}
                                                      if  lbl  =a  "Node"  then  left:binary-tree()  \mtimes{}  binary-tree()
                                                      else  Void
                                                      fi 



Date html generated: 2016_05_16-AM-09_05_50
Last ObjectModification: 2016_01_17-AM-09_41_54

Theory : C-semantics


Home Index