Fixing function for four-valued constants.
(4v-fix a) interprets
Function:
(defun 4v-fix$inline (a) (declare (xargs :guard t)) (mbe :logic (if (4vp a) a (4vx)) :exec (if (or (eq a (4vt)) (eq a (4vf)) (eq a (4vz))) a (4vx))))
Theorem:
(defthm 4v-fix-when-4vp (implies (4vp x) (equal (4v-fix x) x)))
Theorem:
(defthm 4vp-of-4v-fix (4vp (4v-fix x)))