Fixing function for 4vmasks.
This is unlike ifix because we return -1 (``all bits are relevant'') in the default case.
Function:
(defun 4vmask-fix$inline (x) (declare (xargs :guard (4vmask-p x))) (let ((__function__ '4vmask-fix)) (declare (ignorable __function__)) (mbe :logic (if (4vmask-p x) x -1) :exec x)))
Theorem:
(defthm 4vmask-p-of-4vmask-fix (b* ((x-fix (4vmask-fix$inline x))) (4vmask-p x-fix)) :rule-classes (:rewrite :type-prescription))
Theorem:
(defthm 4vmask-fix-when-4vmask-p (implies (4vmask-p x) (equal (4vmask-fix x) x)))