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