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