src/ZF/ROOT.ML
author clasohm
Wed Oct 06 14:19:39 1993 +0100 (1993-10-06)
changeset 32 a8f1cdbbc5b8
parent 14 1c0926788772
child 50 37e93ef9c756
permissions -rw-r--r--
changed "list-fn" to "listfn"
clasohm@0
     1
(*  Title: 	ZF/ROOT
lcp@6
     2
    ID:         $Id$
clasohm@0
     3
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
clasohm@0
     4
    Copyright   1993  University of Cambridge
clasohm@0
     5
clasohm@0
     6
Adds Zermelo-Fraenkel Set Theory to a database containing First-Order Logic.
clasohm@0
     7
clasohm@0
     8
This theory is the work of Martin Coen, Philippe Noel and Lawrence Paulson.
clasohm@0
     9
*)
clasohm@0
    10
clasohm@0
    11
val banner = "ZF Set Theory (in FOL)";
clasohm@0
    12
writeln banner;
clasohm@0
    13
lcp@14
    14
(*For Pure/tactic??  A crude way of adding structure to rules*)
lcp@5
    15
fun CHECK_SOLVED (Tactic tf) = 
lcp@5
    16
  Tactic (fn state => 
lcp@5
    17
    case Sequence.pull (tf state) of
lcp@5
    18
	None => error"DO_GOAL: tactic list failed"
lcp@5
    19
      | Some(x,_) => 
lcp@5
    20
		if has_fewer_prems 1 x then
lcp@5
    21
		    Sequence.cons(x, Sequence.null)
lcp@5
    22
		else (writeln"DO_GOAL: unsolved goals!!";
lcp@5
    23
		      writeln"Final proof state was ...";
lcp@5
    24
		      print_goals (!goals_limit) x;
lcp@5
    25
		      raise ERROR));
lcp@5
    26
lcp@5
    27
fun DO_GOAL tfs = SELECT_GOAL (CHECK_SOLVED (EVERY1 tfs));
lcp@5
    28
clasohm@0
    29
print_depth 1;
clasohm@0
    30
use_thy "zf";
clasohm@0
    31
clasohm@0
    32
use     "upair.ML";
clasohm@0
    33
use     "subset.ML";
clasohm@0
    34
use     "pair.ML";
clasohm@0
    35
use     "domrange.ML";
clasohm@0
    36
use     "func.ML";
clasohm@0
    37
use     "equalities.ML";
clasohm@0
    38
use     "simpdata.ML";  
clasohm@0
    39
clasohm@0
    40
(*further development*)
clasohm@0
    41
use_thy "bool";
clasohm@0
    42
use_thy "sum";
clasohm@0
    43
use_thy "qpair";
clasohm@0
    44
use     "mono.ML";
clasohm@0
    45
use_thy "fixedpt";
clasohm@0
    46
clasohm@0
    47
(*Inductive/co-inductive definitions*)
clasohm@0
    48
use     "ind-syntax.ML";
clasohm@0
    49
use     "intr-elim.ML";
clasohm@0
    50
use     "indrule.ML";
clasohm@0
    51
use     "inductive.ML";
clasohm@0
    52
use     "co-inductive.ML";
clasohm@0
    53
clasohm@0
    54
use_thy "perm";
clasohm@0
    55
use_thy "trancl";
clasohm@0
    56
use_thy "wf";
clasohm@0
    57
use_thy "ordinal";
clasohm@0
    58
use_thy "nat";
clasohm@0
    59
use_thy "epsilon";
clasohm@0
    60
use_thy "arith";
clasohm@0
    61
clasohm@0
    62
(*Datatype/co-datatype definitions*)
clasohm@0
    63
use_thy "univ";
clasohm@0
    64
use_thy "quniv";
clasohm@0
    65
use     "constructor.ML";
clasohm@0
    66
use     "datatype.ML";
clasohm@0
    67
clasohm@0
    68
use     "fin.ML";
clasohm@0
    69
use     "list.ML";
clasohm@32
    70
use_thy "listfn";
clasohm@0
    71
clasohm@0
    72
(*printing functions are inherited from FOL*)
clasohm@0
    73
print_depth 8;
clasohm@0
    74
clasohm@0
    75
val ZF_build_completed = ();	(*indicate successful build*)