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