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