| 1 |
# Script simulating a dialog between rocqide and coqtop -ideslave |
| 2 |
# Run it via fake_ide |
| 3 |
# |
| 4 |
# focusing a broken proof and fixing it |
| 5 |
|
| 6 |
# first proof |
| 7 |
ADD { Lemma a : True. } |
| 8 |
ADD { Proof using. } |
| 9 |
ADD here { idtac. } |
| 10 |
ADD { exact Ix. } |
| 11 |
ADD { Qed. } |
| 12 |
# second proof |
| 13 |
ADD { Lemma b : False. } |
| 14 |
ADD { Proof using. } |
| 15 |
ADD { give_up. } |
| 16 |
ADD last { Admitted. } |
| 17 |
# We join and expect some proof to fail |
| 18 |
WAIT |
| 19 |
# Going back to the error |
| 20 |
EDIT_AT here |
| 21 |
# Fixing the proof |
| 22 |
ADD { exact I. } |
| 23 |
ADD { Qed. } |
| 24 |
# we are back at the end |
| 25 |
ASSERT TIP last |
| 26 |
QUERY { Check a. } |
| 27 |
QUERY { Check b. } |