aboutsummaryrefslogtreecommitdiff
path: root/isa/Example-Xsym.ML
diff options
context:
space:
mode:
Diffstat (limited to 'isa/Example-Xsym.ML')
-rw-r--r--isa/Example-Xsym.ML20
1 files changed, 20 insertions, 0 deletions
diff --git a/isa/Example-Xsym.ML b/isa/Example-Xsym.ML
new file mode 100644
index 00000000..c9d40747
--- /dev/null
+++ b/isa/Example-Xsym.ML
@@ -0,0 +1,20 @@
+(*
+ Example proof script for Isabelle Proof General.
+
+ $Id$
+
+ Just a version of Example.ML using XSymbol.
+
+ Also subscripts/superscripts/bold: A\<^sup>1 \\<or> A\<^sub>2 \\<or> A\<^bold>3
+ [NB: these can't be used in identifiers or otherwise
+ parsed by Isabelle unless declared as part of a theory's
+ concrete syntax, see docs or examples in HOL/IMP.]
+*)
+
+Goal "A \\<and> B \\<longrightarrow> B \\<and> A";
+by (rtac impI 1);
+by (etac conjE 1);
+by (rtac conjI 1);
+by (assume_tac 1);
+by (assume_tac 1);
+qed "and_comms";