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