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