I read an earlier very useful post on using the seq.foldl function and decided to (unsuccessfully) prove sum of a list using it: z3 got stuck and n ...
I read an earlier very useful post on using the seq.foldl function and decided to (unsuccessfully) prove sum of a list using it: z3 got stuck and n ...
I'm currently working on tranforming logical queries for database systems from a DNF form into a CNF form, focussed on queries which have a similar fo ...
The theorem 1+2+...+n = n(n+1)/2 seems to be provable by first translating it to CNFs and repeatedly applying resolution rules to them, as discussed i ...
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 ...
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 trying to use Z3 to determine if an expression is satisfiable.I have created all equations that I want to use it as constraints using SymPy and th ...
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 ...
I am trying to use Z3 to explore the difference between two predicates, but the model contains exist-expressions where I would expect boolean constant ...
I am trying to use Z3 (SMT solver) to verify and rank a list of solutions. In verification system,I have some constraints and evaluation criteria and ...
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 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 ...
Sorry this is a basic question, I'm new to z3. I wrote a program to find a real solution to a certain equation. Since it should be generated for ever ...