Fixing function for dab-basep.
Function:
(defun dab-base-fix (x) (declare (xargs :guard (dab-basep x))) (let ((__function__ 'dab-base-fix)) (declare (ignorable __function__)) (mbe :logic (max (nfix x) 2) :exec x)))
Theorem:
(defthm dab-basep-of-dab-base-fix (b* ((fixed-x (dab-base-fix x))) (dab-basep fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm posp-of-dab-base-fix (b* ((fixed-x (dab-base-fix x))) (posp fixed-x)) :rule-classes :type-prescription)
Theorem:
(defthm dab-base-fix-when-dab-basep (implies (dab-basep x) (equal (dab-base-fix x) x)))