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