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