aboutsummaryrefslogtreecommitdiff
path: root/examples/double_integrator/double_integrator_epsilon.vnnlib
diff options
context:
space:
mode:
Diffstat (limited to 'examples/double_integrator/double_integrator_epsilon.vnnlib')
-rw-r--r--examples/double_integrator/double_integrator_epsilon.vnnlib22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/double_integrator/double_integrator_epsilon.vnnlib b/examples/double_integrator/double_integrator_epsilon.vnnlib
new file mode 100644
index 0000000..3af9079
--- /dev/null
+++ b/examples/double_integrator/double_integrator_epsilon.vnnlib
@@ -0,0 +1,22 @@
+; Strict Equivalence for Double Integrator
+
+; Constant declaration
+(declare-const X_0 Real)
+(declare-const X_1 Real)
+(declare-const Y_0 Real)
+(declare-const Y_1 Real)
+(declare-const Y_2 Real)
+(declare-const Y_3 Real)
+
+; Bounded inputs: X must be within [0, 1]
+(assert (>= X_0 0.0))
+(assert (<= X_0 1.0))
+(assert (>= X_1 0.0))
+(assert (<= X_1 1.0))
+
+; Violation of epsilon equivalence (epsilon = 0.1)
+(define-fun absolute ((x Real)) Real (if (>= x 0) x (- x)))
+(assert (or
+ (> (absolute (- Y_0 Y_2)) 0.1)
+ (> (absolute (- Y_1 Y_3)) 0.1)
+))