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