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