equal
deleted
inserted
replaced
8 sig |
8 sig |
9 val facts_of: theory -> Facts.T |
9 val facts_of: theory -> Facts.T |
10 val check_fact: theory -> xstring * Position.T -> string |
10 val check_fact: theory -> xstring * Position.T -> string |
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 alias_fact: binding -> string -> theory -> theory |
13 val hide_fact: bool -> string -> theory -> theory |
14 val hide_fact: bool -> string -> theory -> theory |
14 val get_thms: theory -> xstring -> thm list |
15 val get_thms: theory -> xstring -> thm list |
15 val get_thm: theory -> xstring -> thm |
16 val get_thm: theory -> xstring -> thm |
16 val all_thms_of: theory -> bool -> (string * thm) list |
17 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 |
18 val map_facts: ('a -> 'b) -> ('c * ('a list * 'd) list) list -> ('c * ('b list * 'd) list) list |
58 |
59 |
59 fun check_fact thy = Facts.check (Context.Theory thy) (facts_of thy); |
60 fun check_fact thy = Facts.check (Context.Theory thy) (facts_of thy); |
60 val intern_fact = Facts.intern o facts_of; |
61 val intern_fact = Facts.intern o facts_of; |
61 val defined_fact = Facts.defined o facts_of; |
62 val defined_fact = Facts.defined o facts_of; |
62 |
63 |
|
64 fun alias_fact binding name thy = |
|
65 Data.map (Facts.alias (Sign.naming_of thy) binding name) thy; |
|
66 |
63 fun hide_fact fully name = Data.map (Facts.hide fully name); |
67 fun hide_fact fully name = Data.map (Facts.hide fully name); |
64 |
68 |
65 |
69 |
66 (* retrieve theorems *) |
70 (* retrieve theorems *) |
67 |
71 |