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