fixed $ite syntax in TPTP THX generation draft
authordesharna
Thu, 05 Aug 2021 17:43:16 +0200
changeset 74393 b9837b07684d
parent 74392 94c27a7a0d39
fixed $ite syntax in TPTP THX generation
src/HOL/Tools/ATP/atp_problem.ML
--- a/src/HOL/Tools/ATP/atp_problem.ML	Thu Aug 05 13:44:33 2021 +0200
+++ b/src/HOL/Tools/ATP/atp_problem.ML	Thu Aug 05 17:43:16 2021 +0200
@@ -501,6 +501,10 @@
             s ^ "(" ^ declaration ^ ", " ^ definition ^ ", " ^ usage ^ ")"
             end
         | _ => app ())
+      else if s = tptp_ite then
+        (case ts of
+          [t1, t2, t3] => s ^ "(" ^ of_term t1 ^ ", " ^ of_term t2 ^ ", " ^ of_term t3 ^ ")"
+        | _ => app ())
       else if s = tptp_choice then
         (case ts of
           [AAbs (((s', ty), tm), args)] =>