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