src/Pure/Tools/named_theorems.ML
changeset 59936 b8ffc3dc9e24
parent 59920 86d302846b16
child 61049 0d401f874942
equal deleted inserted replaced
59935:343905de27b1 59936:b8ffc3dc9e24
    87       |> Local_Theory.add_thms_dynamic (binding, fn context => content context name)
    87       |> Local_Theory.add_thms_dynamic (binding, fn context => content context name)
    88       |> Attrib.local_setup binding (Attrib.add_del (add name) (del name)) description
    88       |> Attrib.local_setup binding (Attrib.add_del (add name) (del name)) description
    89   in (name, lthy') end;
    89   in (name, lthy') end;
    90 
    90 
    91 val _ =
    91 val _ =
    92   Outer_Syntax.local_theory @{command_spec "named_theorems"}
    92   Outer_Syntax.local_theory @{command_keyword named_theorems}
    93     "declare named collection of theorems"
    93     "declare named collection of theorems"
    94     (Parse.and_list1 (Parse.binding -- Scan.optional Parse.text "") >>
    94     (Parse.and_list1 (Parse.binding -- Scan.optional Parse.text "") >>
    95       fold (fn (b, descr) => snd o declare b descr));
    95       fold (fn (b, descr) => snd o declare b descr));
    96 
    96 
    97 
    97