Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  df-upwlks Structured version   Visualization version   Unicode version

Definition df-upwlks 41715
Description: Define the set of all walks (in a pseudograph), called "simple walks" in the following.

According to Wikipedia ("Path (graph theory)", https://en.wikipedia.org/wiki/Path_(graph_theory), 3-Oct-2017): "A walk of length k in a graph is an alternating sequence of vertices and edges, v0 , e0 , v1 , e1 , v2 , ... , v(k-1) , e(k-1) , v(k) which begins and ends with vertices. If the graph is undirected, then the endpoints of e(i) are v(i) and v(i+1)."

According to Bollobas: " A walk W in a graph is an alternating sequence of vertices and edges x0 , e1 , x1 , e2 , ... , e(l) , x(l) where e(i) = x(i-1)x(i), 0<i<=l.", see Definition of [Bollobas] p. 4.

Therefore, 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).

Although this definition is also applicable for arbitrary hypergraphs, it allows only walks consisting of not proper hyperedges (i.e. edges connecting at most two vertices). Therefore, it should be used for pseudograhs only. (Contributed by Alexander van der Vekens and Mario Carneiro, 4-Oct-2017.) (Revised by AV, 28-Dec-2020.)

Assertion
Ref Expression
df-upwlks  |- UPWalks  =  ( g  e.  _V  |->  {
<. f ,  p >.  |  ( f  e. Word  dom  (iEdg `  g )  /\  p : ( 0 ... ( # `  f
) ) --> (Vtx `  g )  /\  A. k  e.  ( 0..^ ( # `  f
) ) ( (iEdg `  g ) `  (
f `  k )
)  =  { ( p `  k ) ,  ( p `  ( k  +  1 ) ) } ) } )
Distinct variable group:    f, g, k, p

Detailed syntax breakdown of Definition df-upwlks
StepHypRef Expression
1 cupwlks 41714 . 2  class UPWalks
2 vg . . 3  setvar  g
3 cvv 3200 . . 3  class  _V
4 vf . . . . . . 7  setvar  f
54cv 1482 . . . . . 6  class  f
62cv 1482 . . . . . . . . 9  class  g
7 ciedg 25875 . . . . . . . . 9  class iEdg
86, 7cfv 5888 . . . . . . . 8  class  (iEdg `  g )
98cdm 5114 . . . . . . 7  class  dom  (iEdg `  g )
109cword 13291 . . . . . 6  class Word  dom  (iEdg `  g )
115, 10wcel 1990 . . . . 5  wff  f  e. Word  dom  (iEdg `  g )
12 cc0 9936 . . . . . . 7  class  0
13 chash 13117 . . . . . . . 8  class  #
145, 13cfv 5888 . . . . . . 7  class  ( # `  f )
15 cfz 12326 . . . . . . 7  class  ...
1612, 14, 15co 6650 . . . . . 6  class  ( 0 ... ( # `  f
) )
17 cvtx 25874 . . . . . . 7  class Vtx
186, 17cfv 5888 . . . . . 6  class  (Vtx `  g )
19 vp . . . . . . 7  setvar  p
2019cv 1482 . . . . . 6  class  p
2116, 18, 20wf 5884 . . . . 5  wff  p : ( 0 ... ( # `
 f ) ) --> (Vtx `  g )
22 vk . . . . . . . . . 10  setvar  k
2322cv 1482 . . . . . . . . 9  class  k
2423, 5cfv 5888 . . . . . . . 8  class  ( f `
 k )
2524, 8cfv 5888 . . . . . . 7  class  ( (iEdg `  g ) `  (
f `  k )
)
2623, 20cfv 5888 . . . . . . . 8  class  ( p `
 k )
27 c1 9937 . . . . . . . . . 10  class  1
28 caddc 9939 . . . . . . . . . 10  class  +
2923, 27, 28co 6650 . . . . . . . . 9  class  ( k  +  1 )
3029, 20cfv 5888 . . . . . . . 8  class  ( p `
 ( k  +  1 ) )
3126, 30cpr 4179 . . . . . . 7  class  { ( p `  k ) ,  ( p `  ( k  +  1 ) ) }
3225, 31wceq 1483 . . . . . 6  wff  ( (iEdg `  g ) `  (
f `  k )
)  =  { ( p `  k ) ,  ( p `  ( k  +  1 ) ) }
33 cfzo 12465 . . . . . . 7  class ..^
3412, 14, 33co 6650 . . . . . 6  class  ( 0..^ ( # `  f
) )
3532, 22, 34wral 2912 . . . . 5  wff  A. k  e.  ( 0..^ ( # `  f ) ) ( (iEdg `  g ) `  ( f `  k
) )  =  {
( p `  k
) ,  ( p `
 ( k  +  1 ) ) }
3611, 21, 35w3a 1037 . . . 4  wff  ( f  e. Word  dom  (iEdg `  g
)  /\  p :
( 0 ... ( # `
 f ) ) --> (Vtx `  g )  /\  A. k  e.  ( 0..^ ( # `  f
) ) ( (iEdg `  g ) `  (
f `  k )
)  =  { ( p `  k ) ,  ( p `  ( k  +  1 ) ) } )
3736, 4, 19copab 4712 . . 3  class  { <. f ,  p >.  |  ( f  e. Word  dom  (iEdg `  g )  /\  p : ( 0 ... ( # `  f
) ) --> (Vtx `  g )  /\  A. k  e.  ( 0..^ ( # `  f
) ) ( (iEdg `  g ) `  (
f `  k )
)  =  { ( p `  k ) ,  ( p `  ( k  +  1 ) ) } ) }
382, 3, 37cmpt 4729 . 2  class  ( g  e.  _V  |->  { <. f ,  p >.  |  ( f  e. Word  dom  (iEdg `  g )  /\  p : ( 0 ... ( # `  f
) ) --> (Vtx `  g )  /\  A. k  e.  ( 0..^ ( # `  f
) ) ( (iEdg `  g ) `  (
f `  k )
)  =  { ( p `  k ) ,  ( p `  ( k  +  1 ) ) } ) } )
391, 38wceq 1483 1  wff UPWalks  =  ( g  e.  _V  |->  {
<. f ,  p >.  |  ( f  e. Word  dom  (iEdg `  g )  /\  p : ( 0 ... ( # `  f
) ) --> (Vtx `  g )  /\  A. k  e.  ( 0..^ ( # `  f
) ) ( (iEdg `  g ) `  (
f `  k )
)  =  { ( p `  k ) ,  ( p `  ( k  +  1 ) ) } ) } )
Colors of variables: wff setvar class
This definition is referenced by:  upwlksfval  41716
  Copyright terms: Public domain W3C validator