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