src/Pure/ROOT.ML
author wenzelm
Thu Nov 23 00:51:54 2006 +0100 (2006-11-23)
changeset 21475 ec0d1cf0eb35
parent 21396 afd8ba74313c
child 21640 9811f1560d38
permissions -rw-r--r--
added morphism.ML, General/ml_syntax.ML;
wenzelm@19
     1
(*  Title:      Pure/ROOT.ML
clasohm@0
     2
    ID:         $Id$
clasohm@0
     3
wenzelm@16842
     4
Pure Isabelle.
clasohm@0
     5
*)
clasohm@0
     6
clasohm@0
     7
val banner = "Pure Isabelle";
wenzelm@11835
     8
val version = "Isabelle repository version";    (*filled in automatically!*)
wenzelm@11835
     9
wenzelm@17474
    10
(*if true then some tools will OMIT some proofs*)
wenzelm@17474
    11
val quick_and_dirty = ref false;
clasohm@0
    12
wenzelm@12248
    13
print_depth 10;
clasohm@0
    14
wenzelm@5684
    15
(*fake hiding of private structures*)
wenzelm@5684
    16
structure Hidden = struct end;
wenzelm@4949
    17
wenzelm@5017
    18
(*basic tools*)
wenzelm@21396
    19
use "General/basics.ML";
clasohm@0
    20
use "library.ML";
wenzelm@5017
    21
cd "General"; use "ROOT.ML"; cd "..";
wenzelm@14781
    22
wenzelm@14781
    23
(*fundamental structures*)
wenzelm@20075
    24
use "name.ML";
clasohm@0
    25
use "term.ML";
wenzelm@20507
    26
use "term_subst.ML";
wenzelm@14823
    27
use "General/pretty.ML";
wenzelm@14781
    28
use "sorts.ML";
wenzelm@14781
    29
use "type.ML";
wenzelm@16435
    30
use "context.ML";
wenzelm@16980
    31
use "compress.ML";
wenzelm@19
    32
wenzelm@4949
    33
(*inner syntax module*)
wenzelm@6178
    34
cd "Syntax"; use "ROOT.ML"; cd "..";
wenzelm@21475
    35
use "General/ml_syntax.ML";
clasohm@0
    36
wenzelm@15825
    37
(*core of tactical proof system*)
wenzelm@18934
    38
use "envir.ML";
wenzelm@18934
    39
use "logic.ML";
wenzelm@2960
    40
use "type_infer.ML";
wenzelm@18059
    41
use "consts.ML";
clasohm@0
    42
use "sign.ML";
clasohm@0
    43
use "pattern.ML";
clasohm@0
    44
use "unify.ML";
clasohm@0
    45
use "net.ML";
obua@16108
    46
use "defs.ML";
paulson@1528
    47
use "theory.ML";
berghofe@11511
    48
use "proofterm.ML";
clasohm@0
    49
use "thm.ML";
wenzelm@21475
    50
use "morphism.ML";
wenzelm@13271
    51
use "fact_index.ML";
wenzelm@3986
    52
use "pure_thy.ML";
wenzelm@19589
    53
use "display.ML";
clasohm@0
    54
use "drule.ML";
wenzelm@19898
    55
use "variable.ML";
clasohm@0
    56
use "tctical.ML";
paulson@1582
    57
use "search.ML";
skalberg@15006
    58
use "meta_simplifier.ML";
wenzelm@19417
    59
use "conjunction.ML";
wenzelm@20225
    60
use "assumption.ML";
wenzelm@17963
    61
use "goal.ML";
clasohm@0
    62
use "tactic.ML";
clasohm@0
    63
berghofe@11511
    64
(*proof term operations*)
wenzelm@15825
    65
use "Proof/reconstruct.ML";
wenzelm@15825
    66
use "Proof/proof_syntax.ML";
wenzelm@15825
    67
use "Proof/proof_rewrite_rules.ML";
wenzelm@15825
    68
use "Proof/proofchecker.ML";
wenzelm@15825
    69
wenzelm@15825
    70
(*theory auto loader database*)
wenzelm@15825
    71
use "Thy/thy_load.ML";
wenzelm@15825
    72
use "Thy/thy_info.ML";
berghofe@11511
    73
wenzelm@18870
    74
(*theory syntax*)
wenzelm@15825
    75
use "Isar/outer_lex.ML";
wenzelm@15825
    76
wenzelm@16435
    77
(*the Isar system*)
wenzelm@6178
    78
cd "Isar"; use "ROOT.ML"; cd "..";
wenzelm@20207
    79
use "subgoal.ML";
wenzelm@5834
    80
berghofe@13402
    81
use "Proof/extraction.ML";
berghofe@11511
    82
wenzelm@17467
    83
cd "Tools"; use "ROOT.ML"; cd "..";
wenzelm@17467
    84
wenzelm@12778
    85
(*configuration for Proof General*)
wenzelm@18991
    86
(use |> setmp proofs 1 |> setmp quick_and_dirty true) "proof_general.ML";
obua@16781
    87
wenzelm@18991
    88
use_thy "Pure";
wenzelm@18991
    89
structure Pure = struct val thy = theory "Pure" end;
wenzelm@18837
    90
wenzelm@18837
    91
Context.add_setup
wenzelm@18837
    92
 (Theory.del_modesyntax Syntax.default_mode Syntax.appl_syntax #>
wenzelm@18837
    93
  Theory.add_syntax Syntax.applC_syntax);
wenzelm@18991
    94
use_thy "CPure";
wenzelm@18991
    95
structure CPure = struct val thy = theory "CPure" end;
wenzelm@15801
    96
wenzelm@17467
    97
(*final ML setup*)
wenzelm@6178
    98
use "install_pp.ML";
wenzelm@6237
    99
val use = ThyInfo.use;
wenzelm@6226
   100
val cd = File.cd o Path.unpack;
wenzelm@7938
   101
ml_prompts "ML> " "ML# ";
berghofe@11511
   102
wenzelm@11545
   103
proofs := 0;