equal
deleted
inserted
replaced
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 |