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