src/Pure/Isar/proof_context.ML
changeset 21612 52859439959a
parent 21610 52c0d3280798
child 21622 5825a59785f4
equal deleted inserted replaced
21611:fc95ff1fe738 21612:52859439959a
   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;