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