src/Pure/ROOT.ML
author haftmann
Wed Aug 11 14:45:38 2010 +0200 (2010-08-11)
changeset 38350 480b2de9927c
parent 38343 e5418eec375c
child 38379 67d71449e85b
permissions -rw-r--r--
renamed Theory_Target to the more appropriate Named_Target
     1 (** Pure Isabelle **)
     2 
     3 structure Distribution =     (*filled-in by makedist*)
     4 struct
     5   val version = "unidentified 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 = Unsynchronized.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 (*^^^^^ end of basic ML bootstrap ^^^^^*)
    37 use "General/integer.ML";
    38 use "General/stack.ML";
    39 use "General/queue.ML";
    40 use "General/heap.ML";
    41 use "General/same.ML";
    42 use "General/ord_list.ML";
    43 use "General/balanced_tree.ML";
    44 use "General/graph.ML";
    45 use "General/long_name.ML";
    46 use "General/binding.ML";
    47 use "General/name_space.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/xml_data.ML";
    54 use "General/yxml.ML";
    55 
    56 use "General/sha1.ML";
    57 if String.isPrefix "polyml" ml_system
    58 then use "General/sha1_polyml.ML"
    59 else ();
    60 
    61 
    62 (* concurrency within the ML runtime *)
    63 
    64 use "Concurrent/simple_thread.ML";
    65 
    66 use "Concurrent/single_assignment.ML";
    67 if Multithreading.available then ()
    68 else use "Concurrent/single_assignment_sequential.ML";
    69 
    70 use "Concurrent/synchronized.ML";
    71 if Multithreading.available then ()
    72 else use "Concurrent/synchronized_sequential.ML";
    73 
    74 use "Concurrent/mailbox.ML";
    75 use "Concurrent/task_queue.ML";
    76 use "Concurrent/future.ML";
    77 
    78 use "Concurrent/lazy.ML";
    79 if Multithreading.available then ()
    80 else use "Concurrent/lazy_sequential.ML";
    81 
    82 use "Concurrent/par_list.ML";
    83 if Multithreading.available then ()
    84 else use "Concurrent/par_list_sequential.ML";
    85 
    86 use "Concurrent/cache.ML";
    87 
    88 
    89 (* fundamental structures *)
    90 
    91 use "name.ML";
    92 use "term.ML";
    93 use "term_ord.ML";
    94 use "term_subst.ML";
    95 use "old_term.ML";
    96 use "General/pretty.ML";
    97 use "context.ML";
    98 use "context_position.ML";
    99 use "sorts.ML";
   100 use "type.ML";
   101 use "logic.ML";
   102 use "Syntax/lexicon.ML";
   103 use "Syntax/simple_syntax.ML";
   104 use "config.ML";
   105 
   106 
   107 (* inner syntax *)
   108 
   109 use "Syntax/ast.ML";
   110 use "Syntax/syn_ext.ML";
   111 use "Syntax/parser.ML";
   112 use "Syntax/type_ext.ML";
   113 use "Syntax/syn_trans.ML";
   114 use "Syntax/mixfix.ML";
   115 use "Syntax/printer.ML";
   116 use "Syntax/syntax.ML";
   117 
   118 use "type_infer.ML";
   119 
   120 
   121 (* core of tactical proof system *)
   122 
   123 use "net.ML";
   124 use "item_net.ML";
   125 use "envir.ML";
   126 use "consts.ML";
   127 use "primitive_defs.ML";
   128 use "defs.ML";
   129 use "sign.ML";
   130 use "pattern.ML";
   131 use "unify.ML";
   132 use "theory.ML";
   133 use "interpretation.ML";
   134 use "proofterm.ML";
   135 use "thm.ML";
   136 use "more_thm.ML";
   137 use "facts.ML";
   138 use "pure_thy.ML";
   139 use "drule.ML";
   140 use "morphism.ML";
   141 use "variable.ML";
   142 use "conv.ML";
   143 use "goal_display.ML";
   144 use "tactical.ML";
   145 use "search.ML";
   146 use "tactic.ML";
   147 use "meta_simplifier.ML";
   148 use "conjunction.ML";
   149 use "assumption.ML";
   150 use "display.ML";
   151 use "goal.ML";
   152 
   153 
   154 (* Isar -- Intelligible Semi-Automated Reasoning *)
   155 
   156 (*proof context*)
   157 use "Isar/object_logic.ML";
   158 use "Isar/rule_cases.ML";
   159 use "Isar/auto_bind.ML";
   160 use "Isar/local_syntax.ML";
   161 use "Isar/proof_context.ML";
   162 use "Isar/local_defs.ML";
   163 
   164 (*proof term operations*)
   165 use "Proof/reconstruct.ML";
   166 use "Proof/proof_syntax.ML";
   167 use "Proof/proof_rewrite_rules.ML";
   168 use "Proof/proofchecker.ML";
   169 
   170 (*outer syntax*)
   171 use "Isar/token.ML";
   172 use "Isar/keyword.ML";
   173 use "Isar/parse.ML";
   174 use "Isar/parse_value.ML";
   175 use "Isar/args.ML";
   176 
   177 (*ML support*)
   178 use "ML/ml_syntax.ML";
   179 use "ML/ml_env.ML";
   180 use "Isar/runtime.ML";
   181 if ml_system = "polyml-5.3.0"
   182 then use "ML/ml_compiler_polyml-5.3.ML"
   183 else use "ML/ml_compiler.ML";
   184 use "ML/ml_context.ML";
   185 
   186 (*theory sources*)
   187 use "Thy/thy_header.ML";
   188 use "Thy/html.ML";
   189 use "Thy/latex.ML";
   190 
   191 (*basic proof engine*)
   192 use "Isar/proof_display.ML";
   193 use "Isar/attrib.ML";
   194 use "ML/ml_antiquote.ML";
   195 use "Isar/context_rules.ML";
   196 use "Isar/skip_proof.ML";
   197 use "Isar/method.ML";
   198 use "Isar/proof.ML";
   199 use "ML/ml_thms.ML";
   200 use "Isar/element.ML";
   201 
   202 (*derived theory and proof elements*)
   203 use "Isar/calculation.ML";
   204 use "Isar/obtain.ML";
   205 
   206 (*local theories and targets*)
   207 use "Isar/local_theory.ML";
   208 use "Isar/locale.ML";
   209 use "Isar/generic_target.ML";
   210 use "Isar/overloading.ML";
   211 use "axclass.ML";
   212 use "Isar/class_target.ML";
   213 use "Isar/named_target.ML";
   214 use "Isar/expression.ML";
   215 use "Isar/class.ML";
   216 
   217 use "simplifier.ML";
   218 
   219 (*executable theory content*)
   220 use "Isar/code.ML";
   221 
   222 (*specifications*)
   223 use "Isar/parse_spec.ML";
   224 use "Isar/spec_rules.ML";
   225 use "Isar/specification.ML";
   226 use "Isar/typedecl.ML";
   227 use "Isar/constdefs.ML";
   228 
   229 (*toplevel transactions*)
   230 use "Thy/thy_load.ML";
   231 use "Isar/proof_node.ML";
   232 use "Isar/toplevel.ML";
   233 
   234 (*theory documents*)
   235 use "Thy/present.ML";
   236 use "Thy/term_style.ML";
   237 use "Thy/thy_output.ML";
   238 use "Thy/thy_syntax.ML";
   239 use "PIDE/document.ML";
   240 use "old_goals.ML";
   241 use "Isar/outer_syntax.ML";
   242 use "Thy/thy_info.ML";
   243 
   244 (*theory and proof operations*)
   245 use "Isar/rule_insts.ML";
   246 use "Thy/thm_deps.ML";
   247 use "Isar/isar_cmd.ML";
   248 use "Isar/isar_syn.ML";
   249 
   250 use "subgoal.ML";
   251 
   252 use "Proof/extraction.ML";
   253 
   254 
   255 (* Isabelle/Isar system *)
   256 
   257 use "System/session.ML";
   258 use "System/isar.ML";
   259 use "System/isabelle_process.ML";
   260 use "Isar/isar_document.ML";
   261 
   262 
   263 (* miscellaneous tools and packages for Pure Isabelle *)
   264 
   265 use "Tools/named_thms.ML";
   266 
   267 use "Tools/xml_syntax.ML";
   268 
   269 use "Tools/find_theorems.ML";
   270 use "Tools/find_consts.ML";
   271 
   272 use "codegen.ML";
   273 
   274 
   275 (* configuration for Proof General *)
   276 
   277 use "ProofGeneral/pgip_types.ML";
   278 use "ProofGeneral/pgml.ML";
   279 use "ProofGeneral/pgip_markup.ML";
   280 use "ProofGeneral/pgip_input.ML";
   281 use "ProofGeneral/pgip_output.ML";
   282 use "ProofGeneral/pgip.ML";
   283 
   284 use "ProofGeneral/pgip_isabelle.ML";
   285 
   286 use "ProofGeneral/preferences.ML";
   287 
   288 use "ProofGeneral/pgip_parser.ML";
   289 
   290 use "ProofGeneral/pgip_tests.ML";
   291 
   292 use "ProofGeneral/proof_general_pgip.ML";
   293 use "ProofGeneral/proof_general_emacs.ML";
   294 
   295 
   296 use "pure_setup.ML";
   297