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