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