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