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