Remainder of a value of type
Function:
(defun rem-ulong-ushort (x y) (declare (xargs :guard (and (ulongp x) (ushortp y) (rem-ulong-ushort-okp x y)))) (rem-ulong-ulong x (ulong-from-ushort y)))
Theorem:
(defthm ulongp-of-rem-ulong-ushort (ulongp (rem-ulong-ushort x y)))
Theorem:
(defthm rem-ulong-ushort-of-ulong-fix-x (equal (rem-ulong-ushort (ulong-fix x) y) (rem-ulong-ushort x y)))
Theorem:
(defthm rem-ulong-ushort-ulong-equiv-congruence-on-x (implies (ulong-equiv x x-equiv) (equal (rem-ulong-ushort x y) (rem-ulong-ushort x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm rem-ulong-ushort-of-ushort-fix-y (equal (rem-ulong-ushort x (ushort-fix y)) (rem-ulong-ushort x y)))
Theorem:
(defthm rem-ulong-ushort-ushort-equiv-congruence-on-y (implies (ushort-equiv y y-equiv) (equal (rem-ulong-ushort x y) (rem-ulong-ushort x y-equiv))) :rule-classes :congruence)