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