| 1 |
Inductive test : unit -> Prop :=. |
| 2 |
Definition test2 := forall x, test x. |
| 3 |
Lemma t (H : test2) : True. |
| 4 |
edestruct H using test_rect. |
| 5 |
Abort. |
| 6 |
|
| 7 |
(* Testcase derived from an earlier coq-corn failure *) |
| 8 |
Definition existsC := |
| 9 |
fun P : unit -> Prop => False. |
| 10 |
|
| 11 |
Lemma ex_ind2 : forall (P : unit -> Prop) (Q:Prop), existsC P -> Q. |
| 12 |
Proof. |
| 13 |
intros. destruct H. |
| 14 |
Qed. |
| 15 |
|
| 16 |
Goal (existsC (fun x => True)) -> True. |
| 17 |
Proof. |
| 18 |
intros. |
| 19 |
destruct (H) using ex_ind2. (* parenthesis around (H) are intentional *) |
| 20 |
Qed. |