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