Step | Hyp | Ref
| Expression |
1 | | eqid 2738 |
. . . . 5
⊢
(iEdg‘𝐺) =
(iEdg‘𝐺) |
2 | 1 | wlkf 27981 |
. . . 4
⊢ (𝐹(Walks‘𝐺)𝑃 → 𝐹 ∈ Word dom (iEdg‘𝐺)) |
3 | 2 | adantr 481 |
. . 3
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → 𝐹 ∈ Word dom (iEdg‘𝐺)) |
4 | | pfxcl 14390 |
. . 3
⊢ (𝐹 ∈ Word dom
(iEdg‘𝐺) →
(𝐹 prefix 𝐿) ∈ Word dom (iEdg‘𝐺)) |
5 | 3, 4 | syl 17 |
. 2
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝐹 prefix 𝐿) ∈ Word dom (iEdg‘𝐺)) |
6 | | eqid 2738 |
. . . . . . 7
⊢
(Vtx‘𝐺) =
(Vtx‘𝐺) |
7 | 6 | wlkp 27983 |
. . . . . 6
⊢ (𝐹(Walks‘𝐺)𝑃 → 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) |
8 | 7 | adantr 481 |
. . . . 5
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺)) |
9 | | elfzuz3 13253 |
. . . . . . 7
⊢ (𝐿 ∈
(0...(♯‘𝐹))
→ (♯‘𝐹)
∈ (ℤ≥‘𝐿)) |
10 | | fzss2 13296 |
. . . . . . 7
⊢
((♯‘𝐹)
∈ (ℤ≥‘𝐿) → (0...𝐿) ⊆ (0...(♯‘𝐹))) |
11 | 9, 10 | syl 17 |
. . . . . 6
⊢ (𝐿 ∈
(0...(♯‘𝐹))
→ (0...𝐿) ⊆
(0...(♯‘𝐹))) |
12 | 11 | adantl 482 |
. . . . 5
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (0...𝐿) ⊆
(0...(♯‘𝐹))) |
13 | 8, 12 | fssresd 6641 |
. . . 4
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑃 ↾ (0...𝐿)):(0...𝐿)⟶(Vtx‘𝐺)) |
14 | | pfxlen 14396 |
. . . . . . 7
⊢ ((𝐹 ∈ Word dom
(iEdg‘𝐺) ∧ 𝐿 ∈
(0...(♯‘𝐹)))
→ (♯‘(𝐹
prefix 𝐿)) = 𝐿) |
15 | 2, 14 | sylan 580 |
. . . . . 6
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (♯‘(𝐹 prefix 𝐿)) = 𝐿) |
16 | 15 | oveq2d 7291 |
. . . . 5
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) →
(0...(♯‘(𝐹
prefix 𝐿))) = (0...𝐿)) |
17 | 16 | feq2d 6586 |
. . . 4
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → ((𝑃 ↾ (0...𝐿)):(0...(♯‘(𝐹 prefix 𝐿)))⟶(Vtx‘𝐺) ↔ (𝑃 ↾ (0...𝐿)):(0...𝐿)⟶(Vtx‘𝐺))) |
18 | 13, 17 | mpbird 256 |
. . 3
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑃 ↾ (0...𝐿)):(0...(♯‘(𝐹 prefix 𝐿)))⟶(Vtx‘𝐺)) |
19 | 6 | wlkpwrd 27984 |
. . . . . 6
⊢ (𝐹(Walks‘𝐺)𝑃 → 𝑃 ∈ Word (Vtx‘𝐺)) |
20 | | fzp1elp1 13309 |
. . . . . . . 8
⊢ (𝐿 ∈
(0...(♯‘𝐹))
→ (𝐿 + 1) ∈
(0...((♯‘𝐹) +
1))) |
21 | 20 | adantl 482 |
. . . . . . 7
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝐿 + 1) ∈ (0...((♯‘𝐹) + 1))) |
22 | | wlklenvp1 27985 |
. . . . . . . . 9
⊢ (𝐹(Walks‘𝐺)𝑃 → (♯‘𝑃) = ((♯‘𝐹) + 1)) |
23 | 22 | oveq2d 7291 |
. . . . . . . 8
⊢ (𝐹(Walks‘𝐺)𝑃 → (0...(♯‘𝑃)) = (0...((♯‘𝐹) + 1))) |
24 | 23 | adantr 481 |
. . . . . . 7
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) →
(0...(♯‘𝑃)) =
(0...((♯‘𝐹) +
1))) |
25 | 21, 24 | eleqtrrd 2842 |
. . . . . 6
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝐿 + 1) ∈ (0...(♯‘𝑃))) |
26 | | pfxres 14392 |
. . . . . 6
⊢ ((𝑃 ∈ Word (Vtx‘𝐺) ∧ (𝐿 + 1) ∈ (0...(♯‘𝑃))) → (𝑃 prefix (𝐿 + 1)) = (𝑃 ↾ (0..^(𝐿 + 1)))) |
27 | 19, 25, 26 | syl2an2r 682 |
. . . . 5
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑃 prefix (𝐿 + 1)) = (𝑃 ↾ (0..^(𝐿 + 1)))) |
28 | | elfzelz 13256 |
. . . . . . . 8
⊢ (𝐿 ∈
(0...(♯‘𝐹))
→ 𝐿 ∈
ℤ) |
29 | | fzval3 13456 |
. . . . . . . 8
⊢ (𝐿 ∈ ℤ →
(0...𝐿) = (0..^(𝐿 + 1))) |
30 | 28, 29 | syl 17 |
. . . . . . 7
⊢ (𝐿 ∈
(0...(♯‘𝐹))
→ (0...𝐿) =
(0..^(𝐿 +
1))) |
31 | 30 | adantl 482 |
. . . . . 6
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (0...𝐿) = (0..^(𝐿 + 1))) |
32 | 31 | reseq2d 5891 |
. . . . 5
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑃 ↾ (0...𝐿)) = (𝑃 ↾ (0..^(𝐿 + 1)))) |
33 | 27, 32 | eqtr4d 2781 |
. . . 4
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑃 prefix (𝐿 + 1)) = (𝑃 ↾ (0...𝐿))) |
34 | 33 | feq1d 6585 |
. . 3
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → ((𝑃 prefix (𝐿 + 1)):(0...(♯‘(𝐹 prefix 𝐿)))⟶(Vtx‘𝐺) ↔ (𝑃 ↾ (0...𝐿)):(0...(♯‘(𝐹 prefix 𝐿)))⟶(Vtx‘𝐺))) |
35 | 18, 34 | mpbird 256 |
. 2
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑃 prefix (𝐿 + 1)):(0...(♯‘(𝐹 prefix 𝐿)))⟶(Vtx‘𝐺)) |
36 | 6, 1 | wlkprop 27978 |
. . . . . . 7
⊢ (𝐹(Walks‘𝐺)𝑃 → (𝐹 ∈ Word dom (iEdg‘𝐺) ∧ 𝑃:(0...(♯‘𝐹))⟶(Vtx‘𝐺) ∧ ∀𝑥 ∈ (0..^(♯‘𝐹))if-((𝑃‘𝑥) = (𝑃‘(𝑥 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑥)) = {(𝑃‘𝑥)}, {(𝑃‘𝑥), (𝑃‘(𝑥 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑥))))) |
37 | 36 | simp3d 1143 |
. . . . . 6
⊢ (𝐹(Walks‘𝐺)𝑃 → ∀𝑥 ∈ (0..^(♯‘𝐹))if-((𝑃‘𝑥) = (𝑃‘(𝑥 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑥)) = {(𝑃‘𝑥)}, {(𝑃‘𝑥), (𝑃‘(𝑥 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑥)))) |
38 | 37 | adantr 481 |
. . . . 5
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → ∀𝑥 ∈
(0..^(♯‘𝐹))if-((𝑃‘𝑥) = (𝑃‘(𝑥 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑥)) = {(𝑃‘𝑥)}, {(𝑃‘𝑥), (𝑃‘(𝑥 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑥)))) |
39 | 38 | adantr 481 |
. . . 4
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → ∀𝑥 ∈ (0..^(♯‘𝐹))if-((𝑃‘𝑥) = (𝑃‘(𝑥 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑥)) = {(𝑃‘𝑥)}, {(𝑃‘𝑥), (𝑃‘(𝑥 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑥)))) |
40 | 15 | oveq2d 7291 |
. . . . . . . . 9
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) →
(0..^(♯‘(𝐹
prefix 𝐿))) = (0..^𝐿)) |
41 | 40 | eleq2d 2824 |
. . . . . . . 8
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿))) ↔ 𝑘 ∈ (0..^𝐿))) |
42 | 33 | fveq1d 6776 |
. . . . . . . . . . . 12
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → ((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 ↾ (0...𝐿))‘𝑘)) |
43 | 42 | adantr 481 |
. . . . . . . . . . 11
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → ((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 ↾ (0...𝐿))‘𝑘)) |
44 | | fzossfz 13406 |
. . . . . . . . . . . . . 14
⊢
(0..^𝐿) ⊆
(0...𝐿) |
45 | 44 | a1i 11 |
. . . . . . . . . . . . 13
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (0..^𝐿) ⊆ (0...𝐿)) |
46 | 45 | sselda 3921 |
. . . . . . . . . . . 12
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → 𝑘 ∈ (0...𝐿)) |
47 | 46 | fvresd 6794 |
. . . . . . . . . . 11
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → ((𝑃 ↾ (0...𝐿))‘𝑘) = (𝑃‘𝑘)) |
48 | 43, 47 | eqtr2d 2779 |
. . . . . . . . . 10
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → (𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘)) |
49 | 33 | fveq1d 6776 |
. . . . . . . . . . . 12
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)) = ((𝑃 ↾ (0...𝐿))‘(𝑘 + 1))) |
50 | 49 | adantr 481 |
. . . . . . . . . . 11
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)) = ((𝑃 ↾ (0...𝐿))‘(𝑘 + 1))) |
51 | | fzofzp1 13484 |
. . . . . . . . . . . . 13
⊢ (𝑘 ∈ (0..^𝐿) → (𝑘 + 1) ∈ (0...𝐿)) |
52 | 51 | adantl 482 |
. . . . . . . . . . . 12
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → (𝑘 + 1) ∈ (0...𝐿)) |
53 | 52 | fvresd 6794 |
. . . . . . . . . . 11
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → ((𝑃 ↾ (0...𝐿))‘(𝑘 + 1)) = (𝑃‘(𝑘 + 1))) |
54 | 50, 53 | eqtr2d 2779 |
. . . . . . . . . 10
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) |
55 | 48, 54 | jca 512 |
. . . . . . . . 9
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → ((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)))) |
56 | 55 | ex 413 |
. . . . . . . 8
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑘 ∈ (0..^𝐿) → ((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))))) |
57 | 41, 56 | sylbid 239 |
. . . . . . 7
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿))) → ((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))))) |
58 | 57 | imp 407 |
. . . . . 6
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → ((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)))) |
59 | 3 | ancli 549 |
. . . . . . . . . . . 12
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝐹 ∈ Word dom (iEdg‘𝐺))) |
60 | | simpr 485 |
. . . . . . . . . . . . . 14
⊢ ((((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝐹 ∈ Word dom (iEdg‘𝐺)) ∧ 𝑘 ∈ (0..^𝐿)) → 𝑘 ∈ (0..^𝐿)) |
61 | 60 | fvresd 6794 |
. . . . . . . . . . . . 13
⊢ ((((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝐹 ∈ Word dom (iEdg‘𝐺)) ∧ 𝑘 ∈ (0..^𝐿)) → ((𝐹 ↾ (0..^𝐿))‘𝑘) = (𝐹‘𝑘)) |
62 | 61 | fveq2d 6778 |
. . . . . . . . . . . 12
⊢ ((((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝐹 ∈ Word dom (iEdg‘𝐺)) ∧ 𝑘 ∈ (0..^𝐿)) → ((iEdg‘𝐺)‘((𝐹 ↾ (0..^𝐿))‘𝑘)) = ((iEdg‘𝐺)‘(𝐹‘𝑘))) |
63 | 59, 62 | sylan 580 |
. . . . . . . . . . 11
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → ((iEdg‘𝐺)‘((𝐹 ↾ (0..^𝐿))‘𝑘)) = ((iEdg‘𝐺)‘(𝐹‘𝑘))) |
64 | 63 | eqcomd 2744 |
. . . . . . . . . 10
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^𝐿)) → ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 ↾ (0..^𝐿))‘𝑘))) |
65 | 64 | ex 413 |
. . . . . . . . 9
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑘 ∈ (0..^𝐿) → ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 ↾ (0..^𝐿))‘𝑘)))) |
66 | 41, 65 | sylbid 239 |
. . . . . . . 8
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿))) → ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 ↾ (0..^𝐿))‘𝑘)))) |
67 | 66 | imp 407 |
. . . . . . 7
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 ↾ (0..^𝐿))‘𝑘))) |
68 | | simplr 766 |
. . . . . . . . . 10
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → 𝐿 ∈ (0...(♯‘𝐹))) |
69 | | pfxres 14392 |
. . . . . . . . . 10
⊢ ((𝐹 ∈ Word dom
(iEdg‘𝐺) ∧ 𝐿 ∈
(0...(♯‘𝐹)))
→ (𝐹 prefix 𝐿) = (𝐹 ↾ (0..^𝐿))) |
70 | 3, 68, 69 | syl2an2r 682 |
. . . . . . . . 9
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → (𝐹 prefix 𝐿) = (𝐹 ↾ (0..^𝐿))) |
71 | 70 | fveq1d 6776 |
. . . . . . . 8
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → ((𝐹 prefix 𝐿)‘𝑘) = ((𝐹 ↾ (0..^𝐿))‘𝑘)) |
72 | 71 | fveq2d 6778 |
. . . . . . 7
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 ↾ (0..^𝐿))‘𝑘))) |
73 | 67, 72 | eqtr4d 2781 |
. . . . . 6
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) |
74 | 58, 73 | jca 512 |
. . . . 5
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → (((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) ∧ ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)))) |
75 | 9 | adantl 482 |
. . . . . . . . 9
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (♯‘𝐹) ∈
(ℤ≥‘𝐿)) |
76 | 15 | fveq2d 6778 |
. . . . . . . . 9
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) →
(ℤ≥‘(♯‘(𝐹 prefix 𝐿))) = (ℤ≥‘𝐿)) |
77 | 75, 76 | eleqtrrd 2842 |
. . . . . . . 8
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (♯‘𝐹) ∈
(ℤ≥‘(♯‘(𝐹 prefix 𝐿)))) |
78 | | fzoss2 13415 |
. . . . . . . 8
⊢
((♯‘𝐹)
∈ (ℤ≥‘(♯‘(𝐹 prefix 𝐿))) → (0..^(♯‘(𝐹 prefix 𝐿))) ⊆ (0..^(♯‘𝐹))) |
79 | 77, 78 | syl 17 |
. . . . . . 7
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) →
(0..^(♯‘(𝐹
prefix 𝐿))) ⊆
(0..^(♯‘𝐹))) |
80 | 79 | sselda 3921 |
. . . . . 6
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → 𝑘 ∈ (0..^(♯‘𝐹))) |
81 | | wkslem1 27974 |
. . . . . . 7
⊢ (𝑥 = 𝑘 → (if-((𝑃‘𝑥) = (𝑃‘(𝑥 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑥)) = {(𝑃‘𝑥)}, {(𝑃‘𝑥), (𝑃‘(𝑥 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑥))) ↔ if-((𝑃‘𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑘)) = {(𝑃‘𝑘)}, {(𝑃‘𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑘))))) |
82 | 81 | rspcv 3557 |
. . . . . 6
⊢ (𝑘 ∈
(0..^(♯‘𝐹))
→ (∀𝑥 ∈
(0..^(♯‘𝐹))if-((𝑃‘𝑥) = (𝑃‘(𝑥 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑥)) = {(𝑃‘𝑥)}, {(𝑃‘𝑥), (𝑃‘(𝑥 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑥))) → if-((𝑃‘𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑘)) = {(𝑃‘𝑘)}, {(𝑃‘𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑘))))) |
83 | 80, 82 | syl 17 |
. . . . 5
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → (∀𝑥 ∈ (0..^(♯‘𝐹))if-((𝑃‘𝑥) = (𝑃‘(𝑥 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑥)) = {(𝑃‘𝑥)}, {(𝑃‘𝑥), (𝑃‘(𝑥 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑥))) → if-((𝑃‘𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑘)) = {(𝑃‘𝑘)}, {(𝑃‘𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑘))))) |
84 | | eqeq12 2755 |
. . . . . . . 8
⊢ (((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) → ((𝑃‘𝑘) = (𝑃‘(𝑘 + 1)) ↔ ((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)))) |
85 | 84 | adantr 481 |
. . . . . . 7
⊢ ((((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) ∧ ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) → ((𝑃‘𝑘) = (𝑃‘(𝑘 + 1)) ↔ ((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)))) |
86 | | simpr 485 |
. . . . . . . 8
⊢ ((((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) ∧ ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) → ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) |
87 | | sneq 4571 |
. . . . . . . . . 10
⊢ ((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) → {(𝑃‘𝑘)} = {((𝑃 prefix (𝐿 + 1))‘𝑘)}) |
88 | 87 | adantr 481 |
. . . . . . . . 9
⊢ (((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) → {(𝑃‘𝑘)} = {((𝑃 prefix (𝐿 + 1))‘𝑘)}) |
89 | 88 | adantr 481 |
. . . . . . . 8
⊢ ((((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) ∧ ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) → {(𝑃‘𝑘)} = {((𝑃 prefix (𝐿 + 1))‘𝑘)}) |
90 | 86, 89 | eqeq12d 2754 |
. . . . . . 7
⊢ ((((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) ∧ ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) → (((iEdg‘𝐺)‘(𝐹‘𝑘)) = {(𝑃‘𝑘)} ↔ ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)) = {((𝑃 prefix (𝐿 + 1))‘𝑘)})) |
91 | | preq12 4671 |
. . . . . . . . 9
⊢ (((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) → {(𝑃‘𝑘), (𝑃‘(𝑘 + 1))} = {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))}) |
92 | 91 | adantr 481 |
. . . . . . . 8
⊢ ((((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) ∧ ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) → {(𝑃‘𝑘), (𝑃‘(𝑘 + 1))} = {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))}) |
93 | 92, 86 | sseq12d 3954 |
. . . . . . 7
⊢ ((((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) ∧ ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) → ({(𝑃‘𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑘)) ↔ {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)))) |
94 | 85, 90, 93 | ifpbi123d 1077 |
. . . . . 6
⊢ ((((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) ∧ ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) → (if-((𝑃‘𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑘)) = {(𝑃‘𝑘)}, {(𝑃‘𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑘))) ↔ if-(((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)), ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)) = {((𝑃 prefix (𝐿 + 1))‘𝑘)}, {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))))) |
95 | 94 | biimpd 228 |
. . . . 5
⊢ ((((𝑃‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘𝑘) ∧ (𝑃‘(𝑘 + 1)) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))) ∧ ((iEdg‘𝐺)‘(𝐹‘𝑘)) = ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))) → (if-((𝑃‘𝑘) = (𝑃‘(𝑘 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑘)) = {(𝑃‘𝑘)}, {(𝑃‘𝑘), (𝑃‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑘))) → if-(((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)), ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)) = {((𝑃 prefix (𝐿 + 1))‘𝑘)}, {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))))) |
96 | 74, 83, 95 | sylsyld 61 |
. . . 4
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → (∀𝑥 ∈ (0..^(♯‘𝐹))if-((𝑃‘𝑥) = (𝑃‘(𝑥 + 1)), ((iEdg‘𝐺)‘(𝐹‘𝑥)) = {(𝑃‘𝑥)}, {(𝑃‘𝑥), (𝑃‘(𝑥 + 1))} ⊆ ((iEdg‘𝐺)‘(𝐹‘𝑥))) → if-(((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)), ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)) = {((𝑃 prefix (𝐿 + 1))‘𝑘)}, {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘))))) |
97 | 39, 96 | mpd 15 |
. . 3
⊢ (((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) ∧ 𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))) → if-(((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)), ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)) = {((𝑃 prefix (𝐿 + 1))‘𝑘)}, {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)))) |
98 | 97 | ralrimiva 3103 |
. 2
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → ∀𝑘 ∈
(0..^(♯‘(𝐹
prefix 𝐿)))if-(((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)), ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)) = {((𝑃 prefix (𝐿 + 1))‘𝑘)}, {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)))) |
99 | | wlkv 27979 |
. . . . 5
⊢ (𝐹(Walks‘𝐺)𝑃 → (𝐺 ∈ V ∧ 𝐹 ∈ V ∧ 𝑃 ∈ V)) |
100 | 99 | simp1d 1141 |
. . . 4
⊢ (𝐹(Walks‘𝐺)𝑃 → 𝐺 ∈ V) |
101 | 100 | adantr 481 |
. . 3
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → 𝐺 ∈ V) |
102 | 6, 1 | iswlkg 27980 |
. . 3
⊢ (𝐺 ∈ V → ((𝐹 prefix 𝐿)(Walks‘𝐺)(𝑃 prefix (𝐿 + 1)) ↔ ((𝐹 prefix 𝐿) ∈ Word dom (iEdg‘𝐺) ∧ (𝑃 prefix (𝐿 + 1)):(0...(♯‘(𝐹 prefix 𝐿)))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))if-(((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)), ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)) = {((𝑃 prefix (𝐿 + 1))‘𝑘)}, {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)))))) |
103 | 101, 102 | syl 17 |
. 2
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → ((𝐹 prefix 𝐿)(Walks‘𝐺)(𝑃 prefix (𝐿 + 1)) ↔ ((𝐹 prefix 𝐿) ∈ Word dom (iEdg‘𝐺) ∧ (𝑃 prefix (𝐿 + 1)):(0...(♯‘(𝐹 prefix 𝐿)))⟶(Vtx‘𝐺) ∧ ∀𝑘 ∈ (0..^(♯‘(𝐹 prefix 𝐿)))if-(((𝑃 prefix (𝐿 + 1))‘𝑘) = ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1)), ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)) = {((𝑃 prefix (𝐿 + 1))‘𝑘)}, {((𝑃 prefix (𝐿 + 1))‘𝑘), ((𝑃 prefix (𝐿 + 1))‘(𝑘 + 1))} ⊆ ((iEdg‘𝐺)‘((𝐹 prefix 𝐿)‘𝑘)))))) |
104 | 5, 35, 98, 103 | mpbir3and 1341 |
1
⊢ ((𝐹(Walks‘𝐺)𝑃 ∧ 𝐿 ∈ (0...(♯‘𝐹))) → (𝐹 prefix 𝐿)(Walks‘𝐺)(𝑃 prefix (𝐿 + 1))) |