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