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