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