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