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