equal
deleted
inserted
replaced
183 |
183 |
184 (* note_thmss *) |
184 (* note_thmss *) |
185 |
185 |
186 fun note_thmss kind = fold_map (fn ((b, more_atts), ths_atts) => fn thy => |
186 fun note_thmss kind = fold_map (fn ((b, more_atts), ths_atts) => fn thy => |
187 let |
187 let |
188 val pos = Binding.pos_of b; |
|
189 val name = Sign.full_name thy b; |
188 val name = Sign.full_name thy b; |
190 val _ = Position.report pos (Markup.fact_decl name); |
|
191 |
|
192 fun app (x, (ths, atts)) = Library.foldl_map (Thm.theory_attributes atts) (x, ths); |
189 fun app (x, (ths, atts)) = Library.foldl_map (Thm.theory_attributes atts) (x, ths); |
193 val (thms, thy') = thy |> enter_thms |
190 val (thms, thy') = thy |> enter_thms |
194 (name_thmss true) (name_thms false true) (apsnd flat o Library.foldl_map app) |
191 (name_thmss true) (name_thms false true) (apsnd flat o Library.foldl_map app) |
195 (b, map (fn (ths, atts) => (ths, surround (Thm.kind kind) (atts @ more_atts))) ths_atts); |
192 (b, map (fn (ths, atts) => (ths, surround (Thm.kind kind) (atts @ more_atts))) ths_atts); |
196 in ((name, thms), thy') end); |
193 in ((name, thms), thy') end); |