src/Pure/thm_deps.ML
changeset 71539 c983fd846c9c
parent 71465 910a081cca74
child 71570 c2884545c846
--- a/src/Pure/thm_deps.ML	Tue Mar 10 22:52:21 2020 +0100
+++ b/src/Pure/thm_deps.ML	Thu Mar 12 20:58:18 2020 +0100
@@ -87,10 +87,10 @@
       if exists (fn thy => Global_Theory.defined_fact thy name) base_thys then I
       else
         let val {concealed, group, ...} = Name_Space.the_entry space name in
-          fold_rev (fn th =>
+          fold_rev (transfer #> (fn th =>
             (case Thm.derivation_name th of
               "" => I
-            | a => cons (a, (transfer th, concealed, group)))) ths
+            | a => cons (a, (th, concealed, group))))) ths
         end;
     fun add_facts thy =
       let