src/Pure/ROOT.ML
author wenzelm
Mon May 17 15:11:25 2010 +0200 (2010-05-17)
changeset 36959 f5417836dbea
parent 36955 226fb165833e
child 36961 7b14afc02fc4
permissions -rw-r--r--
renamed structure OuterLex to Token and type token to Token.T, keeping legacy aliases for some time;
eliminated slightly odd alias structure T;
     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/yxml.ML";
    54 
    55 use "General/sha1.ML";
    56 if String.isPrefix "polyml" ml_system
    57 then use "General/sha1_polyml.ML"
    58 else ();
    59 
    60 
    61 (* concurrency within the ML runtime *)
    62 
    63 use "Concurrent/simple_thread.ML";
    64 
    65 use "Concurrent/single_assignment.ML";
    66 if Multithreading.available then ()
    67 else use "Concurrent/single_assignment_sequential.ML";
    68 
    69 use "Concurrent/synchronized.ML";
    70 if Multithreading.available then ()
    71 else use "Concurrent/synchronized_sequential.ML";
    72 
    73 use "Concurrent/mailbox.ML";
    74 use "Concurrent/task_queue.ML";
    75 use "Concurrent/future.ML";
    76 
    77 use "Concurrent/lazy.ML";
    78 if Multithreading.available then ()
    79 else use "Concurrent/lazy_sequential.ML";
    80 
    81 use "Concurrent/par_list.ML";
    82 if Multithreading.available then ()
    83 else use "Concurrent/par_list_sequential.ML";
    84 
    85 use "Concurrent/cache.ML";
    86 
    87 
    88 (* fundamental structures *)
    89 
    90 use "name.ML";
    91 use "term.ML";
    92 use "term_ord.ML";
    93 use "term_subst.ML";
    94 use "old_term.ML";
    95 use "General/pretty.ML";
    96 use "context.ML";
    97 use "context_position.ML";
    98 use "sorts.ML";
    99 use "type.ML";
   100 use "logic.ML";
   101 use "Syntax/lexicon.ML";
   102 use "Syntax/simple_syntax.ML";
   103 use "config.ML";
   104 
   105 
   106 (* inner syntax *)
   107 
   108 use "Syntax/ast.ML";
   109 use "Syntax/syn_ext.ML";
   110 use "Syntax/parser.ML";
   111 use "Syntax/type_ext.ML";
   112 use "Syntax/syn_trans.ML";
   113 use "Syntax/mixfix.ML";
   114 use "Syntax/printer.ML";
   115 use "Syntax/syntax.ML";
   116 
   117 use "type_infer.ML";
   118 
   119 
   120 (* core of tactical proof system *)
   121 
   122 use "net.ML";
   123 use "item_net.ML";
   124 use "envir.ML";
   125 use "consts.ML";
   126 use "primitive_defs.ML";
   127 use "defs.ML";
   128 use "sign.ML";
   129 use "pattern.ML";
   130 use "unify.ML";
   131 use "theory.ML";
   132 use "interpretation.ML";
   133 use "proofterm.ML";
   134 use "thm.ML";
   135 use "more_thm.ML";
   136 use "facts.ML";
   137 use "pure_thy.ML";
   138 use "drule.ML";
   139 use "morphism.ML";
   140 use "variable.ML";
   141 use "conv.ML";
   142 use "goal_display.ML";
   143 use "tactical.ML";
   144 use "search.ML";
   145 use "tactic.ML";
   146 use "meta_simplifier.ML";
   147 use "conjunction.ML";
   148 use "assumption.ML";
   149 use "display.ML";
   150 use "goal.ML";
   151 
   152 
   153 (* Isar -- Intelligible Semi-Automated Reasoning *)
   154 
   155 (*proof context*)
   156 use "Isar/object_logic.ML";
   157 use "Isar/rule_cases.ML";
   158 use "Isar/auto_bind.ML";
   159 use "Isar/local_syntax.ML";
   160 use "Isar/proof_context.ML";
   161 use "Isar/local_defs.ML";
   162 
   163 (*proof term operations*)
   164 use "Proof/reconstruct.ML";
   165 use "Proof/proof_syntax.ML";
   166 use "Proof/proof_rewrite_rules.ML";
   167 use "Proof/proofchecker.ML";
   168 
   169 (*outer syntax*)
   170 use "Isar/token.ML";
   171 use "Isar/keyword.ML";
   172 use "Isar/parse.ML";
   173 use "Isar/parse_value.ML";
   174 use "Isar/args.ML";
   175 
   176 (*ML support*)
   177 use "ML/ml_syntax.ML";
   178 use "ML/ml_env.ML";
   179 use "Isar/runtime.ML";
   180 if ml_system = "polyml-5.3.0"
   181 then use "ML/ml_compiler_polyml-5.3.ML"
   182 else use "ML/ml_compiler.ML";
   183 use "ML/ml_context.ML";
   184 
   185 (*theory sources*)
   186 use "Thy/thy_header.ML";
   187 use "Thy/thy_load.ML";
   188 use "Thy/html.ML";
   189 use "Thy/latex.ML";
   190 use "Thy/present.ML";
   191 
   192 (*basic proof engine*)
   193 use "Isar/proof_display.ML";
   194 use "Isar/attrib.ML";
   195 use "ML/ml_antiquote.ML";
   196 use "Isar/context_rules.ML";
   197 use "Isar/skip_proof.ML";
   198 use "Isar/method.ML";
   199 use "Isar/proof.ML";
   200 use "ML/ml_thms.ML";
   201 use "Isar/element.ML";
   202 
   203 (*derived theory and proof elements*)
   204 use "Isar/calculation.ML";
   205 use "Isar/obtain.ML";
   206 
   207 (*local theories and targets*)
   208 use "Isar/local_theory.ML";
   209 use "Isar/overloading.ML";
   210 use "Isar/locale.ML";
   211 use "axclass.ML";
   212 use "Isar/class_target.ML";
   213 use "Isar/theory_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 "Isar/proof_node.ML";
   231 use "Isar/toplevel.ML";
   232 
   233 (*theory syntax*)
   234 use "Thy/term_style.ML";
   235 use "Thy/thy_output.ML";
   236 use "Thy/thy_syntax.ML";
   237 use "old_goals.ML";
   238 use "Isar/outer_syntax.ML";
   239 use "Thy/thy_info.ML";
   240 use "Isar/isar_document.ML";
   241 
   242 (*theory and proof operations*)
   243 use "Isar/rule_insts.ML";
   244 use "Thy/thm_deps.ML";
   245 use "Isar/isar_cmd.ML";
   246 use "Isar/isar_syn.ML";
   247 
   248 use "subgoal.ML";
   249 
   250 use "Proof/extraction.ML";
   251 
   252 
   253 (* Isabelle/Isar system *)
   254 
   255 use "System/session.ML";
   256 use "System/isar.ML";
   257 use "System/isabelle_process.ML";
   258 
   259 
   260 (* miscellaneous tools and packages for Pure Isabelle *)
   261 
   262 use "Tools/named_thms.ML";
   263 
   264 use "Tools/xml_syntax.ML";
   265 
   266 use "Tools/find_theorems.ML";
   267 use "Tools/find_consts.ML";
   268 
   269 use "codegen.ML";
   270 
   271 
   272 (* configuration for Proof General *)
   273 
   274 use "ProofGeneral/pgip_types.ML";
   275 use "ProofGeneral/pgml.ML";
   276 use "ProofGeneral/pgip_markup.ML";
   277 use "ProofGeneral/pgip_input.ML";
   278 use "ProofGeneral/pgip_output.ML";
   279 use "ProofGeneral/pgip.ML";
   280 
   281 use "ProofGeneral/pgip_isabelle.ML";
   282 
   283 use "ProofGeneral/preferences.ML";
   284 
   285 use "ProofGeneral/pgip_parser.ML";
   286 
   287 use "ProofGeneral/pgip_tests.ML";
   288 
   289 use "ProofGeneral/proof_general_pgip.ML";
   290 use "ProofGeneral/proof_general_emacs.ML";
   291 
   292 
   293 use "pure_setup.ML";
   294 
   295 
   296 (* legacy aliases *)
   297 
   298 structure Legacy =
   299 struct
   300 
   301 structure OuterKeyword = Keyword;
   302 
   303 structure OuterLex =
   304 struct
   305   open Token;
   306   type token = T;
   307 end;
   308 
   309 structure OuterParse = Parse;
   310 structure OuterSyntax = Outer_Syntax;
   311 structure SpecParse = Parse_Spec;
   312 
   313 end;
   314 
   315 open Legacy;  (* FIXME *)