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