blob: 179b5b83d6308b5e4d69e0d75c3720cb4b1cc9c7 (
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
35
36
37
|
(* -*- isar -*-
Example proof document for Isabelle/Isar Proof General.
$Id$
The first line forces Isabelle/Isar Proof General, otherwise
you may get the theory mode of ordinary Isabelle Proof General
See the manual for other ways to select Isabelle/Isar PG.
*)
theory Example = Main:
text {* Proper proof text. *}
theorem and_comms: "A & B --> B & A"
proof
assume "A & B"
thus "B & A"
proof
assume B and A
thus ?thesis ..
qed
qed
text {* Proof script. *}
theorem "A & B --> B & A"
apply (rule impI)
apply (erule conjE)
apply (rule conjI)
apply assumption
apply assumption
done
end
|