# HG changeset patch # User wenzelm # Date 1165274953 -3600 # Node ID bdf3e74727df7812d56366273982e2fcff77bf8f # Parent 54b00ca67e0e626c0f4538e321b448aa1202f513 note_thmss: added kind tag and non-official name; diff -r 54b00ca67e0e -r bdf3e74727df src/Pure/Isar/proof_context.ML --- a/src/Pure/Isar/proof_context.ML Mon Dec 04 22:12:08 2006 +0100 +++ b/src/Pure/Isar/proof_context.ML Tue Dec 05 00:29:13 2006 +0100 @@ -793,16 +793,13 @@ fun gen_note_thmss get k = fold_map (fn ((bname, more_attrs), raw_facts) => fn ctxt => let - val stmt = is_stmt ctxt; -(* val kind = if stmt then [] else [PureThy.kind k]; *) - val kind = []; (* FIXME refrain from closing the derivation here *) - - val facts = map (apfst (get ctxt)) raw_facts; + val name = full_name ctxt bname; + val facts = PureThy.name_thmss false name (map (apfst (get ctxt)) raw_facts); fun app (th, attrs) x = - swap (foldl_map (Thm.proof_attributes (attrs @ more_attrs @ kind)) (x, th)); + swap (foldl_map (Thm.proof_attributes (attrs @ more_attrs @ [PureThy.kind k])) (x, th)); val (res, ctxt') = fold_map app facts ctxt; - val thms = flat res; - in ((bname, thms), ctxt' |> update_thms stmt (bname, SOME thms)) end); + val thms = PureThy.name_thms false false name (flat res); + in ((bname, thms), ctxt' |> update_thms (is_stmt ctxt) (bname, SOME thms)) end); in