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