test-suite/bugs/bug_3199.v
raw| 1 | Axiom P : nat -> Prop. |
| 2 | Axiom admit : forall n : nat, P n -> P n -> n = S n. |
| 3 | Axiom foo : forall n, P n. |
| 4 | |
| 5 | Create HintDb bar. |
| 6 | #[export] Hint Extern 3 => symmetry : bar. |
| 7 | #[export] Hint Resolve admit : bar. |
| 8 | #[export] Hint Immediate foo : bar. |
| 9 | |
| 10 | Lemma qux : forall n : nat, n = S n. |
| 11 | Proof. |
| 12 | intros n. |
| 13 | eauto with bar. |
| 14 | Defined. |
| 15 | |
| 16 | Goal True. |
| 17 | pose (e := eq_refl (qux 0)); unfold qux in e. |
| 18 | match type of e with context [eq_sym] => fail 1 | _ => idtac end. |
| 19 | Abort. |