From d85de781b4a825fe0d1217e1e8ae5ec81dd70202 Mon Sep 17 00:00:00 2001 From: ericmarin Date: Fri, 5 Jun 2026 16:40:44 +0200 Subject: balanced fanout --- examples/xor/xor_argmax.smtlib | 14 ++++++++++++++ examples/xor/xor_argmax.vnnlib | 14 -------------- examples/xor/xor_epsilon.smtlib | 15 +++++++++++++++ examples/xor/xor_epsilon.vnnlib | 15 --------------- examples/xor/xor_strict.smtlib | 14 ++++++++++++++ examples/xor/xor_strict.vnnlib | 14 -------------- 6 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 examples/xor/xor_argmax.smtlib delete mode 100644 examples/xor/xor_argmax.vnnlib create mode 100644 examples/xor/xor_epsilon.smtlib delete mode 100644 examples/xor/xor_epsilon.vnnlib create mode 100644 examples/xor/xor_strict.smtlib delete mode 100644 examples/xor/xor_strict.vnnlib (limited to 'examples/xor') 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))) diff --git a/examples/xor/xor_argmax.vnnlib b/examples/xor/xor_argmax.vnnlib deleted file mode 100644 index d21119b..0000000 --- a/examples/xor/xor_argmax.vnnlib +++ /dev/null @@ -1,14 +0,0 @@ -; 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))) diff --git a/examples/xor/xor_epsilon.smtlib b/examples/xor/xor_epsilon.smtlib new file mode 100644 index 0000000..427243e --- /dev/null +++ b/examples/xor/xor_epsilon.smtlib @@ -0,0 +1,15 @@ +; Epsilon 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 epsilon equivalence (epsilon = 0.1) +(define-fun absolute ((x Real)) Real (if (>= x 0) x (- x))) +(assert (> (absolute (- Y_0 Y_1)) 0.1)) diff --git a/examples/xor/xor_epsilon.vnnlib b/examples/xor/xor_epsilon.vnnlib deleted file mode 100644 index 427243e..0000000 --- a/examples/xor/xor_epsilon.vnnlib +++ /dev/null @@ -1,15 +0,0 @@ -; Epsilon 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 epsilon equivalence (epsilon = 0.1) -(define-fun absolute ((x Real)) Real (if (>= x 0) x (- x))) -(assert (> (absolute (- Y_0 Y_1)) 0.1)) 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))) diff --git a/examples/xor/xor_strict.vnnlib b/examples/xor/xor_strict.vnnlib deleted file mode 100644 index bead476..0000000 --- a/examples/xor/xor_strict.vnnlib +++ /dev/null @@ -1,14 +0,0 @@ -; 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))) -- cgit v1.2.3