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