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