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