aboutsummaryrefslogtreecommitdiff
path: root/examples/xor/xor_argmax.smtlib
diff options
context:
space:
mode:
Diffstat (limited to 'examples/xor/xor_argmax.smtlib')
-rw-r--r--examples/xor/xor_argmax.smtlib14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/xor/xor_argmax.smtlib b/examples/xor/xor_argmax.smtlib
new file mode 100644
index 0000000..d21119b
--- /dev/null
+++ b/examples/xor/xor_argmax.smtlib
@@ -0,0 +1,14 @@
+; Argmax Equivalence for XOR
+
+; Constant declaration
+(declare-const X_0 Real)
+(declare-const X_1 Real)
+(declare-const Y_0 Real)
+(declare-const Y_1 Real)
+
+; Bounded 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 argmax equivalence
+(assert (and (> Y_0 0.5) (< Y_1 0.5)))