]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/tests/inversion.ma
"Coq's " prefix added to every interpretation.
[helm.git] / helm / matita / tests / inversion.ma
index f5ad10c7fc727fb33377c9150cad16926030786b..99e18012d79bdc43ac445116627aefcf26eef832 100644 (file)
@@ -1,4 +1,4 @@
-set "baseuri" "cic:/matita/tests/".
+set "baseuri" "cic:/matita/tests/inversion/".
 
 inductive nat : Set \def
    O : nat
@@ -8,7 +8,7 @@ inductive le (n:nat) : nat \to Prop \def
    leO : le n n
  | leS : \forall m. le n m \to le n (S m).
 
-alias symbol "eq" (instance 0) = "leibnitz's equality".
+alias symbol "eq" (instance 0) = "Coq's leibnitz's equality".
 
 theorem test_inversion: \forall n. le n O \to n=O.
  intros.
@@ -17,7 +17,7 @@ theorem test_inversion: \forall n. le n O \to n=O.
   (* goal 2: 0 = 0 *)
   goal 7. reflexivity.
   (* goal 1 *)
-  generalize Hcut.
+  generalize in match Hcut.
   apply (le_ind ? (\lambda x. O=x \to n=x) ? ? ? H).
   (* first goal (left open) *)
   intro. rewrite < H1.
@@ -35,7 +35,7 @@ alias id "refl_equal" = "cic:/Coq/Init/Logic/eq.ind#xpointer(1/1/1)".
 theorem test_inversion2: \forall n. le n O \to n=O.
  intros.
  (* inversion begins *)
- generalize (refl_equal nat O).
+ generalize in match (refl_equal nat O).
  apply (le_ind ? (\lambda x. O=x \to n=x) ? ? ? H).
  (* first goal (left open) *)
  intro. rewrite < H1.