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