Get the rhs field from a rewrite.
(rewrite->rhs x) → rhs
This is an ordinary field accessor created by defprod.
Function:
(defun rewrite->rhs$inline (x) (declare (xargs :guard (rewrite-p x))) (declare (xargs :guard t)) (let ((__function__ 'rewrite->rhs)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (pseudo-term-fix (std::da-nth 3 x))) :exec (std::da-nth 3 x))))
Theorem:
(defthm pseudo-termp-of-rewrite->rhs (b* ((rhs (rewrite->rhs$inline x))) (pseudo-termp rhs)) :rule-classes :rewrite)
Theorem:
(defthm rewrite->rhs$inline-of-rewrite-fix-x (equal (rewrite->rhs$inline (rewrite-fix x)) (rewrite->rhs$inline x)))
Theorem:
(defthm rewrite->rhs$inline-rewrite-equiv-congruence-on-x (implies (rewrite-equiv x x-equiv) (equal (rewrite->rhs$inline x) (rewrite->rhs$inline x-equiv))) :rule-classes :congruence)