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