Fixer for unicode-stringlit-char.
(unicode-stringlit-char-fix x) → fixed-x
Function:
(defun unicode-stringlit-char-fix (x) (declare (xargs :guard (unicode-stringlit-char-p x))) (mbe :logic (if (unicode-stringlit-char-p x) x (make-unicode-input-char :unicode 0 :umarker 0)) :exec x))
Theorem:
(defthm unicode-stringlit-char-p-of-unicode-stringlit-char-fix (b* ((fixed-x (unicode-stringlit-char-fix x))) (unicode-stringlit-char-p fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm unicode-stringlit-char-fix-when-unicode-stringlit-char-p (implies (unicode-stringlit-char-p x) (equal (unicode-stringlit-char-fix x) x)))