src/Pure/ROOT.ML
author wenzelm
Sat Apr 14 17:36:06 2007 +0200 (2007-04-14)
changeset 22679 68cd69a388e2
parent 22592 97b5290a8c34
child 22694 077ce0e019fa
permissions -rw-r--r--
removed Pure/Syntax/ROOT.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@12248
    10
print_depth 10;
clasohm@0
    11
wenzelm@5017
    12
(*basic tools*)
wenzelm@21396
    13
use "General/basics.ML";
clasohm@0
    14
use "library.ML";
wenzelm@22592
    15
wenzelm@22592
    16
(*generic non-sense*)
wenzelm@22592
    17
val quick_and_dirty = ref false;
wenzelm@22592
    18
val print_mode = ref ([]: string list);
wenzelm@22592
    19
fun print_mode_active s = member (op =) (! print_mode) s;
wenzelm@22592
    20
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@22679
    34
use "Syntax/lexicon.ML";
wenzelm@22679
    35
use "Syntax/ast.ML";
wenzelm@22679
    36
use "Syntax/syn_ext.ML";
wenzelm@22679
    37
use "Syntax/parser.ML";
wenzelm@22679
    38
use "Syntax/type_ext.ML";
wenzelm@22679
    39
use "Syntax/syn_trans.ML";
wenzelm@22679
    40
use "Syntax/mixfix.ML";
wenzelm@22679
    41
use "Syntax/printer.ML";
wenzelm@22679
    42
use "Syntax/syntax.ML";
wenzelm@22679
    43
structure Hidden = struct end;
wenzelm@22679
    44
structure Lexicon = Hidden;
wenzelm@22679
    45
structure Ast = Hidden;
wenzelm@22679
    46
structure SynExt = Hidden;
wenzelm@22679
    47
structure Parser = Hidden;
wenzelm@22679
    48
structure TypeExt = Hidden;
wenzelm@22679
    49
structure SynTrans = Hidden;
wenzelm@22679
    50
structure Mixfix = Hidden;
wenzelm@22679
    51
structure Printer = Hidden;
wenzelm@22679
    52
wenzelm@22679
    53
use "type_infer.ML";
wenzelm@21475
    54
use "General/ml_syntax.ML";
clasohm@0
    55
wenzelm@15825
    56
(*core of tactical proof system*)
wenzelm@18934
    57
use "envir.ML";
wenzelm@18934
    58
use "logic.ML";
wenzelm@18059
    59
use "consts.ML";
clasohm@0
    60
use "sign.ML";
clasohm@0
    61
use "pattern.ML";
clasohm@0
    62
use "unify.ML";
clasohm@0
    63
use "net.ML";
obua@16108
    64
use "defs.ML";
paulson@1528
    65
use "theory.ML";
berghofe@11511
    66
use "proofterm.ML";
clasohm@0
    67
use "thm.ML";
wenzelm@22361
    68
use "more_thm.ML";
wenzelm@13271
    69
use "fact_index.ML";
wenzelm@3986
    70
use "pure_thy.ML";
wenzelm@19589
    71
use "display.ML";
clasohm@0
    72
use "drule.ML";
wenzelm@22233
    73
use "morphism.ML";
wenzelm@19898
    74
use "variable.ML";
clasohm@0
    75
use "tctical.ML";
paulson@1582
    76
use "search.ML";
wenzelm@21708
    77
use "tactic.ML";
skalberg@15006
    78
use "meta_simplifier.ML";
wenzelm@19417
    79
use "conjunction.ML";
wenzelm@20225
    80
use "assumption.ML";
wenzelm@17963
    81
use "goal.ML";
clasohm@0
    82
berghofe@11511
    83
(*proof term operations*)
wenzelm@15825
    84
use "Proof/reconstruct.ML";
wenzelm@15825
    85
use "Proof/proof_syntax.ML";
wenzelm@15825
    86
use "Proof/proof_rewrite_rules.ML";
wenzelm@15825
    87
use "Proof/proofchecker.ML";
wenzelm@15825
    88
wenzelm@22108
    89
(*the main Isar system*)
wenzelm@6178
    90
cd "Isar"; use "ROOT.ML"; cd "..";
wenzelm@20207
    91
use "subgoal.ML";
wenzelm@5834
    92
berghofe@13402
    93
use "Proof/extraction.ML";
berghofe@11511
    94
wenzelm@17467
    95
cd "Tools"; use "ROOT.ML"; cd "..";
wenzelm@17467
    96
wenzelm@12778
    97
(*configuration for Proof General*)
wenzelm@21941
    98
cd "ProofGeneral"; use "ROOT.ML"; cd "..";
obua@16781
    99
wenzelm@18991
   100
use_thy "Pure";
wenzelm@18991
   101
structure Pure = struct val thy = theory "Pure" end;
wenzelm@18837
   102
wenzelm@18837
   103
Context.add_setup
wenzelm@18837
   104
 (Theory.del_modesyntax Syntax.default_mode Syntax.appl_syntax #>
wenzelm@18837
   105
  Theory.add_syntax Syntax.applC_syntax);
wenzelm@18991
   106
use_thy "CPure";
wenzelm@18991
   107
structure CPure = struct val thy = theory "CPure" end;
wenzelm@15801
   108
wenzelm@17467
   109
(*final ML setup*)
wenzelm@6178
   110
use "install_pp.ML";
wenzelm@6237
   111
val use = ThyInfo.use;
wenzelm@21858
   112
val cd = File.cd o Path.explode;
wenzelm@7938
   113
ml_prompts "ML> " "ML# ";
berghofe@11511
   114
wenzelm@11545
   115
proofs := 0;