--- 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