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