Metamath Proof Explorer


Theorem wlkeq

Description: Conditions for two walks (within the same graph) being the same. (Contributed by AV, 1-Jul-2018) (Revised by AV, 16-May-2019) (Revised by AV, 14-Apr-2021)

Ref Expression
Assertion wlkeq ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ∧ 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) ) → ( 𝐴 = 𝐵 ↔ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) )

Proof

Step Hyp Ref Expression
1 eqid ( Vtx ‘ 𝐺 ) = ( Vtx ‘ 𝐺 )
2 eqid ( iEdg ‘ 𝐺 ) = ( iEdg ‘ 𝐺 )
3 eqid ( 1st𝐴 ) = ( 1st𝐴 )
4 eqid ( 2nd𝐴 ) = ( 2nd𝐴 )
5 1 2 3 4 wlkelwrd ( 𝐴 ∈ ( Walks ‘ 𝐺 ) → ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) )
6 eqid ( 1st𝐵 ) = ( 1st𝐵 )
7 eqid ( 2nd𝐵 ) = ( 2nd𝐵 )
8 1 2 6 7 wlkelwrd ( 𝐵 ∈ ( Walks ‘ 𝐺 ) → ( ( 1st𝐵 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) )
9 5 8 anim12i ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ) → ( ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ∧ ( ( 1st𝐵 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ) )
10 wlkop ( 𝐴 ∈ ( Walks ‘ 𝐺 ) → 𝐴 = ⟨ ( 1st𝐴 ) , ( 2nd𝐴 ) ⟩ )
11 eleq1 ( 𝐴 = ⟨ ( 1st𝐴 ) , ( 2nd𝐴 ) ⟩ → ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ↔ ⟨ ( 1st𝐴 ) , ( 2nd𝐴 ) ⟩ ∈ ( Walks ‘ 𝐺 ) ) )
12 df-br ( ( 1st𝐴 ) ( Walks ‘ 𝐺 ) ( 2nd𝐴 ) ↔ ⟨ ( 1st𝐴 ) , ( 2nd𝐴 ) ⟩ ∈ ( Walks ‘ 𝐺 ) )
13 wlklenvm1 ( ( 1st𝐴 ) ( Walks ‘ 𝐺 ) ( 2nd𝐴 ) → ( ♯ ‘ ( 1st𝐴 ) ) = ( ( ♯ ‘ ( 2nd𝐴 ) ) − 1 ) )
14 12 13 sylbir ( ⟨ ( 1st𝐴 ) , ( 2nd𝐴 ) ⟩ ∈ ( Walks ‘ 𝐺 ) → ( ♯ ‘ ( 1st𝐴 ) ) = ( ( ♯ ‘ ( 2nd𝐴 ) ) − 1 ) )
15 11 14 syl6bi ( 𝐴 = ⟨ ( 1st𝐴 ) , ( 2nd𝐴 ) ⟩ → ( 𝐴 ∈ ( Walks ‘ 𝐺 ) → ( ♯ ‘ ( 1st𝐴 ) ) = ( ( ♯ ‘ ( 2nd𝐴 ) ) − 1 ) ) )
16 10 15 mpcom ( 𝐴 ∈ ( Walks ‘ 𝐺 ) → ( ♯ ‘ ( 1st𝐴 ) ) = ( ( ♯ ‘ ( 2nd𝐴 ) ) − 1 ) )
17 wlkop ( 𝐵 ∈ ( Walks ‘ 𝐺 ) → 𝐵 = ⟨ ( 1st𝐵 ) , ( 2nd𝐵 ) ⟩ )
18 eleq1 ( 𝐵 = ⟨ ( 1st𝐵 ) , ( 2nd𝐵 ) ⟩ → ( 𝐵 ∈ ( Walks ‘ 𝐺 ) ↔ ⟨ ( 1st𝐵 ) , ( 2nd𝐵 ) ⟩ ∈ ( Walks ‘ 𝐺 ) ) )
19 df-br ( ( 1st𝐵 ) ( Walks ‘ 𝐺 ) ( 2nd𝐵 ) ↔ ⟨ ( 1st𝐵 ) , ( 2nd𝐵 ) ⟩ ∈ ( Walks ‘ 𝐺 ) )
20 wlklenvm1 ( ( 1st𝐵 ) ( Walks ‘ 𝐺 ) ( 2nd𝐵 ) → ( ♯ ‘ ( 1st𝐵 ) ) = ( ( ♯ ‘ ( 2nd𝐵 ) ) − 1 ) )
21 19 20 sylbir ( ⟨ ( 1st𝐵 ) , ( 2nd𝐵 ) ⟩ ∈ ( Walks ‘ 𝐺 ) → ( ♯ ‘ ( 1st𝐵 ) ) = ( ( ♯ ‘ ( 2nd𝐵 ) ) − 1 ) )
22 18 21 syl6bi ( 𝐵 = ⟨ ( 1st𝐵 ) , ( 2nd𝐵 ) ⟩ → ( 𝐵 ∈ ( Walks ‘ 𝐺 ) → ( ♯ ‘ ( 1st𝐵 ) ) = ( ( ♯ ‘ ( 2nd𝐵 ) ) − 1 ) ) )
23 17 22 mpcom ( 𝐵 ∈ ( Walks ‘ 𝐺 ) → ( ♯ ‘ ( 1st𝐵 ) ) = ( ( ♯ ‘ ( 2nd𝐵 ) ) − 1 ) )
24 16 23 anim12i ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ) → ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ( ♯ ‘ ( 2nd𝐴 ) ) − 1 ) ∧ ( ♯ ‘ ( 1st𝐵 ) ) = ( ( ♯ ‘ ( 2nd𝐵 ) ) − 1 ) ) )
25 eqwrd ( ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 1st𝐵 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ) → ( ( 1st𝐴 ) = ( 1st𝐵 ) ↔ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ) )
26 25 ad2ant2r ( ( ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ∧ ( ( 1st𝐵 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ) → ( ( 1st𝐴 ) = ( 1st𝐵 ) ↔ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ) )
27 26 adantr ( ( ( ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ∧ ( ( 1st𝐵 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ) ∧ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ( ♯ ‘ ( 2nd𝐴 ) ) − 1 ) ∧ ( ♯ ‘ ( 1st𝐵 ) ) = ( ( ♯ ‘ ( 2nd𝐵 ) ) − 1 ) ) ) → ( ( 1st𝐴 ) = ( 1st𝐵 ) ↔ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ) )
28 lencl ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) → ( ♯ ‘ ( 1st𝐴 ) ) ∈ ℕ0 )
29 28 adantr ( ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) → ( ♯ ‘ ( 1st𝐴 ) ) ∈ ℕ0 )
30 simpr ( ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) → ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) )
31 simpr ( ( ( 1st𝐵 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) → ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) )
32 2ffzeq ( ( ( ♯ ‘ ( 1st𝐴 ) ) ∈ ℕ0 ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ∧ ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) → ( ( 2nd𝐴 ) = ( 2nd𝐵 ) ↔ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) )
33 29 30 31 32 syl2an3an ( ( ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ∧ ( ( 1st𝐵 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ) → ( ( 2nd𝐴 ) = ( 2nd𝐵 ) ↔ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) )
34 33 adantr ( ( ( ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ∧ ( ( 1st𝐵 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ) ∧ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ( ♯ ‘ ( 2nd𝐴 ) ) − 1 ) ∧ ( ♯ ‘ ( 1st𝐵 ) ) = ( ( ♯ ‘ ( 2nd𝐵 ) ) − 1 ) ) ) → ( ( 2nd𝐴 ) = ( 2nd𝐵 ) ↔ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) )
35 27 34 anbi12d ( ( ( ( ( 1st𝐴 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐴 ) : ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ∧ ( ( 1st𝐵 ) ∈ Word dom ( iEdg ‘ 𝐺 ) ∧ ( 2nd𝐵 ) : ( 0 ... ( ♯ ‘ ( 1st𝐵 ) ) ) ⟶ ( Vtx ‘ 𝐺 ) ) ) ∧ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ( ♯ ‘ ( 2nd𝐴 ) ) − 1 ) ∧ ( ♯ ‘ ( 1st𝐵 ) ) = ( ( ♯ ‘ ( 2nd𝐵 ) ) − 1 ) ) ) → ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ ( ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ) )
36 9 24 35 syl2anc ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ) → ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ ( ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ) )
37 36 3adant3 ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ∧ 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) ) → ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ ( ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ) )
38 eqeq1 ( 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) → ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ↔ ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ) )
39 oveq2 ( 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) → ( 0 ..^ 𝑁 ) = ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) )
40 39 raleqdv ( 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) → ( ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ↔ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) )
41 38 40 anbi12d ( 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) → ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ↔ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ) )
42 oveq2 ( 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) → ( 0 ... 𝑁 ) = ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) )
43 42 raleqdv ( 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) → ( ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ↔ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) )
44 38 43 anbi12d ( 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) → ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ↔ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) )
45 41 44 anbi12d ( 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) → ( ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ↔ ( ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ) )
46 45 bibi2d ( 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) → ( ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ) ↔ ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ ( ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ) ) )
47 46 3ad2ant3 ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ∧ 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) ) → ( ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ) ↔ ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ ( ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( ( ♯ ‘ ( 1st𝐴 ) ) = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... ( ♯ ‘ ( 1st𝐴 ) ) ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ) ) )
48 37 47 mpbird ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ∧ 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) ) → ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ) )
49 1st2ndb ( 𝐴 ∈ ( V × V ) ↔ 𝐴 = ⟨ ( 1st𝐴 ) , ( 2nd𝐴 ) ⟩ )
50 10 49 sylibr ( 𝐴 ∈ ( Walks ‘ 𝐺 ) → 𝐴 ∈ ( V × V ) )
51 1st2ndb ( 𝐵 ∈ ( V × V ) ↔ 𝐵 = ⟨ ( 1st𝐵 ) , ( 2nd𝐵 ) ⟩ )
52 17 51 sylibr ( 𝐵 ∈ ( Walks ‘ 𝐺 ) → 𝐵 ∈ ( V × V ) )
53 xpopth ( ( 𝐴 ∈ ( V × V ) ∧ 𝐵 ∈ ( V × V ) ) → ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ 𝐴 = 𝐵 ) )
54 50 52 53 syl2an ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ) → ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ 𝐴 = 𝐵 ) )
55 54 3adant3 ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ∧ 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) ) → ( ( ( 1st𝐴 ) = ( 1st𝐵 ) ∧ ( 2nd𝐴 ) = ( 2nd𝐵 ) ) ↔ 𝐴 = 𝐵 ) )
56 3anass ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ↔ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ( ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) )
57 anandi ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ( ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ↔ ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) )
58 56 57 bitr2i ( ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ↔ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) )
59 58 a1i ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ∧ 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) ) → ( ( ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ) ∧ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) ↔ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) )
60 48 55 59 3bitr3d ( ( 𝐴 ∈ ( Walks ‘ 𝐺 ) ∧ 𝐵 ∈ ( Walks ‘ 𝐺 ) ∧ 𝑁 = ( ♯ ‘ ( 1st𝐴 ) ) ) → ( 𝐴 = 𝐵 ↔ ( 𝑁 = ( ♯ ‘ ( 1st𝐵 ) ) ∧ ∀ 𝑥 ∈ ( 0 ..^ 𝑁 ) ( ( 1st𝐴 ) ‘ 𝑥 ) = ( ( 1st𝐵 ) ‘ 𝑥 ) ∧ ∀ 𝑥 ∈ ( 0 ... 𝑁 ) ( ( 2nd𝐴 ) ‘ 𝑥 ) = ( ( 2nd𝐵 ) ‘ 𝑥 ) ) ) )