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