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