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