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