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