Fixer for base58-value.
(base58-value-fix x) → fixed-x
Function:
(defun base58-value-fix (x) (declare (xargs :guard (base58-valuep x))) (let ((__function__ 'base58-value-fix)) (declare (ignorable __function__)) (dab-digit-fix 58 x)))
Theorem:
(defthm base58-valuep-of-base58-value-fix (b* ((fixed-x (base58-value-fix x))) (base58-valuep fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm natp-of-base58-value-fix (b* ((fixed-x (base58-value-fix x))) (natp fixed-x)) :rule-classes :type-prescription)
Theorem:
(defthm base58-value-fix-upper-bound (b* ((fixed-x (base58-value-fix x))) (< fixed-x 58)) :rule-classes :linear)
Theorem:
(defthm base58-value-fix-when-base58-valuep (implies (base58-valuep x) (equal (base58-value-fix x) x)))