Recognize valid digits for representing natural numbers as digits in the specified base.
The fixing function for this predicate is dab-digit-fix.
Function:
(defun dab-digitp (base x) (declare (xargs :guard (dab-basep base))) (let ((__function__ 'dab-digitp)) (declare (ignorable __function__)) (and (natp x) (< x (dab-base-fix base)))))
Theorem:
(defthm booleanp-of-dab-digitp (b* ((yes/no (dab-digitp base x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm natp-when-dab-digitp (implies (dab-digitp base x) (natp x)) :rule-classes :forward-chaining)
Theorem:
(defthm dab-digitp-of-0 (dab-digitp base 0))
Theorem:
(defthm dab-digitp-of-1 (dab-digitp base 1))
Theorem:
(defthm dab-digitp-of-dab-base-fix-base (equal (dab-digitp (dab-base-fix base) x) (dab-digitp base x)))
Theorem:
(defthm dab-digitp-dab-base-equiv-congruence-on-base (implies (dab-base-equiv base base-equiv) (equal (dab-digitp base x) (dab-digitp base-equiv x))) :rule-classes :congruence)