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