src/Pure/ROOT.ML
author wenzelm
Thu May 10 00:39:50 2007 +0200 (2007-05-10)
changeset 22904 de2d630e1548
parent 22796 34c316d7b630
child 23353 3069dade3eb4
permissions -rw-r--r--
added conv.ML;
     1 (*  Title:      Pure/ROOT.ML
     2     ID:         $Id$
     3 
     4 Pure Isabelle.
     5 *)
     6 
     7 val banner = "Pure Isabelle";
     8 val version = "Isabelle repository version";    (*filled in automatically!*)
     9 
    10 print_depth 10;
    11 
    12 (*basic tools*)
    13 use "General/basics.ML";
    14 use "library.ML";
    15 
    16 (*generic non-sense*)
    17 val quick_and_dirty = ref false;
    18 val print_mode = ref ([]: string list);
    19 fun print_mode_active s = member (op =) (! print_mode) s;
    20 
    21 cd "General"; use "ROOT.ML"; cd "..";
    22 
    23 (*fundamental structures*)
    24 use "name.ML";
    25 use "term.ML";
    26 use "term_subst.ML";
    27 use "General/pretty.ML";
    28 use "sorts.ML";
    29 use "type.ML";
    30 use "context.ML";
    31 use "compress.ML";
    32 use "type_infer.ML";
    33 
    34 (*inner syntax module*)
    35 use "Syntax/lexicon.ML";
    36 use "Syntax/ast.ML";
    37 use "Syntax/syn_ext.ML";
    38 use "Syntax/parser.ML";
    39 use "Syntax/type_ext.ML";
    40 use "Syntax/syn_trans.ML";
    41 use "Syntax/mixfix.ML";
    42 use "Syntax/printer.ML";
    43 use "Syntax/syntax.ML";
    44 structure Hidden = struct end;
    45 structure Lexicon = Hidden;
    46 structure Ast = Hidden;
    47 structure SynExt = Hidden;
    48 structure Parser = Hidden;
    49 structure TypeExt = Hidden;
    50 structure SynTrans = Hidden;
    51 structure Mixfix = Hidden;
    52 structure Printer = Hidden;
    53 
    54 use "General/ml_syntax.ML";
    55 
    56 (*core of tactical proof system*)
    57 use "envir.ML";
    58 use "logic.ML";
    59 use "consts.ML";
    60 use "sign.ML";
    61 use "pattern.ML";
    62 use "unify.ML";
    63 use "net.ML";
    64 use "defs.ML";
    65 use "theory.ML";
    66 use "proofterm.ML";
    67 use "thm.ML";
    68 use "more_thm.ML";
    69 use "fact_index.ML";
    70 use "pure_thy.ML";
    71 use "display.ML";
    72 use "drule.ML";
    73 use "conv.ML";
    74 use "morphism.ML";
    75 use "variable.ML";
    76 use "tctical.ML";
    77 use "search.ML";
    78 use "tactic.ML";
    79 use "meta_simplifier.ML";
    80 use "conjunction.ML";
    81 use "assumption.ML";
    82 use "goal.ML";
    83 
    84 (*proof term operations*)
    85 use "Proof/reconstruct.ML";
    86 use "Proof/proof_syntax.ML";
    87 use "Proof/proof_rewrite_rules.ML";
    88 use "Proof/proofchecker.ML";
    89 
    90 (*the main Isar system*)
    91 cd "Isar"; use "ROOT.ML"; cd "..";
    92 use "subgoal.ML";
    93 
    94 use "Proof/extraction.ML";
    95 
    96 cd "Tools"; use "ROOT.ML"; cd "..";
    97 
    98 (*configuration for Proof General*)
    99 cd "ProofGeneral"; use "ROOT.ML"; cd "..";
   100 
   101 use_thy "Pure";
   102 structure Pure = struct val thy = theory "Pure" end;
   103 
   104 Context.add_setup
   105  (Sign.del_modesyntax Syntax.default_mode Syntax.appl_syntax #>
   106   Sign.add_syntax Syntax.applC_syntax);
   107 use_thy "CPure";
   108 structure CPure = struct val thy = theory "CPure" end;
   109 
   110 (*final ML setup*)
   111 use "install_pp.ML";
   112 val use = ThyInfo.use;
   113 val cd = File.cd o Path.explode;
   114 ml_prompts "ML> " "ML# ";
   115 
   116 proofs := 0;