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