src/ZF/ROOT.ML
author lcp
Mon, 15 Nov 1993 14:41:25 +0100
changeset 120 09287f26bfb8
parent 90 a90653dabebc
child 124 858ab9a9b047
permissions -rw-r--r--
changed all co- and co_ to co ZF/ex/llistfn: new coinduction example: flip ZF/ex/llist_eq: now uses standard pairs not qpairs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     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$
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Adds Zermelo-Fraenkel Set Theory to a database containing First-Order Logic.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
This theory is the work of Martin Coen, Philippe Noel and Lawrence Paulson.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     9
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
val banner = "ZF Set Theory (in FOL)";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
writeln banner;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
75
144ec40f2650 added -h 15000 for Poly/ML in Makefile,
clasohm
parents: 50
diff changeset
    14
set_loadpath [".", "ex", "../FOL"];
144ec40f2650 added -h 15000 for Poly/ML in Makefile,
clasohm
parents: 50
diff changeset
    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*)
5
75e163863e16 test commit
lcp
parents: 0
diff changeset
    17
fun CHECK_SOLVED (Tactic tf) = 
75e163863e16 test commit
lcp
parents: 0
diff changeset
    18
  Tactic (fn state => 
75e163863e16 test commit
lcp
parents: 0
diff changeset
    19
    case Sequence.pull (tf state) of
75e163863e16 test commit
lcp
parents: 0
diff changeset
    20
	None => error"DO_GOAL: tactic list failed"
75e163863e16 test commit
lcp
parents: 0
diff changeset
    21
      | Some(x,_) => 
75e163863e16 test commit
lcp
parents: 0
diff changeset
    22
		if has_fewer_prems 1 x then
75e163863e16 test commit
lcp
parents: 0
diff changeset
    23
		    Sequence.cons(x, Sequence.null)
75e163863e16 test commit
lcp
parents: 0
diff changeset
    24
		else (writeln"DO_GOAL: unsolved goals!!";
75e163863e16 test commit
lcp
parents: 0
diff changeset
    25
		      writeln"Final proof state was ...";
75e163863e16 test commit
lcp
parents: 0
diff changeset
    26
		      print_goals (!goals_limit) x;
75e163863e16 test commit
lcp
parents: 0
diff changeset
    27
		      raise ERROR));
75e163863e16 test commit
lcp
parents: 0
diff changeset
    28
75e163863e16 test commit
lcp
parents: 0
diff changeset
    29
fun DO_GOAL tfs = SELECT_GOAL (CHECK_SOLVED (EVERY1 tfs));
75e163863e16 test commit
lcp
parents: 0
diff changeset
    30
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
print_depth 1;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    32
use_thy "zf";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    33
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    34
use     "upair.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
use     "subset.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
use     "pair.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
use     "domrange.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
use     "func.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
use     "equalities.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
use     "simpdata.ML";  
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
(*further development*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
use_thy "bool";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
use_thy "sum";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
use_thy "qpair";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
use     "mono.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
use_thy "fixedpt";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
120
09287f26bfb8 changed all co- and co_ to co
lcp
parents: 90
diff changeset
    49
(*Inductive/coinductive definitions*)
90
a90653dabebc renamed some files
clasohm
parents: 75
diff changeset
    50
use     "ind_syntax.ML";
a90653dabebc renamed some files
clasohm
parents: 75
diff changeset
    51
use     "intr_elim.ML";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
use     "indrule.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
use     "inductive.ML";
90
a90653dabebc renamed some files
clasohm
parents: 75
diff changeset
    54
use     "coinductive.ML";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
use_thy "perm";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
use_thy "trancl";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
use_thy "wf";
50
37e93ef9c756 renamed ordinal.* to ord.*
clasohm
parents: 32
diff changeset
    59
use_thy "ord";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    60
use_thy "nat";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
use_thy "epsilon";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    62
use_thy "arith";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    63
120
09287f26bfb8 changed all co- and co_ to co
lcp
parents: 90
diff changeset
    64
(*Datatype/codatatype definitions*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    65
use_thy "univ";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    66
use_thy "quniv";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    67
use     "constructor.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    68
use     "datatype.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    69
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    70
use     "fin.ML";
75
144ec40f2650 added -h 15000 for Poly/ML in Makefile,
clasohm
parents: 50
diff changeset
    71
use_thy "List";
32
a8f1cdbbc5b8 changed "list-fn" to "listfn"
clasohm
parents: 14
diff changeset
    72
use_thy "listfn";
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    73
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    74
(*printing functions are inherited from FOL*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    75
print_depth 8;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    76
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    77
val ZF_build_completed = ();	(*indicate successful build*)