Right shift of a value of type
Function:
(defun shr-sllong (x y) (declare (xargs :guard (and (sllongp x) (integerp y) (shr-sllong-okp x y)))) (sllong-from-integer (truncate (integer-from-sllong x) (expt 2 (ifix y)))))
Theorem:
(defthm sllongp-of-shr-sllong (sllongp (shr-sllong x y)))
Theorem:
(defthm shr-sllong-of-sllong-fix-x (equal (shr-sllong (sllong-fix x) y) (shr-sllong x y)))
Theorem:
(defthm shr-sllong-sllong-equiv-congruence-on-x (implies (sllong-equiv x x-equiv) (equal (shr-sllong x y) (shr-sllong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm shr-sllong-of-ifix-y (equal (shr-sllong x (ifix y)) (shr-sllong x y)))
Theorem:
(defthm shr-sllong-int-equiv-congruence-on-y (implies (acl2::int-equiv y y-equiv) (equal (shr-sllong x y) (shr-sllong x y-equiv))) :rule-classes :congruence)