Unary minus
(float-minus operand) → result
Function:
(defun float-minus (operand) (declare (xargs :guard (float-valuep operand))) (b* ((x (float-value->float operand))) (float-value (float-minus-abs x))))
Theorem:
(defthm float-valuep-of-float-minus (b* ((result (float-minus operand))) (float-valuep result)) :rule-classes :rewrite)
Theorem:
(defthm float-minus-of-float-value-fix-operand (equal (float-minus (float-value-fix operand)) (float-minus operand)))
Theorem:
(defthm float-minus-float-value-equiv-congruence-on-operand (implies (float-value-equiv operand operand-equiv) (equal (float-minus operand) (float-minus operand-equiv))) :rule-classes :congruence)