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