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