summaryrefslogtreecommitdiff
path: root/test-suite/ide/undo011.fake
blob: 0be439b27210d455cf55f946168326403819b66a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Script simulating a dialog between coqide and coqtop -ideslave
# Run it via fake_ide
#
# Bug 2082
# Broken due to proof engine rewriting
#
ADD { Variable A : Prop. }
ADD { Variable B : Prop. }
ADD { Axiom OR : A \/ B. }
ADD { Lemma MyLemma2 : True. }
ADD { proof. }
ADD { per cases of (A \/ B) by OR. }
ADD { suppose A. }
ADD {     then (1 = 1). }
ADD there {     then H1 : thesis. }
ADD here {     thus thesis by H1. }
ADD { suppose B. }
QUERY { Show. }
EDIT_AT here
# <replay>
ADD { suppose B. }
# </replay>
EDIT_AT there
# <replay>
ADD {    thus thesis by H1. }
ADD { suppose B. }
# </replay>
QUERY { Show. }
ADD {    then (1 = 1). }
ADD {    then H2 : thesis. }
ADD {    thus thesis by H2. }
ADD { end cases. } 
ADD { end proof. }
ADD { Qed. }