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