Addition of a value of type
Function:
(defun add-ullong-ullong (x y) (declare (xargs :guard (and (ullongp x) (ullongp y)))) (ullong-from-integer-mod (+ (integer-from-ullong x) (integer-from-ullong y))))
Theorem:
(defthm ullongp-of-add-ullong-ullong (ullongp (add-ullong-ullong x y)))
Theorem:
(defthm add-ullong-ullong-of-ullong-fix-x (equal (add-ullong-ullong (ullong-fix x) y) (add-ullong-ullong x y)))
Theorem:
(defthm add-ullong-ullong-ullong-equiv-congruence-on-x (implies (ullong-equiv x x-equiv) (equal (add-ullong-ullong x y) (add-ullong-ullong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm add-ullong-ullong-of-ullong-fix-y (equal (add-ullong-ullong x (ullong-fix y)) (add-ullong-ullong x y)))
Theorem:
(defthm add-ullong-ullong-ullong-equiv-congruence-on-y (implies (ullong-equiv y y-equiv) (equal (add-ullong-ullong x y) (add-ullong-ullong x y-equiv))) :rule-classes :congruence)