-1
在Z3中不可解决。为什么?在Z3中不可解。为什么?
我的计划:
;x = 2x + 2 (This on Underlaying DB is always increasing as X > Y in DB)
(declare-const x0 Real)
(declare-const xn Real)
(declare-const n Real)
(push)
(assert (= x0 42))
(assert (= xn (+ (* x0 (^ 2 n)) (* 2 (- (^ 2 n) 1))))) ; recurrence relation
(assert (> xn 700))
(check-sat-using qfnra-nlsat)
(get-model); to find a satisfiable valuation
(pop); removes any assertion
-----------------------------
Z3 Answer:
-----------------------------
unknown
(model
(define-fun n() Real 0.0)
(define-fun xn() Real 42.0)
(define-fun x0() Real 42.0)
)
我整数也试过: 根据数据库中的值 'N' 应是4,但它是未来为0
请看到它,任何人都请帮助我。
'未知'可能是由于使用了非线性算术(不可判定)。此外,如果问题有多种解决方案,则只需获得其中一个解决方案。你的“数据库解决方案”是唯一可能的吗? –
是的,数据库解决方案是唯一的解决方案! – Bitopan