| 1 |
Goal forall x, x = 0 -> S x = 7 -> x = 22 . |
| 2 |
Proof. |
| 3 |
replace 0 with 33. |
| 4 |
Undo. |
| 5 |
intros x H H0. |
| 6 |
replace x with 0. |
| 7 |
Undo. |
| 8 |
replace x with 0 in |- *. |
| 9 |
Undo. |
| 10 |
replace x with 1 in *. |
| 11 |
Undo. |
| 12 |
replace x with 0 in *|- *. |
| 13 |
Undo. |
| 14 |
replace x with 0 in *|-. |
| 15 |
Undo. |
| 16 |
replace x with 0 in H0 . |
| 17 |
Undo. |
| 18 |
replace x with 0 in H0 |- * . |
| 19 |
Undo. |
| 20 |
|
| 21 |
replace x with 0 in H,H0 |- * . |
| 22 |
Undo. |
| 23 |
Admitted. |
| 24 |
|
| 25 |
(* This failed at some point when "replace" started to support arguments |
| 26 |
with evars but "abstract" did not supported any evars even defined ones *) |
| 27 |
|
| 28 |
Class U. |
| 29 |
Lemma l (u : U) (f : U -> nat) (H : 0 = f u) : f u = 0. |
| 30 |
replace (f _) with 0 by abstract apply H. |
| 31 |
reflexivity. |
| 32 |
Qed. |