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