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