src/Pure/ROOT.ML
author wenzelm
Thu Aug 02 12:36:54 2012 +0200 (2012-08-02)
changeset 48646 91281e9472d8
parent 48641 92b48b8abfe4
child 48681 181b91e1d1c1
permissions -rw-r--r--
more official command specifications, including source position;
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@43746
    30
use "General/properties.ML";
wenzelm@31432
    31
use "General/output.ML";
wenzelm@42012
    32
use "General/timing.ML";
wenzelm@45670
    33
use "PIDE/markup.ML";
wenzelm@45670
    34
use "PIDE/isabelle_markup.ML";
wenzelm@45666
    35
fun legacy_feature s = warning (Markup.markup Isabelle_Markup.legacy ("Legacy feature! " ^ s));
wenzelm@31432
    36
use "General/scan.ML";
wenzelm@31432
    37
use "General/source.ML";
wenzelm@31432
    38
use "General/symbol.ML";
wenzelm@31432
    39
use "General/seq.ML";
wenzelm@31432
    40
use "General/position.ML";
wenzelm@31432
    41
use "General/symbol_pos.ML";
wenzelm@31432
    42
use "General/antiquote.ML";
wenzelm@31432
    43
use "ML/ml_lex.ML";
wenzelm@31432
    44
use "ML/ml_parse.ML";
wenzelm@31432
    45
use "General/secure.ML";
wenzelm@32015
    46
(*^^^^^ end of basic ML bootstrap ^^^^^*)
wenzelm@31432
    47
use "General/integer.ML";
wenzelm@31432
    48
use "General/stack.ML";
wenzelm@31432
    49
use "General/queue.ML";
wenzelm@31432
    50
use "General/heap.ML";
wenzelm@32015
    51
use "General/same.ML";
wenzelm@31432
    52
use "General/ord_list.ML";
wenzelm@31432
    53
use "General/balanced_tree.ML";
wenzelm@31432
    54
use "General/graph.ML";
wenzelm@38448
    55
use "General/linear_set.ML";
wenzelm@43593
    56
use "General/buffer.ML";
wenzelm@43791
    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@43547
    61
use "General/long_name.ML";
wenzelm@43547
    62
use "General/binding.ML";
wenzelm@22592
    63
wenzelm@35628
    64
use "General/sha1.ML";
wenzelm@43948
    65
if ML_System.is_polyml then use "General/sha1_polyml.ML" else ();
wenzelm@35628
    66
wenzelm@44698
    67
use "PIDE/xml.ML";
wenzelm@44698
    68
use "PIDE/yxml.ML";
wenzelm@44698
    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@47980
    77
if ML_System.is_polyml then use "Concurrent/time_limit.ML" else ();
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@44247
    83
use "Concurrent/par_exn.ML";
wenzelm@31432
    84
use "Concurrent/task_queue.ML";
wenzelm@31432
    85
use "Concurrent/future.ML";
wenzelm@32840
    86
wenzelm@32815
    87
use "Concurrent/lazy.ML";
wenzelm@32815
    88
if Multithreading.available then ()
wenzelm@32815
    89
else use "Concurrent/lazy_sequential.ML";
wenzelm@32840
    90
wenzelm@31432
    91
use "Concurrent/par_list.ML";
wenzelm@32815
    92
if Multithreading.available then ()
wenzelm@32816
    93
else use "Concurrent/par_list_sequential.ML";
wenzelm@31432
    94
wenzelm@44247
    95
use "Concurrent/mailbox.ML";
wenzelm@32840
    96
use "Concurrent/cache.ML";
wenzelm@32840
    97
wenzelm@31432
    98
wenzelm@31432
    99
(* fundamental structures *)
wenzelm@31432
   100
wenzelm@20075
   101
use "name.ML";
clasohm@0
   102
use "term.ML";
wenzelm@28404
   103
use "context.ML";
wenzelm@47813
   104
use "context_position.ML";
wenzelm@39508
   105
use "config.ML";
wenzelm@48456
   106
use "System/options.ML";
wenzelm@19
   107
wenzelm@31432
   108
wenzelm@31432
   109
(* inner syntax *)
wenzelm@31432
   110
wenzelm@42264
   111
use "Syntax/term_position.ML";
wenzelm@42264
   112
use "Syntax/lexicon.ML";
wenzelm@22679
   113
use "Syntax/ast.ML";
wenzelm@42288
   114
use "Syntax/syntax_ext.ML";
wenzelm@22679
   115
use "Syntax/parser.ML";
wenzelm@42284
   116
use "Syntax/syntax_trans.ML";
wenzelm@22679
   117
use "Syntax/mixfix.ML";
wenzelm@22679
   118
use "Syntax/printer.ML";
wenzelm@22679
   119
use "Syntax/syntax.ML";
wenzelm@22679
   120
wenzelm@31432
   121
wenzelm@31432
   122
(* core of tactical proof system *)
wenzelm@31432
   123
wenzelm@42382
   124
use "term_ord.ML";
wenzelm@42382
   125
use "term_subst.ML";
wenzelm@43729
   126
use "term_xml.ML";
wenzelm@42382
   127
use "General/name_space.ML";
wenzelm@42382
   128
use "sorts.ML";
wenzelm@42382
   129
use "type.ML";
wenzelm@42382
   130
use "logic.ML";
wenzelm@42382
   131
use "Syntax/simple_syntax.ML";
wenzelm@30559
   132
use "net.ML";
wenzelm@30559
   133
use "item_net.ML";
wenzelm@18934
   134
use "envir.ML";
wenzelm@18059
   135
use "consts.ML";
wenzelm@24257
   136
use "primitive_defs.ML";
haftmann@27546
   137
use "defs.ML";
clasohm@0
   138
use "sign.ML";
wenzelm@43795
   139
use "term_sharing.ML";
clasohm@0
   140
use "pattern.ML";
clasohm@0
   141
use "unify.ML";
paulson@1528
   142
use "theory.ML";
wenzelm@24664
   143
use "interpretation.ML";
berghofe@11511
   144
use "proofterm.ML";
clasohm@0
   145
use "thm.ML";
wenzelm@22361
   146
use "more_thm.ML";
wenzelm@26279
   147
use "facts.ML";
wenzelm@39557
   148
use "global_theory.ML";
wenzelm@3986
   149
use "pure_thy.ML";
clasohm@0
   150
use "drule.ML";
wenzelm@22233
   151
use "morphism.ML";
wenzelm@19898
   152
use "variable.ML";
wenzelm@24833
   153
use "conv.ML";
wenzelm@32187
   154
use "goal_display.ML";
wenzelm@32169
   155
use "tactical.ML";
paulson@1582
   156
use "search.ML";
wenzelm@21708
   157
use "tactic.ML";
wenzelm@41228
   158
use "raw_simplifier.ML";
wenzelm@19417
   159
use "conjunction.ML";
wenzelm@20225
   160
use "assumption.ML";
wenzelm@32089
   161
use "display.ML";
wenzelm@17963
   162
use "goal.ML";
clasohm@0
   163
wenzelm@31432
   164
wenzelm@31432
   165
(* Isar -- Intelligible Semi-Automated Reasoning *)
wenzelm@31432
   166
wenzelm@31432
   167
(*proof context*)
wenzelm@31432
   168
use "Isar/object_logic.ML";
wenzelm@31432
   169
use "Isar/rule_cases.ML";
wenzelm@31432
   170
use "Isar/auto_bind.ML";
wenzelm@42241
   171
use "type_infer.ML";
wenzelm@42240
   172
use "Syntax/local_syntax.ML";
wenzelm@31432
   173
use "Isar/proof_context.ML";
wenzelm@42405
   174
use "type_infer_context.ML";
wenzelm@42243
   175
use "Syntax/syntax_phases.ML";
wenzelm@31432
   176
use "Isar/local_defs.ML";
wenzelm@31432
   177
wenzelm@31432
   178
(*proof term operations*)
wenzelm@31432
   179
use "Proof/reconstruct.ML";
wenzelm@31432
   180
use "Proof/proof_syntax.ML";
wenzelm@31432
   181
use "Proof/proof_rewrite_rules.ML";
wenzelm@44062
   182
use "Proof/proof_checker.ML";
wenzelm@31432
   183
wenzelm@31432
   184
(*outer syntax*)
wenzelm@36959
   185
use "Isar/token.ML";
wenzelm@36949
   186
use "Isar/keyword.ML";
wenzelm@36949
   187
use "Isar/parse.ML";
wenzelm@31432
   188
use "Isar/args.ML";
wenzelm@31432
   189
wenzelm@31432
   190
(*ML support*)
wenzelm@31432
   191
use "ML/ml_syntax.ML";
wenzelm@31432
   192
use "ML/ml_env.ML";
wenzelm@31476
   193
use "Isar/runtime.ML";
wenzelm@38874
   194
use "ML/ml_compiler.ML";
wenzelm@47980
   195
if ML_System.is_polyml then use "ML/ml_compiler_polyml.ML" else ();
wenzelm@31432
   196
use "ML/ml_context.ML";
wenzelm@31432
   197
wenzelm@31432
   198
(*theory sources*)
wenzelm@31432
   199
use "Thy/thy_header.ML";
wenzelm@31432
   200
use "Thy/html.ML";
wenzelm@31432
   201
use "Thy/latex.ML";
wenzelm@31432
   202
wenzelm@31432
   203
(*basic proof engine*)
wenzelm@31432
   204
use "Isar/proof_display.ML";
wenzelm@31432
   205
use "Isar/attrib.ML";
wenzelm@31432
   206
use "ML/ml_antiquote.ML";
wenzelm@31432
   207
use "Isar/context_rules.ML";
wenzelm@31432
   208
use "Isar/skip_proof.ML";
wenzelm@31432
   209
use "Isar/method.ML";
wenzelm@31432
   210
use "Isar/proof.ML";
wenzelm@31432
   211
use "Isar/element.ML";
wenzelm@31432
   212
wenzelm@31432
   213
(*derived theory and proof elements*)
wenzelm@31432
   214
use "Isar/calculation.ML";
wenzelm@31432
   215
use "Isar/obtain.ML";
wenzelm@31432
   216
wenzelm@31432
   217
(*local theories and targets*)
wenzelm@31432
   218
use "Isar/local_theory.ML";
haftmann@38341
   219
use "Isar/locale.ML";
haftmann@38307
   220
use "Isar/generic_target.ML";
wenzelm@31432
   221
use "Isar/overloading.ML";
wenzelm@35669
   222
use "axclass.ML";
haftmann@38379
   223
use "Isar/class.ML";
haftmann@38350
   224
use "Isar/named_target.ML";
wenzelm@31432
   225
use "Isar/expression.ML";
haftmann@38379
   226
use "Isar/class_declaration.ML";
wenzelm@47057
   227
use "Isar/bundle.ML";
wenzelm@31432
   228
wenzelm@31432
   229
use "simplifier.ML";
wenzelm@31432
   230
wenzelm@31432
   231
(*executable theory content*)
wenzelm@31432
   232
use "Isar/code.ML";
wenzelm@31432
   233
wenzelm@31432
   234
(*specifications*)
wenzelm@36952
   235
use "Isar/parse_spec.ML";
wenzelm@33374
   236
use "Isar/spec_rules.ML";
wenzelm@31432
   237
use "Isar/specification.ML";
wenzelm@35626
   238
use "Isar/typedecl.ML";
wenzelm@45592
   239
use "ML/ml_thms.ML";
wenzelm@31432
   240
wenzelm@31432
   241
(*toplevel transactions*)
wenzelm@31432
   242
use "Isar/proof_node.ML";
wenzelm@31432
   243
use "Isar/toplevel.ML";
wenzelm@31432
   244
wenzelm@38271
   245
(*theory documents*)
wenzelm@40743
   246
use "System/isabelle_system.ML";
wenzelm@31432
   247
use "Thy/term_style.ML";
wenzelm@31432
   248
use "Thy/thy_output.ML";
wenzelm@31432
   249
use "Thy/thy_syntax.ML";
wenzelm@31432
   250
use "Isar/outer_syntax.ML";
wenzelm@43712
   251
use "Thy/present.ML";
wenzelm@43712
   252
use "Thy/thy_load.ML";
wenzelm@31432
   253
use "Thy/thy_info.ML";
wenzelm@47336
   254
use "PIDE/command.ML";
wenzelm@44185
   255
use "PIDE/document.ML";
wenzelm@42504
   256
use "Thy/rail.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
wenzelm@20207
   263
use "subgoal.ML";
wenzelm@5834
   264
berghofe@13402
   265
use "Proof/extraction.ML";
berghofe@11511
   266
wenzelm@31432
   267
wenzelm@31432
   268
(* Isabelle/Isar system *)
wenzelm@31432
   269
wenzelm@30173
   270
use "System/session.ML";
wenzelm@48418
   271
use "System/build.ML";
wenzelm@45029
   272
use "System/system_channel.ML";
wenzelm@38412
   273
use "System/isabelle_process.ML";
wenzelm@43748
   274
use "System/invoke_scala.ML";
wenzelm@45709
   275
use "PIDE/protocol.ML";
wenzelm@30173
   276
use "System/isar.ML";
wenzelm@30173
   277
wenzelm@31432
   278
wenzelm@31432
   279
(* miscellaneous tools and packages for Pure Isabelle *)
wenzelm@31432
   280
wenzelm@31432
   281
use "Tools/named_thms.ML";
wenzelm@31432
   282
wenzelm@31432
   283
use "Tools/xml_syntax.ML";
wenzelm@31432
   284
wenzelm@31432
   285
wenzelm@31432
   286
(* configuration for Proof General *)
wenzelm@31432
   287
wenzelm@31432
   288
use "ProofGeneral/pgip_types.ML";
wenzelm@31432
   289
use "ProofGeneral/pgml.ML";
wenzelm@31432
   290
use "ProofGeneral/pgip_markup.ML";
wenzelm@31432
   291
use "ProofGeneral/pgip_input.ML";
wenzelm@31432
   292
use "ProofGeneral/pgip_output.ML";
wenzelm@31432
   293
use "ProofGeneral/pgip.ML";
wenzelm@31432
   294
wenzelm@31432
   295
use "ProofGeneral/pgip_isabelle.ML";
wenzelm@31432
   296
wenzelm@31432
   297
use "ProofGeneral/preferences.ML";
wenzelm@31432
   298
wenzelm@31432
   299
use "ProofGeneral/pgip_parser.ML";
wenzelm@31432
   300
wenzelm@31432
   301
use "ProofGeneral/proof_general_pgip.ML";
wenzelm@31432
   302
use "ProofGeneral/proof_general_emacs.ML";
wenzelm@31432
   303
obua@16781
   304
wenzelm@23825
   305
use "pure_setup.ML";
wenzelm@30639
   306
wenzelm@48641
   307
use "ProofGeneral/pgip_tests.ML";
wenzelm@48641
   308