]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/library/demo/realisability.ma
generalize no more required before elim
[helm.git] / helm / software / matita / library / demo / realisability.ma
index 0cd58c63dce78b1c70fe0640541c2d405c73621e..0de10940ad64854bb9e716800bdbbdf8d588d80a 100644 (file)
@@ -116,9 +116,8 @@ theorem correct: ∀F:SP.∀r:type_OF_SP F.modr F r → Prop_OF_SP F.
        | apply (proj2 ? ? H2)
        ]
      ]
-  | generalize in match H2; clear H2;
-    change in r with (type_OF_SP s + type_OF_SP s1);
-    elim r; simplify in H2;
+  | change in r with (type_OF_SP s + type_OF_SP s1);
+    elim r in H2 ⊢ %; simplify in H2;
      [ left; apply H; assumption
      | right; apply H1; assumption
      ]
@@ -131,8 +130,7 @@ theorem correct: ∀F:SP.∀r:type_OF_SP F.modr F r → Prop_OF_SP F.
     | skip
     ]
   | simplify in r;
-    generalize in match H1; clear H1;
-    elim r;
+    elim r in H1 ⊢ %;
     apply (ex_intro ? ? a);
     apply H;
     assumption