Debian Codegraph @

test-suite/ide/undo015.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 # Fourth, undo from an inner proof to a above 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 here { Qed. }
15 ADD { apply H. }
16 ADD { Lemma cc : False -> True. }
17 ADD { intro H. }
18 ADD { destruct H. }
19 EDIT_AT here
20 # <replay>
21 ADD { apply H. }
22 ADD { Lemma cc : False -> True. }
23 ADD { intro H. }
24 ADD { destruct H. }
25 # </replay>
26 ADD { Qed. }
27 ADD { apply H. }
28 ADD { Qed. }
29 QUERY { Fail Show. }
30 QUERY { Check (aa,bb,cc). }