I am testing how similar are "assignment"-like models and "Skolem-function"-like models in Z3. Thus, I proposed an experiment: I will create a formul ...
I am testing how similar are "assignment"-like models and "Skolem-function"-like models in Z3. Thus, I proposed an experiment: I will create a formul ...
Z3(Py) does not “intersect” Skolem functions as I expected. I will try to explain my doubt using an imaginary problem which is the one that I have be ...
I'm trying to use SMT solver over a scheduling problem and could not find anything helping in the documentation. It seems using following ways of set ...
With greate respect to the answer of @alias there: (Find minimum sum) I would like to solve similar puzzle. Having 4 agents and 4 type of works. Each ...
I would like to use Z3 to prove the accuracy of certain floating point expressions. My plan was to: Implement the expression as Reals. Implement ...
I'm using z3py, how do I check whether an expression contains a given variable or expression? For example, x = Int('x') expr = x + 1 So, expr shoul ...
I am playing with Skolem functions in Z3-Py. In the following lines, I describe the Skolem function that satisfies the formula Forall x. Exists y. (x& ...
Note the following Z3-Py code: This prints: My question is: why is the model empty? I mean, I think y=2 should be a model... Note that the same ...
Consider these two formulae: Exists y. Forall x. (y>x), which is unsat. Forall x. Exists y. (y>x), which is sat. Note that we cannot fi ...
In Z3-Py, I am performing quantifier elimination (QE) over the following formulae: Exists y. Forall x. (x>=2) => ((y>1) /\ (y<=x)) F ...
I wonder if we can a list of the higher-order free variables in the Z3 formula as they were declared while making the formula. For example, in the fo ...
Making a Boolean formula in PySMT is simple: Moreover, an SMT formula has this shape: I realize this works: However, instead of equations, ho ...
This code returns a good result but Does anyone have an idea how to convert this program to return the same result but in the Z3 solver??? ...
I am playing with the CVC5 example at https://github.com/cvc5/cvc5/blob/main/examples/api/python/pythonic/linear_arith.py. It works as it is suppos ...
I am starting with dReal and I have a set of questions about it. These questions are based on the tutorial we can find in https://github.com/dreal/dr ...
I am modeling below problem in Z3. The aim is to find the path for Agent to reach the coin avoiding obstacles. I added constraint for movement func ...
In this question here: How to print z3 solver results print(s.model()) in order? the first answer points out the problem of 10 coming after 1, and i ...
I am trying to create a function called nochange which keeps the variable passed through within the same transition state it was already in. I then ...
If i have 2 z3 Ints for examaple x1 and x2, and a 2d array of numbers for example: list = [[1,2],[12,13],[45,7]] i need to right a rule so that x1 an ...
I know that you can add soft-constraint in z3py and then ask z3 to find a model that satisfies the maximum number of soft-constraints possible by runn ...