| 1 |
Parameter x y : nat. |
| 2 |
Axiom H : x = y. |
| 3 |
#[export] Hint Rewrite H : mybase. |
| 4 |
|
| 5 |
Ltac bar base := autorewrite with base. |
| 6 |
|
| 7 |
Tactic Notation "foo" ident(base) := autorewrite with base. |
| 8 |
|
| 9 |
Goal x = 0. |
| 10 |
bar mybase. |
| 11 |
now_show (y = 0). |
| 12 |
Undo 2. |
| 13 |
foo mybase. |
| 14 |
now_show (y = 0). |
| 15 |
Abort. |