Division of a value of type
Function:
(defun div-ullong-ullong (x y) (declare (xargs :guard (and (ullongp x) (ullongp y) (div-ullong-ullong-okp x y)))) (ullong-from-integer-mod (truncate (integer-from-ullong x) (integer-from-ullong y))))
Theorem:
(defthm ullongp-of-div-ullong-ullong (ullongp (div-ullong-ullong x y)))
Theorem:
(defthm div-ullong-ullong-of-ullong-fix-x (equal (div-ullong-ullong (ullong-fix x) y) (div-ullong-ullong x y)))
Theorem:
(defthm div-ullong-ullong-ullong-equiv-congruence-on-x (implies (ullong-equiv x x-equiv) (equal (div-ullong-ullong x y) (div-ullong-ullong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm div-ullong-ullong-of-ullong-fix-y (equal (div-ullong-ullong x (ullong-fix y)) (div-ullong-ullong x y)))
Theorem:
(defthm div-ullong-ullong-ullong-equiv-congruence-on-y (implies (ullong-equiv y y-equiv) (equal (div-ullong-ullong x y) (div-ullong-ullong x y-equiv))) :rule-classes :congruence)