【发布时间】:2022-01-25 12:50:19
【问题描述】:
我有以下公式: (!a and !b and c) 暗示 (c iff (a and b) 转换为 CNF 公式: (a or b or !c) or (!a or b or c) and (!b or a) and (!c or a)
如你所见,我从真值表中检查了这个公式彼此相等:
所以我编写了如下代码,以显示公式是 equisatisfable 但它给出了错误。请帮助有关代码。
(set-logic QF_LIA)
(declare-fun a () Bool)
(declare-fun b () Bool)
(declare-fun c () Bool)
(assert (distinct (and((or(or a b (not c)(or ((not a) b c)) (or (not b) a)(or not c a)
(and(or (not a) (not b) c) (iff a(or b c))
(check-sat)
; unsat
(exit)
【问题讨论】: