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