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