Greater-than-or-equal-to comparison
(double-great operand-left operand-right) → result
Function:
(defun double-great (operand-left operand-right) (declare (xargs :guard (and (double-valuep operand-left) (double-valuep operand-right)))) (b* ((x (double-value->double operand-left)) (y (double-value->double operand-right))) (boolean-value (double-great-abs x y))))
Theorem:
(defthm boolean-valuep-of-double-great (b* ((result (double-great operand-left operand-right))) (boolean-valuep result)) :rule-classes :rewrite)
Theorem:
(defthm double-great-of-double-value-fix-operand-left (equal (double-great (double-value-fix operand-left) operand-right) (double-great operand-left operand-right)))
Theorem:
(defthm double-great-double-value-equiv-congruence-on-operand-left (implies (double-value-equiv operand-left operand-left-equiv) (equal (double-great operand-left operand-right) (double-great operand-left-equiv operand-right))) :rule-classes :congruence)
Theorem:
(defthm double-great-of-double-value-fix-operand-right (equal (double-great operand-left (double-value-fix operand-right)) (double-great operand-left operand-right)))
Theorem:
(defthm double-great-double-value-equiv-congruence-on-operand-right (implies (double-value-equiv operand-right operand-right-equiv) (equal (double-great operand-left operand-right) (double-great operand-left operand-right-equiv))) :rule-classes :congruence)