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