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