Basic equivalence relation for bip32-ext-priv-key structures.
Function:
(defun bip32-ext-priv-key-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (bip32-ext-priv-key-p acl2::x) (bip32-ext-priv-key-p acl2::y)))) (equal (bip32-ext-priv-key-fix acl2::x) (bip32-ext-priv-key-fix acl2::y)))
Theorem:
(defthm bip32-ext-priv-key-equiv-is-an-equivalence (and (booleanp (bip32-ext-priv-key-equiv x y)) (bip32-ext-priv-key-equiv x x) (implies (bip32-ext-priv-key-equiv x y) (bip32-ext-priv-key-equiv y x)) (implies (and (bip32-ext-priv-key-equiv x y) (bip32-ext-priv-key-equiv y z)) (bip32-ext-priv-key-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm bip32-ext-priv-key-equiv-implies-equal-bip32-ext-priv-key-fix-1 (implies (bip32-ext-priv-key-equiv acl2::x x-equiv) (equal (bip32-ext-priv-key-fix acl2::x) (bip32-ext-priv-key-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm bip32-ext-priv-key-fix-under-bip32-ext-priv-key-equiv (bip32-ext-priv-key-equiv (bip32-ext-priv-key-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-bip32-ext-priv-key-fix-1-forward-to-bip32-ext-priv-key-equiv (implies (equal (bip32-ext-priv-key-fix acl2::x) acl2::y) (bip32-ext-priv-key-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-bip32-ext-priv-key-fix-2-forward-to-bip32-ext-priv-key-equiv (implies (equal acl2::x (bip32-ext-priv-key-fix acl2::y)) (bip32-ext-priv-key-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm bip32-ext-priv-key-equiv-of-bip32-ext-priv-key-fix-1-forward (implies (bip32-ext-priv-key-equiv (bip32-ext-priv-key-fix acl2::x) acl2::y) (bip32-ext-priv-key-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm bip32-ext-priv-key-equiv-of-bip32-ext-priv-key-fix-2-forward (implies (bip32-ext-priv-key-equiv acl2::x (bip32-ext-priv-key-fix acl2::y)) (bip32-ext-priv-key-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)