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