fixed $ite syntax in TPTP THX generation
authordesharna
Mon, 16 Aug 2021 13:00:55 +0200
changeset 74153 46f66e821f5c
parent 74148 a97d5356f1d9
child 74154 62b0577123a5
fixed $ite syntax in TPTP THX generation
src/HOL/Tools/ATP/atp_problem.ML
--- a/src/HOL/Tools/ATP/atp_problem.ML	Sun Aug 15 15:26:09 2021 +0200
+++ b/src/HOL/Tools/ATP/atp_problem.ML	Mon Aug 16 13:00:55 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)] =>