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