Get the op4 field from a operands.
(operands->op4 x) → op4
This is an ordinary field accessor created by defprod.
Function:
(defun operands->op4$inline (x) (declare (xargs :guard (operands-p x))) (declare (xargs :guard t)) (let ((__function__ 'operands->op4)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (operand-type-fix (std::prod-cdr (std::prod-cdr x)))) :exec (std::prod-cdr (std::prod-cdr x)))))
Theorem:
(defthm operand-type-p-of-operands->op4 (b* ((op4 (operands->op4$inline x))) (operand-type-p op4)) :rule-classes :rewrite)
Theorem:
(defthm operands->op4$inline-of-operands-fix-x (equal (operands->op4$inline (operands-fix x)) (operands->op4$inline x)))
Theorem:
(defthm operands->op4$inline-operands-equiv-congruence-on-x (implies (operands-equiv x x-equiv) (equal (operands->op4$inline x) (operands->op4$inline x-equiv))) :rule-classes :congruence)