author | haftmann |
Fri, 14 Oct 2011 18:55:29 +0200 | |
changeset 45143 | aed8f14bf562 |
parent 44304 | 7ee000ce5390 |
child 45643 | 9e49cfe7015d |
permissions | -rw-r--r-- |
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39507
diff
changeset
|
1 |
(* Title: Pure/global_theory.ML |
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39507
diff
changeset
|
2 |
Author: Makarius |
3987 | 3 |
|
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39507
diff
changeset
|
4 |
Global theory content: stored facts. |
3987 | 5 |
*) |
6 |
||
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39507
diff
changeset
|
7 |
signature GLOBAL_THEORY = |
3987 | 8 |
sig |
27198 | 9 |
val facts_of: theory -> Facts.T |
26666 | 10 |
val intern_fact: theory -> xstring -> string |
26693 | 11 |
val defined_fact: theory -> string -> bool |
27198 | 12 |
val hide_fact: bool -> string -> theory -> theory |
44304
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
13 |
val begin_recent_proofs: theory -> theory |
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
14 |
val join_recent_proofs: theory -> unit |
32105 | 15 |
val join_proofs: theory -> unit |
26683 | 16 |
val get_fact: Context.generic -> theory -> Facts.ref -> thm list |
26344
04dacc6809b6
simplified get_thm(s): back to plain name argument;
wenzelm
parents:
26336
diff
changeset
|
17 |
val get_thms: theory -> xstring -> thm list |
04dacc6809b6
simplified get_thm(s): back to plain name argument;
wenzelm
parents:
26336
diff
changeset
|
18 |
val get_thm: theory -> xstring -> thm |
16336 | 19 |
val all_thms_of: theory -> (string * thm) list |
21580 | 20 |
val map_facts: ('a -> 'b) -> ('c * ('a list * 'd) list) list -> ('c * ('b list * 'd) list) list |
21567 | 21 |
val burrow_fact: ('a list -> 'b list) -> ('a list * 'c) list -> ('b list * 'c) list |
21580 | 22 |
val burrow_facts: ('a list -> 'b list) -> |
23 |
('c * ('a list * 'd) list) list -> ('c * ('b list * 'd) list) list |
|
24 |
val name_multi: string -> 'a list -> (string * 'a) list |
|
33700 | 25 |
val name_thm: bool -> bool -> string -> thm -> thm |
26 |
val name_thms: bool -> bool -> string -> thm list -> thm list |
|
27 |
val name_thmss: bool -> string -> (thm list * 'a) list -> (thm list * 'a) list |
|
29579 | 28 |
val store_thms: binding * thm list -> theory -> thm list * theory |
29 |
val store_thm: binding * thm -> theory -> thm * theory |
|
30 |
val store_thm_open: binding * thm -> theory -> thm * theory |
|
31 |
val add_thms: ((binding * thm) * attribute list) list -> theory -> thm list * theory |
|
32 |
val add_thm: (binding * thm) * attribute list -> theory -> thm * theory |
|
33 |
val add_thmss: ((binding * thm list) * attribute list) list -> theory -> thm list list * theory |
|
34 |
val add_thms_dynamic: binding * (Context.generic -> thm list) -> theory -> theory |
|
30853 | 35 |
val note_thmss: string -> (Thm.binding * (thm list * attribute list) list) list |
36 |
-> theory -> (string * thm list) list * theory |
|
29579 | 37 |
val add_defs: bool -> ((binding * term) * attribute list) list -> |
18377 | 38 |
theory -> thm list * theory |
29579 | 39 |
val add_defs_unchecked: bool -> ((binding * term) * attribute list) list -> |
40 |
theory -> thm list * theory |
|
30337
eb189f7e43a1
Theory.add_axioms/add_defs: replaced old bstring by binding;
wenzelm
parents:
30242
diff
changeset
|
41 |
val add_defs_cmd: bool -> ((binding * string) * attribute list) list -> |
18377 | 42 |
theory -> thm list * theory |
30337
eb189f7e43a1
Theory.add_axioms/add_defs: replaced old bstring by binding;
wenzelm
parents:
30242
diff
changeset
|
43 |
val add_defs_unchecked_cmd: bool -> ((binding * string) * attribute list) list -> |
19629 | 44 |
theory -> thm list * theory |
3987 | 45 |
end; |
46 |
||
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39507
diff
changeset
|
47 |
structure Global_Theory: GLOBAL_THEORY = |
3987 | 48 |
struct |
49 |
||
27198 | 50 |
(** theory data **) |
26282
305d5ca4fa9d
replaced obsolete FactIndex.T by Facts.T (cumulative version, assumes that facts are only added to unfinished theories);
wenzelm
parents:
26050
diff
changeset
|
51 |
|
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39507
diff
changeset
|
52 |
structure Data = Theory_Data |
24713 | 53 |
( |
44304
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
54 |
type T = Facts.T * (thm list * thm list); |
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
55 |
val empty = (Facts.empty, ([], [])); |
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
56 |
fun extend (facts, _) = (facts, ([], [])); |
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
57 |
fun merge ((facts1, _), (facts2, _)) = (Facts.merge (facts1, facts2), ([], [])); |
24713 | 58 |
); |
3987 | 59 |
|
28841
5556c7976837
added force_proofs (based on thms ever passed through enter_thms);
wenzelm
parents:
28674
diff
changeset
|
60 |
|
5556c7976837
added force_proofs (based on thms ever passed through enter_thms);
wenzelm
parents:
28674
diff
changeset
|
61 |
(* facts *) |
5556c7976837
added force_proofs (based on thms ever passed through enter_thms);
wenzelm
parents:
28674
diff
changeset
|
62 |
|
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39507
diff
changeset
|
63 |
val facts_of = #1 o Data.get; |
26666 | 64 |
|
65 |
val intern_fact = Facts.intern o facts_of; |
|
26693 | 66 |
val defined_fact = Facts.defined o facts_of; |
16023
66561f6814bd
added string_of_thmref, selections, fact_index_of, valid_thms;
wenzelm
parents:
15975
diff
changeset
|
67 |
|
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39507
diff
changeset
|
68 |
fun hide_fact fully name = Data.map (apfst (Facts.hide fully name)); |
28841
5556c7976837
added force_proofs (based on thms ever passed through enter_thms);
wenzelm
parents:
28674
diff
changeset
|
69 |
|
5556c7976837
added force_proofs (based on thms ever passed through enter_thms);
wenzelm
parents:
28674
diff
changeset
|
70 |
|
5556c7976837
added force_proofs (based on thms ever passed through enter_thms);
wenzelm
parents:
28674
diff
changeset
|
71 |
(* proofs *) |
5556c7976837
added force_proofs (based on thms ever passed through enter_thms);
wenzelm
parents:
28674
diff
changeset
|
72 |
|
44304
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
73 |
fun register_proofs (thy, thms) = (Data.map (apsnd (pairself (append thms))) thy, thms); |
28977 | 74 |
|
44304
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
75 |
val begin_recent_proofs = Data.map (apsnd (fn (_, thms) => ([], thms))); |
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
76 |
val join_recent_proofs = Thm.join_proofs o rev o #1 o #2 o Data.get; |
7ee000ce5390
maintain recent future proofs at transaction boundaries;
wenzelm
parents:
42471
diff
changeset
|
77 |
val join_proofs = Thm.join_proofs o rev o #2 o #2 o Data.get; |
6367 | 78 |
|
3987 | 79 |
|
4022
0770a19c48d3
added ignored_consts, thms_containing, add_store_axioms(_i),
wenzelm
parents:
4013
diff
changeset
|
80 |
(** retrieve theorems **) |
3987 | 81 |
|
27198 | 82 |
fun get_fact context thy xthmref = |
26683 | 83 |
let |
42378 | 84 |
val ctxt = Context.proof_of context; |
85 |
||
86 |
val facts = facts_of thy; |
|
26683 | 87 |
val xname = Facts.name_of_ref xthmref; |
88 |
val pos = Facts.pos_of_ref xthmref; |
|
27198 | 89 |
|
42471
593289343c7d
hardwired mapping "_" -> "Pure.asm_rl" avoids legacy binding;
wenzelm
parents:
42381
diff
changeset
|
90 |
val name = |
593289343c7d
hardwired mapping "_" -> "Pure.asm_rl" avoids legacy binding;
wenzelm
parents:
42381
diff
changeset
|
91 |
(case intern_fact thy xname of |
593289343c7d
hardwired mapping "_" -> "Pure.asm_rl" avoids legacy binding;
wenzelm
parents:
42381
diff
changeset
|
92 |
"_" => "Pure.asm_rl" |
593289343c7d
hardwired mapping "_" -> "Pure.asm_rl" avoids legacy binding;
wenzelm
parents:
42381
diff
changeset
|
93 |
| name => name); |
42378 | 94 |
val res = Facts.lookup context facts name; |
27198 | 95 |
val _ = Theory.check_thy thy; |
26683 | 96 |
in |
27198 | 97 |
(case res of |
98 |
NONE => error ("Unknown fact " ^ quote name ^ Position.str_of pos) |
|
27739 | 99 |
| SOME (static, ths) => |
42379 | 100 |
(Context_Position.report ctxt pos (Name_Space.markup (Facts.space_of facts) name); |
42378 | 101 |
if static then () else Context_Position.report ctxt pos (Markup.dynamic_fact name); |
27739 | 102 |
Facts.select xthmref (map (Thm.transfer thy) ths))) |
26683 | 103 |
end; |
26344
04dacc6809b6
simplified get_thm(s): back to plain name argument;
wenzelm
parents:
26336
diff
changeset
|
104 |
|
26683 | 105 |
fun get_thms thy = get_fact (Context.Theory thy) thy o Facts.named; |
26344
04dacc6809b6
simplified get_thm(s): back to plain name argument;
wenzelm
parents:
26336
diff
changeset
|
106 |
fun get_thm thy name = Facts.the_single name (get_thms thy name); |
4783 | 107 |
|
27198 | 108 |
fun all_thms_of thy = |
27865
27a8ad9612a3
moved basic thm operations from structure PureThy to Thm (cf. more_thm.ML);
wenzelm
parents:
27739
diff
changeset
|
109 |
Facts.fold_static (fn (_, ths) => append (map (`(Thm.get_name_hint)) ths)) (facts_of thy) []; |
16336 | 110 |
|
4022
0770a19c48d3
added ignored_consts, thms_containing, add_store_axioms(_i),
wenzelm
parents:
4013
diff
changeset
|
111 |
|
0770a19c48d3
added ignored_consts, thms_containing, add_store_axioms(_i),
wenzelm
parents:
4013
diff
changeset
|
112 |
|
26488
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
113 |
(** store theorems **) |
3987 | 114 |
|
21580 | 115 |
(* fact specifications *) |
116 |
||
117 |
fun map_facts f = map (apsnd (map (apfst (map f)))); |
|
118 |
fun burrow_fact f = split_list #>> burrow f #> op ~~; |
|
119 |
fun burrow_facts f = split_list ##> burrow (burrow_fact f) #> op ~~; |
|
120 |
||
121 |
||
4853 | 122 |
(* naming *) |
123 |
||
18801 | 124 |
fun name_multi name [x] = [(name, x)] |
26457 | 125 |
| name_multi "" xs = map (pair "") xs |
126 |
| name_multi name xs = map_index (fn (i, x) => (name ^ "_" ^ string_of_int (i + 1), x)) xs; |
|
12235
5fa04fc9b254
Further restructuring of theorem naming functions.
berghofe
parents:
12138
diff
changeset
|
127 |
|
33700 | 128 |
fun name_thm pre official name thm = thm |
41696 | 129 |
|> (if not official orelse pre andalso Thm.derivation_name thm <> "" then I |
130 |
else Thm.name_derivation name) |
|
131 |
|> (if name = "" orelse pre andalso Thm.has_name_hint thm then I |
|
132 |
else Thm.put_name_hint name); |
|
12872
0855c3ab2047
Theorems are only "pre-named" if the do not already have names.
berghofe
parents:
12711
diff
changeset
|
133 |
|
33700 | 134 |
fun name_thms pre official name xs = |
135 |
map (uncurry (name_thm pre official)) (name_multi name xs); |
|
12235
5fa04fc9b254
Further restructuring of theorem naming functions.
berghofe
parents:
12138
diff
changeset
|
136 |
|
33700 | 137 |
fun name_thmss official name fact = |
138 |
burrow_fact (name_thms true official name) fact; |
|
4853 | 139 |
|
140 |
||
11998 | 141 |
(* enter_thms *) |
4853 | 142 |
|
28861 | 143 |
fun enter_thms pre_name post_name app_att (b, thms) thy = |
28965 | 144 |
if Binding.is_empty b |
32105 | 145 |
then swap (register_proofs (app_att (thy, thms))) |
30211 | 146 |
else |
147 |
let |
|
148 |
val naming = Sign.naming_of thy; |
|
33095
bbd52d2f8696
renamed NameSpace to Name_Space -- also to emphasize its subtle change in semantics;
wenzelm
parents:
32786
diff
changeset
|
149 |
val name = Name_Space.full_name naming b; |
30211 | 150 |
val (thy', thms') = |
32105 | 151 |
register_proofs (apsnd (post_name name) (app_att (thy, pre_name name thms))); |
30211 | 152 |
val thms'' = map (Thm.transfer thy') thms'; |
42375
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
41696
diff
changeset
|
153 |
val thy'' = thy' |
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
41696
diff
changeset
|
154 |
|> (Data.map o apfst) |
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
41696
diff
changeset
|
155 |
(Facts.add_global (Proof_Context.init_global thy') naming (b, thms'') #> snd); |
30211 | 156 |
in (thms'', thy'') end; |
26488
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
157 |
|
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
158 |
|
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
159 |
(* store_thm(s) *) |
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
160 |
|
33700 | 161 |
fun store_thms (b, thms) = |
162 |
enter_thms (name_thms true true) (name_thms false true) I (b, thms); |
|
28076 | 163 |
|
29579 | 164 |
fun store_thm (b, th) = store_thms (b, [th]) #>> the_single; |
26488
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
165 |
|
29579 | 166 |
fun store_thm_open (b, th) = |
33700 | 167 |
enter_thms (name_thms true false) (name_thms false false) I (b, [th]) #>> the_single; |
3987 | 168 |
|
16023
66561f6814bd
added string_of_thmref, selections, fact_index_of, valid_thms;
wenzelm
parents:
15975
diff
changeset
|
169 |
|
6091 | 170 |
(* add_thms(s) *) |
4853 | 171 |
|
29579 | 172 |
fun add_thms_atts pre_name ((b, thms), atts) = |
33700 | 173 |
enter_thms pre_name (name_thms false true) |
30190 | 174 |
(Library.foldl_map (Thm.theory_attributes atts)) (b, thms); |
4853 | 175 |
|
18377 | 176 |
fun gen_add_thmss pre_name = |
177 |
fold_map (add_thms_atts pre_name); |
|
5907 | 178 |
|
12235
5fa04fc9b254
Further restructuring of theorem naming functions.
berghofe
parents:
12138
diff
changeset
|
179 |
fun gen_add_thms pre_name args = |
18377 | 180 |
apfst (map hd) o gen_add_thmss pre_name (map (apfst (apsnd single)) args); |
12235
5fa04fc9b254
Further restructuring of theorem naming functions.
berghofe
parents:
12138
diff
changeset
|
181 |
|
33700 | 182 |
val add_thmss = gen_add_thmss (name_thms true true); |
183 |
val add_thms = gen_add_thms (name_thms true true); |
|
27683 | 184 |
val add_thm = yield_singleton add_thms; |
5907 | 185 |
|
186 |
||
26488
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
187 |
(* add_thms_dynamic *) |
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
188 |
|
29579 | 189 |
fun add_thms_dynamic (b, f) thy = thy |
39557
fe5722fce758
renamed structure PureThy to Pure_Thy and moved most content to Global_Theory, to emphasize that this is global-only;
wenzelm
parents:
39507
diff
changeset
|
190 |
|> (Data.map o apfst) |
42375
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
41696
diff
changeset
|
191 |
(Facts.add_dynamic (Proof_Context.init_global thy) (Sign.naming_of thy) (b, f) #> snd); |
26488
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
192 |
|
b497e3187ec7
eliminated destructive/critical theorem database;
wenzelm
parents:
26471
diff
changeset
|
193 |
|
27728 | 194 |
(* note_thmss *) |
5907 | 195 |
|
33167 | 196 |
fun note_thmss kind = fold_map (fn ((b, more_atts), ths_atts) => fn thy => |
12711 | 197 |
let |
28965 | 198 |
val name = Sign.full_name thy b; |
30190 | 199 |
fun app (x, (ths, atts)) = Library.foldl_map (Thm.theory_attributes atts) (x, ths); |
18418
bf448d999b7e
re-arranged tuples (theory * 'a) to ('a * theory) in Pure
haftmann
parents:
18377
diff
changeset
|
200 |
val (thms, thy') = thy |> enter_thms |
33700 | 201 |
(name_thmss true) (name_thms false true) (apsnd flat o Library.foldl_map app) |
33167 | 202 |
(b, map (fn (ths, atts) => (ths, surround (Thm.kind kind) (atts @ more_atts))) ths_atts); |
28076 | 203 |
in ((name, thms), thy') end); |
12711 | 204 |
|
5280 | 205 |
|
4022
0770a19c48d3
added ignored_consts, thms_containing, add_store_axioms(_i),
wenzelm
parents:
4013
diff
changeset
|
206 |
(* store axioms as theorems *) |
0770a19c48d3
added ignored_consts, thms_containing, add_store_axioms(_i),
wenzelm
parents:
4013
diff
changeset
|
207 |
|
4853 | 208 |
local |
35985
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
209 |
|
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
210 |
fun no_read _ (_, t) = t; |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
211 |
|
42375
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
41696
diff
changeset
|
212 |
fun read ctxt (b, str) = |
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
41696
diff
changeset
|
213 |
Syntax.read_prop ctxt str handle ERROR msg => |
42381
309ec68442c6
added Binding.print convenience, which includes quote already;
wenzelm
parents:
42379
diff
changeset
|
214 |
cat_error msg ("The error(s) above occurred in definition " ^ Binding.print b); |
35985
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
215 |
|
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
216 |
fun add prep unchecked overloaded = fold_map (fn ((b, raw_prop), atts) => fn thy => |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
217 |
let |
42375
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
41696
diff
changeset
|
218 |
val ctxt = Syntax.init_pretty_global thy; |
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
41696
diff
changeset
|
219 |
val prop = prep ctxt (b, raw_prop); |
774df7c59508
report Name_Space.declare/define, relatively to context;
wenzelm
parents:
41696
diff
changeset
|
220 |
val ((_, def), thy') = Thm.add_def ctxt unchecked overloaded (b, prop) thy; |
35985
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
221 |
val thm = def |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
222 |
|> Thm.forall_intr_frees |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
223 |
|> Thm.forall_elim_vars 0 |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
224 |
|> Thm.varifyT_global; |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
225 |
in yield_singleton (gen_add_thms (K I)) ((b, thm), atts) thy' end); |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
226 |
|
4853 | 227 |
in |
35985
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
228 |
|
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
229 |
val add_defs = add no_read false; |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
230 |
val add_defs_unchecked = add no_read true; |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
231 |
val add_defs_cmd = add read false; |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
232 |
val add_defs_unchecked_cmd = add read true; |
0bbf0d2348f9
moved Drule.forall_intr_frees to Thm.forall_intr_frees (in more_thm.ML, which is loaded before pure_thy.ML);
wenzelm
parents:
35856
diff
changeset
|
233 |
|
4853 | 234 |
end; |
4022
0770a19c48d3
added ignored_consts, thms_containing, add_store_axioms(_i),
wenzelm
parents:
4013
diff
changeset
|
235 |
|
3987 | 236 |
end; |