aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc/isar/MultipleModes.thy
blob: af36ed519a19f5892cd6d7e6a987bd5b02214900 (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
header {* Some tests for \textbf{multiple modes!!} *}

theory Example = Main:

text {* Proper proof text -- \textit{naive version}. *}

theorem and_comms: "A & B --> B & A"
proof
  assume "A & B"
  then show "B & A"
  proof
    assume B and A
    then
   show ?thesis ..
 qed
qed

ML_setup {*
  fun fact 0 = 1 
    | fact n = n * (fact (n-1))

  val x = 7; 
*}