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