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