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