src/HOL/Tools/code_evaluation.ML
changeset 81507 08574da77b4a
parent 67149 e61557884799
--- a/src/HOL/Tools/code_evaluation.ML	Fri Nov 29 11:26:17 2024 +0100
+++ b/src/HOL/Tools/code_evaluation.ML	Fri Nov 29 17:40:15 2024 +0100
@@ -60,8 +60,7 @@
 
 fun mk_term_of_eq thy ty (c, (_, tys)) =
   let
-    val t = list_comb (Const (c, tys ---> ty),
-      map Free (Name.invent_names Name.context "a" tys));
+    val t = list_comb (Const (c, tys ---> ty), map Free (Name.invent_names_global "a" tys));
     val (arg, rhs) =
       apply2 (Thm.global_cterm_of thy o Logic.unvarify_types_global o Logic.varify_global)
         (t,