Subtraction of a value of type
Function:
(defun sub-ullong-sint (x y) (declare (xargs :guard (and (ullongp x) (sintp y)))) (sub-ullong-ullong x (ullong-from-sint y)))
Theorem:
(defthm ullongp-of-sub-ullong-sint (ullongp (sub-ullong-sint x y)))
Theorem:
(defthm sub-ullong-sint-of-ullong-fix-x (equal (sub-ullong-sint (ullong-fix x) y) (sub-ullong-sint x y)))
Theorem:
(defthm sub-ullong-sint-ullong-equiv-congruence-on-x (implies (ullong-equiv x x-equiv) (equal (sub-ullong-sint x y) (sub-ullong-sint x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm sub-ullong-sint-of-sint-fix-y (equal (sub-ullong-sint x (sint-fix y)) (sub-ullong-sint x y)))
Theorem:
(defthm sub-ullong-sint-sint-equiv-congruence-on-y (implies (sint-equiv y y-equiv) (equal (sub-ullong-sint x y) (sub-ullong-sint x y-equiv))) :rule-classes :congruence)