src/Pure/ROOT.ML
author wenzelm
Tue Sep 29 11:49:22 2009 +0200 (2009-09-29)
changeset 32738 15bb09ca0378
parent 32736 f126e68d003d
child 32815 1a5e364584ae
permissions -rw-r--r--
explicit indication of Unsynchronized.ref;
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@31432
    24
use "General/properties.ML";
wenzelm@31432
    25
use "General/markup.ML";
wenzelm@31432
    26
use "General/scan.ML";
wenzelm@31432
    27
use "General/source.ML";
wenzelm@31432
    28
use "General/symbol.ML";
wenzelm@31432
    29
use "General/seq.ML";
wenzelm@31432
    30
use "General/position.ML";
wenzelm@31432
    31
use "General/symbol_pos.ML";
wenzelm@31432
    32
use "General/antiquote.ML";
wenzelm@31432
    33
use "ML/ml_lex.ML";
wenzelm@31432
    34
use "ML/ml_parse.ML";
wenzelm@31432
    35
use "General/secure.ML";
wenzelm@32015
    36
(*^^^^^ end of basic ML bootstrap ^^^^^*)
wenzelm@31432
    37
use "General/integer.ML";
wenzelm@31432
    38
use "General/stack.ML";
wenzelm@31432
    39
use "General/queue.ML";
wenzelm@31432
    40
use "General/heap.ML";
wenzelm@32015
    41
use "General/same.ML";
wenzelm@31432
    42
use "General/ord_list.ML";
wenzelm@31432
    43
use "General/balanced_tree.ML";
wenzelm@31432
    44
use "General/graph.ML";
wenzelm@31432
    45
use "General/long_name.ML";
wenzelm@31432
    46
use "General/binding.ML";
wenzelm@31432
    47
use "General/name_space.ML";
wenzelm@31432
    48
use "General/lazy.ML";
wenzelm@31432
    49
use "General/path.ML";
wenzelm@31432
    50
use "General/url.ML";
wenzelm@31432
    51
use "General/buffer.ML";
wenzelm@31432
    52
use "General/file.ML";
wenzelm@31432
    53
use "General/xml.ML";
wenzelm@31432
    54
use "General/yxml.ML";
wenzelm@22592
    55
wenzelm@31432
    56
wenzelm@31432
    57
(* concurrency within the ML runtime *)
wenzelm@28120
    58
wenzelm@31432
    59
use "Concurrent/simple_thread.ML";
wenzelm@31432
    60
use "Concurrent/synchronized.ML";
wenzelm@32736
    61
if Multithreading.available then () else use "Concurrent/synchronized_dummy.ML";
wenzelm@31432
    62
use "Concurrent/mailbox.ML";
wenzelm@31432
    63
use "Concurrent/task_queue.ML";
wenzelm@31432
    64
use "Concurrent/future.ML";
wenzelm@31432
    65
use "Concurrent/par_list.ML";
wenzelm@31432
    66
if Multithreading.available then () else use "Concurrent/par_list_dummy.ML";
wenzelm@31432
    67
wenzelm@31432
    68
wenzelm@31432
    69
(* fundamental structures *)
wenzelm@31432
    70
wenzelm@20075
    71
use "name.ML";
clasohm@0
    72
use "term.ML";
wenzelm@29269
    73
use "term_ord.ML";
wenzelm@20507
    74
use "term_subst.ML";
wenzelm@29263
    75
use "old_term.ML";
wenzelm@24257
    76
use "logic.ML";
wenzelm@14823
    77
use "General/pretty.ML";
wenzelm@28404
    78
use "context.ML";
wenzelm@28404
    79
use "context_position.ML";
wenzelm@24235
    80
use "Syntax/lexicon.ML";
wenzelm@24235
    81
use "Syntax/simple_syntax.ML";
wenzelm@24272
    82
use "sorts.ML";
wenzelm@24272
    83
use "type.ML";
wenzelm@24113
    84
use "config.ML";
wenzelm@19
    85
wenzelm@31432
    86
wenzelm@31432
    87
(* inner syntax *)
wenzelm@31432
    88
wenzelm@22679
    89
use "Syntax/ast.ML";
wenzelm@22679
    90
use "Syntax/syn_ext.ML";
wenzelm@22679
    91
use "Syntax/parser.ML";
wenzelm@22679
    92
use "Syntax/type_ext.ML";
wenzelm@22679
    93
use "Syntax/syn_trans.ML";
wenzelm@22679
    94
use "Syntax/mixfix.ML";
wenzelm@22679
    95
use "Syntax/printer.ML";
wenzelm@22679
    96
use "Syntax/syntax.ML";
wenzelm@22679
    97
wenzelm@27262
    98
use "type_infer.ML";
wenzelm@31326
    99
wenzelm@31432
   100
wenzelm@31432
   101
(* core of tactical proof system *)
wenzelm@31432
   102
wenzelm@30559
   103
use "net.ML";
wenzelm@30559
   104
use "item_net.ML";
wenzelm@18934
   105
use "envir.ML";
wenzelm@18059
   106
use "consts.ML";
wenzelm@24257
   107
use "primitive_defs.ML";
haftmann@27546
   108
use "defs.ML";
clasohm@0
   109
use "sign.ML";
clasohm@0
   110
use "pattern.ML";
clasohm@0
   111
use "unify.ML";
paulson@1528
   112
use "theory.ML";
wenzelm@24664
   113
use "interpretation.ML";
berghofe@11511
   114
use "proofterm.ML";
clasohm@0
   115
use "thm.ML";
wenzelm@22361
   116
use "more_thm.ML";
wenzelm@26279
   117
use "facts.ML";
wenzelm@3986
   118
use "pure_thy.ML";
clasohm@0
   119
use "drule.ML";
wenzelm@22233
   120
use "morphism.ML";
wenzelm@19898
   121
use "variable.ML";
wenzelm@24833
   122
use "conv.ML";
wenzelm@32187
   123
use "goal_display.ML";
wenzelm@32169
   124
use "tactical.ML";
paulson@1582
   125
use "search.ML";
wenzelm@21708
   126
use "tactic.ML";
skalberg@15006
   127
use "meta_simplifier.ML";
wenzelm@19417
   128
use "conjunction.ML";
wenzelm@20225
   129
use "assumption.ML";
wenzelm@32089
   130
use "display.ML";
wenzelm@17963
   131
use "goal.ML";
wenzelm@24963
   132
use "axclass.ML";
clasohm@0
   133
wenzelm@31432
   134
wenzelm@31432
   135
(* Isar -- Intelligible Semi-Automated Reasoning *)
wenzelm@31432
   136
wenzelm@31432
   137
(*proof context*)
wenzelm@31432
   138
use "Isar/object_logic.ML";
wenzelm@31432
   139
use "Isar/rule_cases.ML";
wenzelm@31432
   140
use "Isar/auto_bind.ML";
wenzelm@31432
   141
use "Isar/local_syntax.ML";
wenzelm@31432
   142
use "Isar/proof_context.ML";
wenzelm@31432
   143
use "Isar/local_defs.ML";
wenzelm@31432
   144
wenzelm@31432
   145
(*proof term operations*)
wenzelm@31432
   146
use "Proof/reconstruct.ML";
wenzelm@31432
   147
use "Proof/proof_syntax.ML";
wenzelm@31432
   148
use "Proof/proof_rewrite_rules.ML";
wenzelm@31432
   149
use "Proof/proofchecker.ML";
wenzelm@31432
   150
wenzelm@31432
   151
(*outer syntax*)
wenzelm@31432
   152
use "Isar/outer_lex.ML";
wenzelm@31432
   153
use "Isar/outer_keyword.ML";
wenzelm@31432
   154
use "Isar/outer_parse.ML";
wenzelm@31432
   155
use "Isar/value_parse.ML";
wenzelm@31432
   156
use "Isar/args.ML";
wenzelm@31432
   157
wenzelm@31432
   158
(*ML support*)
wenzelm@31432
   159
use "ML/ml_syntax.ML";
wenzelm@31432
   160
use "ML/ml_env.ML";
wenzelm@31476
   161
use "Isar/runtime.ML";
wenzelm@31432
   162
if ml_system = "polyml-experimental"
wenzelm@31432
   163
then use "ML/ml_compiler_polyml-5.3.ML"
wenzelm@31432
   164
else use "ML/ml_compiler.ML";
wenzelm@31432
   165
use "ML/ml_context.ML";
wenzelm@31432
   166
wenzelm@31432
   167
(*theory sources*)
wenzelm@31432
   168
use "Thy/thy_header.ML";
wenzelm@31432
   169
use "Thy/thy_load.ML";
wenzelm@31432
   170
use "Thy/html.ML";
wenzelm@31432
   171
use "Thy/latex.ML";
wenzelm@31432
   172
use "Thy/present.ML";
wenzelm@31432
   173
wenzelm@31432
   174
(*basic proof engine*)
wenzelm@31432
   175
use "Isar/proof_display.ML";
wenzelm@31432
   176
use "Isar/attrib.ML";
wenzelm@31432
   177
use "ML/ml_antiquote.ML";
wenzelm@31432
   178
use "Isar/context_rules.ML";
wenzelm@31432
   179
use "Isar/skip_proof.ML";
wenzelm@31432
   180
use "Isar/method.ML";
wenzelm@31432
   181
use "Isar/proof.ML";
wenzelm@31432
   182
use "ML/ml_thms.ML";
wenzelm@31432
   183
use "Isar/element.ML";
wenzelm@31432
   184
wenzelm@31432
   185
(*derived theory and proof elements*)
wenzelm@31432
   186
use "Isar/calculation.ML";
wenzelm@31432
   187
use "Isar/obtain.ML";
wenzelm@31432
   188
wenzelm@31432
   189
(*local theories and targets*)
wenzelm@31432
   190
use "Isar/local_theory.ML";
wenzelm@31432
   191
use "Isar/overloading.ML";
wenzelm@31432
   192
use "Isar/locale.ML";
wenzelm@31432
   193
use "Isar/class_target.ML";
wenzelm@31432
   194
use "Isar/theory_target.ML";
wenzelm@31432
   195
use "Isar/expression.ML";
wenzelm@31432
   196
use "Isar/class.ML";
wenzelm@31432
   197
wenzelm@31432
   198
use "simplifier.ML";
wenzelm@31432
   199
wenzelm@31432
   200
(*executable theory content*)
wenzelm@31432
   201
use "Isar/code.ML";
wenzelm@31432
   202
wenzelm@31432
   203
(*specifications*)
wenzelm@31432
   204
use "Isar/spec_parse.ML";
wenzelm@31432
   205
use "Isar/specification.ML";
wenzelm@31432
   206
use "Isar/constdefs.ML";
wenzelm@31432
   207
wenzelm@31432
   208
(*toplevel transactions*)
wenzelm@31432
   209
use "Isar/proof_node.ML";
wenzelm@31432
   210
use "Isar/toplevel.ML";
wenzelm@31432
   211
wenzelm@31432
   212
(*theory syntax*)
wenzelm@31432
   213
use "Thy/term_style.ML";
wenzelm@31432
   214
use "Thy/thy_output.ML";
wenzelm@31432
   215
use "Thy/thy_syntax.ML";
wenzelm@31432
   216
use "old_goals.ML";
wenzelm@31432
   217
use "Isar/outer_syntax.ML";
wenzelm@31432
   218
use "Thy/thy_info.ML";
wenzelm@31432
   219
use "Isar/isar_document.ML";
wenzelm@31432
   220
wenzelm@31432
   221
(*theory and proof operations*)
wenzelm@31432
   222
use "Isar/rule_insts.ML";
wenzelm@31432
   223
use "Thy/thm_deps.ML";
wenzelm@31432
   224
use "Isar/isar_cmd.ML";
wenzelm@31432
   225
use "Isar/isar_syn.ML";
wenzelm@31432
   226
wenzelm@20207
   227
use "subgoal.ML";
wenzelm@5834
   228
berghofe@13402
   229
use "Proof/extraction.ML";
berghofe@11511
   230
wenzelm@31432
   231
wenzelm@31432
   232
(* Isabelle/Isar system *)
wenzelm@31432
   233
wenzelm@30173
   234
use "System/session.ML";
wenzelm@30173
   235
use "System/isar.ML";
wenzelm@30173
   236
use "System/isabelle_process.ML";
wenzelm@30173
   237
wenzelm@31432
   238
wenzelm@31432
   239
(* miscellaneous tools and packages for Pure Isabelle *)
wenzelm@31432
   240
wenzelm@31432
   241
use "Tools/named_thms.ML";
wenzelm@31432
   242
wenzelm@31432
   243
use "Tools/xml_syntax.ML";
wenzelm@31432
   244
wenzelm@31432
   245
use "Tools/find_theorems.ML";
wenzelm@31432
   246
use "Tools/find_consts.ML";
wenzelm@17467
   247
berghofe@24455
   248
use "codegen.ML";
berghofe@24455
   249
wenzelm@31432
   250
wenzelm@31432
   251
(* configuration for Proof General *)
wenzelm@31432
   252
wenzelm@31432
   253
use "ProofGeneral/pgip_types.ML";
wenzelm@31432
   254
use "ProofGeneral/pgml.ML";
wenzelm@31432
   255
use "ProofGeneral/pgip_markup.ML";
wenzelm@31432
   256
use "ProofGeneral/pgip_input.ML";
wenzelm@31432
   257
use "ProofGeneral/pgip_output.ML";
wenzelm@31432
   258
use "ProofGeneral/pgip.ML";
wenzelm@31432
   259
wenzelm@31432
   260
use "ProofGeneral/pgip_isabelle.ML";
wenzelm@31432
   261
wenzelm@31432
   262
use "ProofGeneral/preferences.ML";
wenzelm@31432
   263
wenzelm@31432
   264
use "ProofGeneral/pgip_parser.ML";
wenzelm@31432
   265
wenzelm@31432
   266
use "ProofGeneral/pgip_tests.ML";
wenzelm@31432
   267
wenzelm@31432
   268
use "ProofGeneral/proof_general_pgip.ML";
wenzelm@31432
   269
use "ProofGeneral/proof_general_emacs.ML";
wenzelm@31432
   270
obua@16781
   271
wenzelm@23825
   272
use "pure_setup.ML";
wenzelm@30639
   273