test-suite/success/hint_extern_syntactic_unify.v
raw| 1 | (* Hint Extern uses syntactic unification *) |
| 2 | Definition one := 1. |
| 3 | Theorem bar: 1=one. reflexivity. Qed. |
| 4 | |
| 5 | Create HintDb db discriminated. |
| 6 | Hint Extern 1 (1=one) => apply bar : db. |
| 7 | |
| 8 | Set Typeclasses Debug Verbosity 2. |
| 9 | |
| 10 | Goal one=1. |
| 11 | (* fail as expected; "one" is not expanded *) |
| 12 | Fail progress debug auto with db nocore. |
| 13 | Fail typeclasses eauto with db nocore. |
| 14 | Abort. |