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

model completion for datatypes? #7006

Closed
quickbeam123 opened this issue Nov 20, 2023 · 0 comments
Closed

model completion for datatypes? #7006

quickbeam123 opened this issue Nov 20, 2023 · 0 comments

Comments

@quickbeam123
Copy link

In Vampire's AVATAR mod Z3, we need every bool literal to get a definite value in a model, however, Z3 is refusing to decided on the following example.

;- z3 parameter: rewriter.expand_store_eq=1
;- z3 parameter: model.compact=1

(declare-datatypes ( (Nat 0) ) (
    ( ( zero ) ( s ( p Nat ) ) )
))

(declare-fun v () Bool)

(assert (= v (= (p zero) zero)))

(check-sat)
(get-model)
(get-value (v))

giving us

sat
(
  (define-fun v () Bool
    (= (p zero) zero))
)
((v (= (p zero) zero)))
NikolajBjorner added a commit that referenced this issue Nov 29, 2023
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