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