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