aboutsummaryrefslogtreecommitdiff
path: root/xor/xor_epsilon.vnnlib
blob: d4e9bb74aacdc0e7f88bedf391965e7a2d43a47d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(declare-const X_0 Real)
(declare-const X_1 Real)
(declare-const Y_0 Real)
(declare-const Y_1 Real)

; Discrete inputs: X must be 0 or 1
(assert (or (= X_0 0) (= X_0 1)))
(assert (or (= X_1 0) (= X_1 1)))

; Violation of epsilon equivalence (epsilon = 0.1)
(define-fun absolute ((x Real)) Real (if (>= x 0) x (- x)))
(assert (> (absolute (- Y_0 Y_1)) 0.1))