Subtraction of a value of type
Function:
(defun sub-uchar-ulong (x y) (declare (xargs :guard (and (ucharp x) (ulongp y)))) (sub-ulong-ulong (ulong-from-uchar x) y))
Theorem:
(defthm ulongp-of-sub-uchar-ulong (ulongp (sub-uchar-ulong x y)))
Theorem:
(defthm sub-uchar-ulong-of-uchar-fix-x (equal (sub-uchar-ulong (uchar-fix x) y) (sub-uchar-ulong x y)))
Theorem:
(defthm sub-uchar-ulong-uchar-equiv-congruence-on-x (implies (uchar-equiv x x-equiv) (equal (sub-uchar-ulong x y) (sub-uchar-ulong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm sub-uchar-ulong-of-ulong-fix-y (equal (sub-uchar-ulong x (ulong-fix y)) (sub-uchar-ulong x y)))
Theorem:
(defthm sub-uchar-ulong-ulong-equiv-congruence-on-y (implies (ulong-equiv y y-equiv) (equal (sub-uchar-ulong x y) (sub-uchar-ulong x y-equiv))) :rule-classes :congruence)