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