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