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