clarified antiquotations;
authorwenzelm
Fri, 01 Oct 2021 22:08:44 +0200
changeset 74402 e7c10f7e09fa
parent 74401 1aa05eee4e8b
child 74404 c8c63f921741
clarified antiquotations;
src/HOL/TPTP/atp_problem_import.ML
--- a/src/HOL/TPTP/atp_problem_import.ML	Fri Oct 01 18:05:19 2021 +0200
+++ b/src/HOL/TPTP/atp_problem_import.ML	Fri Oct 01 22:08:44 2021 +0200
@@ -61,11 +61,11 @@
 
 (** Nitpick **)
 
-fun aptrueprop f ((t0 as \<^const>\<open>Trueprop\<close>) $ t1) = t0 $ f t1
+fun aptrueprop f ((t0 as \<^Const_>\<open>Trueprop\<close>) $ t1) = t0 $ f t1
   | aptrueprop f t = f t
 
-fun is_legitimate_tptp_def (\<^const>\<open>Trueprop\<close> $ t) = is_legitimate_tptp_def t
-  | is_legitimate_tptp_def (Const (\<^const_name>\<open>HOL.eq\<close>, _) $ t $ u) =
+fun is_legitimate_tptp_def \<^Const_>\<open>Trueprop for t\<close> = is_legitimate_tptp_def t
+  | is_legitimate_tptp_def \<^Const_>\<open>HOL.eq _ for t u\<close> =
     (is_Const t orelse is_Free t) andalso not (exists_subterm (curry (op =) t) u)
   | is_legitimate_tptp_def _ = false