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