Right shift of a value of type
Function:
(defun shr-uchar (x y) (declare (xargs :guard (and (ucharp x) (integerp y) (shr-uchar-okp x y)))) (shr-sint (sint-from-uchar x) y))
Theorem:
(defthm sintp-of-shr-uchar (sintp (shr-uchar x y)))
Theorem:
(defthm shr-uchar-of-uchar-fix-x (equal (shr-uchar (uchar-fix x) y) (shr-uchar x y)))
Theorem:
(defthm shr-uchar-uchar-equiv-congruence-on-x (implies (uchar-equiv x x-equiv) (equal (shr-uchar x y) (shr-uchar x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shr-uchar-of-ifix-y (equal (shr-uchar x (ifix y)) (shr-uchar x y)))
Theorem:
(defthm shr-uchar-int-equiv-congruence-on-y (implies (acl2::int-equiv y y-equiv) (equal (shr-uchar x y) (shr-uchar x y-equiv))) :rule-classes :congruence)