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