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