-
Notifications
You must be signed in to change notification settings - Fork 1.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Temporary Variables in forall scope #5084
Comments
You don't have to write the constraint for from z3 import *
def my_fun(y, z):
return Implies(And(y > -5, y < 5), y + z > 10)
s = Solver()
z = Int("z")
y = Int("y")
s.add(ForAll([y], my_fun(y, z)))
print(s.sexpr()) I think in Z3 parlance, |
So I can write anything in place of |
Yes, as long as "normally do" returns a (self-contained) Z3 expression. |
Understood. Thank you. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I am stuck with a forall statement. Found this answer useful. So just wanted to know, is there any way to define a temporary variable to use in the forall scope like we do in z3 using let keyword? Because if there are lots of variables with long expressions, it is difficult to parse for z3py it seems!
Originally posted by @andrewvaughanj in #5044 (comment)
The text was updated successfully, but these errors were encountered: