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
として来てくださいそれを見て誰でも私を助けてください。
「未知」は、非線形算術(決定不能)の使用によるものかもしれません。また、問題の解決策が複数ある場合は、そのうちの1つを取得するだけです。あなたの "データベースソリューション"は唯一のものですか? –
はい、データベースソリューションは唯一のソリューションです! – Bitopan