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