]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/fguidi.ma
first working (?) version of lapply
[helm.git] / helm / matita / tests / fguidi.ma
index 623e327f904b0e3d5411567e133cf23d9a511368..88e577f13bdc7691a274812cfbeb245559b92713 100644 (file)
@@ -89,6 +89,9 @@ 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).
+(* proof of le_gen_S_S with lapply *)
+theorem le_gen_S_S_2: \forall m,n. (le (S m) (S n)) \to (le m n).
 intros.
-lapply le_gen_S_x.
\ No newline at end of file
+lapply le_gen_S_x to H. elim Hcut1. elim H1. 
+lapply eq_gen_S_S to H2. rewrite left Hcut3. assumption.
+qed.
\ No newline at end of file