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