tuned: avoid duplicates;
authorwenzelm
Wed, 27 Dec 2023 11:21:36 +0100
changeset 79366 18547955c942
parent 79365 b5853d438dbe
child 79367 fe0b52983b7b
tuned: avoid duplicates;
src/Pure/global_theory.ML
--- a/src/Pure/global_theory.ML	Wed Dec 27 11:14:56 2023 +0100
+++ b/src/Pure/global_theory.ML	Wed Dec 27 11:21:36 2023 +0100
@@ -306,10 +306,9 @@
     if name = "" then app_facts facts thy |-> register_proofs (name, pos)
     else
       let
-        val name_pos = Sign.bind_name thy b;
         val (thms', thy') = thy
-          |> app_facts (map (apfst (name_thms name_flags1 name_pos)) facts)
-          |>> name_thms name_flags2 name_pos |-> register_proofs (name, pos);
+          |> app_facts (map (apfst (name_thms name_flags1 (name, pos))) facts)
+          |>> name_thms name_flags2 (name, pos) |-> register_proofs (name, pos);
         val thy'' = thy' |> add_facts (b, Lazy.value thms');
       in (map (Thm.transfer thy'') thms', thy'') end
   end;