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