aboutsummaryrefslogtreecommitdiffhomepage
path: root/isar/Example.thy
diff options
context:
space:
mode:
authorGravatar Makarius Wenzel <makarius@sketis.net>1999-09-24 15:48:28 +0000
committerGravatar Makarius Wenzel <makarius@sketis.net>1999-09-24 15:48:28 +0000
commit6189e10da761f1d63135efa068cc428454e069f2 (patch)
treedf8565297bd056f71ed1e433acb92f32e90c8fad /isar/Example.thy
parentdde2904045d871721d4e015911199b24e14cd7a3 (diff)
unified example with other proof assistants;
Diffstat (limited to 'isar/Example.thy')
-rw-r--r--isar/Example.thy14
1 files changed, 10 insertions, 4 deletions
diff --git a/isar/Example.thy b/isar/Example.thy
index c213de4d..2b9c72f6 100644
--- a/isar/Example.thy
+++ b/isar/Example.thy
@@ -1,13 +1,19 @@
+(*
+ Example proof document for Isabelle/Isar Proof General.
+
+ $Id$
+*)
+
theory Example = Main:;
-lemma and_comms: "A & B --> B & A";
+theorem and_comms: "A & B --> B & A";
proof;
assume "A & B";
- show "B & A";
+ thus "B & A";
proof;
- from prems; show B; ..;
- from prems; show A; ..;
+ assume B A;
+ thus ?thesis; ..;
qed;
qed;