Check if the right shift of a value of type
Function:
(defun shr-uint-ushort-okp (x y) (declare (xargs :guard (and (uintp x) (ushortp y)))) (shr-uint-okp x (integer-from-ushort y)))
Theorem:
(defthm booleanp-of-shr-uint-ushort-okp (booleanp (shr-uint-ushort-okp x y)))
Theorem:
(defthm shr-uint-ushort-okp-of-uint-fix-x (equal (shr-uint-ushort-okp (uint-fix x) y) (shr-uint-ushort-okp x y)))
Theorem:
(defthm shr-uint-ushort-okp-uint-equiv-congruence-on-x (implies (uint-equiv x x-equiv) (equal (shr-uint-ushort-okp x y) (shr-uint-ushort-okp x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shr-uint-ushort-okp-of-ushort-fix-y (equal (shr-uint-ushort-okp x (ushort-fix y)) (shr-uint-ushort-okp x y)))
Theorem:
(defthm shr-uint-ushort-okp-ushort-equiv-congruence-on-y (implies (ushort-equiv y y-equiv) (equal (shr-uint-ushort-okp x y) (shr-uint-ushort-okp x y-equiv))) :rule-classes :congruence)