Construction of the circuit.
(boolean-xor-circuit) → pdef
This is a PFCS definition with a single equality constraint of the form described in boolean-xor.
Function:
(defun boolean-xor-circuit nil (declare (xargs :guard t)) (let ((__function__ 'boolean-xor-circuit)) (declare (ignorable __function__)) (pfcs::parse-def "boolean_xor(x, y, z) := { (2 * x) * (y) == (x + y - z) }")))
Theorem:
(defthm definitionp-of-boolean-xor-circuit (b* ((pdef (boolean-xor-circuit))) (pfcs::definitionp pdef)) :rule-classes :rewrite)
Theorem:
(defthm sr1cs-definitionp-of-boolean-xor-circuit (b* ((pdef (boolean-xor-circuit))) (pfcs::sr1cs-definitionp pdef)) :rule-classes :rewrite)