Debian Codegraph @

test-suite/success/QualifiedGoalNames.v

raw
1 (* -*- mode: coq -*- *)
2
3 Set Generate Goal Names.
4
5 Goal forall a b : bool, a = a.
6 Proof.
7 intros.
8 destruct a.
9 [true]: destruct b.
10 [true.true]: reflexivity.
11 [true.false]: reflexivity.
12 [false]: reflexivity.
13 Qed.
14
15 Goal forall a b c : bool, a = a.
16 Proof.
17 intros.
18 destruct a.
19 all: destruct b.
20 all: destruct c.
21 [true.true.true]: reflexivity.
22 [true.true.false]: reflexivity.
23 [true.false.true]: reflexivity.
24 [true.false.false]: reflexivity.
25 [false.true.true]: reflexivity.
26 [false.true.false]: reflexivity.
27 [false.false.true]: reflexivity.
28 [false.false.false]: reflexivity.
29 Qed.
30
31 Goal forall n m : nat, n + m = m + n.
32 Proof.
33 intros.
34 induction m; simpl.
35 [O]: {
36 induction n.
37 [O.O]: reflexivity.
38 [O.S]: { simpl. congruence. }
39 }
40 [S]: {
41 induction n.
42 [S.O]: { rewrite <- IHm. reflexivity. }
43 [S.S]: { rewrite <- IHm. auto. }
44 }
45 Qed.