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

Unexpected unknown (incomplete quantifiers) for universal formula with uninterpreted functions/sorts #2456

Closed
wilcoxjay opened this issue Aug 2, 2019 · 0 comments

Comments

@wilcoxjay
Copy link

On the following SMT2-lib query, Z3 nearly immediately returns unknown on current master (294dcf7).

(set-option :smt.mbqi true)

(declare-sort A)
(declare-sort B)
(declare-fun f (A) B)

(assert
 (forall ((b B) (x A) (y A))
         (or (= x y)
             (not (= (f x) b)))))
(declare-fun a1 () A)
(declare-fun a2 () A)
(assert (not (= a1 a2)))
(check-sat)  ; unknown
(get-info :reason-unknown)

This formula falls in the decidable universal fragment with stratified uninterpreted functions, which I believe MBQI should be a decision procedure for. Is this a bug? Is there some other option I should set to get Z3 to try harder on formulas in this fragment?

NikolajBjorner added a commit that referenced this issue Aug 4, 2019
…#2456

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
NikolajBjorner added a commit that referenced this issue Aug 4, 2019
…#2456

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
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