# HG changeset patch # User wenzelm # Date 1717760811 -7200 # Node ID 22376e22d6041c455c982cdf5283ddad5d807aee # Parent c5dbc6908669c9e8802bb4f3b48efae60080a77c tuned: prefer Thm_Name operations; diff -r c5dbc6908669 -r 22376e22d604 src/HOL/Tools/Ctr_Sugar/ctr_sugar_util.ML --- a/src/HOL/Tools/Ctr_Sugar/ctr_sugar_util.ML Fri Jun 07 13:40:12 2024 +0200 +++ b/src/HOL/Tools/Ctr_Sugar/ctr_sugar_util.ML Fri Jun 07 13:46:51 2024 +0200 @@ -224,9 +224,8 @@ let val name = Long_Name.append qualifier base; val pos = Position.thread_data (); - val thms' = thms |> map_index (uncurry (fn j => - Thm.name_derivation - (((name ^ (if can the_single thms then "" else "_" ^ string_of_int (j + 1))), pos)))) + val thms' = + Thm_Name.list (name, pos) thms |> map (uncurry (Thm.name_derivation o Thm_Name.short)); in (local_name, thms') :: noted end else ((local_name, thms) :: name_noted_thms qualifier base noted);