Get the get field from a operand-program.
(operand-program->get x) → get
This is an ordinary field accessor created by fty::defprod.
Function:
(defun operand-program->get$inline (x) (declare (xargs :guard (operandp x))) (declare (xargs :guard (equal (operand-kind x) :program))) (let ((__function__ 'operand-program->get)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (operand-kind x) :program) x))) (programid-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm programidp-of-operand-program->get (b* ((get (operand-program->get$inline x))) (programidp get)) :rule-classes :rewrite)
Theorem:
(defthm operand-program->get$inline-of-operand-fix-x (equal (operand-program->get$inline (operand-fix x)) (operand-program->get$inline x)))
Theorem:
(defthm operand-program->get$inline-operand-equiv-congruence-on-x (implies (operand-equiv x x-equiv) (equal (operand-program->get$inline x) (operand-program->get$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm operand-program->get-when-wrong-kind (implies (not (equal (operand-kind x) :program)) (equal (operand-program->get x) (programid-fix nil))))