Step |
Hyp |
Ref |
Expression |
1 |
|
clwlkwlk |
⊢ ( 𝐶 ∈ ( ClWalks ‘ 𝐺 ) → 𝐶 ∈ ( Walks ‘ 𝐺 ) ) |
2 |
|
wlkcpr |
⊢ ( 𝐶 ∈ ( Walks ‘ 𝐺 ) ↔ ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) ) |
3 |
|
eqid |
⊢ ( Vtx ‘ 𝐺 ) = ( Vtx ‘ 𝐺 ) |
4 |
3
|
wlkpwrd |
⊢ ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) → ( 2nd ‘ 𝐶 ) ∈ Word ( Vtx ‘ 𝐺 ) ) |
5 |
|
lencl |
⊢ ( ( 2nd ‘ 𝐶 ) ∈ Word ( Vtx ‘ 𝐺 ) → ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ∈ ℕ0 ) |
6 |
4 5
|
syl |
⊢ ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) → ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ∈ ℕ0 ) |
7 |
|
wlklenvm1 |
⊢ ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) → ( ♯ ‘ ( 1st ‘ 𝐶 ) ) = ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) |
8 |
7
|
breq2d |
⊢ ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) → ( 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ↔ 1 ≤ ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) ) |
9 |
|
1red |
⊢ ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ∈ ℕ0 → 1 ∈ ℝ ) |
10 |
|
nn0re |
⊢ ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ∈ ℕ0 → ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ∈ ℝ ) |
11 |
9 9 10
|
leaddsub2d |
⊢ ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ∈ ℕ0 → ( ( 1 + 1 ) ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ↔ 1 ≤ ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) ) |
12 |
|
1p1e2 |
⊢ ( 1 + 1 ) = 2 |
13 |
12
|
breq1i |
⊢ ( ( 1 + 1 ) ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ↔ 2 ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) |
14 |
13
|
biimpi |
⊢ ( ( 1 + 1 ) ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) → 2 ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) |
15 |
11 14
|
syl6bir |
⊢ ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ∈ ℕ0 → ( 1 ≤ ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) → 2 ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) ) |
16 |
4 5 15
|
3syl |
⊢ ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) → ( 1 ≤ ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) → 2 ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) ) |
17 |
8 16
|
sylbid |
⊢ ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) → ( 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) → 2 ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) ) |
18 |
17
|
imp |
⊢ ( ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) ∧ 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) → 2 ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) |
19 |
|
ige2m1fz |
⊢ ( ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ∈ ℕ0 ∧ 2 ≤ ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) → ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ∈ ( 0 ... ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) ) |
20 |
6 18 19
|
syl2an2r |
⊢ ( ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) ∧ 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) → ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ∈ ( 0 ... ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) ) |
21 |
|
pfxlen |
⊢ ( ( ( 2nd ‘ 𝐶 ) ∈ Word ( Vtx ‘ 𝐺 ) ∧ ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ∈ ( 0 ... ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) ) ) → ( ♯ ‘ ( ( 2nd ‘ 𝐶 ) prefix ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) ) = ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) |
22 |
4 20 21
|
syl2an2r |
⊢ ( ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) ∧ 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) → ( ♯ ‘ ( ( 2nd ‘ 𝐶 ) prefix ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) ) = ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) |
23 |
7
|
eqcomd |
⊢ ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) → ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) = ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) |
24 |
23
|
adantr |
⊢ ( ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) ∧ 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) → ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) = ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) |
25 |
22 24
|
eqtrd |
⊢ ( ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) ∧ 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) → ( ♯ ‘ ( ( 2nd ‘ 𝐶 ) prefix ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) ) = ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) |
26 |
25
|
ex |
⊢ ( ( 1st ‘ 𝐶 ) ( Walks ‘ 𝐺 ) ( 2nd ‘ 𝐶 ) → ( 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) → ( ♯ ‘ ( ( 2nd ‘ 𝐶 ) prefix ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) ) = ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) ) |
27 |
2 26
|
sylbi |
⊢ ( 𝐶 ∈ ( Walks ‘ 𝐺 ) → ( 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) → ( ♯ ‘ ( ( 2nd ‘ 𝐶 ) prefix ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) ) = ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) ) |
28 |
1 27
|
syl |
⊢ ( 𝐶 ∈ ( ClWalks ‘ 𝐺 ) → ( 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) → ( ♯ ‘ ( ( 2nd ‘ 𝐶 ) prefix ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) ) = ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) ) |
29 |
28
|
imp |
⊢ ( ( 𝐶 ∈ ( ClWalks ‘ 𝐺 ) ∧ 1 ≤ ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) → ( ♯ ‘ ( ( 2nd ‘ 𝐶 ) prefix ( ( ♯ ‘ ( 2nd ‘ 𝐶 ) ) − 1 ) ) ) = ( ♯ ‘ ( 1st ‘ 𝐶 ) ) ) |