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