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