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