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