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