Right shift of a value of type
Function:
(defun shr-slong-uchar (x y) (declare (xargs :guard (and (slongp x) (ucharp y) (shr-slong-uchar-okp x y)))) (shr-slong x (integer-from-uchar y)))
Theorem:
(defthm slongp-of-shr-slong-uchar (slongp (shr-slong-uchar x y)))
Theorem:
(defthm shr-slong-uchar-of-slong-fix-x (equal (shr-slong-uchar (slong-fix x) y) (shr-slong-uchar x y)))
Theorem:
(defthm shr-slong-uchar-slong-equiv-congruence-on-x (implies (slong-equiv x x-equiv) (equal (shr-slong-uchar x y) (shr-slong-uchar x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shr-slong-uchar-of-uchar-fix-y (equal (shr-slong-uchar x (uchar-fix y)) (shr-slong-uchar x y)))
Theorem:
(defthm shr-slong-uchar-uchar-equiv-congruence-on-y (implies (uchar-equiv y y-equiv) (equal (shr-slong-uchar x y) (shr-slong-uchar x y-equiv))) :rule-classes :congruence)