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