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