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