aboutsummaryrefslogtreecommitdiff
path: root/examples/xor/xor_strict.smtlib
diff options
context:
space:
mode:
authormirenn <me@mirenn.dev>2026-06-05 16:40:44 +0200
committermirenn <me@mirenn.dev>2026-06-10 14:28:22 +0200
commit0c63e81f1f851a07db4cecdc16b95d908f63d0a5 (patch)
treebf7d0539ff7410ca12d53be7a3e5a6530d277530 /examples/xor/xor_strict.smtlib
parent840b91f84a926562654c43a93b02fa9c77c6a62b (diff)
downloadvein-0c63e81f1f851a07db4cecdc16b95d908f63d0a5.tar.gz
vein-0c63e81f1f851a07db4cecdc16b95d908f63d0a5.zip
balanced fanout
Diffstat (limited to 'examples/xor/xor_strict.smtlib')
-rw-r--r--examples/xor/xor_strict.smtlib14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/xor/xor_strict.smtlib b/examples/xor/xor_strict.smtlib
new file mode 100644
index 0000000..bead476
--- /dev/null
+++ b/examples/xor/xor_strict.smtlib
@@ -0,0 +1,14 @@
+; Strict 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 strict equivalence: outputs are different
+(assert (not (= Y_0 Y_1)))