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