Check if the right shift of a value of type
Function:
(defun shr-ullong-okp (x y) (declare (xargs :guard (and (ullongp x) (integerp y)))) (integer-range-p 0 (llong-bits) (ifix y)))
Theorem:
(defthm booleanp-of-shr-ullong-okp (booleanp (shr-ullong-okp x y)))
Theorem:
(defthm shr-ullong-okp-of-ullong-fix-x (equal (shr-ullong-okp (ullong-fix x) y) (shr-ullong-okp x y)))
Theorem:
(defthm shr-ullong-okp-ullong-equiv-congruence-on-x (implies (ullong-equiv x x-equiv) (equal (shr-ullong-okp x y) (shr-ullong-okp x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shr-ullong-okp-of-ifix-y (equal (shr-ullong-okp x (ifix y)) (shr-ullong-okp x y)))
Theorem:
(defthm shr-ullong-okp-int-equiv-congruence-on-y (implies (acl2::int-equiv y y-equiv) (equal (shr-ullong-okp x y) (shr-ullong-okp x y-equiv))) :rule-classes :congruence)