author | wenzelm |
Thu, 22 Nov 2012 13:21:02 +0100 | |
changeset 50163 | c62ce309dc26 |
parent 49862 | fb2d8ba7d3a9 |
child 50201 | c26369c9eda6 |
permissions | -rw-r--r-- |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
1 |
(** Pure Isabelle **) |
0 | 2 |
|
26109
c69c3559355b
more elaborate structure Distribution (filled-in by makedist);
wenzelm
parents:
25953
diff
changeset
|
3 |
structure Distribution = (*filled-in by makedist*) |
c69c3559355b
more elaborate structure Distribution (filled-in by makedist);
wenzelm
parents:
25953
diff
changeset
|
4 |
struct |
32361
141e5151b918
clarified situation about unidentified repository versions -- in a distributed setting there is not "the" repository;
wenzelm
parents:
32187
diff
changeset
|
5 |
val version = "unidentified repository version"; |
27642
c0db1220b071
structure Distribution: swapped default for is_official;
wenzelm
parents:
27546
diff
changeset
|
6 |
val is_official = false; |
26109
c69c3559355b
more elaborate structure Distribution (filled-in by makedist);
wenzelm
parents:
25953
diff
changeset
|
7 |
end; |
11835 | 8 |
|
23825
e0372eba47b7
simplified loading of ML files -- no static forward references;
wenzelm
parents:
23696
diff
changeset
|
9 |
(*if true then some tools will OMIT some proofs*) |
32738 | 10 |
val quick_and_dirty = Unsynchronized.ref false; |
23825
e0372eba47b7
simplified loading of ML files -- no static forward references;
wenzelm
parents:
23696
diff
changeset
|
11 |
|
12248 | 12 |
print_depth 10; |
0 | 13 |
|
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
14 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
15 |
(* library of general tools *) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
16 |
|
21396 | 17 |
use "General/basics.ML"; |
0 | 18 |
use "library.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
19 |
use "General/print_mode.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
20 |
use "General/alist.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
21 |
use "General/table.ML"; |
43684 | 22 |
|
23 |
use "Concurrent/simple_thread.ML"; |
|
24 |
||
25 |
use "Concurrent/synchronized.ML"; |
|
26 |
if Multithreading.available then () |
|
27 |
else use "Concurrent/synchronized_sequential.ML"; |
|
28 |
||
43746
a41f618c641d
some support for raw messages, which bypass standard Symbol/YXML decoding;
wenzelm
parents:
43729
diff
changeset
|
29 |
use "General/properties.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
30 |
use "General/output.ML"; |
42012
2c3fe3cbebae
structure Timing: covers former start_timing/end_timing and Output.timeit etc;
wenzelm
parents:
41718
diff
changeset
|
31 |
use "General/timing.ML"; |
45670 | 32 |
use "PIDE/markup.ML"; |
33 |
use "PIDE/isabelle_markup.ML"; |
|
45666 | 34 |
fun legacy_feature s = warning (Markup.markup Isabelle_Markup.legacy ("Legacy feature! " ^ s)); |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
35 |
use "General/scan.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
36 |
use "General/source.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
37 |
use "General/symbol.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
38 |
use "General/seq.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
39 |
use "General/position.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
40 |
use "General/symbol_pos.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
41 |
use "General/antiquote.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
42 |
use "ML/ml_lex.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
43 |
use "ML/ml_parse.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
44 |
use "General/secure.ML"; |
32015
7101feb5247e
Support for copy-avoiding functions on pure values, at the cost of readability.
wenzelm
parents:
31476
diff
changeset
|
45 |
(*^^^^^ end of basic ML bootstrap ^^^^^*) |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
46 |
use "General/integer.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
47 |
use "General/stack.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
48 |
use "General/queue.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
49 |
use "General/heap.ML"; |
32015
7101feb5247e
Support for copy-avoiding functions on pure values, at the cost of readability.
wenzelm
parents:
31476
diff
changeset
|
50 |
use "General/same.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
51 |
use "General/ord_list.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
52 |
use "General/balanced_tree.ML"; |
38448
62d16c415019
added functor Linear_Set, based on former adhoc structures in document.ML;
wenzelm
parents:
38418
diff
changeset
|
53 |
use "General/linear_set.ML"; |
43593 | 54 |
use "General/buffer.ML"; |
43791 | 55 |
use "General/pretty.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
56 |
use "General/path.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
57 |
use "General/url.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
58 |
use "General/file.ML"; |
43547
f3a8476285c6
clarified Binding.pretty/print: no quotes, only markup -- Binding.str_of is rendered obsolete;
wenzelm
parents:
42504
diff
changeset
|
59 |
use "General/long_name.ML"; |
f3a8476285c6
clarified Binding.pretty/print: no quotes, only markup -- Binding.str_of is rendered obsolete;
wenzelm
parents:
42504
diff
changeset
|
60 |
use "General/binding.ML"; |
22592 | 61 |
|
35628 | 62 |
use "General/sha1.ML"; |
43948 | 63 |
if ML_System.is_polyml then use "General/sha1_polyml.ML" else (); |
35628 | 64 |
|
44698 | 65 |
use "PIDE/xml.ML"; |
66 |
use "PIDE/yxml.ML"; |
|
50163
c62ce309dc26
more abstract Sendback operations, with explicit id/exec_id properties;
wenzelm
parents:
49862
diff
changeset
|
67 |
use "PIDE/sendback.ML"; |
44698 | 68 |
|
49560 | 69 |
use "General/graph.ML"; |
70 |
||
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
71 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
72 |
(* concurrency within the ML runtime *) |
28120 | 73 |
|
35014
a725ff6ead26
explicit representation of single-assignment variables;
wenzelm
parents:
33538
diff
changeset
|
74 |
use "Concurrent/single_assignment.ML"; |
a725ff6ead26
explicit representation of single-assignment variables;
wenzelm
parents:
33538
diff
changeset
|
75 |
if Multithreading.available then () |
a725ff6ead26
explicit representation of single-assignment variables;
wenzelm
parents:
33538
diff
changeset
|
76 |
else use "Concurrent/single_assignment_sequential.ML"; |
a725ff6ead26
explicit representation of single-assignment variables;
wenzelm
parents:
33538
diff
changeset
|
77 |
|
47980
c81801f881b3
simplified Poly/ML setup -- 5.3.0 is now the common base-line;
wenzelm
parents:
47979
diff
changeset
|
78 |
if ML_System.is_polyml then use "Concurrent/time_limit.ML" else (); |
41710 | 79 |
|
40748
591b6778d076
removed bash from ML system bootstrap, and past the Secure ML barrier;
wenzelm
parents:
40743
diff
changeset
|
80 |
if Multithreading.available |
591b6778d076
removed bash from ML system bootstrap, and past the Secure ML barrier;
wenzelm
parents:
40743
diff
changeset
|
81 |
then use "Concurrent/bash.ML" |
591b6778d076
removed bash from ML system bootstrap, and past the Secure ML barrier;
wenzelm
parents:
40743
diff
changeset
|
82 |
else use "Concurrent/bash_sequential.ML"; |
591b6778d076
removed bash from ML system bootstrap, and past the Secure ML barrier;
wenzelm
parents:
40743
diff
changeset
|
83 |
|
44247 | 84 |
use "Concurrent/par_exn.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
85 |
use "Concurrent/task_queue.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
86 |
use "Concurrent/future.ML"; |
32840 | 87 |
|
32815
1a5e364584ae
separate concurrent/sequential versions of lazy evaluation;
wenzelm
parents:
32738
diff
changeset
|
88 |
use "Concurrent/lazy.ML"; |
1a5e364584ae
separate concurrent/sequential versions of lazy evaluation;
wenzelm
parents:
32738
diff
changeset
|
89 |
if Multithreading.available then () |
1a5e364584ae
separate concurrent/sequential versions of lazy evaluation;
wenzelm
parents:
32738
diff
changeset
|
90 |
else use "Concurrent/lazy_sequential.ML"; |
32840 | 91 |
|
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
92 |
use "Concurrent/par_list.ML"; |
32815
1a5e364584ae
separate concurrent/sequential versions of lazy evaluation;
wenzelm
parents:
32738
diff
changeset
|
93 |
if Multithreading.available then () |
32816
5db89f8d44f3
more official status of sequential implementations;
wenzelm
parents:
32815
diff
changeset
|
94 |
else use "Concurrent/par_list_sequential.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
95 |
|
44247 | 96 |
use "Concurrent/mailbox.ML"; |
32840 | 97 |
use "Concurrent/cache.ML"; |
98 |
||
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
99 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
100 |
(* fundamental structures *) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
101 |
|
20075 | 102 |
use "name.ML"; |
0 | 103 |
use "term.ML"; |
28404 | 104 |
use "context.ML"; |
47813 | 105 |
use "context_position.ML"; |
39508
dfacdb01e1ec
simplified some internal flags using Config.T instead of full-blown Proof_Data;
wenzelm
parents:
39290
diff
changeset
|
106 |
use "config.ML"; |
48456
d8ff14f44a40
added ML version of stand-alone options, with XML.encode/decode operations (unidirectional from Scala to ML);
wenzelm
parents:
48418
diff
changeset
|
107 |
use "System/options.ML"; |
19 | 108 |
|
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
109 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
110 |
(* inner syntax *) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
111 |
|
42264 | 112 |
use "Syntax/term_position.ML"; |
113 |
use "Syntax/lexicon.ML"; |
|
22679 | 114 |
use "Syntax/ast.ML"; |
42288
2074b31650e6
discontinued special treatment of structure Syntax_Ext (formerly Syn_Ext);
wenzelm
parents:
42284
diff
changeset
|
115 |
use "Syntax/syntax_ext.ML"; |
22679 | 116 |
use "Syntax/parser.ML"; |
42284 | 117 |
use "Syntax/syntax_trans.ML"; |
22679 | 118 |
use "Syntax/mixfix.ML"; |
119 |
use "Syntax/printer.ML"; |
|
120 |
use "Syntax/syntax.ML"; |
|
121 |
||
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
122 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
123 |
(* core of tactical proof system *) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
124 |
|
42382
dcd983ee2c29
provide structure Syntax early (before structure Type), back-patch check/uncheck later;
wenzelm
parents:
42357
diff
changeset
|
125 |
use "term_ord.ML"; |
dcd983ee2c29
provide structure Syntax early (before structure Type), back-patch check/uncheck later;
wenzelm
parents:
42357
diff
changeset
|
126 |
use "term_subst.ML"; |
43729 | 127 |
use "term_xml.ML"; |
42382
dcd983ee2c29
provide structure Syntax early (before structure Type), back-patch check/uncheck later;
wenzelm
parents:
42357
diff
changeset
|
128 |
use "General/name_space.ML"; |
dcd983ee2c29
provide structure Syntax early (before structure Type), back-patch check/uncheck later;
wenzelm
parents:
42357
diff
changeset
|
129 |
use "sorts.ML"; |
dcd983ee2c29
provide structure Syntax early (before structure Type), back-patch check/uncheck later;
wenzelm
parents:
42357
diff
changeset
|
130 |
use "type.ML"; |
dcd983ee2c29
provide structure Syntax early (before structure Type), back-patch check/uncheck later;
wenzelm
parents:
42357
diff
changeset
|
131 |
use "logic.ML"; |
dcd983ee2c29
provide structure Syntax early (before structure Type), back-patch check/uncheck later;
wenzelm
parents:
42357
diff
changeset
|
132 |
use "Syntax/simple_syntax.ML"; |
30559
e5987a7ac5df
turned structure NetRules into general Item_Net, which is loaded earlier;
wenzelm
parents:
30173
diff
changeset
|
133 |
use "net.ML"; |
e5987a7ac5df
turned structure NetRules into general Item_Net, which is loaded earlier;
wenzelm
parents:
30173
diff
changeset
|
134 |
use "item_net.ML"; |
18934 | 135 |
use "envir.ML"; |
18059 | 136 |
use "consts.ML"; |
24257 | 137 |
use "primitive_defs.ML"; |
27546 | 138 |
use "defs.ML"; |
0 | 139 |
use "sign.ML"; |
43795
ca5896a836ba
recovered some runtime sharing from d6b6c74a8bcf, without the global memory bottleneck;
wenzelm
parents:
43794
diff
changeset
|
140 |
use "term_sharing.ML"; |
0 | 141 |
use "pattern.ML"; |
142 |
use "unify.ML"; |
|
1528 | 143 |
use "theory.ML"; |
24664 | 144 |
use "interpretation.ML"; |
11511 | 145 |
use "proofterm.ML"; |
0 | 146 |
use "thm.ML"; |
22361 | 147 |
use "more_thm.ML"; |
26279 | 148 |
use "facts.ML"; |
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39508
diff
changeset
|
149 |
use "global_theory.ML"; |
3986 | 150 |
use "pure_thy.ML"; |
0 | 151 |
use "drule.ML"; |
22233 | 152 |
use "morphism.ML"; |
19898 | 153 |
use "variable.ML"; |
24833 | 154 |
use "conv.ML"; |
32187 | 155 |
use "goal_display.ML"; |
32169 | 156 |
use "tactical.ML"; |
1582 | 157 |
use "search.ML"; |
21708 | 158 |
use "tactic.ML"; |
41228
e1fce873b814
renamed structure MetaSimplifier to raw_Simplifer, to emphasize its meaning;
wenzelm
parents:
40748
diff
changeset
|
159 |
use "raw_simplifier.ML"; |
19417 | 160 |
use "conjunction.ML"; |
20225 | 161 |
use "assumption.ML"; |
32089
568a23753e3a
moved pretty_goals etc. to Display_Goal (required by tracing tacticals);
wenzelm
parents:
32015
diff
changeset
|
162 |
use "display.ML"; |
0 | 163 |
|
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
164 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
165 |
(* Isar -- Intelligible Semi-Automated Reasoning *) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
166 |
|
49041
9edfd36a0355
more informative error message from failed goal forks (violating old-style TTY protocol!);
wenzelm
parents:
48990
diff
changeset
|
167 |
(*ML support*) |
9edfd36a0355
more informative error message from failed goal forks (violating old-style TTY protocol!);
wenzelm
parents:
48990
diff
changeset
|
168 |
use "ML/ml_syntax.ML"; |
9edfd36a0355
more informative error message from failed goal forks (violating old-style TTY protocol!);
wenzelm
parents:
48990
diff
changeset
|
169 |
use "ML/ml_env.ML"; |
9edfd36a0355
more informative error message from failed goal forks (violating old-style TTY protocol!);
wenzelm
parents:
48990
diff
changeset
|
170 |
use "Isar/runtime.ML"; |
9edfd36a0355
more informative error message from failed goal forks (violating old-style TTY protocol!);
wenzelm
parents:
48990
diff
changeset
|
171 |
use "ML/ml_compiler.ML"; |
9edfd36a0355
more informative error message from failed goal forks (violating old-style TTY protocol!);
wenzelm
parents:
48990
diff
changeset
|
172 |
if ML_System.is_polyml then use "ML/ml_compiler_polyml.ML" else (); |
9edfd36a0355
more informative error message from failed goal forks (violating old-style TTY protocol!);
wenzelm
parents:
48990
diff
changeset
|
173 |
|
9edfd36a0355
more informative error message from failed goal forks (violating old-style TTY protocol!);
wenzelm
parents:
48990
diff
changeset
|
174 |
use "goal.ML"; |
9edfd36a0355
more informative error message from failed goal forks (violating old-style TTY protocol!);
wenzelm
parents:
48990
diff
changeset
|
175 |
|
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
176 |
(*proof context*) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
177 |
use "Isar/object_logic.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
178 |
use "Isar/rule_cases.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
179 |
use "Isar/auto_bind.ML"; |
42241
dd8029f71e1c
separate module for standard implementation of inner syntax operations;
wenzelm
parents:
42240
diff
changeset
|
180 |
use "type_infer.ML"; |
42240
5a4d30cd47a7
moved Isar/local_syntax.ML to Syntax/local_syntax.ML;
wenzelm
parents:
42012
diff
changeset
|
181 |
use "Syntax/local_syntax.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
182 |
use "Isar/proof_context.ML"; |
42405
13ecdb3057d8
split Type_Infer into early and late part, after Proof_Context;
wenzelm
parents:
42383
diff
changeset
|
183 |
use "type_infer_context.ML"; |
42243 | 184 |
use "Syntax/syntax_phases.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
185 |
use "Isar/local_defs.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
186 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
187 |
(*proof term operations*) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
188 |
use "Proof/reconstruct.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
189 |
use "Proof/proof_syntax.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
190 |
use "Proof/proof_rewrite_rules.ML"; |
44062 | 191 |
use "Proof/proof_checker.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
192 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
193 |
(*outer syntax*) |
36959
f5417836dbea
renamed structure OuterLex to Token and type token to Token.T, keeping legacy aliases for some time;
wenzelm
parents:
36955
diff
changeset
|
194 |
use "Isar/token.ML"; |
36949
080e85d46108
renamed structure OuterKeyword to Keyword and OuterParse to Parse, keeping the old names as legacy aliases for some time;
wenzelm
parents:
35949
diff
changeset
|
195 |
use "Isar/keyword.ML"; |
080e85d46108
renamed structure OuterKeyword to Keyword and OuterParse to Parse, keeping the old names as legacy aliases for some time;
wenzelm
parents:
35949
diff
changeset
|
196 |
use "Isar/parse.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
197 |
use "Isar/args.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
198 |
use "ML/ml_context.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
199 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
200 |
(*theory sources*) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
201 |
use "Thy/thy_header.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
202 |
use "Thy/html.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
203 |
use "Thy/latex.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
204 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
205 |
(*basic proof engine*) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
206 |
use "Isar/proof_display.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
207 |
use "Isar/attrib.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
208 |
use "ML/ml_antiquote.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
209 |
use "Isar/context_rules.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
210 |
use "Isar/skip_proof.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
211 |
use "Isar/method.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
212 |
use "Isar/proof.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
213 |
use "Isar/element.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
214 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
215 |
(*derived theory and proof elements*) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
216 |
use "Isar/calculation.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
217 |
use "Isar/obtain.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
218 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
219 |
(*local theories and targets*) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
220 |
use "Isar/local_theory.ML"; |
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38307
diff
changeset
|
221 |
use "Isar/locale.ML"; |
38307
0028571ade2d
split off structure Generic_Target into separate file
haftmann
parents:
38150
diff
changeset
|
222 |
use "Isar/generic_target.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
223 |
use "Isar/overloading.ML"; |
35669
a91c7ed801b8
added ProofContext.tsig_of -- proforma version for local name space only, not logical content;
wenzelm
parents:
35628
diff
changeset
|
224 |
use "axclass.ML"; |
38379
67d71449e85b
more convenient split of class modules: class and class_declaration
haftmann
parents:
38350
diff
changeset
|
225 |
use "Isar/class.ML"; |
38350
480b2de9927c
renamed Theory_Target to the more appropriate Named_Target
haftmann
parents:
38343
diff
changeset
|
226 |
use "Isar/named_target.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
227 |
use "Isar/expression.ML"; |
38379
67d71449e85b
more convenient split of class modules: class and class_declaration
haftmann
parents:
38350
diff
changeset
|
228 |
use "Isar/class_declaration.ML"; |
47057 | 229 |
use "Isar/bundle.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
230 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
231 |
use "simplifier.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
232 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
233 |
(*executable theory content*) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
234 |
use "Isar/code.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
235 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
236 |
(*specifications*) |
36952
338c3f8229e4
renamed structure SpecParse to Parse_Spec, keeping the old name as alias for some time;
wenzelm
parents:
36951
diff
changeset
|
237 |
use "Isar/parse_spec.ML"; |
33374
8099185908a4
Rules that characterize functional/relational specifications.
wenzelm
parents:
32840
diff
changeset
|
238 |
use "Isar/spec_rules.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
239 |
use "Isar/specification.ML"; |
35626 | 240 |
use "Isar/typedecl.ML"; |
45592 | 241 |
use "ML/ml_thms.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
242 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
243 |
(*toplevel transactions*) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
244 |
use "Isar/proof_node.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
245 |
use "Isar/toplevel.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
246 |
|
38271
36187e8443dd
Isar_Document command input via native Isabelle_Process commands, using YXML and XML_Data representation;
wenzelm
parents:
38266
diff
changeset
|
247 |
(*theory documents*) |
40743 | 248 |
use "System/isabelle_system.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
249 |
use "Thy/term_style.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
250 |
use "Thy/thy_output.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
251 |
use "Thy/thy_syntax.ML"; |
48771
2ea997196d04
clarified Command.range vs. Command.proper_range according to Scala version, which is potentially relevant for command status markup;
wenzelm
parents:
48732
diff
changeset
|
252 |
use "PIDE/command.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
253 |
use "Isar/outer_syntax.ML"; |
49561 | 254 |
use "General/graph_display.ML"; |
43712
3c2c912af2ef
moved Outer_Syntax.load_thy to Thy_Load.load_thy;
wenzelm
parents:
43684
diff
changeset
|
255 |
use "Thy/present.ML"; |
3c2c912af2ef
moved Outer_Syntax.load_thy to Thy_Load.load_thy;
wenzelm
parents:
43684
diff
changeset
|
256 |
use "Thy/thy_load.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
257 |
use "Thy/thy_info.ML"; |
44185 | 258 |
use "PIDE/document.ML"; |
42504
869c3f6f2d6e
railroad diagrams in LaTeX as document antiquotation;
wenzelm
parents:
42405
diff
changeset
|
259 |
use "Thy/rail.ML"; |
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
260 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
261 |
(*theory and proof operations*) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
262 |
use "Isar/rule_insts.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
263 |
use "Thy/thm_deps.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
264 |
use "Isar/isar_cmd.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
265 |
|
20207 | 266 |
use "subgoal.ML"; |
5834 | 267 |
|
13402 | 268 |
use "Proof/extraction.ML"; |
11511 | 269 |
|
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
270 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
271 |
(* Isabelle/Isar system *) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
272 |
|
30173
eabece26b89b
moved isabelle_process.ML, isabelle_process.scala, isar.ML, session.ML to Pure/System/ (together with associated Isar commands);
wenzelm
parents:
29269
diff
changeset
|
273 |
use "System/session.ML"; |
48681
181b91e1d1c1
prefer general Command_Line.tool wrapper (cf. Scala version);
wenzelm
parents:
48646
diff
changeset
|
274 |
use "System/command_line.ML"; |
48418 | 275 |
use "System/build.ML"; |
45029
63144ea111f7
abstract System_Channel in ML (cf. Scala version);
wenzelm
parents:
45026
diff
changeset
|
276 |
use "System/system_channel.ML"; |
38412
c23f3abbf42d
moved isar_document.ML/scala to Pure/System/ -- side-by-side with isar.ML;
wenzelm
parents:
38379
diff
changeset
|
277 |
use "System/isabelle_process.ML"; |
43748 | 278 |
use "System/invoke_scala.ML"; |
45709
87017fcbad83
clarified modules (again) -- NB: both Document and Protocol are specific to this particular prover;
wenzelm
parents:
45672
diff
changeset
|
279 |
use "PIDE/protocol.ML"; |
30173
eabece26b89b
moved isabelle_process.ML, isabelle_process.scala, isar.ML, session.ML to Pure/System/ (together with associated Isar commands);
wenzelm
parents:
29269
diff
changeset
|
280 |
use "System/isar.ML"; |
eabece26b89b
moved isabelle_process.ML, isabelle_process.scala, isar.ML, session.ML to Pure/System/ (together with associated Isar commands);
wenzelm
parents:
29269
diff
changeset
|
281 |
|
31432
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
282 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
283 |
(* miscellaneous tools and packages for Pure Isabelle *) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
284 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
285 |
use "Tools/named_thms.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
286 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
287 |
use "Tools/xml_syntax.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
288 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
289 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
290 |
(* configuration for Proof General *) |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
291 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
292 |
use "ProofGeneral/pgip_types.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
293 |
use "ProofGeneral/pgml.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
294 |
use "ProofGeneral/pgip_markup.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
295 |
use "ProofGeneral/pgip_input.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
296 |
use "ProofGeneral/pgip_output.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
297 |
use "ProofGeneral/pgip.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
298 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
299 |
use "ProofGeneral/pgip_isabelle.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
300 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
301 |
use "ProofGeneral/preferences.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
302 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
303 |
use "ProofGeneral/pgip_parser.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
304 |
|
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
305 |
use "ProofGeneral/proof_general_pgip.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
306 |
use "ProofGeneral/proof_general_emacs.ML"; |
9858f32f9569
just one ROOT.ML without any cd or ".." -- simplifies ML environment references to bootstrap sources;
wenzelm
parents:
31335
diff
changeset
|
307 |
|
16781 | 308 |
|
48732
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
309 |
(* ML toplevel pretty printing *) |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
310 |
|
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
311 |
toplevel_pp ["Pretty", "T"] "(fn _: Pretty.T => Pretty.str \"<pretty>\")"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
312 |
toplevel_pp ["Task_Queue", "task"] "Pretty.str o Task_Queue.str_of_task"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
313 |
toplevel_pp ["Task_Queue", "group"] "Pretty.str o Task_Queue.str_of_group"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
314 |
toplevel_pp ["Position", "T"] "Pretty.position"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
315 |
toplevel_pp ["Binding", "binding"] "Pretty.str o Binding.print"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
316 |
toplevel_pp ["Thm", "thm"] "Proof_Display.pp_thm"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
317 |
toplevel_pp ["Thm", "cterm"] "Proof_Display.pp_cterm"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
318 |
toplevel_pp ["Thm", "ctyp"] "Proof_Display.pp_ctyp"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
319 |
toplevel_pp ["Context", "theory"] "Context.pretty_thy"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
320 |
toplevel_pp ["Context", "theory_ref"] "Context.pretty_thy o Theory.deref"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
321 |
toplevel_pp ["Context", "Proof", "context"] "Proof_Display.pp_context"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
322 |
toplevel_pp ["Ast", "ast"] "Ast.pretty_ast"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
323 |
toplevel_pp ["Path", "T"] "Path.pretty"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
324 |
toplevel_pp ["SHA1", "digest"] "Pretty.str o quote o SHA1.rep"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
325 |
toplevel_pp ["Proof", "state"] "(fn _: Proof.state => Pretty.str \"<Proof.state>\")"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
326 |
toplevel_pp ["Toplevel", "state"] "Toplevel.pretty_abstract"; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
327 |
|
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
328 |
if ML_System.is_polyml then use "ML/install_pp_polyml.ML" else (); |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
329 |
|
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
330 |
|
49862
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
331 |
(* the Pure theory *) |
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
332 |
|
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
333 |
use "pure_syn.ML"; |
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
334 |
Toplevel.program (fn () => Thy_Info.use_thy ("Pure", Position.none)); |
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
335 |
Context.set_thread_data NONE; |
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
336 |
structure Pure = struct val thy = Thy_Info.get_theory "Pure" end; |
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
337 |
|
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
338 |
toplevel_pp ["typ"] "Proof_Display.pp_typ Pure.thy"; |
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
339 |
|
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
340 |
use "ProofGeneral/pgip_tests.ML"; |
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
341 |
|
fb2d8ba7d3a9
more friendly handling of Pure.thy bootstrap errors;
wenzelm
parents:
49561
diff
changeset
|
342 |
|
48879 | 343 |
(* ML toplevel commands *) |
344 |
||
345 |
fun use name = Toplevel.program (fn () => Thy_Load.use_ml (Path.explode name)); |
|
346 |
||
48927
ef462b5558eb
theory def/ref position reports, which enable hyperlinks etc.;
wenzelm
parents:
48879
diff
changeset
|
347 |
fun use_thys args = Toplevel.program (fn () => Thy_Info.use_thys (map (rpair Position.none) args)); |
ef462b5558eb
theory def/ref position reports, which enable hyperlinks etc.;
wenzelm
parents:
48879
diff
changeset
|
348 |
val use_thy = use_thys o single; |
48732
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
349 |
|
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
350 |
val cd = File.cd o Path.explode; |
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
351 |
|
f04320479ff9
simplified Pure bootstrap -- separate pure_setup.ML was required for Alice/ML at some point;
wenzelm
parents:
48681
diff
changeset
|
352 |
Proofterm.proofs := 0; |
48879 | 353 |
Multithreading.max_threads := 0; |
30639
fe40d740d7c1
ML/ml_test.ML: test of advanced ML compiler invocation in Poly/ML 5.3;
wenzelm
parents:
30559
diff
changeset
|
354 |