X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Flibrary%2Fnat%2Fplus.ma;h=d595dad19113cb6626ec4e58cc1e8a2d389be2b1;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=6067ebcdcd6b87ffde1fe7bce0059627e6723fb7;hpb=3eff4cc36820df9faddb3cb16390717851db499c;p=helm.git diff --git a/helm/matita/library/nat/plus.ma b/helm/matita/library/nat/plus.ma index 6067ebcdc..d595dad19 100644 --- a/helm/matita/library/nat/plus.ma +++ b/helm/matita/library/nat/plus.ma @@ -21,8 +21,8 @@ let rec plus n m \def [ O \Rightarrow m | (S p) \Rightarrow S (plus p m) ]. +(*CSC: the URI must disappear: there is a bug now *) interpretation "natural plus" 'plus x y = (cic:/matita/nat/plus/plus.con x y). -alias symbol "plus" (instance 0) = "natural plus". theorem plus_n_O: \forall n:nat. n = n+O. intros.elim n. @@ -36,11 +36,6 @@ simplify.reflexivity. simplify.apply eq_f.assumption. qed. -(* some problem here: confusion between relations/symmetric -and functions/symmetric; functions symmetric is not in -functions.moo why? -theorem symmetric_plus: symmetric nat plus. *) - theorem sym_plus: \forall n,m:nat. n+m = m+n. intros.elim n. simplify.apply plus_n_O. @@ -48,7 +43,7 @@ simplify.rewrite > H.apply plus_n_Sm. qed. theorem associative_plus : associative nat plus. -simplify.intros.elim x. +unfold associative.intros.elim x. simplify.reflexivity. simplify.apply eq_f.assumption. qed. @@ -67,10 +62,9 @@ theorem inj_plus_r: \forall p,n,m:nat. p+n = p+m \to n=m theorem injective_plus_l: \forall m:nat.injective nat nat (\lambda n.n+m). intro.simplify.intros. -(* qui vorrei applicare injective_plus_r *) -apply inj_plus_r m. +apply (injective_plus_r m). rewrite < sym_plus. -rewrite < sym_plus y. +rewrite < (sym_plus y). assumption. qed.