Fixer for values of type
Function:
(defun slong-fix (x) (declare (xargs :guard (slongp x))) (let ((__function__ 'slong-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((get (slong-integer-fix (std::da-nth 0 (cdr x))))) (cons :slong (list get))) :exec x)))
Theorem:
(defthm slongp-of-slong-fix (b* ((fixed-x (slong-fix x))) (slongp fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm slong-fix-when-slongp (implies (slongp x) (equal (slong-fix x) x)))