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