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