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