apps/eltac/tests/test_clear.v
raw| 1 | From elpi.apps Require Import eltac.clear. |
| 2 | |
| 3 | Example test_generalize_dependent x y (H : x = y) (H1 : 0 <= x) (d := x + 1) (H2 : y = 1) (w := 3): x + d + y = 2. |
| 4 | Proof. |
| 5 | generalize dependent x. |
| 6 | Fail eltac.clear x. |
| 7 | eltac.clear H2. |
| 8 | Fail match goal with Hyp : y = 1 |- _ => idtac end. |
| 9 | intros. |
| 10 | eltac.clearbody d w. |
| 11 | Fail unfold d. |
| 12 | Check d. |
| 13 | Abort. |