| 1 |
# Script simulating a dialog between rocqide and coqtop -ideslave |
| 2 |
# Run it via fake_ide |
| 3 |
# |
| 4 |
# Test backtracking in presence of nested proofs |
| 5 |
# Third, undo inside an inner proof |
| 6 |
# |
| 7 |
ADD { Set Nested Proofs Allowed. } |
| 8 |
ADD { Lemma aa : True -> True /\ True. } |
| 9 |
ADD { intro H. } |
| 10 |
ADD { split. } |
| 11 |
ADD { Lemma bb : False -> False. } |
| 12 |
ADD { intro H. } |
| 13 |
ADD { apply H. } |
| 14 |
ADD { Qed. } |
| 15 |
ADD { apply H. } |
| 16 |
ADD { Lemma cc : False -> True. } |
| 17 |
ADD here { intro H. } |
| 18 |
ADD { destruct H. } |
| 19 |
EDIT_AT here |
| 20 |
# <replay> |
| 21 |
ADD { destruct H. } |
| 22 |
# </replay> |
| 23 |
ADD { Qed. } |
| 24 |
ADD { apply H. } |
| 25 |
ADD { Qed. } |
| 26 |
QUERY { Fail Show. } |
| 27 |
QUERY { Check (aa,bb,cc). } |