src/Pure/ROOT.ML
author wenzelm
Thu Nov 16 01:07:39 2006 +0100 (2006-11-16)
changeset 21396 afd8ba74313c
parent 20507 bb68343f6f83
child 21475 ec0d1cf0eb35
permissions -rw-r--r--
added General/basics.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 "..";
clasohm@0
    35
wenzelm@15825
    36
(*core of tactical proof system*)
wenzelm@18934
    37
use "envir.ML";
wenzelm@18934
    38
use "logic.ML";
wenzelm@2960
    39
use "type_infer.ML";
wenzelm@18059
    40
use "consts.ML";
clasohm@0
    41
use "sign.ML";
clasohm@0
    42
use "pattern.ML";
clasohm@0
    43
use "unify.ML";
clasohm@0
    44
use "net.ML";
obua@16108
    45
use "defs.ML";
paulson@1528
    46
use "theory.ML";
berghofe@11511
    47
use "proofterm.ML";
clasohm@0
    48
use "thm.ML";
wenzelm@13271
    49
use "fact_index.ML";
wenzelm@3986
    50
use "pure_thy.ML";
wenzelm@19589
    51
use "display.ML";
clasohm@0
    52
use "drule.ML";
wenzelm@19898
    53
use "variable.ML";
clasohm@0
    54
use "tctical.ML";
paulson@1582
    55
use "search.ML";
skalberg@15006
    56
use "meta_simplifier.ML";
wenzelm@19417
    57
use "conjunction.ML";
wenzelm@20225
    58
use "assumption.ML";
wenzelm@17963
    59
use "goal.ML";
clasohm@0
    60
use "tactic.ML";
clasohm@0
    61
berghofe@11511
    62
(*proof term operations*)
wenzelm@15825
    63
use "Proof/reconstruct.ML";
wenzelm@15825
    64
use "Proof/proof_syntax.ML";
wenzelm@15825
    65
use "Proof/proof_rewrite_rules.ML";
wenzelm@15825
    66
use "Proof/proofchecker.ML";
wenzelm@15825
    67
wenzelm@15825
    68
(*theory auto loader database*)
wenzelm@15825
    69
use "Thy/thy_load.ML";
wenzelm@15825
    70
use "Thy/thy_info.ML";
berghofe@11511
    71
wenzelm@18870
    72
(*theory syntax*)
wenzelm@15825
    73
use "Isar/outer_lex.ML";
wenzelm@15825
    74
wenzelm@16435
    75
(*the Isar system*)
wenzelm@6178
    76
cd "Isar"; use "ROOT.ML"; cd "..";
wenzelm@20207
    77
use "subgoal.ML";
wenzelm@5834
    78
berghofe@13402
    79
use "Proof/extraction.ML";
berghofe@11511
    80
wenzelm@17467
    81
cd "Tools"; use "ROOT.ML"; cd "..";
wenzelm@17467
    82
wenzelm@12778
    83
(*configuration for Proof General*)
wenzelm@18991
    84
(use |> setmp proofs 1 |> setmp quick_and_dirty true) "proof_general.ML";
obua@16781
    85
wenzelm@18991
    86
use_thy "Pure";
wenzelm@18991
    87
structure Pure = struct val thy = theory "Pure" end;
wenzelm@18837
    88
wenzelm@18837
    89
Context.add_setup
wenzelm@18837
    90
 (Theory.del_modesyntax Syntax.default_mode Syntax.appl_syntax #>
wenzelm@18837
    91
  Theory.add_syntax Syntax.applC_syntax);
wenzelm@18991
    92
use_thy "CPure";
wenzelm@18991
    93
structure CPure = struct val thy = theory "CPure" end;
wenzelm@15801
    94
wenzelm@17467
    95
(*final ML setup*)
wenzelm@6178
    96
use "install_pp.ML";
wenzelm@6237
    97
val use = ThyInfo.use;
wenzelm@6226
    98
val cd = File.cd o Path.unpack;
wenzelm@7938
    99
ml_prompts "ML> " "ML# ";
berghofe@11511
   100
wenzelm@11545
   101
proofs := 0;