--- a/src/Pure/Isar/generic_target.ML Sun Dec 24 12:32:25 2023 +0100
+++ b/src/Pure/Isar/generic_target.ML Sun Dec 24 12:35:02 2023 +0100
@@ -349,16 +349,14 @@
in (result'', result) end;
-fun burrow_fact f = split_list #>> burrow f #> op ~~;
+fun name_thms name = split_list #>> burrow (Global_Theory.name_multi name) #> op ~~;
in
fun notes target_notes kind facts lthy =
let
val facts' = facts |> map (fn (a, thms) =>
- let
- val name_pos = Local_Theory.bind_name lthy (fst a);
- val thms' = burrow_fact (Global_Theory.name_multi name_pos) thms;
+ let val thms' = name_thms (Local_Theory.bind_name lthy (fst a)) thms;
in (a, (map o apfst o map) (import_export_proof lthy) thms') end);
val local_facts = Attrib.map_thms #1 facts';
val global_facts = Attrib.map_thms #2 facts';