Debian Codegraph @

test-suite/bugs/bug_4762.v

raw
1 Inductive myand (P Q : Prop) := myconj : P -> Q -> myand P Q.
2
3 Lemma foo P Q R : R = myand P Q -> P -> Q -> R.
4 Proof. intros ->; constructor; auto. Qed.
5
6 #[export] Hint Extern 0 (myand _ _) => eapply foo; [reflexivity| |] : test1.
7
8 Goal forall P Q R : Prop, P -> Q -> R -> myand P (myand Q R).
9 Proof.
10 intros.
11 eauto with test1.
12 Qed.
13
14 #[export] Hint Extern 0 =>
15 match goal with
16 | |- myand _ _ => eapply foo; [reflexivity| |]
17 end : test2.
18
19 Goal forall P Q R : Prop, P -> Q -> R -> myand P (myand Q R).
20 Proof.
21 intros.
22 eauto with test2. (* works *)
23 Qed.