Check if a conversion from type
Function:
(defun sshort-from-uchar-okp (x) (declare (xargs :guard (ucharp x))) (let ((__function__ 'sshort-from-uchar-okp)) (declare (ignorable __function__)) (sshort-integerp (integer-from-uchar x))))
Theorem:
(defthm booleanp-of-sshort-from-uchar-okp (b* ((yes/no (sshort-from-uchar-okp x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm sshort-from-uchar-okp-of-uchar-fix-x (equal (sshort-from-uchar-okp (uchar-fix x)) (sshort-from-uchar-okp x)))
Theorem:
(defthm sshort-from-uchar-okp-uchar-equiv-congruence-on-x (implies (uchar-equiv x x-equiv) (equal (sshort-from-uchar-okp x) (sshort-from-uchar-okp x-equiv))) :rule-classes :congruence)