src/Pure/ROOT.ML
author wenzelm
Fri Dec 17 17:08:56 2010 +0100 (2010-12-17)
changeset 41228 e1fce873b814
parent 40748 591b6778d076
child 41710 11ae688e4e30
permissions -rw-r--r--
renamed structure MetaSimplifier to raw_Simplifer, to emphasize its meaning;
     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/linear_set.ML";
    46 use "General/long_name.ML";
    47 use "General/binding.ML";
    48 use "General/name_space.ML";
    49 use "General/path.ML";
    50 use "General/url.ML";
    51 use "General/buffer.ML";
    52 use "General/file.ML";
    53 use "General/xml.ML";
    54 use "General/xml_data.ML";
    55 use "General/yxml.ML";
    56 
    57 use "General/sha1.ML";
    58 if String.isPrefix "polyml" ml_system
    59 then use "General/sha1_polyml.ML"
    60 else ();
    61 
    62 
    63 (* concurrency within the ML runtime *)
    64 
    65 use "Concurrent/simple_thread.ML";
    66 
    67 use "Concurrent/single_assignment.ML";
    68 if Multithreading.available then ()
    69 else use "Concurrent/single_assignment_sequential.ML";
    70 
    71 use "Concurrent/synchronized.ML";
    72 if Multithreading.available then ()
    73 else use "Concurrent/synchronized_sequential.ML";
    74 
    75 if Multithreading.available
    76 then use "Concurrent/bash.ML"
    77 else use "Concurrent/bash_sequential.ML";
    78 
    79 fun bash s =
    80   (case bash_output s of
    81     ("", rc) => rc
    82   | (out, rc) => (writeln (perhaps (try (unsuffix "\n")) out); rc));
    83 
    84 use "Concurrent/mailbox.ML";
    85 use "Concurrent/task_queue.ML";
    86 use "Concurrent/future.ML";
    87 
    88 use "Concurrent/lazy.ML";
    89 if Multithreading.available then ()
    90 else use "Concurrent/lazy_sequential.ML";
    91 
    92 use "Concurrent/par_list.ML";
    93 if Multithreading.available then ()
    94 else use "Concurrent/par_list_sequential.ML";
    95 
    96 use "Concurrent/cache.ML";
    97 
    98 
    99 (* fundamental structures *)
   100 
   101 use "name.ML";
   102 use "term.ML";
   103 use "term_ord.ML";
   104 use "term_subst.ML";
   105 use "old_term.ML";
   106 use "General/pretty.ML";
   107 use "context.ML";
   108 use "config.ML";
   109 use "context_position.ML";
   110 use "sorts.ML";
   111 use "type.ML";
   112 use "logic.ML";
   113 use "Syntax/lexicon.ML";
   114 use "Syntax/simple_syntax.ML";
   115 
   116 
   117 (* inner syntax *)
   118 
   119 use "Syntax/ast.ML";
   120 use "Syntax/syn_ext.ML";
   121 use "Syntax/parser.ML";
   122 use "Syntax/type_ext.ML";
   123 use "Syntax/syn_trans.ML";
   124 use "Syntax/mixfix.ML";
   125 use "Syntax/printer.ML";
   126 use "Syntax/syntax.ML";
   127 
   128 
   129 (* core of tactical proof system *)
   130 
   131 use "net.ML";
   132 use "item_net.ML";
   133 use "envir.ML";
   134 use "consts.ML";
   135 use "primitive_defs.ML";
   136 use "defs.ML";
   137 use "sign.ML";
   138 use "pattern.ML";
   139 use "unify.ML";
   140 use "theory.ML";
   141 use "interpretation.ML";
   142 use "proofterm.ML";
   143 use "thm.ML";
   144 use "more_thm.ML";
   145 use "facts.ML";
   146 use "global_theory.ML";
   147 use "pure_thy.ML";
   148 use "drule.ML";
   149 use "morphism.ML";
   150 use "variable.ML";
   151 use "conv.ML";
   152 use "goal_display.ML";
   153 use "tactical.ML";
   154 use "search.ML";
   155 use "tactic.ML";
   156 use "raw_simplifier.ML";
   157 use "conjunction.ML";
   158 use "assumption.ML";
   159 use "display.ML";
   160 use "goal.ML";
   161 
   162 
   163 (* Isar -- Intelligible Semi-Automated Reasoning *)
   164 
   165 (*proof context*)
   166 use "Isar/object_logic.ML";
   167 use "Isar/rule_cases.ML";
   168 use "Isar/auto_bind.ML";
   169 use "Isar/local_syntax.ML";
   170 use "type_infer.ML";
   171 use "Isar/proof_context.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/parse_value.ML";
   185 use "Isar/args.ML";
   186 
   187 (*ML support*)
   188 use "ML/ml_syntax.ML";
   189 use "ML/ml_env.ML";
   190 use "Isar/runtime.ML";
   191 use "ML/ml_compiler.ML";
   192 if ml_system = "polyml-5.2" orelse ml_system = "polyml-5.2.1" orelse
   193   String.isPrefix "smlnj" ml_system then ()
   194 else use "ML/ml_compiler_polyml-5.3.ML";
   195 use "ML/ml_context.ML";
   196 
   197 (*theory sources*)
   198 use "Thy/thy_header.ML";
   199 use "Thy/html.ML";
   200 use "Thy/latex.ML";
   201 
   202 (*basic proof engine*)
   203 use "Isar/proof_display.ML";
   204 use "Isar/attrib.ML";
   205 use "ML/ml_antiquote.ML";
   206 use "Isar/context_rules.ML";
   207 use "Isar/skip_proof.ML";
   208 use "Isar/method.ML";
   209 use "Isar/proof.ML";
   210 use "ML/ml_thms.ML";
   211 use "Isar/element.ML";
   212 
   213 (*derived theory and proof elements*)
   214 use "Isar/calculation.ML";
   215 use "Isar/obtain.ML";
   216 
   217 (*local theories and targets*)
   218 use "Isar/local_theory.ML";
   219 use "Isar/locale.ML";
   220 use "Isar/generic_target.ML";
   221 use "Isar/overloading.ML";
   222 use "axclass.ML";
   223 use "Isar/class.ML";
   224 use "Isar/named_target.ML";
   225 use "Isar/expression.ML";
   226 use "Isar/class_declaration.ML";
   227 
   228 use "simplifier.ML";
   229 
   230 (*executable theory content*)
   231 use "Isar/code.ML";
   232 
   233 (*specifications*)
   234 use "Isar/parse_spec.ML";
   235 use "Isar/spec_rules.ML";
   236 use "Isar/specification.ML";
   237 use "Isar/typedecl.ML";
   238 
   239 (*toplevel transactions*)
   240 use "Thy/thy_load.ML";
   241 use "Isar/proof_node.ML";
   242 use "Isar/toplevel.ML";
   243 
   244 (*theory documents*)
   245 use "System/isabelle_system.ML";
   246 use "Thy/present.ML";
   247 use "Thy/term_style.ML";
   248 use "Thy/thy_output.ML";
   249 use "Thy/thy_syntax.ML";
   250 use "Isar/outer_syntax.ML";
   251 use "PIDE/document.ML";
   252 use "Thy/thy_info.ML";
   253 
   254 (*theory and proof operations*)
   255 use "Isar/rule_insts.ML";
   256 use "Thy/thm_deps.ML";
   257 use "Isar/isar_cmd.ML";
   258 use "Isar/isar_syn.ML";
   259 
   260 use "subgoal.ML";
   261 
   262 use "Proof/extraction.ML";
   263 
   264 
   265 (* Isabelle/Isar system *)
   266 
   267 use "System/session.ML";
   268 use "System/isabelle_process.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