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