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