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