src/Pure/global_theory.ML
changeset 79345 75701d767ed9
parent 79343 5071516d45a6
child 79348 4402c18902ec
--- a/src/Pure/global_theory.ML	Sun Dec 24 11:46:20 2023 +0100
+++ b/src/Pure/global_theory.ML	Sun Dec 24 11:51:59 2023 +0100
@@ -267,11 +267,9 @@
 
 (* store theorems and proofs *)
 
-fun bind_name thy b = (Sign.full_name thy b, Binding.default_pos_of b);
-
 fun add_facts (b, fact) thy =
   let
-    val (full_name, pos) = bind_name thy b;
+    val (full_name, pos) = Sign.bind_name thy b;
     fun check fact =
       fact |> map_index (fn (i, thm) =>
         let
@@ -297,7 +295,7 @@
   end;
 
 fun add_thms_lazy kind (b, thms) thy =
-  let val (name, pos) = bind_name thy b in
+  let val (name, pos) = Sign.bind_name thy b in
     if name = "" then register_proofs_lazy (name, pos) thms thy |> #2
     else
       register_proofs_lazy (name, pos)
@@ -317,11 +315,11 @@
 in
 
 fun apply_facts name_flags1 name_flags2 (b, facts) thy =
-  let val (name, pos) = bind_name thy b in
+  let val (name, pos) = Sign.bind_name thy b in
     if name = "" then app_facts facts thy |-> register_proofs (name, pos)
     else
       let
-        val name_pos = bind_name thy b;
+        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);