author | wenzelm |
Tue, 16 May 2006 21:33:14 +0200 | |
changeset 19661 | baab85f25e0e |
parent 19630 | d370c3f5d3b2 |
child 19680 | 6a34b1b1f540 |
permissions | -rw-r--r-- |
18744 | 1 |
(* Title: Pure/Isar/local_theory.ML |
2 |
ID: $Id$ |
|
3 |
Author: Makarius |
|
4 |
||
5 |
Local theory operations, with optional target locale. |
|
6 |
*) |
|
7 |
||
18951 | 8 |
type local_theory = Proof.context; |
9 |
||
18744 | 10 |
signature LOCAL_THEORY = |
11 |
sig |
|
18951 | 12 |
val params_of: local_theory -> (string * typ) list |
13 |
val hyps_of: local_theory -> term list |
|
14 |
val standard: local_theory -> thm -> thm |
|
15 |
val pretty_consts: local_theory -> (string * typ -> bool) -> (string * typ) list -> Pretty.T |
|
16 |
val quiet_mode: bool ref |
|
17 |
val print_consts: local_theory -> (string * typ -> bool) -> (string * typ) list -> unit |
|
18 |
val theory: (theory -> theory) -> local_theory -> local_theory |
|
19 |
val theory_result: (theory -> 'a * theory) -> local_theory -> 'a * local_theory |
|
20 |
val init: xstring option -> theory -> local_theory |
|
21 |
val init_i: string option -> theory -> local_theory |
|
19017 | 22 |
val restore: local_theory -> local_theory |
18951 | 23 |
val exit: local_theory -> local_theory * theory |
19059
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
24 |
val restore_naming: local_theory -> local_theory |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
25 |
val naming: local_theory -> local_theory |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
26 |
val mapping: xstring option -> (local_theory -> local_theory) -> theory -> local_theory * theory |
19661 | 27 |
val syntax: string * bool -> (string * mixfix) list -> local_theory -> local_theory |
28 |
val abbrevs: string * bool -> ((bstring * mixfix) * term) list -> local_theory -> local_theory |
|
18951 | 29 |
val consts: ((bstring * typ) * mixfix) list -> local_theory -> term list * local_theory |
18876 | 30 |
val consts_restricted: (string * typ -> bool) -> |
18951 | 31 |
((bstring * typ) * mixfix) list -> local_theory -> term list * local_theory |
32 |
val axioms: ((bstring * Attrib.src list) * term list) list -> local_theory -> |
|
33 |
(bstring * thm list) list * local_theory |
|
34 |
val axioms_finish: (local_theory -> thm -> thm) -> |
|
35 |
((bstring * Attrib.src list) * term list) list -> local_theory -> |
|
36 |
(bstring * thm list) list * local_theory |
|
18767 | 37 |
val notes: string -> ((bstring * Attrib.src list) * (thm list * Attrib.src list) list) list -> |
18951 | 38 |
local_theory -> (bstring * thm list) list * local_theory |
39 |
val note: (bstring * Attrib.src list) * thm list -> local_theory -> |
|
40 |
(bstring * thm list) * local_theory |
|
18823 | 41 |
val def: (bstring * mixfix) * ((bstring * Attrib.src list) * term) -> |
18951 | 42 |
local_theory -> (term * (bstring * thm)) * local_theory |
43 |
val def_finish: (local_theory -> term -> thm -> thm) -> |
|
18823 | 44 |
(bstring * mixfix) * ((bstring * Attrib.src list) * term) -> |
18951 | 45 |
local_theory -> (term * (bstring * thm)) * local_theory |
18744 | 46 |
end; |
47 |
||
48 |
structure LocalTheory: LOCAL_THEORY = |
|
49 |
struct |
|
50 |
||
19059
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
51 |
|
18767 | 52 |
(** local context data **) |
18744 | 53 |
|
54 |
structure Data = ProofDataFun |
|
55 |
( |
|
18876 | 56 |
val name = "Pure/local_theory"; |
18744 | 57 |
type T = |
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
58 |
{locale: (string * (cterm list * Proof.context)) option, |
18744 | 59 |
params: (string * typ) list, |
60 |
hyps: term list, |
|
19059
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
61 |
restore_naming: theory -> theory}; |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
62 |
fun init thy = {locale = NONE, params = [], hyps = [], restore_naming = I}; |
18744 | 63 |
fun print _ _ = (); |
64 |
); |
|
65 |
val _ = Context.add_setup Data.init; |
|
66 |
||
19059
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
67 |
fun map_locale f = Data.map (fn {locale, params, hyps, restore_naming} => |
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
68 |
{locale = Option.map (fn (loc, (view, ctxt)) => (loc, (view, f ctxt))) locale, |
19059
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
69 |
params = params, hyps = hyps, restore_naming = restore_naming}); |
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
70 |
|
18767 | 71 |
val locale_of = #locale o Data.get; |
72 |
val params_of = #params o Data.get; |
|
73 |
val hyps_of = #hyps o Data.get; |
|
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
74 |
|
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
75 |
fun standard ctxt = |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
76 |
(case #locale (Data.get ctxt) of |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
77 |
NONE => Drule.standard |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
78 |
| SOME (_, (_, loc_ctxt)) => ProofContext.export_standard ctxt loc_ctxt); |
18744 | 79 |
|
18767 | 80 |
|
18823 | 81 |
(* print consts *) |
18767 | 82 |
|
18951 | 83 |
val quiet_mode = ref false; |
84 |
||
18767 | 85 |
local |
86 |
||
87 |
fun pretty_var ctxt (x, T) = |
|
88 |
Pretty.block [Pretty.str x, Pretty.str " ::", Pretty.brk 1, |
|
89 |
Pretty.quote (ProofContext.pretty_typ ctxt T)]; |
|
18744 | 90 |
|
18767 | 91 |
fun pretty_vars ctxt kind vs = Pretty.big_list kind (map (pretty_var ctxt) vs); |
92 |
||
93 |
in |
|
94 |
||
18876 | 95 |
fun pretty_consts ctxt pred cs = |
96 |
(case filter pred (params_of ctxt) of |
|
18767 | 97 |
[] => pretty_vars ctxt "constants" cs |
98 |
| ps => Pretty.chunks [pretty_vars ctxt "parameters" ps, pretty_vars ctxt "constants" cs]); |
|
99 |
||
18876 | 100 |
fun print_consts _ _ [] = () |
18951 | 101 |
| print_consts ctxt pred cs = |
102 |
if ! quiet_mode then () else Pretty.writeln (pretty_consts ctxt pred cs); |
|
18823 | 103 |
|
18767 | 104 |
end; |
105 |
||
106 |
||
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
107 |
(* theory/locale substructures *) |
18781 | 108 |
|
109 |
fun theory_result f ctxt = |
|
110 |
let val (res, thy') = f (ProofContext.theory_of ctxt) |
|
19032 | 111 |
in (res, ctxt |> map_locale (ProofContext.transfer thy') |> ProofContext.transfer thy') end; |
112 |
||
113 |
fun theory f ctxt = #2 (theory_result (f #> pair ()) ctxt); |
|
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
114 |
|
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
115 |
fun locale_result f ctxt = |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
116 |
(case locale_of ctxt of |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
117 |
NONE => error "Local theory: no locale context" |
19017 | 118 |
| SOME (_, view_ctxt) => |
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
119 |
let |
19017 | 120 |
val (res, loc_ctxt') = f view_ctxt; |
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
121 |
val thy' = ProofContext.theory_of loc_ctxt'; |
19032 | 122 |
in (res, ctxt |> map_locale (K loc_ctxt') |> ProofContext.transfer thy') end); |
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
123 |
|
19017 | 124 |
fun locale f ctxt = |
125 |
if is_none (locale_of ctxt) then ctxt |
|
126 |
else #2 (locale_result (f #> pair ()) ctxt); |
|
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
127 |
|
19017 | 128 |
|
129 |
(* init -- restore -- exit *) |
|
18781 | 130 |
|
131 |
fun init_i NONE thy = ProofContext.init thy |
|
132 |
| init_i (SOME loc) thy = |
|
133 |
thy |
|
134 |
|> Locale.init loc |
|
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
135 |
||>> ProofContext.inferred_fixes |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
136 |
|> (fn ((view, params), ctxt) => Data.put |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
137 |
{locale = SOME (loc, (view, ctxt)), |
18781 | 138 |
params = params, |
139 |
hyps = ProofContext.assms_of ctxt, |
|
19059
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
140 |
restore_naming = Sign.restore_naming thy} ctxt); |
18781 | 141 |
|
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
142 |
fun init loc thy = init_i (Option.map (Locale.intern thy) loc) thy; |
18781 | 143 |
|
19017 | 144 |
fun restore ctxt = |
145 |
(case locale_of ctxt of |
|
146 |
NONE => ctxt |
|
147 |
| SOME (_, (_, loc_ctxt)) => loc_ctxt |> Data.put (Data.get ctxt)); |
|
148 |
||
19059
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
149 |
fun exit ctxt = (ctxt, ProofContext.theory_of ctxt); |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
150 |
|
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
151 |
|
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
152 |
(* local naming *) |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
153 |
|
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
154 |
fun naming ctxt = |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
155 |
(case locale_of ctxt of |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
156 |
NONE => ctxt |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
157 |
| SOME (loc, _) => ctxt |> theory (Sign.sticky_prefix (Sign.base_name loc))); |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
158 |
|
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
159 |
fun restore_naming ctxt = theory (#restore_naming (Data.get ctxt)) ctxt; |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
160 |
|
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
161 |
fun mapping loc f = |
b4ca3100e818
init/exit no longer change the theory (no naming);
wenzelm
parents:
19032
diff
changeset
|
162 |
init loc #> naming #> f #> restore_naming #> exit; |
18781 | 163 |
|
164 |
||
165 |
||
166 |
(** local theory **) |
|
167 |
||
19661 | 168 |
(* term syntax *) |
169 |
||
170 |
fun term_syntax add_thy add_ctxt prmode args ctxt = ctxt |> |
|
171 |
(case locale_of ctxt of |
|
172 |
NONE => theory (add_thy prmode args) |
|
173 |
| SOME (loc, _) => |
|
174 |
locale (Locale.add_term_syntax loc (add_ctxt prmode args)) #> |
|
175 |
add_ctxt prmode args); |
|
176 |
||
177 |
val syntax = term_syntax Sign.add_const_syntax ProofContext.add_const_syntax; |
|
178 |
||
179 |
fun abbrevs prmode args = |
|
180 |
term_syntax Sign.add_abbrevs ProofContext.add_abbrevs |
|
181 |
prmode (map (fn ((x, mx), rhs) => (x, rhs, mx)) args); |
|
182 |
||
183 |
||
18767 | 184 |
(* consts *) |
18744 | 185 |
|
18876 | 186 |
fun consts_restricted pred decls ctxt = |
18744 | 187 |
let |
188 |
val thy = ProofContext.theory_of ctxt; |
|
18876 | 189 |
val params = filter pred (params_of ctxt); |
18744 | 190 |
val ps = map Free params; |
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
191 |
val Ps = map #2 params; |
19661 | 192 |
val abbrs = decls |> map (fn ((c, T), mx) => |
193 |
((c, mx), Term.list_comb (Const (Sign.full_name thy c, Ps ---> T), ps))); |
|
18744 | 194 |
in |
19017 | 195 |
ctxt |> |
196 |
(case locale_of ctxt of |
|
19661 | 197 |
NONE => theory (Sign.add_consts_authentic (map (fn ((c, T), mx) => (c, T, mx)) decls)) |
19017 | 198 |
| SOME (loc, _) => |
199 |
theory (Sign.add_consts_i (map (fn ((c, T), _) => (c, Ps ---> T, NoSyn)) decls)) #> |
|
19661 | 200 |
abbrevs Syntax.default_mode abbrs) |
201 |
|> pair (map #2 abbrs) |
|
18767 | 202 |
end; |
203 |
||
18876 | 204 |
val consts = consts_restricted (K true); |
205 |
||
18767 | 206 |
|
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
207 |
(* fact definitions *) |
18767 | 208 |
|
209 |
fun notes kind facts ctxt = |
|
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
210 |
let |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
211 |
val attrib = Attrib.attribute_i (ProofContext.theory_of ctxt); |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
212 |
val facts' = map (apsnd (map (apfst (map (standard ctxt))))) facts; |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
213 |
in |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
214 |
ctxt |> |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
215 |
(case locale_of ctxt of |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
216 |
NONE => theory_result (PureThy.note_thmss_i kind (Attrib.map_facts attrib facts')) |
19017 | 217 |
| SOME (loc, _) => |
218 |
locale_result (apfst #1 o Locale.add_thmss kind loc facts')) |
|
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
219 |
||> (#2 o ProofContext.note_thmss_i (Attrib.map_facts attrib facts)) |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
220 |
end; |
18767 | 221 |
|
18781 | 222 |
fun note (a, ths) ctxt = |
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
223 |
ctxt |> notes PureThy.theoremK [(a, [(ths, [])])] |>> hd; |
18767 | 224 |
|
225 |
||
226 |
(* axioms *) |
|
227 |
||
18781 | 228 |
local |
229 |
||
230 |
fun add_axiom hyps (name, prop) thy = |
|
18767 | 231 |
let |
19517 | 232 |
val name' = if name = "" then "axiom_" ^ serial_string () else name; |
18767 | 233 |
val frees = rev ([] |> Term.add_frees prop |> fold Term.add_frees hyps); |
234 |
val prop' = Term.list_all_free (frees, Logic.list_implies (hyps, prop)); |
|
235 |
val thy' = thy |> Theory.add_axioms_i [(name', prop')]; |
|
18781 | 236 |
|
237 |
val cert = Thm.cterm_of thy'; |
|
238 |
fun all_polymorphic (x, T) th = |
|
239 |
let val var = cert (Var ((x, 0), #1 (Logic.dest_all (Thm.prop_of th)))) |
|
240 |
in ((var, cert (Free (x, T))), Thm.forall_elim var th) end; |
|
241 |
fun implies_polymorphic hyp th = Thm.assume (cert hyp) COMP th; |
|
18767 | 242 |
val th = |
243 |
Thm.get_axiom_i thy' (Sign.full_name thy' name') |
|
18781 | 244 |
|> fold_map all_polymorphic frees |-> Drule.cterm_instantiate |
245 |
|> fold implies_polymorphic hyps |
|
18767 | 246 |
in (th, thy') end; |
247 |
||
18781 | 248 |
in |
249 |
||
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
250 |
fun axioms_finish finish = fold_map (fn ((name, atts), props) => |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
251 |
fold ProofContext.fix_frees props |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
252 |
#> (fn ctxt => ctxt |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
253 |
|> theory_result (fold_map (add_axiom (hyps_of ctxt)) (PureThy.name_multi name props)) |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
254 |
|-> (fn ths => note ((name, atts), map (finish ctxt) ths)))); |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
255 |
|
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
256 |
val axioms = axioms_finish (K I); |
18744 | 257 |
|
258 |
end; |
|
18781 | 259 |
|
260 |
||
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
261 |
(* constant definitions *) |
18781 | 262 |
|
263 |
local |
|
264 |
||
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
265 |
fun add_def (name, prop) = |
19630 | 266 |
Theory.add_defs_i false false [(name, prop)] #> (fn thy => |
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
267 |
let |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
268 |
val th = Thm.get_axiom_i thy (Sign.full_name thy name); |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
269 |
val cert = Thm.cterm_of thy; |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
270 |
val subst = map2 (fn var => fn free => (cert (Var var), cert (Free free))) |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
271 |
(Term.add_vars (Thm.prop_of th) []) (Term.add_frees prop []); |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
272 |
in (Drule.cterm_instantiate subst th, thy) end); |
18781 | 273 |
|
274 |
in |
|
275 |
||
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
276 |
fun def_finish finish (var, spec) ctxt = |
18781 | 277 |
let |
278 |
val (x, mx) = var; |
|
279 |
val ((name, atts), rhs) = spec; |
|
280 |
val name' = if name = "" then Thm.def_name x else name; |
|
18876 | 281 |
val rhs_frees = Term.add_frees rhs []; |
18781 | 282 |
in |
283 |
ctxt |
|
18876 | 284 |
|> consts_restricted (member (op =) rhs_frees) [((x, Term.fastype_of rhs), mx)] |
18781 | 285 |
|-> (fn [lhs] => |
286 |
theory_result (add_def (name', Logic.mk_equals (lhs, rhs))) |
|
287 |
#-> (fn th => fn ctxt' => note ((name', atts), [finish ctxt' lhs th]) ctxt') |
|
288 |
#> apfst (fn (b, [th]) => (lhs, (b, th)))) |
|
289 |
end; |
|
290 |
||
18805
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
291 |
val def = def_finish (K (K I)); |
18863b33c831
improved 'notes', including proper treatment of locale results;
wenzelm
parents:
18781
diff
changeset
|
292 |
|
18781 | 293 |
end; |
294 |
||
295 |
end; |