src/Pure/ROOT.ML
author wenzelm
Mon Apr 04 17:02:34 2016 +0200 (2016-04-04)
changeset 62848 e4140efe699e
parent 62847 1bd1d8492931
child 62849 caaa2fc4040d
permissions -rw-r--r--
clarified bootstrap -- more uniform use of ML files;
wenzelm@62643
     1
(*** Isabelle/Pure bootstrap ***)
wenzelm@62508
     2
wenzelm@62508
     3
(** bootstrap phase 0: Poly/ML setup **)
wenzelm@62508
     4
wenzelm@62508
     5
(* initial ML name space *)
wenzelm@56288
     6
wenzelm@62508
     7
use "ML/ml_system.ML";
wenzelm@62508
     8
use "ML/ml_name_space.ML";
wenzelm@62818
     9
use "ML/ml_pervasive.ML";
wenzelm@62508
    10
wenzelm@62508
    11
if List.exists (fn (a, _) => a = "FixedInt") (#allStruct ML_Name_Space.global ()) then ()
wenzelm@62508
    12
else use "ML/fixed_int_dummy.ML";
clasohm@0
    13
wenzelm@31432
    14
wenzelm@62508
    15
(* multithreading *)
wenzelm@62508
    16
wenzelm@62508
    17
use "General/exn.ML";
wenzelm@62508
    18
wenzelm@62508
    19
use "Concurrent/multithreading.ML";
wenzelm@62508
    20
use "Concurrent/unsynchronized.ML";
wenzelm@62508
    21
wenzelm@62508
    22
wenzelm@62818
    23
(* ML system *)
wenzelm@62508
    24
wenzelm@62845
    25
use "System/distribution.ML";
wenzelm@62845
    26
wenzelm@62508
    27
use "ML/ml_heap.ML";
wenzelm@62508
    28
use "ML/ml_profiling.ML";
wenzelm@62508
    29
use "ML/ml_pretty.ML";
wenzelm@62508
    30
use "ML/ml_compiler0.ML";
wenzelm@62508
    31
use_no_debug "ML/ml_debugger.ML";
wenzelm@62508
    32
wenzelm@62508
    33
wenzelm@62508
    34
wenzelm@62508
    35
(** bootstrap phase 1: towards ML within position context *)
wenzelm@62508
    36
wenzelm@31432
    37
(* library of general tools *)
wenzelm@31432
    38
wenzelm@21396
    39
use "General/basics.ML";
clasohm@0
    40
use "library.ML";
wenzelm@31432
    41
use "General/print_mode.ML";
wenzelm@31432
    42
use "General/alist.ML";
wenzelm@31432
    43
use "General/table.ML";
wenzelm@43684
    44
wenzelm@43684
    45
use "Concurrent/synchronized.ML";
wenzelm@52537
    46
use "Concurrent/counter.ML";
wenzelm@43684
    47
wenzelm@62585
    48
use "General/random.ML";
wenzelm@43746
    49
use "General/properties.ML";
wenzelm@31432
    50
use "General/output.ML";
wenzelm@45670
    51
use "PIDE/markup.ML";
wenzelm@31432
    52
use "General/scan.ML";
wenzelm@31432
    53
use "General/source.ML";
wenzelm@31432
    54
use "General/symbol.ML";
wenzelm@31432
    55
use "General/position.ML";
wenzelm@31432
    56
use "General/symbol_pos.ML";
wenzelm@59064
    57
use "General/input.ML";
wenzelm@31432
    58
use "General/antiquote.ML";
wenzelm@31432
    59
use "ML/ml_lex.ML";
wenzelm@62817
    60
use "ML/ml_compiler1.ML";
wenzelm@56288
    61
wenzelm@59054
    62
wenzelm@62508
    63
(** bootstrap phase 2: towards ML within Isar context *)
wenzelm@56288
    64
wenzelm@56288
    65
(* library of general tools *)
wenzelm@56288
    66
wenzelm@31432
    67
use "General/integer.ML";
wenzelm@31432
    68
use "General/stack.ML";
wenzelm@31432
    69
use "General/queue.ML";
wenzelm@31432
    70
use "General/heap.ML";
wenzelm@32015
    71
use "General/same.ML";
wenzelm@31432
    72
use "General/ord_list.ML";
wenzelm@31432
    73
use "General/balanced_tree.ML";
wenzelm@38448
    74
use "General/linear_set.ML";
wenzelm@43593
    75
use "General/buffer.ML";
wenzelm@43791
    76
use "General/pretty.ML";
wenzelm@59363
    77
use "PIDE/xml.ML";
wenzelm@31432
    78
use "General/path.ML";
wenzelm@31432
    79
use "General/url.ML";
wenzelm@31432
    80
use "General/file.ML";
wenzelm@43547
    81
use "General/long_name.ML";
wenzelm@43547
    82
use "General/binding.ML";
wenzelm@50800
    83
use "General/socket_io.ML";
wenzelm@56287
    84
use "General/seq.ML";
wenzelm@56287
    85
use "General/timing.ML";
wenzelm@35628
    86
use "General/sha1.ML";
wenzelm@35628
    87
wenzelm@44698
    88
use "PIDE/yxml.ML";
wenzelm@56303
    89
use "PIDE/document_id.ML";
wenzelm@44698
    90
wenzelm@56053
    91
use "General/change_table.ML";
wenzelm@49560
    92
use "General/graph.ML";
wenzelm@49560
    93
wenzelm@60911
    94
wenzelm@60911
    95
(* fundamental structures *)
wenzelm@60911
    96
wenzelm@60911
    97
use "name.ML";
wenzelm@60911
    98
use "term.ML";
wenzelm@60911
    99
use "context.ML";
wenzelm@60911
   100
use "context_position.ML";
wenzelm@51947
   101
use "System/options.ML";
wenzelm@60911
   102
use "config.ML";
wenzelm@51947
   103
wenzelm@31432
   104
wenzelm@31432
   105
(* concurrency within the ML runtime *)
wenzelm@28120
   106
wenzelm@62355
   107
use "ML/exn_properties.ML";
wenzelm@50911
   108
wenzelm@62501
   109
use "ML/ml_statistics.ML";
wenzelm@50255
   110
wenzelm@61556
   111
use "Concurrent/standard_thread.ML";
wenzelm@62359
   112
use "Concurrent/single_assignment.ML";
wenzelm@59054
   113
wenzelm@44247
   114
use "Concurrent/par_exn.ML";
wenzelm@31432
   115
use "Concurrent/task_queue.ML";
wenzelm@31432
   116
use "Concurrent/future.ML";
wenzelm@52798
   117
use "Concurrent/event_timer.ML";
wenzelm@62519
   118
use "Concurrent/timeout.ML";
wenzelm@32815
   119
use "Concurrent/lazy.ML";
wenzelm@31432
   120
use "Concurrent/par_list.ML";
wenzelm@31432
   121
wenzelm@44247
   122
use "Concurrent/mailbox.ML";
wenzelm@32840
   123
use "Concurrent/cache.ML";
wenzelm@32840
   124
wenzelm@50500
   125
use "PIDE/active.ML";
wenzelm@50500
   126
wenzelm@31432
   127
wenzelm@31432
   128
(* inner syntax *)
wenzelm@31432
   129
wenzelm@52211
   130
use "Syntax/type_annotation.ML";
wenzelm@42264
   131
use "Syntax/term_position.ML";
wenzelm@42264
   132
use "Syntax/lexicon.ML";
wenzelm@22679
   133
use "Syntax/ast.ML";
wenzelm@42288
   134
use "Syntax/syntax_ext.ML";
wenzelm@22679
   135
use "Syntax/parser.ML";
wenzelm@42284
   136
use "Syntax/syntax_trans.ML";
wenzelm@22679
   137
use "Syntax/mixfix.ML";
wenzelm@22679
   138
use "Syntax/printer.ML";
wenzelm@22679
   139
use "Syntax/syntax.ML";
wenzelm@22679
   140
wenzelm@31432
   141
wenzelm@31432
   142
(* core of tactical proof system *)
wenzelm@31432
   143
wenzelm@42382
   144
use "term_ord.ML";
wenzelm@42382
   145
use "term_subst.ML";
wenzelm@43729
   146
use "term_xml.ML";
wenzelm@55672
   147
use "General/completion.ML";
wenzelm@42382
   148
use "General/name_space.ML";
wenzelm@42382
   149
use "sorts.ML";
wenzelm@42382
   150
use "type.ML";
wenzelm@42382
   151
use "logic.ML";
wenzelm@42382
   152
use "Syntax/simple_syntax.ML";
wenzelm@30559
   153
use "net.ML";
wenzelm@30559
   154
use "item_net.ML";
wenzelm@18934
   155
use "envir.ML";
wenzelm@18059
   156
use "consts.ML";
wenzelm@24257
   157
use "primitive_defs.ML";
wenzelm@61261
   158
use "sign.ML";
haftmann@27546
   159
use "defs.ML";
wenzelm@43795
   160
use "term_sharing.ML";
clasohm@0
   161
use "pattern.ML";
clasohm@0
   162
use "unify.ML";
paulson@1528
   163
use "theory.ML";
berghofe@11511
   164
use "proofterm.ML";
clasohm@0
   165
use "thm.ML";
wenzelm@59026
   166
use "more_pattern.ML";
wenzelm@59026
   167
use "more_unify.ML";
wenzelm@22361
   168
use "more_thm.ML";
wenzelm@26279
   169
use "facts.ML";
wenzelm@39557
   170
use "global_theory.ML";
wenzelm@3986
   171
use "pure_thy.ML";
clasohm@0
   172
use "drule.ML";
wenzelm@22233
   173
use "morphism.ML";
wenzelm@19898
   174
use "variable.ML";
wenzelm@24833
   175
use "conv.ML";
wenzelm@32187
   176
use "goal_display.ML";
wenzelm@32169
   177
use "tactical.ML";
paulson@1582
   178
use "search.ML";
wenzelm@21708
   179
use "tactic.ML";
wenzelm@41228
   180
use "raw_simplifier.ML";
wenzelm@19417
   181
use "conjunction.ML";
wenzelm@20225
   182
use "assumption.ML";
clasohm@0
   183
wenzelm@31432
   184
wenzelm@31432
   185
(* Isar -- Intelligible Semi-Automated Reasoning *)
wenzelm@31432
   186
wenzelm@56303
   187
(*ML support and global execution*)
wenzelm@49041
   188
use "ML/ml_syntax.ML";
wenzelm@49041
   189
use "ML/ml_env.ML";
wenzelm@56303
   190
use "ML/ml_options.ML";
wenzelm@62498
   191
use_no_debug "ML/exn_debugger.ML";
wenzelm@62498
   192
use_no_debug "Isar/runtime.ML";
wenzelm@56303
   193
use "PIDE/execution.ML";
wenzelm@62355
   194
use "ML/ml_compiler.ML";
wenzelm@49041
   195
wenzelm@51551
   196
use "skip_proof.ML";
wenzelm@49041
   197
use "goal.ML";
wenzelm@49041
   198
wenzelm@31432
   199
(*proof context*)
wenzelm@31432
   200
use "Isar/object_logic.ML";
wenzelm@31432
   201
use "Isar/rule_cases.ML";
wenzelm@31432
   202
use "Isar/auto_bind.ML";
wenzelm@42241
   203
use "type_infer.ML";
wenzelm@42240
   204
use "Syntax/local_syntax.ML";
wenzelm@31432
   205
use "Isar/proof_context.ML";
wenzelm@42405
   206
use "type_infer_context.ML";
wenzelm@42243
   207
use "Syntax/syntax_phases.ML";
wenzelm@31432
   208
use "Isar/local_defs.ML";
wenzelm@31432
   209
wenzelm@31432
   210
(*outer syntax*)
wenzelm@58903
   211
use "Isar/keyword.ML";
wenzelm@36959
   212
use "Isar/token.ML";
wenzelm@36949
   213
use "Isar/parse.ML";
wenzelm@31432
   214
use "Isar/args.ML";
wenzelm@31432
   215
wenzelm@57926
   216
(*theory specifications*)
wenzelm@57926
   217
use "Isar/local_theory.ML";
wenzelm@31432
   218
use "Thy/thy_header.ML";
wenzelm@57905
   219
use "PIDE/command_span.ML";
wenzelm@51265
   220
use "Thy/thy_syntax.ML";
wenzelm@61454
   221
use "Thy/markdown.ML";
wenzelm@31432
   222
use "Thy/html.ML";
wenzelm@31432
   223
use "Thy/latex.ML";
wenzelm@31432
   224
wenzelm@56203
   225
(*ML with context and antiquotations*)
wenzelm@56203
   226
use "ML/ml_context.ML";
wenzelm@56205
   227
use "ML/ml_antiquotation.ML";
wenzelm@62817
   228
use "ML/ml_compiler2.ML";
wenzelm@56434
   229
wenzelm@56288
   230
wenzelm@56288
   231
wenzelm@62508
   232
(** bootstrap phase 3: towards Pure.thy and final ML toplevel setup *)
wenzelm@56203
   233
wenzelm@31432
   234
(*basic proof engine*)
wenzelm@58009
   235
use "par_tactical.ML";
wenzelm@31432
   236
use "Isar/proof_display.ML";
wenzelm@31432
   237
use "Isar/attrib.ML";
wenzelm@31432
   238
use "Isar/context_rules.ML";
wenzelm@31432
   239
use "Isar/method.ML";
wenzelm@31432
   240
use "Isar/proof.ML";
wenzelm@31432
   241
use "Isar/element.ML";
wenzelm@31432
   242
use "Isar/obtain.ML";
wenzelm@60630
   243
use "Isar/subgoal.ML";
wenzelm@62848
   244
use "Isar/calculation.ML";
wenzelm@31432
   245
wenzelm@31432
   246
(*local theories and targets*)
haftmann@52140
   247
use "Isar/locale.ML";
haftmann@38307
   248
use "Isar/generic_target.ML";
wenzelm@31432
   249
use "Isar/overloading.ML";
wenzelm@35669
   250
use "axclass.ML";
haftmann@38379
   251
use "Isar/class.ML";
haftmann@38350
   252
use "Isar/named_target.ML";
wenzelm@31432
   253
use "Isar/expression.ML";
haftmann@61669
   254
use "Isar/interpretation.ML";
haftmann@38379
   255
use "Isar/class_declaration.ML";
wenzelm@47057
   256
use "Isar/bundle.ML";
wenzelm@59901
   257
use "Isar/experiment.ML";
wenzelm@31432
   258
wenzelm@31432
   259
use "simplifier.ML";
wenzelm@58660
   260
use "Tools/plugin.ML";
wenzelm@31432
   261
wenzelm@31432
   262
(*executable theory content*)
wenzelm@31432
   263
use "Isar/code.ML";
wenzelm@31432
   264
wenzelm@31432
   265
(*specifications*)
wenzelm@36952
   266
use "Isar/parse_spec.ML";
wenzelm@33374
   267
use "Isar/spec_rules.ML";
wenzelm@31432
   268
use "Isar/specification.ML";
wenzelm@35626
   269
use "Isar/typedecl.ML";
wenzelm@31432
   270
wenzelm@31432
   271
(*toplevel transactions*)
wenzelm@31432
   272
use "Isar/proof_node.ML";
wenzelm@31432
   273
use "Isar/toplevel.ML";
wenzelm@31432
   274
wenzelm@56206
   275
(*proof term operations*)
wenzelm@56206
   276
use "Proof/reconstruct.ML";
wenzelm@56206
   277
use "Proof/proof_syntax.ML";
wenzelm@56206
   278
use "Proof/proof_rewrite_rules.ML";
wenzelm@56206
   279
use "Proof/proof_checker.ML";
wenzelm@56206
   280
use "Proof/extraction.ML";
wenzelm@56206
   281
wenzelm@62584
   282
(*Isabelle system*)
wenzelm@62584
   283
if ML_System.platform_is_windows
wenzelm@62584
   284
then use "System/bash_windows.ML"
wenzelm@62584
   285
else use "System/bash.ML";
wenzelm@62584
   286
use "System/isabelle_system.ML";
wenzelm@62584
   287
wenzelm@62845
   288
wenzelm@38271
   289
(*theory documents*)
wenzelm@31432
   290
use "Thy/term_style.ML";
wenzelm@58928
   291
use "Isar/outer_syntax.ML";
wenzelm@31432
   292
use "Thy/thy_output.ML";
wenzelm@61619
   293
use "Thy/document_antiquotations.ML";
wenzelm@49561
   294
use "General/graph_display.ML";
wenzelm@43712
   295
use "Thy/present.ML";
wenzelm@58928
   296
use "pure_syn.ML";
wenzelm@52510
   297
use "PIDE/command.ML";
wenzelm@52865
   298
use "PIDE/query_operation.ML";
wenzelm@56208
   299
use "PIDE/resources.ML";
wenzelm@31432
   300
use "Thy/thy_info.ML";
wenzelm@59086
   301
use "PIDE/session.ML";
wenzelm@59714
   302
use "PIDE/protocol_message.ML";
wenzelm@44185
   303
use "PIDE/document.ML";
wenzelm@31432
   304
wenzelm@31432
   305
(*theory and proof operations*)
wenzelm@31432
   306
use "Isar/isar_cmd.ML";
wenzelm@31432
   307
wenzelm@31432
   308
wenzelm@31432
   309
(* Isabelle/Isar system *)
wenzelm@31432
   310
wenzelm@48681
   311
use "System/command_line.ML";
wenzelm@45029
   312
use "System/system_channel.ML";
wenzelm@52584
   313
use "System/message_channel.ML";
wenzelm@38412
   314
use "System/isabelle_process.ML";
wenzelm@43748
   315
use "System/invoke_scala.ML";
wenzelm@45709
   316
use "PIDE/protocol.ML";
wenzelm@30173
   317
wenzelm@31432
   318
wenzelm@31432
   319
(* miscellaneous tools and packages for Pure Isabelle *)
wenzelm@31432
   320
wenzelm@50686
   321
use "Tools/build.ML";
wenzelm@31432
   322
use "Tools/named_thms.ML";
wenzelm@62665
   323
use "ML/ml_pp.ML";
wenzelm@58928
   324
use "ML/ml_file.ML";
wenzelm@62848
   325
use "ML/ml_antiquotations.ML";
wenzelm@62848
   326
use "ML/ml_thms.ML";
wenzelm@62848
   327
use "Tools/print_operation.ML";
wenzelm@62848
   328
wenzelm@62848
   329
use "Tools/bibtex.ML";
wenzelm@62848
   330
use "Tools/rail.ML";
wenzelm@62848
   331
use "Tools/rule_insts.ML";
wenzelm@62848
   332
use "Tools/thm_deps.ML";
wenzelm@62848
   333
use "Tools/thy_deps.ML";
wenzelm@62848
   334
use "Tools/class_deps.ML";
wenzelm@62848
   335
use "Tools/find_theorems.ML";
wenzelm@62848
   336
use "Tools/find_consts.ML";
wenzelm@62848
   337
use "Tools/simplifier_trace.ML";
wenzelm@62848
   338
use_no_debug "Tools/debugger.ML";
wenzelm@62848
   339
use "Tools/named_theorems.ML";
wenzelm@62848
   340
use "Tools/jedit.ML";
wenzelm@62848
   341
wenzelm@62847
   342
use_thy "Pure";
wenzelm@49862
   343
wenzelm@49862
   344
wenzelm@62846
   345
(* final ML setup *)
wenzelm@48879
   346
wenzelm@62846
   347
use "ML/ml_final.ML";