src/Pure/Isar/proof_context.ML
changeset 67779 fd2558014196
parent 67713 041898537c19
child 68661 5820f0f379ae
--- a/src/Pure/Isar/proof_context.ML	Wed Mar 07 17:27:57 2018 +0100
+++ b/src/Pure/Isar/proof_context.ML	Wed Mar 07 17:39:18 2018 +0100
@@ -1077,7 +1077,8 @@
 fun add_thms_lazy kind (b, ths) ctxt =
   let
     val name = full_name ctxt b;
-    val ths' = Lazy.map (Global_Theory.name_thms true false name #> map (Thm.kind_rule kind)) ths;
+    val ths' = ths
+      |> Lazy.map_finished (Global_Theory.name_thms true false name #> map (Thm.kind_rule kind));
     val (_, ctxt') = add_facts {index = is_stmt ctxt} (b, ths') ctxt;
   in ctxt' end;