diff options
author | 2016-09-30 16:42:54 +0200 | |
---|---|---|
committer | 2016-09-30 16:58:17 +0200 | |
commit | 024cf5ae087024399cc894b121437d72cd11b480 (patch) | |
tree | 243c6d661fe52ceba2a7b8005aa31e9ee1b9e7ee /test-suite/bugs/closed/4471.v | |
parent | 14427a707f0e97e15e01bb9d297319917a0379f2 (diff) |
Fix bug #4471: [generalize dependent] permits ill-typed terms in trunk.
This bug was introduced by 37ab45726, because the new apply_type function
was not checking that the new goal was indeed well-typed. We add this check
locally in the generalize dependent tactic.
Diffstat (limited to 'test-suite/bugs/closed/4471.v')
-rw-r--r-- | test-suite/bugs/closed/4471.v | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/4471.v b/test-suite/bugs/closed/4471.v new file mode 100644 index 000000000..36efc42d4 --- /dev/null +++ b/test-suite/bugs/closed/4471.v @@ -0,0 +1,6 @@ +Goal forall (A B : Type) (P : forall _ : prod A B, Type) (a : A) (b : B) (p p0 : forall (x : A) (x' : B), P (@pair A B x x')), + @eq (P (@pair A B a b)) (p (@fst A B (@pair A B a b)) (@snd A B (@pair A B a b))) + (p0 (@fst A B (@pair A B a b)) (@snd A B (@pair A B a b))). +Proof. + intros. + Fail generalize dependent (a, b). |