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