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