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