Check if the addition of a value of type
Function:
(defun add-slong-uint-okp (x y) (declare (xargs :guard (and (slongp x) (uintp y)))) (add-slong-slong-okp x (slong-from-uint y)))
Theorem:
(defthm booleanp-of-add-slong-uint-okp (booleanp (add-slong-uint-okp x y)))
Theorem:
(defthm add-slong-uint-okp-of-slong-fix-x (equal (add-slong-uint-okp (slong-fix x) y) (add-slong-uint-okp x y)))
Theorem:
(defthm add-slong-uint-okp-slong-equiv-congruence-on-x (implies (slong-equiv x x-equiv) (equal (add-slong-uint-okp x y) (add-slong-uint-okp x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm add-slong-uint-okp-of-uint-fix-y (equal (add-slong-uint-okp x (uint-fix y)) (add-slong-uint-okp x y)))
Theorem:
(defthm add-slong-uint-okp-uint-equiv-congruence-on-y (implies (uint-equiv y y-equiv) (equal (add-slong-uint-okp x y) (add-slong-uint-okp x y-equiv))) :rule-classes :congruence)