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