Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect result NRA formula #2509

Closed
wintered opened this issue Aug 21, 2019 · 0 comments
Closed

Incorrect result NRA formula #2509

wintered opened this issue Aug 21, 2019 · 0 comments
Labels

Comments

@wintered
Copy link

wintered commented Aug 21, 2019

Hi,

for this unsatisfiable formula, z3 reports sat. Feeding the model to the formula gives unsat.
We cross-checked with z3-4.8.5 and CVC4. Both give the correct answer - unsat.

(declare-fun b () Real)
(declare-fun c () Real)
(declare-fun d () Real)
(declare-fun e () Real)
(declare-fun f () Real)
(declare-fun o () Real)
(declare-fun g () Real)
(declare-fun h () Real)
(declare-fun i () Real)
(declare-fun j () Real)
(declare-fun k () Real)
(declare-fun l () Real)
(declare-fun m () Real)
(declare-fun n () Real)
(declare-fun q () Real)
(declare-fun p () Real)
(assert
  (or
    (and
      (not
        (exists
          ((ac Real))
          (=>
            (= c e)
            (=
              (= 0.0 b)
              (= (= (<= ac b) (<= 0 h)) (= o 2.0))
            )
          )
        )
      )
      (not
        (exists
          ((a Real))
          (=>
            (and
              (=>
                (<= l 0)
                (and (<= (* c l) (- d)) (<= l k))
              )
              (= f i)
              (<= 0.0 a)
              (<
                (+ i (/ 0 (* 2.0 g)))
                f
              )
              (<= j d)
              (< 0.0 k)
            )
            (< f 0 (/ 0 0) f)
          )
        )
      )
    )
    (not
      (exists
        ((ae Real))
        (=>
          (and
            (=>
              (<= ae m)
              (>=
                (+ n (* (- 5) (* ae ae)) (* ae q))
                0
              )
            )
            (=
              n
              (+ (* 5 (* p p)) (* q p))
            )
            (>= p 0)
            (<= p (/ 6 5))
          )
          (<= (+ m p) (/ 16 5))
        )
      )
    )
  )
)
(check-sat)

Revision: ffc696e
OS: Ubuntu18.04

@wintered wintered changed the title Incorrect result LRA formula Incorrect result NRA formula Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants