equal
deleted
inserted
replaced
39 ); |
39 ); |
40 |
40 |
41 val get = Item_Net.content o Rules.get o Context.Proof; |
41 val get = Item_Net.content o Rules.get o Context.Proof; |
42 val get_global = Item_Net.content o Rules.get o Context.Theory; |
42 val get_global = Item_Net.content o Rules.get o Context.Theory; |
43 |
43 |
44 fun add class (ts, ths) = LocalTheory.declaration |
44 fun add class (ts, ths) = LocalTheory.declaration true |
45 (fn phi => |
45 (fn phi => |
46 let |
46 let |
47 val ts' = map (Morphism.term phi) ts; |
47 val ts' = map (Morphism.term phi) ts; |
48 val ths' = map (Morphism.thm phi) ths; |
48 val ths' = map (Morphism.thm phi) ths; |
49 in Rules.map (Item_Net.update (class, (ts', ths'))) end); |
49 in Rules.map (Item_Net.update (class, (ts', ths'))) end); |