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