src/Pure/ROOT.ML
author nipkow
Fri Apr 28 15:38:15 1995 +0200 (1995-04-28)
changeset 1078 e57beb974dd7
parent 1072 0140ff702b23
child 1228 7d6b0241afab
permissions -rw-r--r--
Added

functor f() = struct end

to hide functors to save space.
     1 (*  Title:      Pure/ROOT.ML
     2     ID:         $Id$
     3     Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
     4     Copyright   1993  University of Cambridge
     5 
     6 Root file for Pure Isabelle: all modules in proper order for loading.
     7 Loads pure Isabelle into an empty database (see also Makefile).
     8 
     9 TO DO:
    10 instantiation of theorems can lead to inconsistent sorting of type vars if
    11 'a::S is already present and 'a::T is introduced.
    12 *)
    13 
    14 val banner = "Pure Isabelle";
    15 val version = "Isabelle-94 revision 3: April 95";
    16 
    17 print_depth 1;
    18 
    19 use "library.ML";
    20 use "term.ML";
    21 use "symtab.ML";
    22 
    23 structure Symtab = SymtabFun();
    24 
    25 (*Syntax module*)
    26 cd "Syntax";
    27 use "ROOT.ML";
    28 cd "..";
    29 
    30 use "type.ML";
    31 use "sign.ML";
    32 use "sequence.ML";
    33 use "envir.ML";
    34 use "pattern.ML";
    35 use "unify.ML";
    36 use "net.ML";
    37 use "logic.ML";
    38 use "thm.ML";
    39 use "drule.ML";
    40 use "tctical.ML";
    41 use "tactic.ML";
    42 use "goals.ML";
    43 use "axclass.ML";
    44 
    45 (*Will be visible to all object-logics.*)
    46 structure Type = TypeFun(structure Symtab=Symtab and Syntax=Syntax);
    47 structure Sign = SignFun(structure Type=Type and Syntax=Syntax);
    48 structure Sequence = SequenceFun();
    49 structure Envir = EnvirFun();
    50 structure Pattern = PatternFun(structure Sign=Sign and Envir=Envir);
    51 structure Unify = UnifyFun(structure Sign=Sign and Envir=Envir
    52                            and Sequence=Sequence and Pattern=Pattern);
    53 structure Net = NetFun();
    54 structure Logic = LogicFun(structure Unify=Unify and Net=Net);
    55 structure Thm = ThmFun(structure Logic=Logic and Unify=Unify and Net=Net
    56                              and Pattern=Pattern);
    57 structure Drule = DruleFun(structure Logic=Logic and Thm=Thm);
    58 structure Tactical = TacticalFun(structure Logic=Logic and Drule=Drule);
    59 structure Tactic = TacticFun(structure Logic=Logic and Drule=Drule
    60                              and Tactical=Tactical and Net=Net);
    61 structure Goals = GoalsFun(structure Logic=Logic and Drule=Drule
    62                            and Tactic=Tactic and Pattern=Pattern);
    63 structure AxClass = AxClassFun(structure Logic = Logic
    64   and Goals = Goals and Tactic = Tactic);
    65 open BasicSyntax Thm Drule Tactical Tactic Goals;
    66 
    67 structure Pure = struct val thy = pure_thy end;
    68 structure CPure = struct val thy = cpure_thy end;
    69 
    70 (* hide functors; saves space in PolyML *)
    71 functor SymtabFun() = struct end;
    72 functor TypeFun() = struct end;
    73 functor SignFun() = struct end;
    74 functor SequenceFun() = struct end;
    75 functor EnvirFun() = struct end;
    76 functor PatternFun() = struct end;
    77 functor UnifyFun() = struct end;
    78 functor NetFun() = struct end;
    79 functor LogicFun() = struct end;
    80 functor ThmFun() = struct end;
    81 functor DruleFun() = struct end;
    82 functor TacticalFun() = struct end;
    83 functor TacticFun() = struct end;
    84 functor GoalsFun() = struct end;
    85 functor AxClassFun() = struct end;
    86 
    87 (*Theory parser and loader*)
    88 cd "Thy";
    89 use "ROOT.ML";
    90 cd "..";
    91 
    92 use "install_pp.ML";
    93 fun init_database () = (init_thy_reader (); init_pps ());
    94