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