| 1 |
Create HintDb foo discriminated. |
| 2 |
|
| 3 |
Definition myid (A : Prop) := A. |
| 4 |
|
| 5 |
Section Test1. |
| 6 |
|
| 7 |
#[local] Hint Constructors True : foo. |
| 8 |
|
| 9 |
Lemma test1 : myid True. |
| 10 |
Proof. |
| 11 |
Fail typeclasses eauto with foo. |
| 12 |
Abort. |
| 13 |
|
| 14 |
End Test1. |
| 15 |
|
| 16 |
Section Test2. |
| 17 |
|
| 18 |
Definition hide (A : Prop) := A. |
| 19 |
|
| 20 |
#[local] Hint Extern 1 => match goal with [ |- hide True ] => constructor end : foo. |
| 21 |
#[local] Hint Unfold myid : foo. |
| 22 |
|
| 23 |
Lemma test2 : hide (myid True). |
| 24 |
Proof. |
| 25 |
Fail typeclasses eauto with foo. |
| 26 |
Abort. |
| 27 |
|
| 28 |
End Test2. |
| 29 |
|
| 30 |
Section Test3. |
| 31 |
|
| 32 |
#[local] Hint Constructors True : foo. |
| 33 |
#[local] Hint Unfold myid : foo. |
| 34 |
|
| 35 |
Lemma test3 : myid True. |
| 36 |
Proof. |
| 37 |
typeclasses eauto with foo. |
| 38 |
Qed. |
| 39 |
|
| 40 |
End Test3. |