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