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