src/Pure/ROOT.ML
author wenzelm
Tue Apr 05 18:25:42 2016 +0200 (2016-04-05)
changeset 62874 b0194643e64c
parent 62870 cf724647f75b
child 62878 1cec457e0a03
permissions -rw-r--r--
actually observe ML_system_unsafe, concerning the environment that is stored in theory ML_Root;
     1 (*** Isabelle/Pure bootstrap ***)
     2 
     3 (** bootstrap phase 0: Poly/ML setup **)
     4 
     5 (* initial ML name space *)
     6 
     7 use "ML/ml_name_space.ML";
     8 use "ML/ml_pervasive_initial.ML";
     9 use "ML/ml_system.ML";
    10 
    11 
    12 (* multithreading *)
    13 
    14 use "General/exn.ML";
    15 
    16 use "Concurrent/multithreading.ML";
    17 use "Concurrent/unsynchronized.ML";
    18 
    19 
    20 (* ML system *)
    21 
    22 use "System/distribution.ML";
    23 
    24 use "ML/ml_heap.ML";
    25 use "ML/ml_profiling.ML";
    26 use "ML/ml_pretty.ML";
    27 use "ML/ml_compiler0.ML";
    28 use_no_debug "ML/ml_debugger.ML";
    29 
    30 
    31 
    32 (** bootstrap phase 1: towards ML within position context *)
    33 
    34 (* library of general tools *)
    35 
    36 use "General/basics.ML";
    37 use "library.ML";
    38 use "General/print_mode.ML";
    39 use "General/alist.ML";
    40 use "General/table.ML";
    41 
    42 use "Concurrent/synchronized.ML";
    43 use "Concurrent/counter.ML";
    44 
    45 use "General/random.ML";
    46 use "General/properties.ML";
    47 use "General/output.ML";
    48 use "PIDE/markup.ML";
    49 use "General/scan.ML";
    50 use "General/source.ML";
    51 use "General/symbol.ML";
    52 use "General/position.ML";
    53 use "General/symbol_pos.ML";
    54 use "General/input.ML";
    55 use "General/antiquote.ML";
    56 use "ML/ml_lex.ML";
    57 use "ML/ml_compiler1.ML";
    58 
    59 
    60 (** bootstrap phase 2: towards ML within Isar context *)
    61 
    62 (* library of general tools *)
    63 
    64 use "General/integer.ML";
    65 use "General/stack.ML";
    66 use "General/queue.ML";
    67 use "General/heap.ML";
    68 use "General/same.ML";
    69 use "General/ord_list.ML";
    70 use "General/balanced_tree.ML";
    71 use "General/linear_set.ML";
    72 use "General/buffer.ML";
    73 use "General/pretty.ML";
    74 use "PIDE/xml.ML";
    75 use "General/path.ML";
    76 use "General/url.ML";
    77 use "General/file.ML";
    78 use "General/long_name.ML";
    79 use "General/binding.ML";
    80 use "General/socket_io.ML";
    81 use "General/seq.ML";
    82 use "General/timing.ML";
    83 use "General/sha1.ML";
    84 
    85 use "PIDE/yxml.ML";
    86 use "PIDE/document_id.ML";
    87 
    88 use "General/change_table.ML";
    89 use "General/graph.ML";
    90 
    91 
    92 (* fundamental structures *)
    93 
    94 use "name.ML";
    95 use "term.ML";
    96 use "context.ML";
    97 use "context_position.ML";
    98 use "System/options.ML";
    99 use "config.ML";
   100 
   101 
   102 (* concurrency within the ML runtime *)
   103 
   104 use "ML/exn_properties.ML";
   105 
   106 use "ML/ml_statistics.ML";
   107 
   108 use "Concurrent/standard_thread.ML";
   109 use "Concurrent/single_assignment.ML";
   110 
   111 use "Concurrent/par_exn.ML";
   112 use "Concurrent/task_queue.ML";
   113 use "Concurrent/future.ML";
   114 use "Concurrent/event_timer.ML";
   115 use "Concurrent/timeout.ML";
   116 use "Concurrent/lazy.ML";
   117 use "Concurrent/par_list.ML";
   118 
   119 use "Concurrent/mailbox.ML";
   120 use "Concurrent/cache.ML";
   121 
   122 use "PIDE/active.ML";
   123 
   124 
   125 (* inner syntax *)
   126 
   127 use "Syntax/type_annotation.ML";
   128 use "Syntax/term_position.ML";
   129 use "Syntax/lexicon.ML";
   130 use "Syntax/ast.ML";
   131 use "Syntax/syntax_ext.ML";
   132 use "Syntax/parser.ML";
   133 use "Syntax/syntax_trans.ML";
   134 use "Syntax/mixfix.ML";
   135 use "Syntax/printer.ML";
   136 use "Syntax/syntax.ML";
   137 
   138 
   139 (* core of tactical proof system *)
   140 
   141 use "term_ord.ML";
   142 use "term_subst.ML";
   143 use "term_xml.ML";
   144 use "General/completion.ML";
   145 use "General/name_space.ML";
   146 use "sorts.ML";
   147 use "type.ML";
   148 use "logic.ML";
   149 use "Syntax/simple_syntax.ML";
   150 use "net.ML";
   151 use "item_net.ML";
   152 use "envir.ML";
   153 use "consts.ML";
   154 use "primitive_defs.ML";
   155 use "sign.ML";
   156 use "defs.ML";
   157 use "term_sharing.ML";
   158 use "pattern.ML";
   159 use "unify.ML";
   160 use "theory.ML";
   161 use "proofterm.ML";
   162 use "thm.ML";
   163 use "more_pattern.ML";
   164 use "more_unify.ML";
   165 use "more_thm.ML";
   166 use "facts.ML";
   167 use "global_theory.ML";
   168 use "pure_thy.ML";
   169 use "drule.ML";
   170 use "morphism.ML";
   171 use "variable.ML";
   172 use "conv.ML";
   173 use "goal_display.ML";
   174 use "tactical.ML";
   175 use "search.ML";
   176 use "tactic.ML";
   177 use "raw_simplifier.ML";
   178 use "conjunction.ML";
   179 use "assumption.ML";
   180 
   181 
   182 (* Isar -- Intelligible Semi-Automated Reasoning *)
   183 
   184 (*ML support and global execution*)
   185 use "ML/ml_syntax.ML";
   186 use "ML/ml_env.ML";
   187 use "ML/ml_options.ML";
   188 use_no_debug "ML/exn_debugger.ML";
   189 use_no_debug "Isar/runtime.ML";
   190 use "PIDE/execution.ML";
   191 use "ML/ml_compiler.ML";
   192 
   193 use "skip_proof.ML";
   194 use "goal.ML";
   195 
   196 (*proof context*)
   197 use "Isar/object_logic.ML";
   198 use "Isar/rule_cases.ML";
   199 use "Isar/auto_bind.ML";
   200 use "type_infer.ML";
   201 use "Syntax/local_syntax.ML";
   202 use "Isar/proof_context.ML";
   203 use "type_infer_context.ML";
   204 use "Syntax/syntax_phases.ML";
   205 use "Isar/local_defs.ML";
   206 
   207 (*outer syntax*)
   208 use "Isar/keyword.ML";
   209 use "Isar/token.ML";
   210 use "Isar/parse.ML";
   211 use "Isar/args.ML";
   212 
   213 (*theory specifications*)
   214 use "Isar/local_theory.ML";
   215 use "Thy/thy_header.ML";
   216 use "PIDE/command_span.ML";
   217 use "Thy/thy_syntax.ML";
   218 use "Thy/markdown.ML";
   219 use "Thy/html.ML";
   220 use "Thy/latex.ML";
   221 
   222 (*ML with context and antiquotations*)
   223 use "ML/ml_context.ML";
   224 use "ML/ml_antiquotation.ML";
   225 use "ML/ml_compiler2.ML";
   226 
   227 
   228 
   229 (** bootstrap phase 3: towards theory "Pure" and final ML toplevel setup *)
   230 
   231 (*basic proof engine*)
   232 use "par_tactical.ML";
   233 use "Isar/proof_display.ML";
   234 use "Isar/attrib.ML";
   235 use "Isar/context_rules.ML";
   236 use "Isar/method.ML";
   237 use "Isar/proof.ML";
   238 use "Isar/element.ML";
   239 use "Isar/obtain.ML";
   240 use "Isar/subgoal.ML";
   241 use "Isar/calculation.ML";
   242 
   243 (*local theories and targets*)
   244 use "Isar/locale.ML";
   245 use "Isar/generic_target.ML";
   246 use "Isar/overloading.ML";
   247 use "axclass.ML";
   248 use "Isar/class.ML";
   249 use "Isar/named_target.ML";
   250 use "Isar/expression.ML";
   251 use "Isar/interpretation.ML";
   252 use "Isar/class_declaration.ML";
   253 use "Isar/bundle.ML";
   254 use "Isar/experiment.ML";
   255 
   256 use "simplifier.ML";
   257 use "Tools/plugin.ML";
   258 
   259 (*executable theory content*)
   260 use "Isar/code.ML";
   261 
   262 (*specifications*)
   263 use "Isar/parse_spec.ML";
   264 use "Isar/spec_rules.ML";
   265 use "Isar/specification.ML";
   266 use "Isar/typedecl.ML";
   267 
   268 (*toplevel transactions*)
   269 use "Isar/proof_node.ML";
   270 use "Isar/toplevel.ML";
   271 
   272 (*proof term operations*)
   273 use "Proof/reconstruct.ML";
   274 use "Proof/proof_syntax.ML";
   275 use "Proof/proof_rewrite_rules.ML";
   276 use "Proof/proof_checker.ML";
   277 use "Proof/extraction.ML";
   278 
   279 (*Isabelle system*)
   280 use "System/bash.ML";
   281 use "System/isabelle_system.ML";
   282 
   283 
   284 (*theory documents*)
   285 use "Thy/term_style.ML";
   286 use "Isar/outer_syntax.ML";
   287 use "Thy/thy_output.ML";
   288 use "Thy/document_antiquotations.ML";
   289 use "General/graph_display.ML";
   290 use "Thy/present.ML";
   291 use "pure_syn.ML";
   292 use "PIDE/command.ML";
   293 use "PIDE/query_operation.ML";
   294 use "PIDE/resources.ML";
   295 use "Thy/thy_info.ML";
   296 use "PIDE/session.ML";
   297 use "PIDE/protocol_message.ML";
   298 use "PIDE/document.ML";
   299 
   300 (*theory and proof operations*)
   301 use "Isar/isar_cmd.ML";
   302 
   303 
   304 (* Isabelle/Isar system *)
   305 
   306 use "System/command_line.ML";
   307 use "System/system_channel.ML";
   308 use "System/message_channel.ML";
   309 use "System/isabelle_process.ML";
   310 use "System/invoke_scala.ML";
   311 use "PIDE/protocol.ML";
   312 
   313 
   314 (* miscellaneous tools and packages for Pure Isabelle *)
   315 
   316 use "ML/ml_pp.ML";
   317 use "ML/ml_antiquotations.ML";
   318 use "ML/ml_thms.ML";
   319 use "ML/ml_file.ML";
   320 
   321 use "Tools/build.ML";
   322 use "Tools/named_thms.ML";
   323 use "Tools/print_operation.ML";
   324 use "Tools/bibtex.ML";
   325 use "Tools/rail.ML";
   326 use "Tools/rule_insts.ML";
   327 use "Tools/thm_deps.ML";
   328 use "Tools/thy_deps.ML";
   329 use "Tools/class_deps.ML";
   330 use "Tools/find_theorems.ML";
   331 use "Tools/find_consts.ML";
   332 use "Tools/simplifier_trace.ML";
   333 use_no_debug "Tools/debugger.ML";
   334 use "Tools/named_theorems.ML";
   335 use "Tools/jedit.ML";
   336 
   337 use_thy "Pure";
   338 
   339 use "ML/ml_pervasive_final.ML";
   340 use_thy "ML/ML_Root";