Convert from type
Function:
(defun uint-from-sint (x) (declare (xargs :guard (sintp x))) (let ((__function__ 'uint-from-sint)) (declare (ignorable __function__)) (uint-from-integer-mod (integer-from-sint x))))
Theorem:
(defthm uintp-of-uint-from-sint (b* ((result (uint-from-sint x))) (uintp result)) :rule-classes :rewrite)
Theorem:
(defthm uint-from-sint-of-sint-fix-x (equal (uint-from-sint (sint-fix x)) (uint-from-sint x)))
Theorem:
(defthm uint-from-sint-sint-equiv-congruence-on-x (implies (sint-equiv x x-equiv) (equal (uint-from-sint x) (uint-from-sint x-equiv))) :rule-classes :congruence)