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