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