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