| 1 |
(* Test support of let-in in arity of inductive types *) |
| 2 |
|
| 3 |
Inductive Foo : let X := Set in X := |
| 4 |
| I : Foo. |
| 5 |
|
| 6 |
Definition foo (x : Foo) : bool := |
| 7 |
match x with |
| 8 |
I => true |
| 9 |
end. |
| 10 |
|
| 11 |
Definition foo' (x : Foo) : x = x. |
| 12 |
case x. |
| 13 |
match goal with |- I = I => idtac end. (* check form of the goal *) |
| 14 |
Undo 2. |
| 15 |
elim x. |
| 16 |
match goal with |- I = I => idtac end. (* check form of the goal *) |
| 17 |
Undo 2. |
| 18 |
induction x. |
| 19 |
match goal with |- I = I => idtac end. (* check form of the goal *) |
| 20 |
Undo 2. |
| 21 |
destruct x. |
| 22 |
match goal with |- I = I => idtac end. (* check form of the goal *) |
| 23 |
Abort. |