Skip to content

Incorrect unsat on NRA formula #2592

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

Closed
muchang opened this issue Sep 27, 2019 · 0 comments
Closed

Incorrect unsat on NRA formula #2592

muchang opened this issue Sep 27, 2019 · 0 comments

Comments

@muchang
Copy link

muchang commented Sep 27, 2019

Hi,
For this formula:

(declare-fun a () Real)
(declare-fun b () Real)
(declare-fun c () Real)
(declare-fun d () Real)
(declare-fun e () Real)
(declare-fun f () Real)
(declare-fun g () Real)
(declare-fun h () Real)
(declare-fun i () Real)
(declare-fun j () Real)
(declare-fun m () Real)
(declare-fun n () Real)
(declare-fun aa () Real)
(assert
 (not
  (exists ((k Real))
   (=
    (or (< j d) (< 0 (- aa)))
    (or (= (= 0 m) (and (<= k m) (< 0 b))))))))
(assert
 (not
  (exists ((l Real))
   (=>
    (and (<= 0 (- a d)) (<= 0 h c f) (<= n c) (<= 0 aa))
    (<= 0 (+ (* aa (* a d)) h))))))
(assert (= a (+ d g)))
(assert (= b (+ e aa) c (+ f i)))
(check-sat)

z3 reports unsat, while CVC4 reports sat.
If I feed this model to the formula, z3 reports sat:

(define-fun a () Real (/ 1 12))
(define-fun b () Real 0.0)
(define-fun c () Real 0.0)
(define-fun d () Real (/ (- 13) 12))
(define-fun e () Real (/ (- 1) 12))
(define-fun f () Real 0.0)
(define-fun g () Real (/ 7 6))
(define-fun h () Real 0.0)
(define-fun i () Real 0.0)
(define-fun j () Real (/ (- 7) 6))
(define-fun m () Real 0.0)
(define-fun n () Real 0.0)
(define-fun aa () Real (/ 1 12))

z3-4.8.6 also has this bug.

OS: Ubuntu 18.04
Revision: a424ab9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant