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