| 1 |
Require Import TestSuite.admit. |
| 2 |
(* This failed with an anomaly in pre-8.4 because of let-in not |
| 3 |
properly taken into account in the test for unification pattern *) |
| 4 |
|
| 5 |
Inductive foo : forall A, A -> Prop := |
| 6 |
| foo_intro : forall A x, foo A x. |
| 7 |
Lemma bar A B f : foo (A -> B) f -> forall x : A, foo B (f x). |
| 8 |
Fail induction 1. |
| 9 |
|
| 10 |
(* Whether these examples should succeed with a non-dependent return predicate |
| 11 |
or fail because there is well-typed return predicate dependent in f |
| 12 |
is questionable. As of 25 oct 2011, they succeed *) |
| 13 |
refine (fun p => match p with _ => _ end). |
| 14 |
Undo. |
| 15 |
refine (fun p => match p with foo_intro _ _ => _ end). |
| 16 |
admit. |
| 17 |
Qed. |