tuned;
authorwenzelm
Fri, 17 Jan 2025 19:46:36 +0100
changeset 81864 17831ae5224d
parent 81863 dc982cbeb542
child 81865 443fabb0ab29
tuned;
src/HOL/Import/import_data.ML
--- a/src/HOL/Import/import_data.ML	Fri Jan 17 19:40:56 2025 +0100
+++ b/src/HOL/Import/import_data.ML	Fri Jan 17 19:46:36 2025 +0100
@@ -67,13 +67,13 @@
 fun add_const_def c th name_opt thy =
   let
     val th' = Thm.legacy_freezeT th
-    val name =
+    val d =
       (case name_opt of
         NONE => dest_Const_name (#1 (HOLogic.dest_eq (HOLogic.dest_Trueprop (Thm.prop_of th'))))
-      | SOME name => name)
+      | SOME d => d)
   in
     thy
-    |> add_const_map c name
+    |> add_const_map c d
     |> Data.map (fn {const_map, ty_map, const_def, ty_def} =>
       {const_map = const_map, ty_map = ty_map,
        const_def = (Symtab.update (c, th') const_def), ty_def = ty_def})