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