aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-04-21 12:17:22 +0200
committerPierre-Marie Pédrot2020-04-21 12:17:22 +0200
commitc3bfeb5ab366de223f2eec48c6a4ab18e9b4a4ea (patch)
tree6013ba9e2c884911cd73d50287015c66e30f20d8 /test-suite
parent07c746c1bc54109db02f26b23cceee3a7fdf9992 (diff)
parenta44a478091416f17ecf47be4b254a742e9593441 (diff)
Merge PR #12116: Fixing #12045: missing normalization in conclusion of custom induction scheme
Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_12045.v19
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.