diff options
| author | Pierre-Marie Pédrot | 2020-06-23 11:14:05 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-06-23 17:00:44 +0200 |
| commit | 93e7eff5e55be0b6ddc68cd90a175e38793c6b62 (patch) | |
| tree | 78c464dec10231875926a684b908803c608b2e90 /test-suite/bugs | |
| parent | 25ece321f2297bd28971be3df2616626a7de9516 (diff) | |
Correctly classify variables as being unfoldable in dnet patterns.
Fixes #12571.
Diffstat (limited to 'test-suite/bugs')
| -rw-r--r-- | test-suite/bugs/closed/bug_12571.v | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_12571.v b/test-suite/bugs/closed/bug_12571.v new file mode 100644 index 0000000000..c348626921 --- /dev/null +++ b/test-suite/bugs/closed/bug_12571.v @@ -0,0 +1,20 @@ +Axiom IsTrunc : Type -> Type. + +Existing Class IsTrunc. + +Declare Instance trunc_forall : + forall (A : Type) (P : A -> Type), + IsTrunc (forall a : A, P a). + +Axiom Graph : Set. +Axiom in_N : forall (n : Graph), Type. + +Definition N : Type := @sigT Graph in_N. + +Goal forall (P : N -> Type) + (Q := fun m : Graph => forall mrec : in_N m, P (existT _ m mrec)) + (A : Graph), IsTrunc (Q A). +Proof. +intros. +solve [typeclasses eauto]. +Qed. |
