equal
deleted
inserted
replaced
910 |
910 |
911 in |
911 in |
912 |
912 |
913 fun note_thmss kind = fold_map (fn ((b, more_attrs), raw_facts) => fn ctxt => |
913 fun note_thmss kind = fold_map (fn ((b, more_attrs), raw_facts) => fn ctxt => |
914 let |
914 let |
915 val pos = Binding.pos_of b; |
|
916 val name = full_name ctxt b; |
915 val name = full_name ctxt b; |
917 val _ = Context_Position.report ctxt pos (Markup.local_fact_decl name); |
|
918 |
|
919 val facts = Global_Theory.name_thmss false name raw_facts; |
916 val facts = Global_Theory.name_thmss false name raw_facts; |
920 fun app (th, attrs) x = |
917 fun app (th, attrs) x = |
921 swap (Library.foldl_map |
918 swap (Library.foldl_map |
922 (Thm.proof_attributes (surround (Thm.kind kind) (attrs @ more_attrs))) (x, th)); |
919 (Thm.proof_attributes (surround (Thm.kind kind) (attrs @ more_attrs))) (x, th)); |
923 val (res, ctxt') = fold_map app facts ctxt; |
920 val (res, ctxt') = fold_map app facts ctxt; |