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