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