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