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