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