Debian Codegraph @

test-suite/ide/undo012.fake

raw
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 #
6 ADD { Set Nested Proofs Allowed. }
7 ADD { Lemma aa : True -> True /\ True. }
8 ADD { intro H. }
9 ADD { split. }
10 ADD { Lemma bb : False -> False. }
11 ADD { intro H. }
12 ADD { apply H. }
13 ADD { Qed. }
14 ADD { apply H. }
15 ADD { Lemma cc : False -> True. }
16 ADD { intro H. }
17 ADD { destruct H. }
18 ADD { Qed. }
19 QUERY { Show. }
20 ADD here { apply H. }
21 ADD { Qed. }
22 EDIT_AT here
23 # We should now be just before the Qed.
24 QUERY { Fail Check aa. }
25 QUERY { Check bb. }
26 QUERY { Check cc. }
27 ADD { Qed. }