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