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