Check if the right shift of a value of type
Function:
(defun shr-sint-slong-okp (x y) (declare (xargs :guard (and (sintp x) (slongp y)))) (shr-sint-okp x (integer-from-slong y)))
Theorem:
(defthm booleanp-of-shr-sint-slong-okp (booleanp (shr-sint-slong-okp x y)))
Theorem:
(defthm shr-sint-slong-okp-of-sint-fix-x (equal (shr-sint-slong-okp (sint-fix x) y) (shr-sint-slong-okp x y)))
Theorem:
(defthm shr-sint-slong-okp-sint-equiv-congruence-on-x (implies (sint-equiv x x-equiv) (equal (shr-sint-slong-okp x y) (shr-sint-slong-okp x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shr-sint-slong-okp-of-slong-fix-y (equal (shr-sint-slong-okp x (slong-fix y)) (shr-sint-slong-okp x y)))
Theorem:
(defthm shr-sint-slong-okp-slong-equiv-congruence-on-y (implies (slong-equiv y y-equiv) (equal (shr-sint-slong-okp x y) (shr-sint-slong-okp x y-equiv))) :rule-classes :congruence)