Debian Codegraph @

test-suite/bugs/bug_5401.v

raw
1 (* Testing printing of bound unnamed variables in pattern printer *)
2
3 Module A.
4 Parameter P : nat -> Type.
5 Parameter v : forall m, P m.
6 Parameter f : forall (P : nat -> Type), (forall a, P a) -> P 0.
7 Class U (R : P 0) (m : forall x, P x) : Prop.
8 #[export] Instance w : U (f _ (fun _ => v _)) v := {}.
9 Print HintDb typeclass_instances.
10 End A.
11
12 (* #5731 *)
13
14 Module B.
15 Axiom rel : Type -> Prop.
16 Axiom arrow_rel : forall {A1}, A1 -> rel A1.
17 Axiom forall_rel : forall E, (forall v1 : Type, E v1 -> rel v1) -> Prop.
18 Axiom inl_rel: forall_rel _ (fun _ => arrow_rel).
19 #[export] Hint Resolve inl_rel : foo.
20 Print HintDb foo.
21 End B.