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