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