Step | Hyp | Ref
| Expression |
1 | | eqid 2738 |
. . 3
⊢
(Vtx‘𝐺) =
(Vtx‘𝐺) |
2 | | eqid 2738 |
. . 3
⊢
(Edg‘𝐺) =
(Edg‘𝐺) |
3 | 1, 2 | wwlknp 28109 |
. 2
⊢ (𝑊 ∈ (𝑀 WWalksN 𝐺) → (𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))) |
4 | | pfxcl 14318 |
. . . . . . . . . . . 12
⊢ (𝑊 ∈ Word (Vtx‘𝐺) → (𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺)) |
5 | 4 | adantr 480 |
. . . . . . . . . . 11
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) → (𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺)) |
6 | 5 | adantr 480 |
. . . . . . . . . 10
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺)) |
7 | | simpll 763 |
. . . . . . . . . . 11
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑊 ∈ Word (Vtx‘𝐺)) |
8 | | simprl 767 |
. . . . . . . . . . 11
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ ℕ) |
9 | | eluz2 12517 |
. . . . . . . . . . . . . . . 16
⊢ (𝑀 ∈
(ℤ≥‘𝑁) ↔ (𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑁 ≤ 𝑀)) |
10 | | zre 12253 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑁 ∈ ℤ → 𝑁 ∈
ℝ) |
11 | | zre 12253 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑀 ∈ ℤ → 𝑀 ∈
ℝ) |
12 | | id 22 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑁 ≤ 𝑀 → 𝑁 ≤ 𝑀) |
13 | 10, 11, 12 | 3anim123i 1149 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑁 ∈ ℤ ∧ 𝑀 ∈ ℤ ∧ 𝑁 ≤ 𝑀) → (𝑁 ∈ ℝ ∧ 𝑀 ∈ ℝ ∧ 𝑁 ≤ 𝑀)) |
14 | 9, 13 | sylbi 216 |
. . . . . . . . . . . . . . 15
⊢ (𝑀 ∈
(ℤ≥‘𝑁) → (𝑁 ∈ ℝ ∧ 𝑀 ∈ ℝ ∧ 𝑁 ≤ 𝑀)) |
15 | | letrp1 11749 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℝ ∧ 𝑀 ∈ ℝ ∧ 𝑁 ≤ 𝑀) → 𝑁 ≤ (𝑀 + 1)) |
16 | 14, 15 | syl 17 |
. . . . . . . . . . . . . 14
⊢ (𝑀 ∈
(ℤ≥‘𝑁) → 𝑁 ≤ (𝑀 + 1)) |
17 | 16 | adantl 481 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) → 𝑁 ≤ (𝑀 + 1)) |
18 | 17 | adantl 481 |
. . . . . . . . . . . 12
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ≤ (𝑀 + 1)) |
19 | | breq2 5074 |
. . . . . . . . . . . . 13
⊢
((♯‘𝑊) =
(𝑀 + 1) → (𝑁 ≤ (♯‘𝑊) ↔ 𝑁 ≤ (𝑀 + 1))) |
20 | 19 | ad2antlr 723 |
. . . . . . . . . . . 12
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (𝑁 ≤ (♯‘𝑊) ↔ 𝑁 ≤ (𝑀 + 1))) |
21 | 18, 20 | mpbird 256 |
. . . . . . . . . . 11
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ≤ (♯‘𝑊)) |
22 | | pfxn0 14327 |
. . . . . . . . . . 11
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ ℕ ∧ 𝑁 ≤ (♯‘𝑊)) → (𝑊 prefix 𝑁) ≠ ∅) |
23 | 7, 8, 21, 22 | syl3anc 1369 |
. . . . . . . . . 10
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (𝑊 prefix 𝑁) ≠ ∅) |
24 | 6, 23 | jca 511 |
. . . . . . . . 9
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → ((𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺) ∧ (𝑊 prefix 𝑁) ≠ ∅)) |
25 | 24 | 3adantl3 1166 |
. . . . . . . 8
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → ((𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺) ∧ (𝑊 prefix 𝑁) ≠ ∅)) |
26 | 25 | adantr 480 |
. . . . . . 7
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → ((𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺) ∧ (𝑊 prefix 𝑁) ≠ ∅)) |
27 | | nnz 12272 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℤ) |
28 | | 1nn0 12179 |
. . . . . . . . . . . . . . . . . 18
⊢ 1 ∈
ℕ0 |
29 | | eluzmn 12518 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑁 ∈ ℤ ∧ 1 ∈
ℕ0) → 𝑁 ∈ (ℤ≥‘(𝑁 − 1))) |
30 | 27, 28, 29 | sylancl 585 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
(ℤ≥‘(𝑁 − 1))) |
31 | | uzss 12534 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑁 ∈
(ℤ≥‘(𝑁 − 1)) →
(ℤ≥‘𝑁) ⊆
(ℤ≥‘(𝑁 − 1))) |
32 | 30, 31 | syl 17 |
. . . . . . . . . . . . . . . 16
⊢ (𝑁 ∈ ℕ →
(ℤ≥‘𝑁) ⊆
(ℤ≥‘(𝑁 − 1))) |
33 | 32 | sselda 3917 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) → 𝑀 ∈ (ℤ≥‘(𝑁 − 1))) |
34 | | fzoss2 13343 |
. . . . . . . . . . . . . . 15
⊢ (𝑀 ∈
(ℤ≥‘(𝑁 − 1)) → (0..^(𝑁 − 1)) ⊆ (0..^𝑀)) |
35 | 33, 34 | syl 17 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) → (0..^(𝑁 − 1)) ⊆ (0..^𝑀)) |
36 | 35 | 3ad2ant3 1133 |
. . . . . . . . . . . . 13
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (0..^(𝑁 − 1)) ⊆ (0..^𝑀)) |
37 | | ssralv 3983 |
. . . . . . . . . . . . 13
⊢
((0..^(𝑁 − 1))
⊆ (0..^𝑀) →
(∀𝑖 ∈
(0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) → ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))) |
38 | 36, 37 | syl 17 |
. . . . . . . . . . . 12
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) → ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))) |
39 | 38 | 3exp 1117 |
. . . . . . . . . . 11
⊢ (𝑊 ∈ Word (Vtx‘𝐺) → ((♯‘𝑊) = (𝑀 + 1) → ((𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁)) → (∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) → ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))))) |
40 | 39 | com34 91 |
. . . . . . . . . 10
⊢ (𝑊 ∈ Word (Vtx‘𝐺) → ((♯‘𝑊) = (𝑀 + 1) → (∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) → ((𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁)) → ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))))) |
41 | 40 | 3imp1 1345 |
. . . . . . . . 9
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) |
42 | 41 | adantr 480 |
. . . . . . . 8
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) |
43 | | nnnn0 12170 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℕ0) |
44 | | elnn0uz 12552 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑁 ∈ ℕ0
↔ 𝑁 ∈
(ℤ≥‘0)) |
45 | 43, 44 | sylib 217 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
(ℤ≥‘0)) |
46 | | eluzfz 13180 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑁 ∈
(ℤ≥‘0) ∧ 𝑀 ∈ (ℤ≥‘𝑁)) → 𝑁 ∈ (0...𝑀)) |
47 | 45, 46 | sylan 579 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) → 𝑁 ∈ (0...𝑀)) |
48 | | fzelp1 13237 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑁 ∈ (0...𝑀) → 𝑁 ∈ (0...(𝑀 + 1))) |
49 | 47, 48 | syl 17 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) → 𝑁 ∈ (0...(𝑀 + 1))) |
50 | 49 | adantl 481 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ (0...(𝑀 + 1))) |
51 | | oveq2 7263 |
. . . . . . . . . . . . . . . . . 18
⊢
((♯‘𝑊) =
(𝑀 + 1) →
(0...(♯‘𝑊)) =
(0...(𝑀 +
1))) |
52 | 51 | eleq2d 2824 |
. . . . . . . . . . . . . . . . 17
⊢
((♯‘𝑊) =
(𝑀 + 1) → (𝑁 ∈
(0...(♯‘𝑊))
↔ 𝑁 ∈ (0...(𝑀 + 1)))) |
53 | 52 | ad2antlr 723 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (𝑁 ∈ (0...(♯‘𝑊)) ↔ 𝑁 ∈ (0...(𝑀 + 1)))) |
54 | 50, 53 | mpbird 256 |
. . . . . . . . . . . . . . 15
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ (0...(♯‘𝑊))) |
55 | | pfxlen 14324 |
. . . . . . . . . . . . . . 15
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (0...(♯‘𝑊))) → (♯‘(𝑊 prefix 𝑁)) = 𝑁) |
56 | 7, 54, 55 | syl2anc 583 |
. . . . . . . . . . . . . 14
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (♯‘(𝑊 prefix 𝑁)) = 𝑁) |
57 | 56 | oveq1d 7270 |
. . . . . . . . . . . . 13
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) →
((♯‘(𝑊 prefix
𝑁)) − 1) = (𝑁 − 1)) |
58 | 57 | oveq2d 7271 |
. . . . . . . . . . . 12
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) →
(0..^((♯‘(𝑊
prefix 𝑁)) − 1)) =
(0..^(𝑁 −
1))) |
59 | 58 | raleqdv 3339 |
. . . . . . . . . . 11
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (∀𝑖 ∈
(0..^((♯‘(𝑊
prefix 𝑁)) −
1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ ∀𝑖 ∈ (0..^(𝑁 − 1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺))) |
60 | 7 | adantr 480 |
. . . . . . . . . . . . . . 15
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ 𝑖 ∈ (0..^(𝑁 − 1))) → 𝑊 ∈ Word (Vtx‘𝐺)) |
61 | 54 | adantr 480 |
. . . . . . . . . . . . . . 15
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ 𝑖 ∈ (0..^(𝑁 − 1))) → 𝑁 ∈ (0...(♯‘𝑊))) |
62 | 30 | ad2antrl 724 |
. . . . . . . . . . . . . . . . 17
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ (ℤ≥‘(𝑁 − 1))) |
63 | | fzoss2 13343 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑁 ∈
(ℤ≥‘(𝑁 − 1)) → (0..^(𝑁 − 1)) ⊆ (0..^𝑁)) |
64 | 62, 63 | syl 17 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (0..^(𝑁 − 1)) ⊆ (0..^𝑁)) |
65 | 64 | sselda 3917 |
. . . . . . . . . . . . . . 15
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ 𝑖 ∈ (0..^(𝑁 − 1))) → 𝑖 ∈ (0..^𝑁)) |
66 | | pfxfv 14323 |
. . . . . . . . . . . . . . 15
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (0...(♯‘𝑊)) ∧ 𝑖 ∈ (0..^𝑁)) → ((𝑊 prefix 𝑁)‘𝑖) = (𝑊‘𝑖)) |
67 | 60, 61, 65, 66 | syl3anc 1369 |
. . . . . . . . . . . . . 14
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ 𝑖 ∈ (0..^(𝑁 − 1))) → ((𝑊 prefix 𝑁)‘𝑖) = (𝑊‘𝑖)) |
68 | 27 | ad2antrl 724 |
. . . . . . . . . . . . . . . 16
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ ℤ) |
69 | | elfzom1elp1fzo 13382 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑁 ∈ ℤ ∧ 𝑖 ∈ (0..^(𝑁 − 1))) → (𝑖 + 1) ∈ (0..^𝑁)) |
70 | 68, 69 | sylan 579 |
. . . . . . . . . . . . . . 15
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ 𝑖 ∈ (0..^(𝑁 − 1))) → (𝑖 + 1) ∈ (0..^𝑁)) |
71 | | pfxfv 14323 |
. . . . . . . . . . . . . . 15
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (0...(♯‘𝑊)) ∧ (𝑖 + 1) ∈ (0..^𝑁)) → ((𝑊 prefix 𝑁)‘(𝑖 + 1)) = (𝑊‘(𝑖 + 1))) |
72 | 60, 61, 70, 71 | syl3anc 1369 |
. . . . . . . . . . . . . 14
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ 𝑖 ∈ (0..^(𝑁 − 1))) → ((𝑊 prefix 𝑁)‘(𝑖 + 1)) = (𝑊‘(𝑖 + 1))) |
73 | 67, 72 | preq12d 4674 |
. . . . . . . . . . . . 13
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ 𝑖 ∈ (0..^(𝑁 − 1))) → {((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} = {(𝑊‘𝑖), (𝑊‘(𝑖 + 1))}) |
74 | 73 | eleq1d 2823 |
. . . . . . . . . . . 12
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ 𝑖 ∈ (0..^(𝑁 − 1))) → ({((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ {(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))) |
75 | 74 | ralbidva 3119 |
. . . . . . . . . . 11
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (∀𝑖 ∈ (0..^(𝑁 − 1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))) |
76 | 59, 75 | bitrd 278 |
. . . . . . . . . 10
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (∀𝑖 ∈
(0..^((♯‘(𝑊
prefix 𝑁)) −
1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))) |
77 | 76 | 3adantl3 1166 |
. . . . . . . . 9
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (∀𝑖 ∈
(0..^((♯‘(𝑊
prefix 𝑁)) −
1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))) |
78 | 77 | adantr 480 |
. . . . . . . 8
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → (∀𝑖 ∈
(0..^((♯‘(𝑊
prefix 𝑁)) −
1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ ∀𝑖 ∈ (0..^(𝑁 − 1)){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))) |
79 | 42, 78 | mpbird 256 |
. . . . . . 7
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → ∀𝑖 ∈ (0..^((♯‘(𝑊 prefix 𝑁)) − 1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺)) |
80 | | elfz1uz 13255 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) → 𝑁 ∈ (1...𝑀)) |
81 | | fzelp1 13237 |
. . . . . . . . . . . . . 14
⊢ (𝑁 ∈ (1...𝑀) → 𝑁 ∈ (1...(𝑀 + 1))) |
82 | 80, 81 | syl 17 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) → 𝑁 ∈ (1...(𝑀 + 1))) |
83 | 82 | adantl 481 |
. . . . . . . . . . . 12
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ (1...(𝑀 + 1))) |
84 | | oveq2 7263 |
. . . . . . . . . . . . . 14
⊢
((♯‘𝑊) =
(𝑀 + 1) →
(1...(♯‘𝑊)) =
(1...(𝑀 +
1))) |
85 | 84 | eleq2d 2824 |
. . . . . . . . . . . . 13
⊢
((♯‘𝑊) =
(𝑀 + 1) → (𝑁 ∈
(1...(♯‘𝑊))
↔ 𝑁 ∈ (1...(𝑀 + 1)))) |
86 | 85 | ad2antlr 723 |
. . . . . . . . . . . 12
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (𝑁 ∈ (1...(♯‘𝑊)) ↔ 𝑁 ∈ (1...(𝑀 + 1)))) |
87 | 83, 86 | mpbird 256 |
. . . . . . . . . . 11
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ (1...(♯‘𝑊))) |
88 | | pfxfvlsw 14336 |
. . . . . . . . . . . 12
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑊))) → (lastS‘(𝑊 prefix 𝑁)) = (𝑊‘(𝑁 − 1))) |
89 | | pfxfv0 14333 |
. . . . . . . . . . . 12
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑊))) → ((𝑊 prefix 𝑁)‘0) = (𝑊‘0)) |
90 | 88, 89 | preq12d 4674 |
. . . . . . . . . . 11
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (1...(♯‘𝑊))) → {(lastS‘(𝑊 prefix 𝑁)), ((𝑊 prefix 𝑁)‘0)} = {(𝑊‘(𝑁 − 1)), (𝑊‘0)}) |
91 | 7, 87, 90 | syl2anc 583 |
. . . . . . . . . 10
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → {(lastS‘(𝑊 prefix 𝑁)), ((𝑊 prefix 𝑁)‘0)} = {(𝑊‘(𝑁 − 1)), (𝑊‘0)}) |
92 | 91 | 3adantl3 1166 |
. . . . . . . . 9
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → {(lastS‘(𝑊 prefix 𝑁)), ((𝑊 prefix 𝑁)‘0)} = {(𝑊‘(𝑁 − 1)), (𝑊‘0)}) |
93 | 92 | adantr 480 |
. . . . . . . 8
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → {(lastS‘(𝑊 prefix 𝑁)), ((𝑊 prefix 𝑁)‘0)} = {(𝑊‘(𝑁 − 1)), (𝑊‘0)}) |
94 | | fz1fzo0m1 13363 |
. . . . . . . . . . . . . . . 16
⊢ (𝑁 ∈ (1...𝑀) → (𝑁 − 1) ∈ (0..^𝑀)) |
95 | 80, 94 | syl 17 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) → (𝑁 − 1) ∈ (0..^𝑀)) |
96 | 95 | 3ad2ant3 1133 |
. . . . . . . . . . . . . 14
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (𝑁 − 1) ∈ (0..^𝑀)) |
97 | | simpr 484 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((𝑁 ∈ ℕ ∧ 𝑖 = (𝑁 − 1)) → 𝑖 = (𝑁 − 1)) |
98 | 97 | fveq2d 6760 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((𝑁 ∈ ℕ ∧ 𝑖 = (𝑁 − 1)) → (𝑊‘𝑖) = (𝑊‘(𝑁 − 1))) |
99 | | oveq1 7262 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ (𝑖 = (𝑁 − 1) → (𝑖 + 1) = ((𝑁 − 1) + 1)) |
100 | | nncn 11911 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℂ) |
101 | | npcan1 11330 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ (𝑁 ∈ ℂ → ((𝑁 − 1) + 1) = 𝑁) |
102 | 100, 101 | syl 17 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ (𝑁 ∈ ℕ → ((𝑁 − 1) + 1) = 𝑁) |
103 | 99, 102 | sylan9eqr 2801 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((𝑁 ∈ ℕ ∧ 𝑖 = (𝑁 − 1)) → (𝑖 + 1) = 𝑁) |
104 | 103 | fveq2d 6760 |
. . . . . . . . . . . . . . . . . . . 20
⊢ ((𝑁 ∈ ℕ ∧ 𝑖 = (𝑁 − 1)) → (𝑊‘(𝑖 + 1)) = (𝑊‘𝑁)) |
105 | 98, 104 | preq12d 4674 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝑁 ∈ ℕ ∧ 𝑖 = (𝑁 − 1)) → {(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} = {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)}) |
106 | 105 | eleq1d 2823 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑁 ∈ ℕ ∧ 𝑖 = (𝑁 − 1)) → ({(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺))) |
107 | 106 | ex 412 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑁 ∈ ℕ → (𝑖 = (𝑁 − 1) → ({(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺)))) |
108 | 107 | adantr 480 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) → (𝑖 = (𝑁 − 1) → ({(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺)))) |
109 | 108 | 3ad2ant3 1133 |
. . . . . . . . . . . . . . 15
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (𝑖 = (𝑁 − 1) → ({(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺)))) |
110 | 109 | imp 406 |
. . . . . . . . . . . . . 14
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ 𝑖 = (𝑁 − 1)) → ({(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) ↔ {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺))) |
111 | 96, 110 | rspcdv 3543 |
. . . . . . . . . . . . 13
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) → {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺))) |
112 | 111 | 3exp 1117 |
. . . . . . . . . . . 12
⊢ (𝑊 ∈ Word (Vtx‘𝐺) → ((♯‘𝑊) = (𝑀 + 1) → ((𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁)) → (∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) → {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺))))) |
113 | 112 | com34 91 |
. . . . . . . . . . 11
⊢ (𝑊 ∈ Word (Vtx‘𝐺) → ((♯‘𝑊) = (𝑀 + 1) → (∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺) → ((𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁)) → {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺))))) |
114 | 113 | 3imp1 1345 |
. . . . . . . . . 10
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺)) |
115 | 114 | adantr 480 |
. . . . . . . . 9
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺)) |
116 | | preq2 4667 |
. . . . . . . . . . 11
⊢ ((𝑊‘𝑁) = (𝑊‘0) → {(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} = {(𝑊‘(𝑁 − 1)), (𝑊‘0)}) |
117 | 116 | eleq1d 2823 |
. . . . . . . . . 10
⊢ ((𝑊‘𝑁) = (𝑊‘0) → ({(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺) ↔ {(𝑊‘(𝑁 − 1)), (𝑊‘0)} ∈ (Edg‘𝐺))) |
118 | 117 | adantl 481 |
. . . . . . . . 9
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → ({(𝑊‘(𝑁 − 1)), (𝑊‘𝑁)} ∈ (Edg‘𝐺) ↔ {(𝑊‘(𝑁 − 1)), (𝑊‘0)} ∈ (Edg‘𝐺))) |
119 | 115, 118 | mpbid 231 |
. . . . . . . 8
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → {(𝑊‘(𝑁 − 1)), (𝑊‘0)} ∈ (Edg‘𝐺)) |
120 | 93, 119 | eqeltrd 2839 |
. . . . . . 7
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → {(lastS‘(𝑊 prefix 𝑁)), ((𝑊 prefix 𝑁)‘0)} ∈ (Edg‘𝐺)) |
121 | 26, 79, 120 | 3jca 1126 |
. . . . . 6
⊢ ((((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) ∧ (𝑊‘𝑁) = (𝑊‘0)) → (((𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺) ∧ (𝑊 prefix 𝑁) ≠ ∅) ∧ ∀𝑖 ∈
(0..^((♯‘(𝑊
prefix 𝑁)) −
1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ∧ {(lastS‘(𝑊 prefix 𝑁)), ((𝑊 prefix 𝑁)‘0)} ∈ (Edg‘𝐺))) |
122 | 121 | exp31 419 |
. . . . 5
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) → ((𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁)) → ((𝑊‘𝑁) = (𝑊‘0) → (((𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺) ∧ (𝑊 prefix 𝑁) ≠ ∅) ∧ ∀𝑖 ∈
(0..^((♯‘(𝑊
prefix 𝑁)) −
1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ∧ {(lastS‘(𝑊 prefix 𝑁)), ((𝑊 prefix 𝑁)‘0)} ∈ (Edg‘𝐺))))) |
123 | 122 | 3imp21 1112 |
. . . 4
⊢ (((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) ∧ (𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑊‘𝑁) = (𝑊‘0)) → (((𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺) ∧ (𝑊 prefix 𝑁) ≠ ∅) ∧ ∀𝑖 ∈
(0..^((♯‘(𝑊
prefix 𝑁)) −
1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ∧ {(lastS‘(𝑊 prefix 𝑁)), ((𝑊 prefix 𝑁)‘0)} ∈ (Edg‘𝐺))) |
124 | 1, 2 | isclwwlk 28249 |
. . . 4
⊢ ((𝑊 prefix 𝑁) ∈ (ClWWalks‘𝐺) ↔ (((𝑊 prefix 𝑁) ∈ Word (Vtx‘𝐺) ∧ (𝑊 prefix 𝑁) ≠ ∅) ∧ ∀𝑖 ∈
(0..^((♯‘(𝑊
prefix 𝑁)) −
1)){((𝑊 prefix 𝑁)‘𝑖), ((𝑊 prefix 𝑁)‘(𝑖 + 1))} ∈ (Edg‘𝐺) ∧ {(lastS‘(𝑊 prefix 𝑁)), ((𝑊 prefix 𝑁)‘0)} ∈ (Edg‘𝐺))) |
125 | 123, 124 | sylibr 233 |
. . 3
⊢ (((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) ∧ (𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑊‘𝑁) = (𝑊‘0)) → (𝑊 prefix 𝑁) ∈ (ClWWalks‘𝐺)) |
126 | 47 | adantl 481 |
. . . . . . . . . . 11
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ (0...𝑀)) |
127 | 126, 48 | syl 17 |
. . . . . . . . . 10
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ (0...(𝑀 + 1))) |
128 | 127, 53 | mpbird 256 |
. . . . . . . . 9
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → 𝑁 ∈ (0...(♯‘𝑊))) |
129 | 7, 128 | jca 511 |
. . . . . . . 8
⊢ (((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) ∧ (𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁))) → (𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (0...(♯‘𝑊)))) |
130 | 129 | ex 412 |
. . . . . . 7
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1)) → ((𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁)) → (𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (0...(♯‘𝑊))))) |
131 | 130 | 3adant3 1130 |
. . . . . 6
⊢ ((𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) → ((𝑁 ∈ ℕ ∧ 𝑀 ∈ (ℤ≥‘𝑁)) → (𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (0...(♯‘𝑊))))) |
132 | 131 | impcom 407 |
. . . . 5
⊢ (((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) ∧ (𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺))) → (𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (0...(♯‘𝑊)))) |
133 | 132 | 3adant3 1130 |
. . . 4
⊢ (((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) ∧ (𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑊‘𝑁) = (𝑊‘0)) → (𝑊 ∈ Word (Vtx‘𝐺) ∧ 𝑁 ∈ (0...(♯‘𝑊)))) |
134 | 133, 55 | syl 17 |
. . 3
⊢ (((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) ∧ (𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑊‘𝑁) = (𝑊‘0)) → (♯‘(𝑊 prefix 𝑁)) = 𝑁) |
135 | | isclwwlkn 28292 |
. . 3
⊢ ((𝑊 prefix 𝑁) ∈ (𝑁 ClWWalksN 𝐺) ↔ ((𝑊 prefix 𝑁) ∈ (ClWWalks‘𝐺) ∧ (♯‘(𝑊 prefix 𝑁)) = 𝑁)) |
136 | 125, 134,
135 | sylanbrc 582 |
. 2
⊢ (((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) ∧ (𝑊 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑊) = (𝑀 + 1) ∧ ∀𝑖 ∈ (0..^𝑀){(𝑊‘𝑖), (𝑊‘(𝑖 + 1))} ∈ (Edg‘𝐺)) ∧ (𝑊‘𝑁) = (𝑊‘0)) → (𝑊 prefix 𝑁) ∈ (𝑁 ClWWalksN 𝐺)) |
137 | 3, 136 | syl3an2 1162 |
1
⊢ (((𝑁 ∈ ℕ ∧ 𝑀 ∈
(ℤ≥‘𝑁)) ∧ 𝑊 ∈ (𝑀 WWalksN 𝐺) ∧ (𝑊‘𝑁) = (𝑊‘0)) → (𝑊 prefix 𝑁) ∈ (𝑁 ClWWalksN 𝐺)) |