I recently am trying out z3-solver to simplify expressions and have some questions about it.
According to my understanding, function simplify()
and two other tactics including ctx-simplify
and ctx-solver-simplify
can be used to simplify an expression (https://microsoft.github.io/z3guide/programming/Example%20Programs/Formula%20Simplification/)
For example, given e = Or(x >= 3, x >= 5)
where x
is Int.
simplify(e)
returnsOr(x >= 3, x >= 5)
Tactic('ctx-simplify').apply(e)
returnsOr(x >= 3, x >= 5)
Tactic('ctx-solver-simplify').apply(e)
returnsOr(x >= 3, x >= 5)
Since my expected result is x >= 3
, I have the following questions:
- Are there any better built-in functions ?
- If there is no better built-in function, how to achieve the result: x >= 3 ?
Thanks in advance !