Fixer for values of type
Function:
(defun uint-fix (x) (declare (xargs :guard (uintp x))) (let ((__function__ 'uint-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((get (uint-integer-fix (std::da-nth 0 (cdr x))))) (cons :uint (list get))) :exec x)))
Theorem:
(defthm uintp-of-uint-fix (b* ((fixed-x (uint-fix x))) (uintp fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm uint-fix-when-uintp (implies (uintp x) (equal (uint-fix x) x)))