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