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