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