8000 Disabling mbqi for pattern-based formula in Python doesn't seem work · Issue #7630 · Z3Prover/z3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Disabling mbqi for pattern-based formula in Python doesn't seem work #7630

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
RabbitWhite1 opened this issue Apr 23, 2025 · 0 comments
Closed

Comments

@RabbitWhite1
Copy link

Hi, I am new to the pattern feature of z3. I followed the example from here

f = Function('f', IntSort(), IntSort())
g = Function('g', IntSort(), IntSort())
a, b, c = Ints('a b c')
x = Int('x')

s = Solver()
s.set(auto_config=False, mbqi=False)

s.add( ForAll(x, f(g(x)) == x, patterns = [f(g(x))]),
       g(a) == c,
       g(b) == c,
       a != b )

# Display solver state using internal format
print (s.sexpr())
print (s.check())

Since it disabled auto_config and mbqi, it is supposed to output unknown since the pattern f(g(x)) doesn't exist. But the result is unsat in my end.

I wonder if there is any other configuration I need to setup for this?

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
0