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