Debian Codegraph @

test-suite/bugs/bug_14009.v

raw
1 Class Bin {P:Type} (A B : P) := {}.
2
3 Set Primitive Projections.
4
5 Record test (n : nat) := { proj : Prop }.
6 Axiom Bin_test : forall {t1 t2 : test O}, Bin (proj _ t1) (proj _ t2).
7
8 Create HintDb db discriminated.
9 #[local] Hint Resolve Bin_test : db.
10 #[local] Hint Opaque proj : db.
11
12 Goal forall t1 t2 : test O, Bin (proj O t1) (proj O t2).
13 Proof.
14 intros.
15 solve [typeclasses eauto with db].
16 Qed.