Check if the subtraction of a value of type
Function:
(defun sub-uchar-sllong-okp (x y) (declare (xargs :guard (and (ucharp x) (sllongp y)))) (sub-sllong-sllong-okp (sllong-from-uchar x) y))
Theorem:
(defthm booleanp-of-sub-uchar-sllong-okp (booleanp (sub-uchar-sllong-okp x y)))
Theorem:
(defthm sub-uchar-sllong-okp-of-uchar-fix-x (equal (sub-uchar-sllong-okp (uchar-fix x) y) (sub-uchar-sllong-okp x y)))
Theorem:
(defthm sub-uchar-sllong-okp-uchar-equiv-congruence-on-x (implies (uchar-equiv x x-equiv) (equal (sub-uchar-sllong-okp x y) (sub-uchar-sllong-okp x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm sub-uchar-sllong-okp-of-sllong-fix-y (equal (sub-uchar-sllong-okp x (sllong-fix y)) (sub-uchar-sllong-okp x y)))
Theorem:
(defthm sub-uchar-sllong-okp-sllong-equiv-congruence-on-y (implies (sllong-equiv y y-equiv) (equal (sub-uchar-sllong-okp x y) (sub-uchar-sllong-okp x y-equiv))) :rule-classes :congruence)