src/Pure/ROOT.ML
author wenzelm
Fri Jul 08 21:44:47 2011 +0200 (2011-07-08)
changeset 43712 3c2c912af2ef
parent 43684 85388f5570c4
child 43729 07d3c6afa865
permissions -rw-r--r--
moved Outer_Syntax.load_thy to Thy_Load.load_thy;
tuned signatures;
tuned module dependencies;
wenzelm@31432
     1
(** Pure Isabelle **)
clasohm@0
     2
wenzelm@26109
     3
structure Distribution =     (*filled-in by makedist*)
wenzelm@26109
     4
struct
wenzelm@32361
     5
  val version = "unidentified repository version";
wenzelm@27642
     6
  val is_official = false;
wenzelm@27642
     7
  val changelog = "";
wenzelm@26109
     8
end;
wenzelm@11835
     9
wenzelm@23825
    10
(*if true then some tools will OMIT some proofs*)
wenzelm@32738
    11
val quick_and_dirty = Unsynchronized.ref false;
wenzelm@23825
    12
wenzelm@12248
    13
print_depth 10;
clasohm@0
    14
wenzelm@31432
    15
wenzelm@31432
    16
(* library of general tools *)
wenzelm@31432
    17
wenzelm@21396
    18
use "General/basics.ML";
clasohm@0
    19
use "library.ML";
wenzelm@31432
    20
use "General/print_mode.ML";
wenzelm@31432
    21
use "General/alist.ML";
wenzelm@31432
    22
use "General/table.ML";
wenzelm@43684
    23
wenzelm@43684
    24
use "Concurrent/simple_thread.ML";
wenzelm@43684
    25
wenzelm@43684
    26
use "Concurrent/synchronized.ML";
wenzelm@43684
    27
if Multithreading.available then ()
wenzelm@43684
    28
else use "Concurrent/synchronized_sequential.ML";
wenzelm@43684
    29
wenzelm@31432
    30
use "General/output.ML";
wenzelm@42012
    31
use "General/timing.ML";
wenzelm@31432
    32
use "General/properties.ML";
wenzelm@31432
    33
use "General/markup.ML";
wenzelm@31432
    34
use "General/scan.ML";
wenzelm@31432
    35
use "General/source.ML";
wenzelm@31432
    36
use "General/symbol.ML";
wenzelm@31432
    37
use "General/seq.ML";
wenzelm@31432
    38
use "General/position.ML";
wenzelm@31432
    39
use "General/symbol_pos.ML";
wenzelm@31432
    40
use "General/antiquote.ML";
wenzelm@31432
    41
use "ML/ml_lex.ML";
wenzelm@31432
    42
use "ML/ml_parse.ML";
wenzelm@31432
    43
use "General/secure.ML";
wenzelm@32015
    44
(*^^^^^ end of basic ML bootstrap ^^^^^*)
wenzelm@31432
    45
use "General/integer.ML";
wenzelm@31432
    46
use "General/stack.ML";
wenzelm@31432
    47
use "General/queue.ML";
wenzelm@31432
    48
use "General/heap.ML";
wenzelm@32015
    49
use "General/same.ML";
wenzelm@31432
    50
use "General/ord_list.ML";
wenzelm@31432
    51
use "General/balanced_tree.ML";
wenzelm@31432
    52
use "General/graph.ML";
wenzelm@38448
    53
use "General/linear_set.ML";
wenzelm@43593
    54
use "General/buffer.ML";
wenzelm@43593
    55
use "General/xml.ML";
wenzelm@43593
    56
use "General/xml_data.ML";
wenzelm@43593
    57
use "General/pretty.ML";
wenzelm@31432
    58
use "General/path.ML";
wenzelm@31432
    59
use "General/url.ML";
wenzelm@31432
    60
use "General/file.ML";
wenzelm@31432
    61
use "General/yxml.ML";
wenzelm@43547
    62
use "General/long_name.ML";
wenzelm@43547
    63
use "General/binding.ML";
wenzelm@22592
    64
wenzelm@35628
    65
use "General/sha1.ML";
wenzelm@35628
    66
if String.isPrefix "polyml" ml_system
wenzelm@35628
    67
then use "General/sha1_polyml.ML"
wenzelm@35628
    68
else ();
wenzelm@35628
    69
wenzelm@31432
    70
wenzelm@31432
    71
(* concurrency within the ML runtime *)
wenzelm@28120
    72
wenzelm@35014
    73
use "Concurrent/single_assignment.ML";
wenzelm@35014
    74
if Multithreading.available then ()
wenzelm@35014
    75
else use "Concurrent/single_assignment_sequential.ML";
wenzelm@35014
    76
wenzelm@41718
    77
if String.isPrefix "smlnj" ml_system then ()
wenzelm@41718
    78
else use "Concurrent/time_limit.ML";
wenzelm@41710
    79
wenzelm@40748
    80
if Multithreading.available
wenzelm@40748
    81
then use "Concurrent/bash.ML"
wenzelm@40748
    82
else use "Concurrent/bash_sequential.ML";
wenzelm@40748
    83
wenzelm@40748
    84
fun bash s =
wenzelm@40748
    85
  (case bash_output s of
wenzelm@40748
    86
    ("", rc) => rc
wenzelm@40748
    87
  | (out, rc) => (writeln (perhaps (try (unsuffix "\n")) out); rc));
wenzelm@40748
    88
wenzelm@31432
    89
use "Concurrent/mailbox.ML";
wenzelm@31432
    90
use "Concurrent/task_queue.ML";
wenzelm@31432
    91
use "Concurrent/future.ML";
wenzelm@32840
    92
wenzelm@32815
    93
use "Concurrent/lazy.ML";
wenzelm@32815
    94
if Multithreading.available then ()
wenzelm@32815
    95
else use "Concurrent/lazy_sequential.ML";
wenzelm@32840
    96
wenzelm@31432
    97
use "Concurrent/par_list.ML";
wenzelm@32815
    98
if Multithreading.available then ()
wenzelm@32816
    99
else use "Concurrent/par_list_sequential.ML";
wenzelm@31432
   100
wenzelm@32840
   101
use "Concurrent/cache.ML";
wenzelm@32840
   102
wenzelm@31432
   103
wenzelm@31432
   104
(* fundamental structures *)
wenzelm@31432
   105
wenzelm@20075
   106
use "name.ML";
clasohm@0
   107
use "term.ML";
wenzelm@28404
   108
use "context.ML";
wenzelm@39508
   109
use "config.ML";
wenzelm@28404
   110
use "context_position.ML";
wenzelm@19
   111
wenzelm@31432
   112
wenzelm@31432
   113
(* inner syntax *)
wenzelm@31432
   114
wenzelm@42264
   115
use "Syntax/term_position.ML";
wenzelm@42264
   116
use "Syntax/lexicon.ML";
wenzelm@22679
   117
use "Syntax/ast.ML";
wenzelm@42288
   118
use "Syntax/syntax_ext.ML";
wenzelm@22679
   119
use "Syntax/parser.ML";
wenzelm@42284
   120
use "Syntax/syntax_trans.ML";
wenzelm@22679
   121
use "Syntax/mixfix.ML";
wenzelm@22679
   122
use "Syntax/printer.ML";
wenzelm@22679
   123
use "Syntax/syntax.ML";
wenzelm@22679
   124
wenzelm@31432
   125
wenzelm@31432
   126
(* core of tactical proof system *)
wenzelm@31432
   127
wenzelm@42382
   128
use "term_ord.ML";
wenzelm@42382
   129
use "term_subst.ML";
wenzelm@42382
   130
use "old_term.ML";
wenzelm@42382
   131
use "General/name_space.ML";
wenzelm@42382
   132
use "sorts.ML";
wenzelm@42382
   133
use "type.ML";
wenzelm@42382
   134
use "logic.ML";
wenzelm@42382
   135
use "Syntax/simple_syntax.ML";
wenzelm@30559
   136
use "net.ML";
wenzelm@30559
   137
use "item_net.ML";
wenzelm@18934
   138
use "envir.ML";
wenzelm@18059
   139
use "consts.ML";
wenzelm@24257
   140
use "primitive_defs.ML";
haftmann@27546
   141
use "defs.ML";
clasohm@0
   142
use "sign.ML";
clasohm@0
   143
use "pattern.ML";
clasohm@0
   144
use "unify.ML";
paulson@1528
   145
use "theory.ML";
wenzelm@24664
   146
use "interpretation.ML";
berghofe@11511
   147
use "proofterm.ML";
clasohm@0
   148
use "thm.ML";
wenzelm@22361
   149
use "more_thm.ML";
wenzelm@26279
   150
use "facts.ML";
wenzelm@39557
   151
use "global_theory.ML";
wenzelm@3986
   152
use "pure_thy.ML";
clasohm@0
   153
use "drule.ML";
wenzelm@22233
   154
use "morphism.ML";
wenzelm@19898
   155
use "variable.ML";
wenzelm@24833
   156
use "conv.ML";
wenzelm@32187
   157
use "goal_display.ML";
wenzelm@32169
   158
use "tactical.ML";
paulson@1582
   159
use "search.ML";
wenzelm@21708
   160
use "tactic.ML";
wenzelm@41228
   161
use "raw_simplifier.ML";
wenzelm@19417
   162
use "conjunction.ML";
wenzelm@20225
   163
use "assumption.ML";
wenzelm@32089
   164
use "display.ML";
wenzelm@17963
   165
use "goal.ML";
clasohm@0
   166
wenzelm@31432
   167
wenzelm@31432
   168
(* Isar -- Intelligible Semi-Automated Reasoning *)
wenzelm@31432
   169
wenzelm@31432
   170
(*proof context*)
wenzelm@31432
   171
use "Isar/object_logic.ML";
wenzelm@31432
   172
use "Isar/rule_cases.ML";
wenzelm@31432
   173
use "Isar/auto_bind.ML";
wenzelm@42241
   174
use "type_infer.ML";
wenzelm@42240
   175
use "Syntax/local_syntax.ML";
wenzelm@31432
   176
use "Isar/proof_context.ML";
wenzelm@42405
   177
use "type_infer_context.ML";
wenzelm@42243
   178
use "Syntax/syntax_phases.ML";
wenzelm@31432
   179
use "Isar/local_defs.ML";
wenzelm@31432
   180
wenzelm@31432
   181
(*proof term operations*)
wenzelm@31432
   182
use "Proof/reconstruct.ML";
wenzelm@31432
   183
use "Proof/proof_syntax.ML";
wenzelm@31432
   184
use "Proof/proof_rewrite_rules.ML";
wenzelm@31432
   185
use "Proof/proofchecker.ML";
wenzelm@31432
   186
wenzelm@31432
   187
(*outer syntax*)
wenzelm@36959
   188
use "Isar/token.ML";
wenzelm@36949
   189
use "Isar/keyword.ML";
wenzelm@36949
   190
use "Isar/parse.ML";
wenzelm@36951
   191
use "Isar/parse_value.ML";
wenzelm@31432
   192
use "Isar/args.ML";
wenzelm@31432
   193
wenzelm@31432
   194
(*ML support*)
wenzelm@31432
   195
use "ML/ml_syntax.ML";
wenzelm@31432
   196
use "ML/ml_env.ML";
wenzelm@31476
   197
use "Isar/runtime.ML";
wenzelm@38874
   198
use "ML/ml_compiler.ML";
wenzelm@41718
   199
if ml_system = "polyml-5.2.1" orelse String.isPrefix "smlnj" ml_system then ()
wenzelm@38470
   200
else use "ML/ml_compiler_polyml-5.3.ML";
wenzelm@31432
   201
use "ML/ml_context.ML";
wenzelm@31432
   202
wenzelm@31432
   203
(*theory sources*)
wenzelm@31432
   204
use "Thy/thy_header.ML";
wenzelm@31432
   205
use "Thy/html.ML";
wenzelm@31432
   206
use "Thy/latex.ML";
wenzelm@31432
   207
wenzelm@31432
   208
(*basic proof engine*)
wenzelm@31432
   209
use "Isar/proof_display.ML";
wenzelm@31432
   210
use "Isar/attrib.ML";
wenzelm@31432
   211
use "ML/ml_antiquote.ML";
wenzelm@31432
   212
use "Isar/context_rules.ML";
wenzelm@31432
   213
use "Isar/skip_proof.ML";
wenzelm@31432
   214
use "Isar/method.ML";
wenzelm@31432
   215
use "Isar/proof.ML";
wenzelm@31432
   216
use "ML/ml_thms.ML";
wenzelm@31432
   217
use "Isar/element.ML";
wenzelm@31432
   218
wenzelm@31432
   219
(*derived theory and proof elements*)
wenzelm@31432
   220
use "Isar/calculation.ML";
wenzelm@31432
   221
use "Isar/obtain.ML";
wenzelm@31432
   222
wenzelm@31432
   223
(*local theories and targets*)
wenzelm@31432
   224
use "Isar/local_theory.ML";
haftmann@38341
   225
use "Isar/locale.ML";
haftmann@38307
   226
use "Isar/generic_target.ML";
wenzelm@31432
   227
use "Isar/overloading.ML";
wenzelm@35669
   228
use "axclass.ML";
haftmann@38379
   229
use "Isar/class.ML";
haftmann@38350
   230
use "Isar/named_target.ML";
wenzelm@31432
   231
use "Isar/expression.ML";
haftmann@38379
   232
use "Isar/class_declaration.ML";
wenzelm@31432
   233
wenzelm@31432
   234
use "simplifier.ML";
wenzelm@31432
   235
wenzelm@31432
   236
(*executable theory content*)
wenzelm@31432
   237
use "Isar/code.ML";
wenzelm@31432
   238
wenzelm@31432
   239
(*specifications*)
wenzelm@36952
   240
use "Isar/parse_spec.ML";
wenzelm@33374
   241
use "Isar/spec_rules.ML";
wenzelm@31432
   242
use "Isar/specification.ML";
wenzelm@35626
   243
use "Isar/typedecl.ML";
wenzelm@31432
   244
wenzelm@31432
   245
(*toplevel transactions*)
wenzelm@31432
   246
use "Isar/proof_node.ML";
wenzelm@31432
   247
use "Isar/toplevel.ML";
wenzelm@31432
   248
wenzelm@38271
   249
(*theory documents*)
wenzelm@40743
   250
use "System/isabelle_system.ML";
wenzelm@31432
   251
use "Thy/term_style.ML";
wenzelm@31432
   252
use "Thy/thy_output.ML";
wenzelm@31432
   253
use "Thy/thy_syntax.ML";
wenzelm@31432
   254
use "Isar/outer_syntax.ML";
wenzelm@38418
   255
use "PIDE/document.ML";
wenzelm@43712
   256
use "Thy/present.ML";
wenzelm@43712
   257
use "Thy/thy_load.ML";
wenzelm@31432
   258
use "Thy/thy_info.ML";
wenzelm@42504
   259
use "Thy/rail.ML";
wenzelm@31432
   260
wenzelm@31432
   261
(*theory and proof operations*)
wenzelm@31432
   262
use "Isar/rule_insts.ML";
wenzelm@31432
   263
use "Thy/thm_deps.ML";
wenzelm@31432
   264
use "Isar/isar_cmd.ML";
wenzelm@31432
   265
use "Isar/isar_syn.ML";
wenzelm@31432
   266
wenzelm@20207
   267
use "subgoal.ML";
wenzelm@5834
   268
berghofe@13402
   269
use "Proof/extraction.ML";
berghofe@11511
   270
wenzelm@31432
   271
wenzelm@31432
   272
(* Isabelle/Isar system *)
wenzelm@31432
   273
wenzelm@30173
   274
use "System/session.ML";
wenzelm@38412
   275
use "System/isabelle_process.ML";
wenzelm@38483
   276
use "PIDE/isar_document.ML";
wenzelm@30173
   277
use "System/isar.ML";
wenzelm@30173
   278
wenzelm@31432
   279
wenzelm@31432
   280
(* miscellaneous tools and packages for Pure Isabelle *)
wenzelm@31432
   281
wenzelm@31432
   282
use "Tools/named_thms.ML";
wenzelm@31432
   283
wenzelm@31432
   284
use "Tools/xml_syntax.ML";
wenzelm@31432
   285
wenzelm@31432
   286
use "Tools/find_theorems.ML";
wenzelm@31432
   287
use "Tools/find_consts.ML";
wenzelm@17467
   288
berghofe@24455
   289
use "codegen.ML";
berghofe@24455
   290
wenzelm@31432
   291
wenzelm@31432
   292
(* configuration for Proof General *)
wenzelm@31432
   293
wenzelm@31432
   294
use "ProofGeneral/pgip_types.ML";
wenzelm@31432
   295
use "ProofGeneral/pgml.ML";
wenzelm@31432
   296
use "ProofGeneral/pgip_markup.ML";
wenzelm@31432
   297
use "ProofGeneral/pgip_input.ML";
wenzelm@31432
   298
use "ProofGeneral/pgip_output.ML";
wenzelm@31432
   299
use "ProofGeneral/pgip.ML";
wenzelm@31432
   300
wenzelm@31432
   301
use "ProofGeneral/pgip_isabelle.ML";
wenzelm@31432
   302
wenzelm@31432
   303
use "ProofGeneral/preferences.ML";
wenzelm@31432
   304
wenzelm@31432
   305
use "ProofGeneral/pgip_parser.ML";
wenzelm@31432
   306
wenzelm@31432
   307
use "ProofGeneral/pgip_tests.ML";
wenzelm@31432
   308
wenzelm@31432
   309
use "ProofGeneral/proof_general_pgip.ML";
wenzelm@31432
   310
use "ProofGeneral/proof_general_emacs.ML";
wenzelm@31432
   311
obua@16781
   312
wenzelm@23825
   313
use "pure_setup.ML";
wenzelm@30639
   314