| 1 |
# Script simulating a dialog between rocqide and coqtop -ideslave |
| 2 |
# Run it via fake_ide |
| 3 |
# |
| 4 |
# jumping between broken proofs + interp error while fixing. |
| 5 |
# the error should note make the GUI unfocus the currently focused proof. |
| 6 |
|
| 7 |
# first proof |
| 8 |
ADD { Lemma a : True /\ True. } |
| 9 |
ADD { Proof using. } |
| 10 |
ADD here { split. } |
| 11 |
ADD { exact Ix. } # first error |
| 12 |
ADD { exact Ix. } # second error |
| 13 |
ADD { Qed. } |
| 14 |
# second proof |
| 15 |
ADD { Lemma b : True. } |
| 16 |
ADD { Proof using. } |
| 17 |
ADD { exact I. } |
| 18 |
ADD last { Qed. } |
| 19 |
# We wait all slaves and expect both proofs to fail |
| 20 |
WAIT |
| 21 |
# Going back to the error |
| 22 |
EDIT_AT here |
| 23 |
# Fixing the proof |
| 24 |
ADD fix { exact I. } |
| 25 |
# showing the goals |
| 26 |
GOALS |
| 27 |
# re adding the wrong step |
| 28 |
ADD { exact Ix. } |
| 29 |
# showing the goals (failure) and retracting to the safe state suggested by Coq |
| 30 |
FAILGOALS |
| 31 |
# we assert we jumped back to the state immediately before the last (erroneous) |
| 32 |
# one |
| 33 |
ASSERT TIP fix |
| 34 |
# finish off the proof |
| 35 |
ADD { exact I. } |
| 36 |
ADD { Qed. } |
| 37 |
# here we unfocus, hence we jump back to the end of the document |
| 38 |
ASSERT TIP last |
| 39 |
# we are back at the end |
| 40 |
QUERY { Check a. } |
| 41 |
QUERY { Check b. } |