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