Division of a value of type
Function:
(defun div-ushort-slong (x y) (declare (xargs :guard (and (ushortp x) (slongp y) (div-ushort-slong-okp x y)))) (div-slong-slong (slong-from-ushort x) y))
Theorem:
(defthm slongp-of-div-ushort-slong (slongp (div-ushort-slong x y)))
Theorem:
(defthm div-ushort-slong-of-ushort-fix-x (equal (div-ushort-slong (ushort-fix x) y) (div-ushort-slong x y)))
Theorem:
(defthm div-ushort-slong-ushort-equiv-congruence-on-x (implies (ushort-equiv x x-equiv) (equal (div-ushort-slong x y) (div-ushort-slong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm div-ushort-slong-of-slong-fix-y (equal (div-ushort-slong x (slong-fix y)) (div-ushort-slong x y)))
Theorem:
(defthm div-ushort-slong-slong-equiv-congruence-on-y (implies (slong-equiv y y-equiv) (equal (div-ushort-slong x y) (div-ushort-slong x y-equiv))) :rule-classes :congruence)