X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Fsimpl.ma;h=1001d2351f0b97a50da92ef8a48cad25b17b4c47;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=2a860e1906078f25b5ae793d107e7fe0370c169b;hpb=4ac4b8de35d8c4167819acf3d876e69cbd3cfb17;p=helm.git diff --git a/helm/matita/tests/simpl.ma b/helm/matita/tests/simpl.ma index 2a860e190..1001d2351 100644 --- a/helm/matita/tests/simpl.ma +++ b/helm/matita/tests/simpl.ma @@ -20,14 +20,15 @@ alias id "plus" = "cic:/Coq/Init/Peano/plus.con". alias id "S" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/2)". alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)". alias id "not" = "cic:/Coq/Init/Logic/not.con". - +alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)". +alias id "plus_comm" = "cic:/Coq/Arith/Plus/plus_comm.con". theorem a : \forall A:Set. \forall x,y : A. not (x = y) \to not(y = x). intros. -simplify. +unfold not. (* simplify. *) intro. apply H. symmetry. exact H1. @@ -37,12 +38,14 @@ theorem t: let f \def \lambda x,y. x y in f (\lambda x.S x) O = S O. intros. simplify. change in \vdash (? ? (? %) ?) with O. reflexivity. qed. + theorem X: \forall x:nat. let myplus \def plus x in myplus (S O) = S x. - intros. simplify. change in \vdash (? ? (% ?) ?) with plus x. - rewrite > plus_comm. reflexivity. qed. + intros. simplify. change in \vdash (? ? (% ?) ?) with (plus x). + +rewrite > plus_comm. reflexivity. qed. theorem R: \forall x:nat. let uno \def x + O in S O + uno = 1 + x. intros. simplify. - change in \vdash (? ? (? %) ?) with x + O. + change in \vdash (? ? (? %) ?) with (x + O). rewrite > plus_comm. reflexivity. qed.