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