Say I have
t1<x and x<t2
is it possible to hide variable x so that
t1<t2
in Z3?
You can use quantifier elimination for doing that. 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
Possible solution using Redlog of Reduce:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With