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