Fixer for ubyte128.
Function:
(defun ubyte128-fix (x) (declare (xargs :guard (ubyte128p x))) (mbe :logic (if (ubyte128p x) x 0) :exec x))
Theorem:
(defthm ubyte128p-of-ubyte128-fix (b* ((fixed-x (ubyte128-fix x))) (ubyte128p fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm ubyte128-fix-when-ubyte128p (implies (ubyte128p x) (equal (ubyte128-fix x) x)))