src/ZF/ROOT.ML
author clasohm
Thu Sep 16 12:20:38 1993 +0200 (1993-09-16)
changeset 0 a5a9c433f639
child 5 75e163863e16
permissions -rw-r--r--
Initial revision
clasohm@0
     1
(*  Title: 	ZF/ROOT
clasohm@0
     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
clasohm@0
    14
(*For Pure/drule??  Multiple resolution infixes*)
clasohm@0
    15
infix 0 MRS MRL;
clasohm@0
    16
clasohm@0
    17
(*Resolve a list of rules against bottom_rl from right to left*)
clasohm@0
    18
fun rls MRS bottom_rl = 
clasohm@0
    19
  let fun rs_aux i [] = bottom_rl
clasohm@0
    20
	| rs_aux i (rl::rls) = rl RSN (i, rs_aux (i+1) rls)
clasohm@0
    21
  in  rs_aux 1 rls  end;
clasohm@0
    22
clasohm@0
    23
fun rlss MRL bottom_rls = 
clasohm@0
    24
  let fun rs_aux i [] = bottom_rls
clasohm@0
    25
	| rs_aux i (rls::rlss) = rls RLN (i, rs_aux (i+1) rlss)
clasohm@0
    26
  in  rs_aux 1 rlss  end;
clasohm@0
    27
clasohm@0
    28
print_depth 1;
clasohm@0
    29
use_thy "zf";
clasohm@0
    30
clasohm@0
    31
use     "upair.ML";
clasohm@0
    32
use     "subset.ML";
clasohm@0
    33
use     "pair.ML";
clasohm@0
    34
use     "domrange.ML";
clasohm@0
    35
use     "func.ML";
clasohm@0
    36
use     "equalities.ML";
clasohm@0
    37
use     "simpdata.ML";  
clasohm@0
    38
clasohm@0
    39
(*further development*)
clasohm@0
    40
use_thy "bool";
clasohm@0
    41
use_thy "sum";
clasohm@0
    42
use_thy "qpair";
clasohm@0
    43
use     "mono.ML";
clasohm@0
    44
use_thy "fixedpt";
clasohm@0
    45
clasohm@0
    46
(*Inductive/co-inductive definitions*)
clasohm@0
    47
use     "ind-syntax.ML";
clasohm@0
    48
use     "intr-elim.ML";
clasohm@0
    49
use     "indrule.ML";
clasohm@0
    50
use     "inductive.ML";
clasohm@0
    51
use     "co-inductive.ML";
clasohm@0
    52
clasohm@0
    53
use_thy "perm";
clasohm@0
    54
use_thy "trancl";
clasohm@0
    55
use_thy "wf";
clasohm@0
    56
use_thy "ordinal";
clasohm@0
    57
use_thy "nat";
clasohm@0
    58
use_thy "epsilon";
clasohm@0
    59
use_thy "arith";
clasohm@0
    60
clasohm@0
    61
(*Datatype/co-datatype definitions*)
clasohm@0
    62
use_thy "univ";
clasohm@0
    63
use_thy "quniv";
clasohm@0
    64
use     "constructor.ML";
clasohm@0
    65
use     "datatype.ML";
clasohm@0
    66
clasohm@0
    67
use     "fin.ML";
clasohm@0
    68
use     "list.ML";
clasohm@0
    69
use_thy "list-fn";
clasohm@0
    70
clasohm@0
    71
(*printing functions are inherited from FOL*)
clasohm@0
    72
print_depth 8;
clasohm@0
    73
clasohm@0
    74
val ZF_build_completed = ();	(*indicate successful build*)