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