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