Non-equality
(long-neq operand-left operand-right) → result
Function:
(defun long-neq (operand-left operand-right) (declare (xargs :guard (and (long-valuep operand-left) (long-valuep operand-right)))) (b* ((x (long-value->int operand-left)) (y (long-value->int operand-right))) (boolean-value (not (equal x y)))))
Theorem:
(defthm boolean-valuep-of-long-neq (b* ((result (long-neq operand-left operand-right))) (boolean-valuep result)) :rule-classes :rewrite)
Theorem:
(defthm long-neq-commutative (equal (long-neq x y) (long-neq y x)))
Theorem:
(defthm long-neq-of-long-value-fix-operand-left (equal (long-neq (long-value-fix operand-left) operand-right) (long-neq operand-left operand-right)))
Theorem:
(defthm long-neq-long-value-equiv-congruence-on-operand-left (implies (long-value-equiv operand-left operand-left-equiv) (equal (long-neq operand-left operand-right) (long-neq operand-left-equiv operand-right))) :rule-classes :congruence)
Theorem:
(defthm long-neq-of-long-value-fix-operand-right (equal (long-neq operand-left (long-value-fix operand-right)) (long-neq operand-left operand-right)))
Theorem:
(defthm long-neq-long-value-equiv-congruence-on-operand-right (implies (long-value-equiv operand-right operand-right-equiv) (equal (long-neq operand-left operand-right) (long-neq operand-left operand-right-equiv))) :rule-classes :congruence)