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