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