【发布时间】:2015-12-22 11:18:20
【问题描述】:
一个公式及其否定都是不可满足的。
(define-fun max1 ((x Int) (y Int)) Int
(ite (< y x) x y))
(define-fun myMax ((a Int) (b Int)) Int
(ite (< a b) (- b 1) 0))
(define-const f Bool
(forall ((a Int) (b Int))
(=> (exists ((i Int)) (and (<= (+ a 1) i) (< i b)))
(= (myMax a b) (max1 a (myMax (+ a 1) b))))))
(assert f)
;(assert (not f))
(check-sat)
有人可以帮我理解吗?我期待他们中的一个人坐下来。 请注意,函数 max1 和 myMax 都已定义。
【问题讨论】: