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