aboutsummaryrefslogtreecommitdiffhomepage
path: root/isa/Example-Xsym.ML
blob: ed97c2918cfc28dcb4cc197b01fef3502901f879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(*
    Example proof script for Isabelle Proof General.

    $Id$

    Just a version of Example.ML using XSymbol.

    Also subscripts/superscripts:  A\<^sup>1 \\<or> A\<^sub>2
    [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";