Equality
(float-eq operand-left operand-right) → result
Function:
(defun float-eq (operand-left operand-right) (declare (xargs :guard (and (float-valuep operand-left) (float-valuep operand-right)))) (b* ((x (float-value->float operand-left)) (y (float-value->float operand-right))) (boolean-value (float-eq-abs x y))))
Theorem:
(defthm boolean-valuep-of-float-eq (b* ((result (float-eq operand-left operand-right))) (boolean-valuep result)) :rule-classes :rewrite)
Theorem:
(defthm float-eq-of-float-value-fix-operand-left (equal (float-eq (float-value-fix operand-left) operand-right) (float-eq operand-left operand-right)))
Theorem:
(defthm float-eq-float-value-equiv-congruence-on-operand-left (implies (float-value-equiv operand-left operand-left-equiv) (equal (float-eq operand-left operand-right) (float-eq operand-left-equiv operand-right))) :rule-classes :congruence)
Theorem:
(defthm float-eq-of-float-value-fix-operand-right (equal (float-eq operand-left (float-value-fix operand-right)) (float-eq operand-left operand-right)))
Theorem:
(defthm float-eq-float-value-equiv-congruence-on-operand-right (implies (float-value-equiv operand-right operand-right-equiv) (equal (float-eq operand-left operand-right) (float-eq operand-left operand-right-equiv))) :rule-classes :congruence)