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