Print an ACL2 decimal digit character after preprocessing.
(pprint-dec-digit-achar achar bytes) → new-bytes
We turn the character into its code and print it. Note that we do not need the numeric value of the character; we just need to print the character itself.
Function:
(defun pprint-dec-digit-achar (achar bytes) (declare (xargs :guard (and (dec-digit-char-p achar) (byte-listp bytes)))) (pprint-char (char-code achar) bytes))
Theorem:
(defthm byte-listp-of-pprint-dec-digit-achar (b* ((new-bytes (pprint-dec-digit-achar achar bytes))) (byte-listp new-bytes)) :rule-classes :rewrite)