MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  df-wlks Structured version   Visualization version   GIF version

Definition df-wlks 27975
Description: Define the set of all walks (in a hypergraph). Such walks correspond to the s-walks "on the vertex level" (with s = 1), and also to 1-walks "on the edge level" (see wlk1walk 28015) discussed in Aksoy et al. The predicate 𝐹(Walks‘𝐺)𝑃 can be read as "The pair 𝐹, 𝑃 represents a walk in a graph 𝐺", see also iswlk 27986.

The condition {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ ((iEdg‘𝑔)‘(𝑓𝑘)) (hereinafter referred to as C) would not be sufficient, because the repetition of a vertex in a walk (i.e. (𝑝𝑘) = (𝑝‘(𝑘 + 1)) should be allowed only if there is a loop at (𝑝𝑘). Otherwise, C would be fulfilled by each edge containing (𝑝𝑘).

According to the definition of [Bollobas] p. 4.: "A walk W in a graph is an alternating sequence of vertices and edges x0 , e1 , x1 , e2 , ... , e(l) , x(l) ...", a walk can be represented by two mappings f from { 1 , ... , n } and p from { 0 , ... , n }, where f enumerates the (indices of the) edges, and p enumerates the vertices. So the walk is represented by the following sequence: p(0) e(f(1)) p(1) e(f(2)) ... p(n-1) e(f(n)) p(n). (Contributed by AV, 30-Dec-2020.)

Assertion
Ref Expression
df-wlks Walks = (𝑔 ∈ V ↦ {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom (iEdg‘𝑔) ∧ 𝑝:(0...(♯‘𝑓))⟶(Vtx‘𝑔) ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), ((iEdg‘𝑔)‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ ((iEdg‘𝑔)‘(𝑓𝑘))))})
Distinct variable group:   𝑓,𝑔,𝑘,𝑝

Detailed syntax breakdown of Definition df-wlks
StepHypRef Expression
1 cwlks 27972 . 2 class Walks
2 vg . . 3 setvar 𝑔
3 cvv 3433 . . 3 class V
4 vf . . . . . . 7 setvar 𝑓
54cv 1538 . . . . . 6 class 𝑓
62cv 1538 . . . . . . . . 9 class 𝑔
7 ciedg 27376 . . . . . . . . 9 class iEdg
86, 7cfv 6437 . . . . . . . 8 class (iEdg‘𝑔)
98cdm 5590 . . . . . . 7 class dom (iEdg‘𝑔)
109cword 14226 . . . . . 6 class Word dom (iEdg‘𝑔)
115, 10wcel 2107 . . . . 5 wff 𝑓 ∈ Word dom (iEdg‘𝑔)
12 cc0 10880 . . . . . . 7 class 0
13 chash 14053 . . . . . . . 8 class
145, 13cfv 6437 . . . . . . 7 class (♯‘𝑓)
15 cfz 13248 . . . . . . 7 class ...
1612, 14, 15co 7284 . . . . . 6 class (0...(♯‘𝑓))
17 cvtx 27375 . . . . . . 7 class Vtx
186, 17cfv 6437 . . . . . 6 class (Vtx‘𝑔)
19 vp . . . . . . 7 setvar 𝑝
2019cv 1538 . . . . . 6 class 𝑝
2116, 18, 20wf 6433 . . . . 5 wff 𝑝:(0...(♯‘𝑓))⟶(Vtx‘𝑔)
22 vk . . . . . . . . . 10 setvar 𝑘
2322cv 1538 . . . . . . . . 9 class 𝑘
2423, 20cfv 6437 . . . . . . . 8 class (𝑝𝑘)
25 c1 10881 . . . . . . . . . 10 class 1
26 caddc 10883 . . . . . . . . . 10 class +
2723, 25, 26co 7284 . . . . . . . . 9 class (𝑘 + 1)
2827, 20cfv 6437 . . . . . . . 8 class (𝑝‘(𝑘 + 1))
2924, 28wceq 1539 . . . . . . 7 wff (𝑝𝑘) = (𝑝‘(𝑘 + 1))
3023, 5cfv 6437 . . . . . . . . 9 class (𝑓𝑘)
3130, 8cfv 6437 . . . . . . . 8 class ((iEdg‘𝑔)‘(𝑓𝑘))
3224csn 4562 . . . . . . . 8 class {(𝑝𝑘)}
3331, 32wceq 1539 . . . . . . 7 wff ((iEdg‘𝑔)‘(𝑓𝑘)) = {(𝑝𝑘)}
3424, 28cpr 4564 . . . . . . . 8 class {(𝑝𝑘), (𝑝‘(𝑘 + 1))}
3534, 31wss 3888 . . . . . . 7 wff {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ ((iEdg‘𝑔)‘(𝑓𝑘))
3629, 33, 35wif 1060 . . . . . 6 wff if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), ((iEdg‘𝑔)‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ ((iEdg‘𝑔)‘(𝑓𝑘)))
37 cfzo 13391 . . . . . . 7 class ..^
3812, 14, 37co 7284 . . . . . 6 class (0..^(♯‘𝑓))
3936, 22, 38wral 3065 . . . . 5 wff 𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), ((iEdg‘𝑔)‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ ((iEdg‘𝑔)‘(𝑓𝑘)))
4011, 21, 39w3a 1086 . . . 4 wff (𝑓 ∈ Word dom (iEdg‘𝑔) ∧ 𝑝:(0...(♯‘𝑓))⟶(Vtx‘𝑔) ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), ((iEdg‘𝑔)‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ ((iEdg‘𝑔)‘(𝑓𝑘))))
4140, 4, 19copab 5137 . . 3 class {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom (iEdg‘𝑔) ∧ 𝑝:(0...(♯‘𝑓))⟶(Vtx‘𝑔) ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), ((iEdg‘𝑔)‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ ((iEdg‘𝑔)‘(𝑓𝑘))))}
422, 3, 41cmpt 5158 . 2 class (𝑔 ∈ V ↦ {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom (iEdg‘𝑔) ∧ 𝑝:(0...(♯‘𝑓))⟶(Vtx‘𝑔) ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), ((iEdg‘𝑔)‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ ((iEdg‘𝑔)‘(𝑓𝑘))))})
431, 42wceq 1539 1 wff Walks = (𝑔 ∈ V ↦ {⟨𝑓, 𝑝⟩ ∣ (𝑓 ∈ Word dom (iEdg‘𝑔) ∧ 𝑝:(0...(♯‘𝑓))⟶(Vtx‘𝑔) ∧ ∀𝑘 ∈ (0..^(♯‘𝑓))if-((𝑝𝑘) = (𝑝‘(𝑘 + 1)), ((iEdg‘𝑔)‘(𝑓𝑘)) = {(𝑝𝑘)}, {(𝑝𝑘), (𝑝‘(𝑘 + 1))} ⊆ ((iEdg‘𝑔)‘(𝑓𝑘))))})
Colors of variables: wff setvar class
This definition is referenced by:  wksfval  27985  relwlk  28002
  Copyright terms: Public domain W3C validator