Replies: 2 comments
-
Your quantifier "overwrites" the variable
This query
is the correct "existential" query where all variables are constrained as intended (note that all variables are implicitly existentially quantified in sat queries). |
Beta Was this translation helpful? Give feedback.
-
Alright, is there any way to make the ForAll work as intenden though without re-defining every single variable to only depend on x0, creating quite a huge expression? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, sorry to disturb you with what might be a fairly trivial misunderstanding, but I have encountered some strange behaviour while using quantifiers that I do not understand, and would appreciate if someone could explain what I'm doing wrong.
I have this piece of code:
also the same code but in SMT2 format if you prefer reading that:
How is it possible for the
exists
quantifier to be satisfiable? It should intuitively be false as far as I can tell, and z3 confirms that assumption if I try to find an actual instance ofx0
where the body is true.I would also assume the
forall
quantifier to be satisfiable, but not according to z3. Am I fundamentally misunderstanding the semantics of quantifiers?If someone could explain what I'm doing wrong that would be great. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions