author | wenzelm |
Wed, 14 Mar 2012 11:45:16 +0100 | |
changeset 46916 | e7ea35b41e2d |
parent 45413 | 117ff038f8f7 |
child 46992 | eeea81b86b70 |
permissions | -rw-r--r-- |
41959 | 1 |
(* Title: Pure/Isar/generic_target.ML |
38309 | 2 |
Author: Makarius |
3 |
Author: Florian Haftmann, TU Muenchen |
|
4 |
||
5 |
Common target infrastructure. |
|
6 |
*) |
|
7 |
||
8 |
signature GENERIC_TARGET = |
|
9 |
sig |
|
40782 | 10 |
val define: (((binding * typ) * mixfix) * (binding * term) -> |
11 |
term list * term list -> local_theory -> (term * thm) * local_theory) -> |
|
12 |
(binding * mixfix) * (Attrib.binding * term) -> local_theory -> |
|
13 |
(term * (string * thm)) * local_theory |
|
14 |
val notes: (string -> (Attrib.binding * (thm list * Args.src list) list) list -> |
|
15 |
(Attrib.binding * (thm list * Args.src list) list) list -> local_theory -> local_theory) -> |
|
16 |
string -> (Attrib.binding * (thm list * Args.src list) list) list -> local_theory -> |
|
17 |
(string * thm list) list * local_theory |
|
18 |
val abbrev: (string * bool -> binding * mixfix -> term * term -> |
|
19 |
term list -> local_theory -> local_theory) -> |
|
20 |
string * bool -> (binding * mixfix) * term -> local_theory -> |
|
21 |
(term * term) * local_theory |
|
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
22 |
|
45310 | 23 |
val theory_declaration: declaration -> local_theory -> local_theory |
40782 | 24 |
val theory_foundation: ((binding * typ) * mixfix) * (binding * term) -> |
25 |
term list * term list -> local_theory -> (term * thm) * local_theory |
|
26 |
val theory_notes: string -> (Attrib.binding * (thm list * Args.src list) list) list -> |
|
27 |
local_theory -> local_theory |
|
28 |
val theory_abbrev: Syntax.mode -> (binding * mixfix) * term -> local_theory -> local_theory |
|
45353 | 29 |
end |
38309 | 30 |
|
31 |
structure Generic_Target: GENERIC_TARGET = |
|
32 |
struct |
|
33 |
||
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
34 |
(** lifting primitive to target operations **) |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
35 |
|
38312
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
36 |
(* mixfix syntax *) |
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
37 |
|
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
38 |
fun check_mixfix ctxt (b, extra_tfrees) mx = |
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
39 |
if null extra_tfrees then mx |
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
40 |
else |
38831
4933a3dfd745
more careful treatment of context visibility flag wrt. spurious warnings;
wenzelm
parents:
38757
diff
changeset
|
41 |
(Context_Position.if_visible ctxt warning |
42381
309ec68442c6
added Binding.print convenience, which includes quote already;
wenzelm
parents:
42375
diff
changeset
|
42 |
("Additional type variable(s) in specification of " ^ Binding.print b ^ ": " ^ |
38312
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
43 |
commas (map (Syntax.string_of_typ ctxt o TFree) (sort_wrt #1 extra_tfrees)) ^ |
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
44 |
(if mx = NoSyn then "" |
42287
d98eb048a2e4
discontinued special treatment of structure Mixfix;
wenzelm
parents:
41959
diff
changeset
|
45 |
else "\nDropping mixfix syntax " ^ Pretty.string_of (Mixfix.pretty_mixfix mx))); |
38312
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
46 |
NoSyn); |
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
47 |
|
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
48 |
|
38309 | 49 |
(* define *) |
50 |
||
46916
e7ea35b41e2d
Local_Theory.define no longer hard-wires default theorem name -- targets/packages need to take care of it;
wenzelm
parents:
45413
diff
changeset
|
51 |
fun define foundation ((b, mx), ((b_def, atts), rhs)) lthy = |
38309 | 52 |
let |
42360 | 53 |
val thy = Proof_Context.theory_of lthy; |
54 |
val thy_ctxt = Proof_Context.init_global thy; |
|
38309 | 55 |
|
56 |
(*term and type parameters*) |
|
57 |
val crhs = Thm.cterm_of thy rhs; |
|
45407
a83574606719
more specific treatment of defines/assumes -- avoid normalizing defs by themselves (NB: locale specifications and Local_Theory.define may lead to arbitrary mixture);
wenzelm
parents:
45390
diff
changeset
|
58 |
val ((defs, _), rhs') = Local_Defs.export_cterm lthy thy_ctxt crhs ||> Thm.term_of; |
41228
e1fce873b814
renamed structure MetaSimplifier to raw_Simplifer, to emphasize its meaning;
wenzelm
parents:
40782
diff
changeset
|
59 |
val rhs_conv = Raw_Simplifier.rewrite true defs crhs; |
38309 | 60 |
|
61 |
val xs = Variable.add_fixed (Local_Theory.target_of lthy) rhs' []; |
|
62 |
val T = Term.fastype_of rhs; |
|
63 |
val tfreesT = Term.add_tfreesT T (fold (Term.add_tfreesT o #2) xs []); |
|
64 |
val extra_tfrees = rev (subtract (op =) tfreesT (Term.add_tfrees rhs [])); |
|
38312
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
65 |
val mx' = check_mixfix lthy (b, extra_tfrees) mx; |
38309 | 66 |
|
67 |
val type_params = map (Logic.mk_type o TFree) extra_tfrees; |
|
42488
4638622bcaa1
reorganized fixes as specialized (global) name space;
wenzelm
parents:
42381
diff
changeset
|
68 |
val target_ctxt = Local_Theory.target_of lthy; |
38309 | 69 |
val term_params = |
42488
4638622bcaa1
reorganized fixes as specialized (global) name space;
wenzelm
parents:
42381
diff
changeset
|
70 |
filter (Variable.is_fixed target_ctxt o #1) xs |
4638622bcaa1
reorganized fixes as specialized (global) name space;
wenzelm
parents:
42381
diff
changeset
|
71 |
|> sort (Variable.fixed_ord target_ctxt o pairself #1) |
4638622bcaa1
reorganized fixes as specialized (global) name space;
wenzelm
parents:
42381
diff
changeset
|
72 |
|> map Free; |
38309 | 73 |
val params = type_params @ term_params; |
74 |
||
75 |
val U = map Term.fastype_of params ---> T; |
|
76 |
||
77 |
(*foundation*) |
|
45353 | 78 |
val ((lhs', global_def), lthy2) = lthy |
79 |
|> foundation (((b, U), mx'), (b_def, rhs')) (type_params, term_params); |
|
38309 | 80 |
|
81 |
(*local definition*) |
|
38315 | 82 |
val ((lhs, local_def), lthy3) = lthy2 |
38309 | 83 |
|> Local_Defs.add_def ((b, NoSyn), lhs'); |
38315 | 84 |
val def = Local_Defs.trans_terms lthy3 |
38309 | 85 |
[(*c == global.c xs*) local_def, |
86 |
(*global.c xs == rhs'*) global_def, |
|
87 |
(*rhs' == rhs*) Thm.symmetric rhs_conv]; |
|
88 |
||
89 |
(*note*) |
|
38315 | 90 |
val ([(res_name, [res])], lthy4) = lthy3 |
38311 | 91 |
|> Local_Theory.notes_kind "" [((b_def, atts), [([def], [])])]; |
38315 | 92 |
in ((lhs, (res_name, res)), lthy4) end; |
38309 | 93 |
|
94 |
||
95 |
(* notes *) |
|
96 |
||
97 |
fun import_export_proof ctxt (name, raw_th) = |
|
98 |
let |
|
42360 | 99 |
val thy = Proof_Context.theory_of ctxt; |
100 |
val thy_ctxt = Proof_Context.init_global thy; |
|
38309 | 101 |
val certT = Thm.ctyp_of thy; |
102 |
val cert = Thm.cterm_of thy; |
|
103 |
||
104 |
(*export assumes/defines*) |
|
105 |
val th = Goal.norm_result raw_th; |
|
45407
a83574606719
more specific treatment of defines/assumes -- avoid normalizing defs by themselves (NB: locale specifications and Local_Theory.define may lead to arbitrary mixture);
wenzelm
parents:
45390
diff
changeset
|
106 |
val ((defs, asms), th') = Local_Defs.export ctxt thy_ctxt th; |
a83574606719
more specific treatment of defines/assumes -- avoid normalizing defs by themselves (NB: locale specifications and Local_Theory.define may lead to arbitrary mixture);
wenzelm
parents:
45390
diff
changeset
|
107 |
val asms' = map (Raw_Simplifier.rewrite_rule defs) asms; |
38309 | 108 |
|
109 |
(*export fixes*) |
|
110 |
val tfrees = map TFree (Thm.fold_terms Term.add_tfrees th' []); |
|
111 |
val frees = map Free (Thm.fold_terms Term.add_frees th' []); |
|
45352 | 112 |
val (th'' :: vs) = |
113 |
(th' :: map (Drule.mk_term o cert) (map Logic.mk_type tfrees @ frees)) |
|
38309 | 114 |
|> Variable.export ctxt thy_ctxt |
115 |
|> Drule.zero_var_indexes_list; |
|
116 |
||
117 |
(*thm definition*) |
|
45413
117ff038f8f7
disabled Thm.compress (again) -- costs for building tables tend to be higher than potential benefit;
wenzelm
parents:
45407
diff
changeset
|
118 |
val result = Global_Theory.name_thm true true name th''; |
38309 | 119 |
|
120 |
(*import fixes*) |
|
121 |
val (tvars, vars) = |
|
122 |
chop (length tfrees) (map (Thm.term_of o Drule.dest_term) vs) |
|
123 |
|>> map Logic.dest_type; |
|
124 |
||
125 |
val instT = map_filter (fn (TVar v, T) => SOME (v, T) | _ => NONE) (tvars ~~ tfrees); |
|
126 |
val inst = filter (is_Var o fst) (vars ~~ frees); |
|
127 |
val cinstT = map (pairself certT o apfst TVar) instT; |
|
128 |
val cinst = map (pairself (cert o Term.map_types (Term_Subst.instantiateT instT))) inst; |
|
129 |
val result' = Thm.instantiate (cinstT, cinst) result; |
|
130 |
||
131 |
(*import assumes/defines*) |
|
132 |
val result'' = |
|
45407
a83574606719
more specific treatment of defines/assumes -- avoid normalizing defs by themselves (NB: locale specifications and Local_Theory.define may lead to arbitrary mixture);
wenzelm
parents:
45390
diff
changeset
|
133 |
(fold (curry op COMP) asms' result' |
a83574606719
more specific treatment of defines/assumes -- avoid normalizing defs by themselves (NB: locale specifications and Local_Theory.define may lead to arbitrary mixture);
wenzelm
parents:
45390
diff
changeset
|
134 |
handle THM _ => raise THM ("Failed to re-import result", 0, result' :: asms')) |
a83574606719
more specific treatment of defines/assumes -- avoid normalizing defs by themselves (NB: locale specifications and Local_Theory.define may lead to arbitrary mixture);
wenzelm
parents:
45390
diff
changeset
|
135 |
|> Local_Defs.contract ctxt defs (Thm.cprop_of th) |
38309 | 136 |
|> Goal.norm_result |
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
38831
diff
changeset
|
137 |
|> Global_Theory.name_thm false false name; |
38309 | 138 |
|
139 |
in (result'', result) end; |
|
140 |
||
141 |
fun notes target_notes kind facts lthy = |
|
142 |
let |
|
42360 | 143 |
val thy = Proof_Context.theory_of lthy; |
38309 | 144 |
val facts' = facts |
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
38831
diff
changeset
|
145 |
|> map (fn (a, bs) => (a, Global_Theory.burrow_fact (Global_Theory.name_multi |
38309 | 146 |
(Local_Theory.full_name lthy (fst a))) bs)) |
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
38831
diff
changeset
|
147 |
|> Global_Theory.map_facts (import_export_proof lthy); |
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
38831
diff
changeset
|
148 |
val local_facts = Global_Theory.map_facts #1 facts'; |
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
38831
diff
changeset
|
149 |
val global_facts = Global_Theory.map_facts #2 facts'; |
38309 | 150 |
in |
151 |
lthy |
|
152 |
|> target_notes kind global_facts local_facts |
|
45390
e29521ef9059
tuned signature -- avoid spurious Thm.mixed_attribute;
wenzelm
parents:
45353
diff
changeset
|
153 |
|> Proof_Context.note_thmss kind (Attrib.map_facts (map (Attrib.attribute_i thy)) local_facts) |
38309 | 154 |
end; |
155 |
||
156 |
||
157 |
(* abbrev *) |
|
158 |
||
159 |
fun abbrev target_abbrev prmode ((b, mx), t) lthy = |
|
160 |
let |
|
42360 | 161 |
val thy_ctxt = Proof_Context.init_global (Proof_Context.theory_of lthy); |
38309 | 162 |
val target_ctxt = Local_Theory.target_of lthy; |
163 |
||
164 |
val t' = Assumption.export_term lthy target_ctxt t; |
|
165 |
val xs = map Free (rev (Variable.add_fixed target_ctxt t' [])); |
|
166 |
val u = fold_rev lambda xs t'; |
|
167 |
||
168 |
val extra_tfrees = |
|
169 |
subtract (op =) (Term.add_tfreesT (Term.fastype_of u) []) (Term.add_tfrees u []); |
|
38312
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
170 |
val mx' = check_mixfix lthy (b, extra_tfrees) mx; |
38309 | 171 |
|
172 |
val global_rhs = |
|
173 |
singleton (Variable.export_terms (Variable.declare_term u target_ctxt) thy_ctxt) u; |
|
174 |
in |
|
175 |
lthy |
|
38312
9dd57db3c0f2
moved extra_tfrees check for mixfix syntax to Generic_Target
haftmann
parents:
38311
diff
changeset
|
176 |
|> target_abbrev prmode (b, mx') (global_rhs, t') xs |
42360 | 177 |
|> Proof_Context.add_abbrev Print_Mode.internal (b, t) |> snd |
38309 | 178 |
|> Local_Defs.fixed_abbrev ((b, NoSyn), t) |
179 |
end; |
|
180 |
||
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
181 |
|
45352 | 182 |
|
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
183 |
(** primitive theory operations **) |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
184 |
|
45310 | 185 |
fun theory_declaration decl lthy = |
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
186 |
let |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
187 |
val global_decl = Morphism.form |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
188 |
(Morphism.transform (Local_Theory.global_morphism lthy) decl); |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
189 |
in |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
190 |
lthy |
38757
2b3e054ae6fc
renamed Local_Theory.theory(_result) to Local_Theory.background_theory(_result) to emphasize that this belongs to the infrastructure and is rarely appropriate in user-space tools;
wenzelm
parents:
38341
diff
changeset
|
191 |
|> Local_Theory.background_theory (Context.theory_map global_decl) |
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
192 |
|> Local_Theory.target (Context.proof_map global_decl) |
45298
aa35859c8741
uniform treatment of syntax declaration wrt. aux. context (NB: notation avoids duplicate mixfix internally);
wenzelm
parents:
45293
diff
changeset
|
193 |
|> Context.proof_map (Morphism.form decl) |
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
194 |
end; |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
195 |
|
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
196 |
fun theory_foundation (((b, U), mx), (b_def, rhs)) (type_params, term_params) lthy = |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
197 |
let |
42375
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
42360
diff
changeset
|
198 |
val (const, lthy2) = lthy |
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
42360
diff
changeset
|
199 |
|> Local_Theory.background_theory_result (Sign.declare_const lthy ((b, U), mx)); |
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
200 |
val lhs = list_comb (const, type_params @ term_params); |
42375
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
42360
diff
changeset
|
201 |
val ((_, def), lthy3) = lthy2 |
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
42360
diff
changeset
|
202 |
|> Local_Theory.background_theory_result |
46916
e7ea35b41e2d
Local_Theory.define no longer hard-wires default theorem name -- targets/packages need to take care of it;
wenzelm
parents:
45413
diff
changeset
|
203 |
(Thm.add_def lthy2 false false |
e7ea35b41e2d
Local_Theory.define no longer hard-wires default theorem name -- targets/packages need to take care of it;
wenzelm
parents:
45413
diff
changeset
|
204 |
(Thm.def_binding_optional b b_def, Logic.mk_equals (lhs, rhs))); |
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
205 |
in ((lhs, def), lthy3) end; |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
206 |
|
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
207 |
fun theory_notes kind global_facts lthy = |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
208 |
let |
42360 | 209 |
val thy = Proof_Context.theory_of lthy; |
45390
e29521ef9059
tuned signature -- avoid spurious Thm.mixed_attribute;
wenzelm
parents:
45353
diff
changeset
|
210 |
val global_facts' = Attrib.map_facts (map (Attrib.attribute_i thy)) global_facts; |
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
211 |
in |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
212 |
lthy |
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
38831
diff
changeset
|
213 |
|> Local_Theory.background_theory (Global_Theory.note_thmss kind global_facts' #> snd) |
42360 | 214 |
|> Local_Theory.target (Proof_Context.note_thmss kind global_facts' #> snd) |
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
215 |
end; |
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
216 |
|
38757
2b3e054ae6fc
renamed Local_Theory.theory(_result) to Local_Theory.background_theory(_result) to emphasize that this belongs to the infrastructure and is rarely appropriate in user-space tools;
wenzelm
parents:
38341
diff
changeset
|
217 |
fun theory_abbrev prmode ((b, mx), t) = |
2b3e054ae6fc
renamed Local_Theory.theory(_result) to Local_Theory.background_theory(_result) to emphasize that this belongs to the infrastructure and is rarely appropriate in user-space tools;
wenzelm
parents:
38341
diff
changeset
|
218 |
Local_Theory.background_theory |
2b3e054ae6fc
renamed Local_Theory.theory(_result) to Local_Theory.background_theory(_result) to emphasize that this belongs to the infrastructure and is rarely appropriate in user-space tools;
wenzelm
parents:
38341
diff
changeset
|
219 |
(Sign.add_abbrev (#1 prmode) (b, t) #-> |
2b3e054ae6fc
renamed Local_Theory.theory(_result) to Local_Theory.background_theory(_result) to emphasize that this belongs to the infrastructure and is rarely appropriate in user-space tools;
wenzelm
parents:
38341
diff
changeset
|
220 |
(fn (lhs, _) => Sign.notation true prmode [(lhs, mx)])); |
38341
72dba5bd5f63
moved theory-level target operation fragements to Generic_Target; adjusted bootstrap order
haftmann
parents:
38315
diff
changeset
|
221 |
|
38309 | 222 |
end; |