X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Flibrary%2Fnat%2Fplus.ma;h=79640b1362f86e9a654cc55a568d766daa8e0120;hb=8b55faddb06e3c4b0a13839210bb49170939b33e;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..79640b136 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. @@ -67,8 +62,7 @@ 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. assumption.