File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ def convert_tptp(expression):
3737 tptp_str = convert_tptp_or (expression )
3838 elif isinstance (expression , ImpExpression ):
3939 tptp_str = convert_tptp_imp (expression )
40+ elif isinstance (expression , IffExpression ):
41+ tptp_str = convert_tptp_iff (expression )
4042 elif isinstance (expression , NegatedExpression ):
4143 tptp_str = convert_tptp_not (expression )
4244 elif isinstance (expression , ExistsExpression ):
@@ -90,6 +92,12 @@ def convert_tptp_imp(expression):
9092 tptp_str = Tokens .OPEN + first + ' => ' + second + Tokens .CLOSE
9193 return tptp_str
9294
95+ def convert_tptp_iff (expression ):
96+ first = convert_tptp (expression .first )
97+ second = convert_tptp (expression .second )
98+ tptp_str = Tokens .OPEN + first + ' <=> ' + second + Tokens .CLOSE
99+ return tptp_str
100+
93101def convert_tptp_not (expression ):
94102 term = convert_tptp (expression .term )
95103 tptp_str = Tokens .OPEN + "~" + term + Tokens .CLOSE
You can’t perform that action at this time.
0 commit comments