Construction of the circuit.
(field-div-checked-circuit) → pdef
This is a PFCS definition with two relation constraint that call the field-inv-checked and field-mul circuits. This circuit has an internal variable, which is the inverse of the divisor.
Function:
(defun field-div-checked-circuit nil (declare (xargs :guard t)) (let ((__function__ 'field-div-checked-circuit)) (declare (ignorable __function__)) (pfcs::parse-def "field_div_checked(x, y, z) := { field_inv_checked(y, w), field_mul(x, w, z) }")))
Theorem:
(defthm definitionp-of-field-div-checked-circuit (b* ((pdef (field-div-checked-circuit))) (pfcs::definitionp pdef)) :rule-classes :rewrite)
Theorem:
(defthm sr1cs-definitionp-of-field-div-checked-circuit (b* ((pdef (field-div-checked-circuit))) (pfcs::sr1cs-definitionp pdef)) :rule-classes :rewrite)