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