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