equal
deleted
inserted
replaced
792 local |
792 local |
793 |
793 |
794 fun gen_note_thmss get k = fold_map (fn ((bname, more_attrs), raw_facts) => fn ctxt => |
794 fun gen_note_thmss get k = fold_map (fn ((bname, more_attrs), raw_facts) => fn ctxt => |
795 let |
795 let |
796 val stmt = is_stmt ctxt; |
796 val stmt = is_stmt ctxt; |
797 val kind = if stmt then [] else [PureThy.kind k]; |
797 (* val kind = if stmt then [] else [PureThy.kind k]; *) |
|
798 val kind = []; (* FIXME refrain from closing the derivation here *) |
798 |
799 |
799 val facts = map (apfst (get ctxt)) raw_facts; |
800 val facts = map (apfst (get ctxt)) raw_facts; |
800 fun app (th, attrs) x = |
801 fun app (th, attrs) x = |
801 swap (foldl_map (Thm.proof_attributes (attrs @ more_attrs @ kind)) (x, th)); |
802 swap (foldl_map (Thm.proof_attributes (attrs @ more_attrs @ kind)) (x, th)); |
802 val (res, ctxt') = fold_map app facts ctxt; |
803 val (res, ctxt') = fold_map app facts ctxt; |