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