test-suite/bugs/bug_12045.v
raw| 1 | (* Check enough reduction happens in the conclusion of an induction scheme *) |
| 2 | |
| 3 | Lemma foo : |
| 4 | forall (P : nat -> Prop), |
| 5 | (forall n, P (S n)) -> |
| 6 | forall n, |
| 7 | (fun e => |
| 8 | IsSucc e -> |
| 9 | P e) n. |
| 10 | Proof. |
| 11 | Admitted. |
| 12 | |
| 13 | Theorem bar : forall n, |
| 14 | IsSucc n -> |
| 15 | True. |
| 16 | Proof. |
| 17 | intros. |
| 18 | Fail induction n using foo. (* was an anomaly *) |
| 19 | Admitted. |