src/Pure/ROOT.ML
author wenzelm
Sat Jul 23 17:22:28 2011 +0200 (2011-07-23)
changeset 43948 8f5add916a99
parent 43850 7f2cbc713344
child 44062 55a4df7f2568
permissions -rw-r--r--
explicit structure ML_System;
tunned ML bootstrap;
     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 
    24 use "Concurrent/simple_thread.ML";
    25 
    26 use "Concurrent/synchronized.ML";
    27 if Multithreading.available then ()
    28 else use "Concurrent/synchronized_sequential.ML";
    29 
    30 use "General/properties.ML";
    31 use "General/output.ML";
    32 use "General/timing.ML";
    33 use "General/markup.ML";
    34 use "General/scan.ML";
    35 use "General/source.ML";
    36 use "General/symbol.ML";
    37 use "General/seq.ML";
    38 use "General/position.ML";
    39 use "General/symbol_pos.ML";
    40 use "General/antiquote.ML";
    41 use "ML/ml_lex.ML";
    42 use "ML/ml_parse.ML";
    43 use "General/secure.ML";
    44 (*^^^^^ end of basic ML bootstrap ^^^^^*)
    45 use "General/integer.ML";
    46 use "General/stack.ML";
    47 use "General/queue.ML";
    48 use "General/heap.ML";
    49 use "General/same.ML";
    50 use "General/ord_list.ML";
    51 use "General/balanced_tree.ML";
    52 use "General/graph.ML";
    53 use "General/linear_set.ML";
    54 use "General/buffer.ML";
    55 use "General/pretty.ML";
    56 use "General/xml.ML";
    57 use "General/path.ML";
    58 use "General/url.ML";
    59 use "General/file.ML";
    60 use "General/yxml.ML";
    61 use "General/long_name.ML";
    62 use "General/binding.ML";
    63 
    64 use "General/sha1.ML";
    65 if ML_System.is_polyml then use "General/sha1_polyml.ML" else ();
    66 
    67 
    68 (* concurrency within the ML runtime *)
    69 
    70 use "Concurrent/single_assignment.ML";
    71 if Multithreading.available then ()
    72 else use "Concurrent/single_assignment_sequential.ML";
    73 
    74 if ML_System.is_smlnj then () else use "Concurrent/time_limit.ML";
    75 
    76 if Multithreading.available
    77 then use "Concurrent/bash.ML"
    78 else use "Concurrent/bash_sequential.ML";
    79 
    80 use "Concurrent/mailbox.ML";
    81 use "Concurrent/task_queue.ML";
    82 use "Concurrent/future.ML";
    83 
    84 use "Concurrent/lazy.ML";
    85 if Multithreading.available then ()
    86 else use "Concurrent/lazy_sequential.ML";
    87 
    88 use "Concurrent/par_list.ML";
    89 if Multithreading.available then ()
    90 else use "Concurrent/par_list_sequential.ML";
    91 
    92 use "Concurrent/cache.ML";
    93 
    94 
    95 (* fundamental structures *)
    96 
    97 use "name.ML";
    98 use "term.ML";
    99 use "context.ML";
   100 use "config.ML";
   101 use "context_position.ML";
   102 
   103 
   104 (* inner syntax *)
   105 
   106 use "Syntax/term_position.ML";
   107 use "Syntax/lexicon.ML";
   108 use "Syntax/ast.ML";
   109 use "Syntax/syntax_ext.ML";
   110 use "Syntax/parser.ML";
   111 use "Syntax/syntax_trans.ML";
   112 use "Syntax/mixfix.ML";
   113 use "Syntax/printer.ML";
   114 use "Syntax/syntax.ML";
   115 
   116 
   117 (* core of tactical proof system *)
   118 
   119 use "term_ord.ML";
   120 use "term_subst.ML";
   121 use "term_xml.ML";
   122 use "old_term.ML";
   123 use "General/name_space.ML";
   124 use "sorts.ML";
   125 use "type.ML";
   126 use "logic.ML";
   127 use "Syntax/simple_syntax.ML";
   128 use "net.ML";
   129 use "item_net.ML";
   130 use "envir.ML";
   131 use "consts.ML";
   132 use "primitive_defs.ML";
   133 use "defs.ML";
   134 use "sign.ML";
   135 use "term_sharing.ML";
   136 use "pattern.ML";
   137 use "unify.ML";
   138 use "theory.ML";
   139 use "interpretation.ML";
   140 use "proofterm.ML";
   141 use "thm.ML";
   142 use "more_thm.ML";
   143 use "facts.ML";
   144 use "global_theory.ML";
   145 use "pure_thy.ML";
   146 use "drule.ML";
   147 use "morphism.ML";
   148 use "variable.ML";
   149 use "conv.ML";
   150 use "goal_display.ML";
   151 use "tactical.ML";
   152 use "search.ML";
   153 use "tactic.ML";
   154 use "raw_simplifier.ML";
   155 use "conjunction.ML";
   156 use "assumption.ML";
   157 use "display.ML";
   158 use "goal.ML";
   159 
   160 
   161 (* Isar -- Intelligible Semi-Automated Reasoning *)
   162 
   163 (*proof context*)
   164 use "Isar/object_logic.ML";
   165 use "Isar/rule_cases.ML";
   166 use "Isar/auto_bind.ML";
   167 use "type_infer.ML";
   168 use "Syntax/local_syntax.ML";
   169 use "Isar/proof_context.ML";
   170 use "type_infer_context.ML";
   171 use "Syntax/syntax_phases.ML";
   172 use "Isar/local_defs.ML";
   173 
   174 (*proof term operations*)
   175 use "Proof/reconstruct.ML";
   176 use "Proof/proof_syntax.ML";
   177 use "Proof/proof_rewrite_rules.ML";
   178 use "Proof/proofchecker.ML";
   179 
   180 (*outer syntax*)
   181 use "Isar/token.ML";
   182 use "Isar/keyword.ML";
   183 use "Isar/parse.ML";
   184 use "Isar/args.ML";
   185 
   186 (*ML support*)
   187 use "ML/ml_syntax.ML";
   188 use "ML/ml_env.ML";
   189 use "Isar/runtime.ML";
   190 use "ML/ml_compiler.ML";
   191 if ML_System.name = "polyml-5.2.1" orelse ML_System.is_smlnj then ()
   192 else use "ML/ml_compiler_polyml-5.3.ML";
   193 use "ML/ml_context.ML";
   194 
   195 (*theory sources*)
   196 use "Thy/thy_header.ML";
   197 use "Thy/html.ML";
   198 use "Thy/latex.ML";
   199 
   200 (*basic proof engine*)
   201 use "Isar/proof_display.ML";
   202 use "Isar/attrib.ML";
   203 use "ML/ml_antiquote.ML";
   204 use "Isar/context_rules.ML";
   205 use "Isar/skip_proof.ML";
   206 use "Isar/method.ML";
   207 use "Isar/proof.ML";
   208 use "ML/ml_thms.ML";
   209 use "Isar/element.ML";
   210 
   211 (*derived theory and proof elements*)
   212 use "Isar/calculation.ML";
   213 use "Isar/obtain.ML";
   214 
   215 (*local theories and targets*)
   216 use "Isar/local_theory.ML";
   217 use "Isar/locale.ML";
   218 use "Isar/generic_target.ML";
   219 use "Isar/overloading.ML";
   220 use "axclass.ML";
   221 use "Isar/class.ML";
   222 use "Isar/named_target.ML";
   223 use "Isar/expression.ML";
   224 use "Isar/class_declaration.ML";
   225 
   226 use "simplifier.ML";
   227 
   228 (*executable theory content*)
   229 use "Isar/code.ML";
   230 
   231 (*specifications*)
   232 use "Isar/parse_spec.ML";
   233 use "Isar/spec_rules.ML";
   234 use "Isar/specification.ML";
   235 use "Isar/typedecl.ML";
   236 
   237 (*toplevel transactions*)
   238 use "Isar/proof_node.ML";
   239 use "Isar/toplevel.ML";
   240 
   241 (*theory documents*)
   242 use "System/isabelle_system.ML";
   243 use "Thy/term_style.ML";
   244 use "Thy/thy_output.ML";
   245 use "Thy/thy_syntax.ML";
   246 use "Isar/outer_syntax.ML";
   247 use "PIDE/document.ML";
   248 use "Thy/present.ML";
   249 use "Thy/thy_load.ML";
   250 use "Thy/thy_info.ML";
   251 use "Thy/rail.ML";
   252 
   253 (*theory and proof operations*)
   254 use "Isar/rule_insts.ML";
   255 use "Thy/thm_deps.ML";
   256 use "Isar/isar_cmd.ML";
   257 use "Isar/isar_syn.ML";
   258 
   259 use "subgoal.ML";
   260 
   261 use "Proof/extraction.ML";
   262 
   263 
   264 (* Isabelle/Isar system *)
   265 
   266 use "System/session.ML";
   267 use "System/isabelle_process.ML";
   268 use "System/invoke_scala.ML";
   269 use "PIDE/isar_document.ML";
   270 use "System/isar.ML";
   271 
   272 
   273 (* miscellaneous tools and packages for Pure Isabelle *)
   274 
   275 use "Tools/named_thms.ML";
   276 
   277 use "Tools/xml_syntax.ML";
   278 
   279 use "Tools/find_theorems.ML";
   280 use "Tools/find_consts.ML";
   281 
   282 use "codegen.ML";
   283 
   284 
   285 (* configuration for Proof General *)
   286 
   287 use "ProofGeneral/pgip_types.ML";
   288 use "ProofGeneral/pgml.ML";
   289 use "ProofGeneral/pgip_markup.ML";
   290 use "ProofGeneral/pgip_input.ML";
   291 use "ProofGeneral/pgip_output.ML";
   292 use "ProofGeneral/pgip.ML";
   293 
   294 use "ProofGeneral/pgip_isabelle.ML";
   295 
   296 use "ProofGeneral/preferences.ML";
   297 
   298 use "ProofGeneral/pgip_parser.ML";
   299 
   300 use "ProofGeneral/pgip_tests.ML";
   301 
   302 use "ProofGeneral/proof_general_pgip.ML";
   303 use "ProofGeneral/proof_general_emacs.ML";
   304 
   305 
   306 use "pure_setup.ML";
   307