Get the size field from a int.
(int->size x) → size
This is an ordinary field accessor created by fty::defprod.
Function:
(defun int->size$inline (x) (declare (xargs :guard (intp x))) (declare (xargs :guard t)) (let ((__function__ 'int->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-int->size (b* ((size (int->size$inline x))) (bit-size-p size)) :rule-classes :rewrite)
Theorem:
(defthm int->size$inline-of-int-fix-x (equal (int->size$inline (int-fix x)) (int->size$inline x)))
Theorem:
(defthm int->size$inline-int-equiv-congruence-on-x (implies (int-equiv x x-equiv) (equal (int->size$inline x) (int->size$inline x-equiv))) :rule-classes :congruence)