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