src/Pure/Isar/spec_rules.ML
changeset 33457 0fc03a81c27c
parent 33454 485fd398dd33
child 33519 e31a85f92ce9
equal deleted inserted replaced
33456:fbd47f9b9b12 33457:0fc03a81c27c
    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);