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