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