equal
deleted
inserted
replaced
11 val intern_fact: theory -> xstring -> string |
11 val intern_fact: theory -> xstring -> string |
12 val defined_fact: theory -> string -> bool |
12 val defined_fact: theory -> string -> bool |
13 val hide_fact: bool -> string -> theory -> theory |
13 val hide_fact: bool -> string -> theory -> theory |
14 val get_thms: theory -> xstring -> thm list |
14 val get_thms: theory -> xstring -> thm list |
15 val get_thm: theory -> xstring -> thm |
15 val get_thm: theory -> xstring -> thm |
16 val all_thms_of: theory -> (string * thm) list |
16 val all_thms_of: theory -> bool -> (string * thm) list |
17 val map_facts: ('a -> 'b) -> ('c * ('a list * 'd) list) list -> ('c * ('b list * 'd) list) list |
17 val map_facts: ('a -> 'b) -> ('c * ('a list * 'd) list) list -> ('c * ('b list * 'd) list) list |
18 val burrow_fact: ('a list -> 'b list) -> ('a list * 'c) list -> ('b list * 'c) list |
18 val burrow_fact: ('a list -> 'b list) -> ('a list * 'c) list -> ('b list * 'c) list |
19 val burrow_facts: ('a list -> 'b list) -> |
19 val burrow_facts: ('a list -> 'b list) -> |
20 ('c * ('a list * 'd) list) list -> ('c * ('b list * 'd) list) list |
20 ('c * ('a list * 'd) list) list -> ('c * ('b list * 'd) list) list |
21 val name_multi: string -> 'a list -> (string * 'a) list |
21 val name_multi: string -> 'a list -> (string * 'a) list |
69 #2 (Facts.retrieve (Context.Theory thy) (facts_of thy) (xname, Position.none)); |
69 #2 (Facts.retrieve (Context.Theory thy) (facts_of thy) (xname, Position.none)); |
70 |
70 |
71 fun get_thm thy xname = |
71 fun get_thm thy xname = |
72 Facts.the_single (xname, Position.none) (get_thms thy xname); |
72 Facts.the_single (xname, Position.none) (get_thms thy xname); |
73 |
73 |
74 fun all_thms_of thy = |
74 fun all_thms_of thy verbose = |
75 Facts.fold_static (fn (_, ths) => append (map (`(Thm.get_name_hint)) ths)) (facts_of thy) []; |
75 let |
|
76 val facts = facts_of thy; |
|
77 fun add (name, ths) = |
|
78 if not verbose andalso Facts.is_concealed facts name then I |
|
79 else append (map (`(Thm.get_name_hint)) ths); |
|
80 in Facts.fold_static add facts [] end; |
76 |
81 |
77 |
82 |
78 |
83 |
79 (** store theorems **) |
84 (** store theorems **) |
80 |
85 |