Fixer for ascii.
Function:
(defun ascii-fix (x) (declare (xargs :guard (asciip x))) (mbe :logic (if (asciip x) x 0) :exec x))
Theorem:
(defthm asciip-of-ascii-fix (b* ((fixed-x (ascii-fix x))) (asciip fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm ascii-fix-when-asciip (implies (asciip x) (equal (ascii-fix x) x)))