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