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