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