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