Debian Codegraph @

test-suite/success/forward.v

raw
1 (* Testing forward reasoning *)
2
3 Goal 0=0.
4 Fail assert (_ = _).
5 eassert (_ = _)by reflexivity.
6 eassumption.
7 Qed.
8
9 Goal 0=0.
10 Fail set (S ?[nl]).
11 eset (S ?[n]).
12 remember (S ?n) as x.
13 instantiate (n:=0).
14 Fail remember (S (S _)).
15 eremember (S (S ?[x])).
16 instantiate (x:=0).
17 reflexivity.
18 Qed.
19
20 (* Don't know if it is good or not but the compatibility tells that
21 the asserted goal to prove is subject to beta-iota but not the
22 asserted hypothesis *)
23
24 Goal True.
25 assert ((fun x => x) False).
26 Fail match goal with |- (?f ?a) => idtac end. (* should be beta-iota reduced *)
27 2:match goal with _: (?f ?a) |- _ => idtac end. (* should not be beta-iota reduced *)
28 Abort.
29
30 Goal nat.
31 assert nat as J%S by exact 0.
32 exact J.
33 Qed.