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