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