Fixer for tidentifierp.
(tidentifier-fix x) → fixed-x
Function:
(defun tidentifier-fix (x) (declare (xargs :guard (tidentifierp x))) (mbe :logic (if (tidentifierp x) x (list (char-code #\$))) :exec x))
Theorem:
(defthm tidentifierp-of-tidentifier-fix (b* ((fixed-x (tidentifier-fix x))) (tidentifierp fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm tidentifier-fix-when-tidentifierp (implies (tidentifierp x) (equal (tidentifier-fix x) x)))