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