Subtraction of a value of type
Function:
(defun sub-ullong-schar (x y) (declare (xargs :guard (and (ullongp x) (scharp y)))) (sub-ullong-ullong x (ullong-from-schar y)))
Theorem:
(defthm ullongp-of-sub-ullong-schar (ullongp (sub-ullong-schar x y)))
Theorem:
(defthm sub-ullong-schar-of-ullong-fix-x (equal (sub-ullong-schar (ullong-fix x) y) (sub-ullong-schar x y)))
Theorem:
(defthm sub-ullong-schar-ullong-equiv-congruence-on-x (implies (ullong-equiv x x-equiv) (equal (sub-ullong-schar x y) (sub-ullong-schar x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm sub-ullong-schar-of-schar-fix-y (equal (sub-ullong-schar x (schar-fix y)) (sub-ullong-schar x y)))
Theorem:
(defthm sub-ullong-schar-schar-equiv-congruence-on-y (implies (schar-equiv y y-equiv) (equal (sub-ullong-schar x y) (sub-ullong-schar x y-equiv))) :rule-classes :congruence)