(**************************************************************************)
set "baseuri" "cic:/matita/tests/elim".
-include "coq.ma".
+include "legacy/coq.ma".
inductive stupidtype: Set \def
| Base : stupidtype
elim a.
clear a.left.left.
reflexivity.
-clear H.clear H1.clear a.right.
- exists.exact s.exists.exact s1.reflexivity.
clear H.clear a.left.right.
exists.exact s.reflexivity.
+clear H.clear H1.clear a.right.
+ exists.exact s.exists.exact s1.reflexivity.
qed.
theorem t: 0=0 \to stupidtype.
inductive sum (n:nat) : nat \to nat \to Set \def
k: \forall x,y. n = x + y \to sum n x y.
-theorem t: \forall x,y. \forall H: sum x y O.
+theorem t': \forall x,y. \forall H: sum x y O.
match H with [ (k a b p) \Rightarrow a ] = x.
intros.
cut (y = y \to O = O \to match H with [ (k a b p) \Rightarrow a] = x).
(\lambda a,b,K. y=a \to O=b \to
match K with [ (k a b p) \Rightarrow a ] = x)
? ? ? H).
+ goal 16.
simplify. intros.
generalize in match H1.
rewrite < H2; rewrite < H3.intro.