try0: cleaned up output;
authorFabian Huch <huch@in.tum.de>
Tue, 19 Nov 2024 18:47:12 +0100
changeset 81470 447ad5987743
parent 81469 c227ad39be43
child 81471 1b24a570bcf7
try0: cleaned up output;
src/HOL/Tools/try0.ML
--- a/src/HOL/Tools/try0.ML	Mon Nov 18 13:30:02 2024 +0100
+++ b/src/HOL/Tools/try0.ML	Tue Nov 19 18:47:12 2024 +0100
@@ -48,8 +48,11 @@
 datatype modifier = Use | Simp | Intro | Elim | Dest
 
 fun string_of_xthm (xref, args) =
-  (case xref of Facts.Fact literal => cartouche literal | _ => Facts.string_of_ref xref) ^
-    implode (map (enclose "[" "]" o Pretty.unformatted_string_of o Token.pretty_src \<^context>) args)
+  (case xref of
+    Facts.Fact literal => literal |> Symbol_Pos.explode0 |> Symbol_Pos.implode |> cartouche
+  | _ =>
+      Facts.string_of_ref xref) ^ implode
+        (map (enclose "[" "]" o Pretty.unformatted_string_of o Token.pretty_src \<^context>) args)
 
 fun add_attr_text tagged (tag, src) s =
   let