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