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