src/Pure/raw_simplifier.ML
changeset 81534 c32ebdcbe8ca
parent 81243 fc660ec56599
child 82640 9e35c1662aec
--- a/src/Pure/raw_simplifier.ML	Mon Dec 02 11:08:36 2024 +0100
+++ b/src/Pure/raw_simplifier.ML	Mon Dec 02 11:22:44 2024 +0100
@@ -481,10 +481,9 @@
 
 fun print_thm ctxt msg (name, th) =
   let
-    val thy = Proof_Context.theory_of ctxt;
     val sffx =
       if Thm_Name.is_empty name then ""
-      else " " ^ quote (Global_Theory.print_thm_name thy name) ^ ":";
+      else " " ^ quote (Global_Theory.print_thm_name ctxt name) ^ ":";
   in print_term ctxt (msg ^ sffx) (Thm.full_prop_of th) end;
 
 fun print_thm0 ctxt msg th = print_thm ctxt msg (Thm_Name.empty, th);