diff options
| author | Hugo Herbelin | 2020-04-17 22:45:44 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2020-04-20 12:49:39 +0200 |
| commit | f71458c2d72d8cb2b534a1937ea1a259e9722edc (patch) | |
| tree | 5755780a99de98d7bbd4a1ed04a75a856bb7fa1a /test-suite | |
| parent | e77b7aed145718b73ca58c75bc7ed01d2b55446f (diff) | |
Fixing #12045 (missing normalization in conclusion of custom induction scheme).
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_12045.v | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_12045.v b/test-suite/bugs/closed/bug_12045.v new file mode 100644 index 0000000000..4e416778a9 --- /dev/null +++ b/test-suite/bugs/closed/bug_12045.v @@ -0,0 +1,19 @@ +(* Check enough reduction happens in the conclusion of an induction scheme *) + +Lemma foo : + forall (P : nat -> Prop), + (forall n, P (S n)) -> + forall n, + (fun e => + IsSucc e -> + P e) n. +Proof. +Admitted. + +Theorem bar : forall n, + IsSucc n -> + True. +Proof. + intros. + Fail induction n using foo. (* was an anomaly *) +Admitted. |
