try0: support literal facts;
authorFabian Huch <huch@in.tum.de>
Thu, 24 Oct 2024 19:13:49 +0200
changeset 81370 daf5697035b5
parent 81369 0677712016b5
child 81371 2f11cd18aa96
try0: support literal facts;
src/HOL/Tools/try0.ML
--- a/src/HOL/Tools/try0.ML	Thu Oct 24 16:46:25 2024 +0200
+++ b/src/HOL/Tools/try0.ML	Thu Oct 24 19:13:49 2024 +0200
@@ -47,8 +47,8 @@
 datatype modifier = Use | Simp | Intro | Elim | Dest
 
 fun string_of_xthm (xref, args) =
-  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 => cartouche literal | _ => 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