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