test-suite/bugs/bug_4976.v
raw| 1 | Require Import Coq.Setoids.Setoid. |
| 2 | Definition silly (n : nat) := True. |
| 3 | Ltac silly := |
| 4 | lazymatch goal with |
| 5 | | [ |- silly 1 ] => constructor |
| 6 | end. |
| 7 | Axiom sillyL : forall x, silly x -> x = 0 + 0. |
| 8 | Hint Rewrite sillyL using solve [ silly ] : silly. |
| 9 | Goal 1 + 0 = 0. |
| 10 | Proof. |
| 11 | progress autorewrite* with silly. |
| 12 | reflexivity. |
| 13 | Qed. |
| 14 | Goal 1 + 0 = 0. |
| 15 | Proof. |
| 16 | rewrite* sillyL by silly. |
| 17 | reflexivity. |
| 18 | Qed. |