Base58 values.
These are digits in base 58.
Function:
(defun base58-value-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (base58-valuep acl2::x) (base58-valuep acl2::y)))) (equal (base58-value-fix acl2::x) (base58-value-fix acl2::y)))
Theorem:
(defthm base58-value-equiv-is-an-equivalence (and (booleanp (base58-value-equiv x y)) (base58-value-equiv x x) (implies (base58-value-equiv x y) (base58-value-equiv y x)) (implies (and (base58-value-equiv x y) (base58-value-equiv y z)) (base58-value-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm base58-value-equiv-implies-equal-base58-value-fix-1 (implies (base58-value-equiv acl2::x x-equiv) (equal (base58-value-fix acl2::x) (base58-value-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm base58-value-fix-under-base58-value-equiv (base58-value-equiv (base58-value-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-base58-value-fix-1-forward-to-base58-value-equiv (implies (equal (base58-value-fix acl2::x) acl2::y) (base58-value-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-base58-value-fix-2-forward-to-base58-value-equiv (implies (equal acl2::x (base58-value-fix acl2::y)) (base58-value-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm base58-value-equiv-of-base58-value-fix-1-forward (implies (base58-value-equiv (base58-value-fix acl2::x) acl2::y) (base58-value-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm base58-value-equiv-of-base58-value-fix-2-forward (implies (base58-value-equiv acl2::x (base58-value-fix acl2::y)) (base58-value-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)