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