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