Nuprl Lemma : int-decr-map-update-prop

[Value:Type]. ∀[m:int-decr-map-type(Value)]. ∀[k1,k2:ℤ]. ∀[v:Value].
  (int-decr-map-find(k1;int-decr-map-update(k2;v;m))
  if (k1 =z k2) then inl else int-decr-map-find(k1;m) fi 
  ∈ (Value?))


Proof




Definitions occuring in Statement :  int-decr-map-update: int-decr-map-update(k;v;m) int-decr-map-find: int-decr-map-find(k;m) int-decr-map-type: int-decr-map-type(Value) ifthenelse: if then else fi  eq_int: (i =z j) uall: [x:A]. B[x] unit: Unit inl: inl x union: left right int: universe: Type equal: t ∈ T
Lemmas :  list_ind_nil_lemma list_ind_cons_lemma value-type-has-value int-value-type subtract_wf bool_cases_sqequal eq_int_wf sqequal-tt-to-assert assert_of_eq_int unit_wf2 sqequal-ff-to-assert neg_assert_of_eq_int lt_int_wf assert_of_lt_int it_wf less_than_wf insert-combine-cons find-combine-cons l-ordered-cons gt_wf subtype_base_sq bool_wf bool_subtype_base eq_int_eq_true btrue_wf iff_weakening_equal find-combine_wf eq_int_eq_false bfalse_wf
\mforall{}[Value:Type].  \mforall{}[m:int-decr-map-type(Value)].  \mforall{}[k1,k2:\mBbbZ{}].  \mforall{}[v:Value].
    (int-decr-map-find(k1;int-decr-map-update(k2;v;m))
    =  if  (k1  =\msubz{}  k2)  then  inl  v  else  int-decr-map-find(k1;m)  fi  )



Date html generated: 2015_07_17-AM-08_23_23
Last ObjectModification: 2015_04_02-PM-05_44_25

Home Index