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