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