Addition of a value of type
Function:
(defun add-sllong-schar (x y) (declare (xargs :guard (and (sllongp x) (scharp y) (add-sllong-schar-okp x y)))) (add-sllong-sllong x (sllong-from-schar y)))
Theorem:
(defthm sllongp-of-add-sllong-schar (sllongp (add-sllong-schar x y)))
Theorem:
(defthm add-sllong-schar-of-sllong-fix-x (equal (add-sllong-schar (sllong-fix x) y) (add-sllong-schar x y)))
Theorem:
(defthm add-sllong-schar-sllong-equiv-congruence-on-x (implies (sllong-equiv x x-equiv) (equal (add-sllong-schar x y) (add-sllong-schar x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm add-sllong-schar-of-schar-fix-y (equal (add-sllong-schar x (schar-fix y)) (add-sllong-schar x y)))
Theorem:
(defthm add-sllong-schar-schar-equiv-congruence-on-y (implies (schar-equiv y y-equiv) (equal (add-sllong-schar x y) (add-sllong-schar x y-equiv))) :rule-classes :congruence)