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