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