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