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