Skip to content

(rewriter.sort_sums) solution soundness issue #6167

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
merlinsun opened this issue Jul 17, 2022 · 1 comment
Closed

(rewriter.sort_sums) solution soundness issue #6167

merlinsun opened this issue Jul 17, 2022 · 1 comment

Comments

@merlinsun
Copy link

Hi,
For this instance, z3 eb2ee34 incorrectly gives sat.

$ z3 small.smt2
unsat
$ z3 rewriter.sort_sums=true small.smt2
sat
$ cat small.smt2
(declare-const x Real)
(declare-fun a () Real)
(declare-fun v () Real)
(declare-fun ex () Real)
(assert (exists ((t Real)) (< (- 1) ex)))
(assert (forall ((e Real)) (exists ((V Real)) (= (* ex ex (+ (* v a) ex)) (+ x (* e e (- 1)))))))
(check-sat)
@zhendongsu
Copy link

It should be a dup of #2650.

z3 rewriter.sort_sums=true small.smt2 nlsat.check_lemmas=true also leads to:

ASSERTION VIOLATION
File: ../src/nlsat/nlsat_solver.cpp
Line: 905
UNEXPECTED CODE WAS REACHED.

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

No branches or pull requests

3 participants