src/Pure/ROOT.ML
author wenzelm
Mon, 04 Oct 1993 15:36:31 +0100
changeset 19 929ad32d63fc
parent 2 c67f44be880f
child 73 075db6ac7f2f
permissions -rw-r--r--
Pure/ROOT.ML cleaned comments; removed extraneous 'print_depth 1'; replaced Basic_Syntax by BasicSyntax added 'use "install_pp.ML"'; Pure/README fixed comments; Pure/POLY.ML Pure/NJ.ML make_pp: added fbrk; Pure/install_pp.ML replaced "Ast" by "Syntax"; Pure/sign.ML added 'quote' to some error msgs;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
     1
(*  Title:      Pure/ROOT.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1993  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
     6
Root file for Pure Isabelle: all modules in proper order for loading.
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
     7
Loads pure Isabelle into an empty database (see also Makefile).
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
     9
TO DO:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
instantiation of theorems can lead to inconsistent sorting of type vars if
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    11
'a::S is already present and 'a::T is introduced.
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
val banner = "Pure Isabelle";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
val version = "February 93";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
print_depth 1;
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
use "library.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
use "term.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
use "symtab.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
structure Symtab = SymtabFun();
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    24
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    25
(*Syntax module*)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
cd "Syntax";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
use "ROOT.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
cd "..";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    30
(*Theory parser*)
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    31
cd "Thy";
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    32
use "ROOT.ML";
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    33
cd "..";
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    34
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
use "type.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
use "sign.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
use "sequence.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
use "envir.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    39
use "pattern.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    40
use "unify.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    41
use "net.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    42
use "logic.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    43
use "thm.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
use "drule.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
use "tctical.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
use "tactic.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
use "goals.ML";
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    49
(*Will be visible to all object-logics.*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
structure Type = TypeFun(structure Symtab=Symtab and Syntax=Syntax);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
structure Sign = SignFun(structure Type=Type and Syntax=Syntax);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
structure Sequence = SequenceFun();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
structure Envir = EnvirFun();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    54
structure Pattern = PatternFun(structure Sign=Sign and Envir=Envir);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
structure Unify = UnifyFun(structure Sign=Sign and Envir=Envir
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    56
                           and Sequence=Sequence and Pattern=Pattern);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
structure Net = NetFun();
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    58
structure Logic = LogicFun(structure Unify=Unify and Net=Net);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    59
structure Thm = ThmFun(structure Logic=Logic and Unify=Unify and Net=Net
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    60
                             and Pattern=Pattern);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    61
structure Drule = DruleFun(structure Logic=Logic and Thm=Thm);
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    62
structure Tactical = TacticalFun(structure Logic=Logic and Drule=Drule);
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    63
structure Tactic = TacticFun(structure Logic=Logic and Drule=Drule
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    64
                             and Tactical=Tactical and Net=Net);
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    65
structure Goals = GoalsFun(structure Logic=Logic and Drule=Drule
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    66
                           and Tactic=Tactic and Pattern=Pattern);
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    67
open BasicSyntax Thm Drule Tactical Tactic Goals;
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    68
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    69
structure Pure = struct val thy = pure_thy end;
2
c67f44be880f moved use of Thy/ROOT.ML to end of file because Thy/read.ML needs Thm
clasohm
parents: 0
diff changeset
    70
19
929ad32d63fc Pure/ROOT.ML
wenzelm
parents: 2
diff changeset
    71
use "install_pp.ML";
2
c67f44be880f moved use of Thy/ROOT.ML to end of file because Thy/read.ML needs Thm
clasohm
parents: 0
diff changeset
    72