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