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