X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Ffguidi.ma;h=7163c56b390f28b0332910110c6494fe8716d93f;hb=3b518dfa49ead4148b3997406da09c4a63c87cb2;hp=623e327f904b0e3d5411567e133cf23d9a511368;hpb=d513d6872096bfe51f8fa3ced917131e954130e1;p=helm.git diff --git a/helm/matita/tests/fguidi.ma b/helm/matita/tests/fguidi.ma index 623e327f9..7163c56b3 100644 --- a/helm/matita/tests/fguidi.ma +++ b/helm/matita/tests/fguidi.ma @@ -1,3 +1,5 @@ +set "baseuri" "cic:/matita/tests/fguidi/". + alias id "O" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/1)". alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)". alias id "S" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1/2)". @@ -5,12 +7,12 @@ alias id "le" = "cic:/matita/fguidi/le.ind#xpointer(1/1)". alias id "False_ind" = "cic:/Coq/Init/Logic/False_ind.con". alias id "I" = "cic:/Coq/Init/Logic/True.ind#xpointer(1/1/1)". alias id "ex_intro" = "cic:/Coq/Init/Logic/ex.ind#xpointer(1/1/1)". +alias id "False" = "cic:/Coq/Init/Logic/False.ind#xpointer(1/1)". +alias id "True" = "cic:/Coq/Init/Logic/True.ind#xpointer(1/1)". alias symbol "and" (instance 0) = "logical and". alias symbol "eq" (instance 0) = "leibnitz's equality". alias symbol "exists" (instance 0) = "exists". -alias id "False" = "cic:/Coq/Init/Logic/False.ind#xpointer(1/1)". -alias id "True" = "cic:/Coq/Init/Logic/True.ind#xpointer(1/1)". definition is_S: nat \to Prop \def \lambda n. match n with @@ -80,15 +82,17 @@ intros. elim H. elim H1. cut (S x1) = x. elim Hcut. auto. elim H2. auto. qed. theorem le_gen_S_S: \forall m,n. (le (S m) (S n)) \to (le m n). -intros. cut (\exists p. (S n) = (S p) \land (le m p)). -elim Hcut. elim H1. cut x = n. -elim Hcut1. auto. symmetry. auto. auto. +intros. +lapply le_gen_S_x to H using H0. elim H0. elim H1. +lapply eq_gen_S_S to H2 using H4. rewrite > H4. assumption. qed. theorem le_gen_S_S_cc: \forall m,n. (le m n) \to (le (S m) (S n)). intros. auto. qed. - -theorem pippo: \forall m,n. (le (S m) (S n)) \to (le m n). -intros. -lapply le_gen_S_x. \ No newline at end of file +(* +theorem le_trans: \forall x,y. (le x y) \to \forall z. (le y z) \to (le x z). +intros 1. elim x. +clear x. auto. +clear H. fwd H1 [H]. decompose H. +*) \ No newline at end of file