How to hide a variable with Z3

Say I have

t1<x and x<t2

can I hide the variable x so that t1<t2 in Z3?

+5
source share
2 answers

You can use a quantifier exception for this. Here is an example:

(declare-const t1 Int)
(declare-const t2 Int)

(elim-quantifiers (exists ((x Int)) (and (< t1 x) (< x t2))))

You can try this example online at: http://rise4fun.com/Z3/kp0X

+6
source

Possible solution using Redlog of Reduce:

enter image description here

+1
source

All Articles