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