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