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