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

Definition df-wwlks 26722
Description: Define the set of all walks (in an undirected graph) as words over the set of vertices. Such a word corresponds to the sequence p(0) p(1) ... p(n-1) p(n) of the vertices in a walk p(0) e(f(1)) p(1) e(f(2)) ... p(n-1) e(f(n)) p(n) as defined in df-wlks 26495. 
w  =  (/) has to be excluded because a walk always consists of at least one vertex, see wlkn0 26516. (Contributed by Alexander van der Vekens, 15-Jul-2018.) (Revised by AV, 8-Apr-2021.)
Assertion
Ref Expression
df-wwlks  |- WWalks  =  ( g  e.  _V  |->  { w  e. Word  (Vtx `  g )  |  ( w  =/=  (/)  /\  A. i  e.  ( 0..^ ( ( # `  w
)  -  1 ) ) { ( w `
 i ) ,  ( w `  (
i  +  1 ) ) }  e.  (Edg
`  g ) ) } )
Distinct variable group:    g, i, w

Detailed syntax breakdown of Definition df-wwlks
StepHypRef Expression
1 cwwlks 26717 . 2  class WWalks
2 vg . . 3  setvar  g
3 cvv 3200 . . 3  class  _V
4 vw . . . . . . 7  setvar  w
54cv 1482 . . . . . 6  class  w
6 c0 3915 . . . . . 6  class  (/)
75, 6wne 2794 . . . . 5  wff  w  =/=  (/)
8 vi . . . . . . . . . 10  setvar  i
98cv 1482 . . . . . . . . 9  class  i
109, 5cfv 5888 . . . . . . . 8  class  ( w `
 i )
11 c1 9937 . . . . . . . . . 10  class  1
12 caddc 9939 . . . . . . . . . 10  class  +
139, 11, 12co 6650 . . . . . . . . 9  class  ( i  +  1 )
1413, 5cfv 5888 . . . . . . . 8  class  ( w `
 ( i  +  1 ) )
1510, 14cpr 4179 . . . . . . 7  class  { ( w `  i ) ,  ( w `  ( i  +  1 ) ) }
162cv 1482 . . . . . . . 8  class  g
17 cedg 25939 . . . . . . . 8  class Edg
1816, 17cfv 5888 . . . . . . 7  class  (Edg `  g )
1915, 18wcel 1990 . . . . . 6  wff  { ( w `  i ) ,  ( w `  ( i  +  1 ) ) }  e.  (Edg `  g )
20 cc0 9936 . . . . . . 7  class  0
21 chash 13117 . . . . . . . . 9  class  #
225, 21cfv 5888 . . . . . . . 8  class  ( # `  w )
23 cmin 10266 . . . . . . . 8  class  -
2422, 11, 23co 6650 . . . . . . 7  class  ( (
# `  w )  -  1 )
25 cfzo 12465 . . . . . . 7  class ..^
2620, 24, 25co 6650 . . . . . 6  class  ( 0..^ ( ( # `  w
)  -  1 ) )
2719, 8, 26wral 2912 . . . . 5  wff  A. i  e.  ( 0..^ ( (
# `  w )  -  1 ) ) { ( w `  i ) ,  ( w `  ( i  +  1 ) ) }  e.  (Edg `  g )
287, 27wa 384 . . . 4  wff  ( w  =/=  (/)  /\  A. i  e.  ( 0..^ ( (
# `  w )  -  1 ) ) { ( w `  i ) ,  ( w `  ( i  +  1 ) ) }  e.  (Edg `  g ) )
29 cvtx 25874 . . . . . 6  class Vtx
3016, 29cfv 5888 . . . . 5  class  (Vtx `  g )
3130cword 13291 . . . 4  class Word  (Vtx `  g )
3228, 4, 31crab 2916 . . 3  class  { w  e. Word  (Vtx `  g )  |  ( w  =/=  (/)  /\  A. i  e.  ( 0..^ ( (
# `  w )  -  1 ) ) { ( w `  i ) ,  ( w `  ( i  +  1 ) ) }  e.  (Edg `  g ) ) }
332, 3, 32cmpt 4729 . 2  class  ( g  e.  _V  |->  { w  e. Word  (Vtx `  g )  |  ( w  =/=  (/)  /\  A. i  e.  ( 0..^ ( (
# `  w )  -  1 ) ) { ( w `  i ) ,  ( w `  ( i  +  1 ) ) }  e.  (Edg `  g ) ) } )
341, 33wceq 1483 1  wff WWalks  =  ( g  e.  _V  |->  { w  e. Word  (Vtx `  g )  |  ( w  =/=  (/)  /\  A. i  e.  ( 0..^ ( ( # `  w
)  -  1 ) ) { ( w `
 i ) ,  ( w `  (
i  +  1 ) ) }  e.  (Edg
`  g ) ) } )
Colors of variables: wff setvar class
This definition is referenced by:  wwlks  26727
  Copyright terms: Public domain W3C validator