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