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