| author | paulson |
| Wed, 06 Jan 1999 13:24:33 +0100 | |
| changeset 6065 | 3b4a29166f26 |
| parent 6053 | 8a1059aa01f0 |
| child 6070 | 032babd0120b |
| permissions | -rw-r--r-- |
| 1461 | 1 |
(* Title: ZF/ROOT |
|
6
8ce8c4d13d4d
Installation of new simplifier for ZF. Deleted all congruence rules not
lcp
parents:
5
diff
changeset
|
2 |
ID: $Id$ |
| 1461 | 3 |
Author: Lawrence C Paulson, Cambridge University Computer Laboratory |
| 0 | 4 |
Copyright 1993 University of Cambridge |
5 |
||
6 |
Adds Zermelo-Fraenkel Set Theory to a database containing First-Order Logic. |
|
7 |
||
8 |
This theory is the work of Martin Coen, Philippe Noel and Lawrence Paulson. |
|
9 |
*) |
|
10 |
||
11 |
val banner = "ZF Set Theory (in FOL)"; |
|
12 |
writeln banner; |
|
13 |
||
| 2469 | 14 |
eta_contract:=false; |
15 |
||
|
14
1c0926788772
ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents:
6
diff
changeset
|
16 |
(*For Pure/tactic?? A crude way of adding structure to rules*) |
| 1512 | 17 |
fun CHECK_SOLVED tac st = |
|
4271
3a82492e70c5
changed Pure/Sequence interface -- isatool fixseq;
wenzelm
parents:
4262
diff
changeset
|
18 |
case Seq.pull (tac st) of |
| 1461 | 19 |
None => error"DO_GOAL: tactic list failed" |
| 5 | 20 |
| Some(x,_) => |
| 1461 | 21 |
if has_fewer_prems 1 x then |
|
4271
3a82492e70c5
changed Pure/Sequence interface -- isatool fixseq;
wenzelm
parents:
4262
diff
changeset
|
22 |
Seq.cons(x, Seq.empty) |
| 1461 | 23 |
else (writeln"DO_GOAL: unsolved goals!!"; |
24 |
writeln"Final proof state was ..."; |
|
25 |
print_goals (!goals_limit) x; |
|
| 1512 | 26 |
raise ERROR); |
| 5 | 27 |
|
28 |
fun DO_GOAL tfs = SELECT_GOAL (CHECK_SOLVED (EVERY1 tfs)); |
|
29 |
||
| 0 | 30 |
print_depth 1; |
31 |
||
| 516 | 32 |
(*Add user sections for inductive/datatype definitions*) |
|
6053
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
33 |
use "$ISABELLE_HOME/src/Pure/section_utils"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
34 |
use "thy_syntax"; |
| 516 | 35 |
|
|
1069
66efd8f90fbd
Now loads the theory "Let". Could add it to FOL, but this appears to
lcp
parents:
803
diff
changeset
|
36 |
use_thy "Let"; |
| 2469 | 37 |
use_thy "func"; |
|
6053
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
38 |
use "Tools/typechk"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
39 |
use_thy "mono"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
40 |
use "ind_syntax"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
41 |
use "Tools/cartprod"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
42 |
use_thy "Fixedpt"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
43 |
use "Tools/inductive_package"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
44 |
use_thy "Inductive"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
45 |
use_thy "QUniv"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
46 |
use "Tools/datatype_package"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
47 |
use "Tools/primrec_package"; |
|
8a1059aa01f0
new inductive, datatype and primrec packages, etc.
paulson
parents:
5529
diff
changeset
|
48 |
use_thy "Datatype"; |
| 6065 | 49 |
use "Tools/induct_tacs"; |
| 488 | 50 |
use_thy "InfDatatype"; |
| 516 | 51 |
use_thy "List"; |
| 0 | 52 |
|
| 5529 | 53 |
(*Integers & binary integer arithmetic*) |
54 |
cd "Integ"; |
|
55 |
use_thy "Bin"; |
|
56 |
cd ".."; |
|
57 |
||
58 |
(*the all-in-one theory*) |
|
59 |
use_thy "Main"; |
|
60 |
||
| 0 | 61 |
print_depth 8; |
62 |
||
| 5511 | 63 |
Goal "True"; (*leave subgoal package empty*) |
64 |
||
| 1461 | 65 |
val ZF_build_completed = (); (*indicate successful build*) |