src/Pure/ROOT.ML
author wenzelm
Sat Jun 06 21:11:22 2009 +0200 (2009-06-06)
changeset 31476 c5d2899b6de9
parent 31432 9858f32f9569
child 32015 7101feb5247e
permissions -rw-r--r--
moved Isar toplevel runtime support to runtime.ML, which is loaded early (before ml_compiler.ML);
     1 (** Pure Isabelle **)
     2 
     3 structure Distribution =     (*filled-in by makedist*)
     4 struct
     5   val version = "Isabelle repository version";
     6   val is_official = false;
     7   val changelog = "";
     8 end;
     9 
    10 (*if true then some tools will OMIT some proofs*)
    11 val quick_and_dirty = ref false;
    12 
    13 print_depth 10;
    14 
    15 
    16 (* library of general tools *)
    17 
    18 use "General/basics.ML";
    19 use "library.ML";
    20 use "General/print_mode.ML";
    21 use "General/alist.ML";
    22 use "General/table.ML";
    23 use "General/output.ML";
    24 use "General/properties.ML";
    25 use "General/markup.ML";
    26 use "General/scan.ML";
    27 use "General/source.ML";
    28 use "General/symbol.ML";
    29 use "General/seq.ML";
    30 use "General/position.ML";
    31 use "General/symbol_pos.ML";
    32 use "General/antiquote.ML";
    33 use "ML/ml_lex.ML";
    34 use "ML/ml_parse.ML";
    35 use "General/secure.ML";
    36 (*----- basic ML bootstrap finished -----*)
    37 use "General/integer.ML";
    38 use "General/stack.ML";
    39 use "General/queue.ML";
    40 use "General/heap.ML";
    41 use "General/ord_list.ML";
    42 use "General/balanced_tree.ML";
    43 use "General/graph.ML";
    44 use "General/long_name.ML";
    45 use "General/binding.ML";
    46 use "General/name_space.ML";
    47 use "General/lazy.ML";
    48 use "General/path.ML";
    49 use "General/url.ML";
    50 use "General/buffer.ML";
    51 use "General/file.ML";
    52 use "General/xml.ML";
    53 use "General/yxml.ML";
    54 
    55 
    56 (* concurrency within the ML runtime *)
    57 
    58 use "Concurrent/simple_thread.ML";
    59 use "Concurrent/synchronized.ML";
    60 use "Concurrent/mailbox.ML";
    61 use "Concurrent/task_queue.ML";
    62 use "Concurrent/future.ML";
    63 use "Concurrent/par_list.ML";
    64 if Multithreading.available then () else use "Concurrent/par_list_dummy.ML";
    65 
    66 
    67 (* fundamental structures *)
    68 
    69 use "name.ML";
    70 use "term.ML";
    71 use "term_ord.ML";
    72 use "term_subst.ML";
    73 use "old_term.ML";
    74 use "logic.ML";
    75 use "General/pretty.ML";
    76 use "context.ML";
    77 use "context_position.ML";
    78 use "Syntax/lexicon.ML";
    79 use "Syntax/simple_syntax.ML";
    80 use "sorts.ML";
    81 use "type.ML";
    82 use "config.ML";
    83 
    84 
    85 (* inner syntax *)
    86 
    87 use "Syntax/ast.ML";
    88 use "Syntax/syn_ext.ML";
    89 use "Syntax/parser.ML";
    90 use "Syntax/type_ext.ML";
    91 use "Syntax/syn_trans.ML";
    92 use "Syntax/mixfix.ML";
    93 use "Syntax/printer.ML";
    94 use "Syntax/syntax.ML";
    95 
    96 use "type_infer.ML";
    97 
    98 
    99 (* core of tactical proof system *)
   100 
   101 use "net.ML";
   102 use "item_net.ML";
   103 use "envir.ML";
   104 use "consts.ML";
   105 use "primitive_defs.ML";
   106 use "defs.ML";
   107 use "sign.ML";
   108 use "pattern.ML";
   109 use "unify.ML";
   110 use "theory.ML";
   111 use "interpretation.ML";
   112 use "proofterm.ML";
   113 use "thm.ML";
   114 use "more_thm.ML";
   115 use "facts.ML";
   116 use "pure_thy.ML";
   117 use "display.ML";
   118 use "drule.ML";
   119 use "morphism.ML";
   120 use "variable.ML";
   121 use "conv.ML";
   122 use "tctical.ML";
   123 use "search.ML";
   124 use "tactic.ML";
   125 use "meta_simplifier.ML";
   126 use "conjunction.ML";
   127 use "assumption.ML";
   128 use "goal.ML";
   129 use "axclass.ML";
   130 
   131 
   132 (* Isar -- Intelligible Semi-Automated Reasoning *)
   133 
   134 (*proof context*)
   135 use "Isar/object_logic.ML";
   136 use "Isar/rule_cases.ML";
   137 use "Isar/auto_bind.ML";
   138 use "Isar/local_syntax.ML";
   139 use "Isar/proof_context.ML";
   140 use "Isar/local_defs.ML";
   141 
   142 (*proof term operations*)
   143 use "Proof/reconstruct.ML";
   144 use "Proof/proof_syntax.ML";
   145 use "Proof/proof_rewrite_rules.ML";
   146 use "Proof/proofchecker.ML";
   147 
   148 (*outer syntax*)
   149 use "Isar/outer_lex.ML";
   150 use "Isar/outer_keyword.ML";
   151 use "Isar/outer_parse.ML";
   152 use "Isar/value_parse.ML";
   153 use "Isar/args.ML";
   154 
   155 (*ML support*)
   156 use "ML/ml_syntax.ML";
   157 use "ML/ml_env.ML";
   158 use "Isar/runtime.ML";
   159 if ml_system = "polyml-experimental"
   160 then use "ML/ml_compiler_polyml-5.3.ML"
   161 else use "ML/ml_compiler.ML";
   162 use "ML/ml_context.ML";
   163 
   164 (*theory sources*)
   165 use "Thy/thy_header.ML";
   166 use "Thy/thy_load.ML";
   167 use "Thy/html.ML";
   168 use "Thy/latex.ML";
   169 use "Thy/present.ML";
   170 
   171 (*basic proof engine*)
   172 use "Isar/proof_display.ML";
   173 use "Isar/attrib.ML";
   174 use "ML/ml_antiquote.ML";
   175 use "Isar/context_rules.ML";
   176 use "Isar/skip_proof.ML";
   177 use "Isar/method.ML";
   178 use "Isar/proof.ML";
   179 use "ML/ml_thms.ML";
   180 use "Isar/element.ML";
   181 
   182 (*derived theory and proof elements*)
   183 use "Isar/calculation.ML";
   184 use "Isar/obtain.ML";
   185 
   186 (*local theories and targets*)
   187 use "Isar/local_theory.ML";
   188 use "Isar/overloading.ML";
   189 use "Isar/locale.ML";
   190 use "Isar/class_target.ML";
   191 use "Isar/theory_target.ML";
   192 use "Isar/expression.ML";
   193 use "Isar/class.ML";
   194 
   195 use "simplifier.ML";
   196 
   197 (*executable theory content*)
   198 use "Isar/code.ML";
   199 
   200 (*specifications*)
   201 use "Isar/spec_parse.ML";
   202 use "Isar/specification.ML";
   203 use "Isar/constdefs.ML";
   204 
   205 (*toplevel transactions*)
   206 use "Isar/proof_node.ML";
   207 use "Isar/toplevel.ML";
   208 
   209 (*theory syntax*)
   210 use "Thy/term_style.ML";
   211 use "Thy/thy_output.ML";
   212 use "Thy/thy_syntax.ML";
   213 use "old_goals.ML";
   214 use "Isar/outer_syntax.ML";
   215 use "Thy/thy_info.ML";
   216 use "Isar/isar_document.ML";
   217 
   218 (*theory and proof operations*)
   219 use "Isar/rule_insts.ML";
   220 use "Thy/thm_deps.ML";
   221 use "Isar/isar_cmd.ML";
   222 use "Isar/isar_syn.ML";
   223 
   224 use "subgoal.ML";
   225 
   226 use "Proof/extraction.ML";
   227 
   228 
   229 (* Isabelle/Isar system *)
   230 
   231 use "System/session.ML";
   232 use "System/isar.ML";
   233 use "System/isabelle_process.ML";
   234 
   235 
   236 (* miscellaneous tools and packages for Pure Isabelle *)
   237 
   238 use "Tools/named_thms.ML";
   239 
   240 use "Tools/xml_syntax.ML";
   241 
   242 use "Tools/find_theorems.ML";
   243 use "Tools/find_consts.ML";
   244 
   245 use "codegen.ML";
   246 
   247 
   248 (* configuration for Proof General *)
   249 
   250 use "ProofGeneral/pgip_types.ML";
   251 use "ProofGeneral/pgml.ML";
   252 use "ProofGeneral/pgip_markup.ML";
   253 use "ProofGeneral/pgip_input.ML";
   254 use "ProofGeneral/pgip_output.ML";
   255 use "ProofGeneral/pgip.ML";
   256 
   257 use "ProofGeneral/pgip_isabelle.ML";
   258 
   259 use "ProofGeneral/preferences.ML";
   260 
   261 use "ProofGeneral/pgip_parser.ML";
   262 
   263 use "ProofGeneral/pgip_tests.ML";
   264 
   265 use "ProofGeneral/proof_general_pgip.ML";
   266 use "ProofGeneral/proof_general_emacs.ML";
   267 
   268 
   269 use "pure_setup.ML";
   270