Non-equality of a value of type
Function:
(defun ne-slong-slong (x y) (declare (xargs :guard (and (slongp x) (slongp y)))) (if (/= (integer-from-slong x) (integer-from-slong y)) (sint-from-integer 1) (sint-from-integer 0)))
Theorem:
(defthm sintp-of-ne-slong-slong (sintp (ne-slong-slong x y)))
Theorem:
(defthm ne-slong-slong-of-slong-fix-x (equal (ne-slong-slong (slong-fix x) y) (ne-slong-slong x y)))
Theorem:
(defthm ne-slong-slong-slong-equiv-congruence-on-x (implies (slong-equiv x x-equiv) (equal (ne-slong-slong x y) (ne-slong-slong x-equiv y))) :rule-classes :congruence)
Theorem:
(defthm ne-slong-slong-of-slong-fix-y (equal (ne-slong-slong x (slong-fix y)) (ne-slong-slong x y)))
Theorem:
(defthm ne-slong-slong-slong-equiv-congruence-on-y (implies (slong-equiv y y-equiv) (equal (ne-slong-slong x y) (ne-slong-slong x y-equiv))) :rule-classes :congruence)