Debian Codegraph @

test-suite/bugs/bug_12571.v

raw
1 Axiom IsTrunc : Type -> Type.
2
3 Existing Class IsTrunc.
4
5 #[export] Declare Instance trunc_forall :
6 forall (A : Type) (P : A -> Type),
7 IsTrunc (forall a : A, P a).
8
9 Axiom Graph : Set.
10 Axiom in_N : forall (n : Graph), Type.
11
12 Definition N : Type := @sigT Graph in_N.
13
14 Goal forall (P : N -> Type)
15 (Q := fun m : Graph => forall mrec : in_N m, P (existT _ m mrec))
16 (A : Graph), IsTrunc (Q A).
17 Proof.
18 intros.
19 solve [typeclasses eauto].
20 Qed.