HomeHome Intuitionistic Logic Explorer
Theorem List (p. 169 of 174)
< Previous  Next >
Browser slow? Try the
Unicode version.

Mirrors  >  Metamath Home Page  >  ILE Home Page  >  Theorem List Contents  >  Recent Proofs       This page: Page List

Theorem List for Intuitionistic Logic Explorer - 16801-16900   *Has distinct variable group(s)
TypeLabelDescription
Statement
 
Theoremtrlreslem 16801 Lemma for trlres 16802. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by Mario Carneiro, 3-May-2015.) (Revised by AV, 6-Mar-2021.) Hypothesis revised using the prefix operation. (Revised by AV, 30-Nov-2022.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  H  =  ( F prefix  N )   =>    |-  ( ph  ->  H : ( 0..^ (♯ `  H ) ) -1-1-onto-> dom  ( I  |`  ( F "
 ( 0..^ N ) ) ) )
 
Theoremtrlres 16802 The restriction  <. H ,  Q >. of a trail  <. F ,  P >. to an initial segment of the trail (of length  N) forms a trail on the subgraph  S consisting of the edges in the initial segment. (Contributed by AV, 6-Mar-2021.) Hypothesis revised using the prefix operation. (Revised by AV, 30-Nov-2022.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  H  =  ( F prefix  N )   &    |-  ( ph  ->  (Vtx `  S )  =  V )   &    |-  ( ph  ->  (iEdg `  S )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  Q  =  ( P  |`  ( 0
 ... N ) )   =>    |-  ( ph  ->  H (Trails `  S ) Q )
 
12.3.3  Closed walks as words
 
12.3.3.1  Closed walks as words
 
Syntaxcclwwlk 16803 Extend class notation with closed walks (in an undirected graph) as word over the set of vertices.
 class ClWWalks
 
Definitiondf-clwwlk 16804* Define the set of all closed 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) of the vertices in a closed walk p(0) e(f(1)) p(1) e(f(2)) ... p(n-1) e(f(n)) p(n)=p(0) as defined elsewhere. Notice that the word does not contain the terminating vertex p(n) of the walk, because it is always equal to the first vertex of the closed walk. (Contributed by Alexander van der Vekens, 20-Mar-2018.) (Revised by AV, 24-Apr-2021.)
 |- ClWWalks  =  ( g  e.  _V  |->  { w  e. Word  (Vtx `  g
 )  |  ( w  =/=  (/)  /\  A. i  e.  ( 0..^ ( (♯ `  w )  -  1
 ) ) { ( w `  i ) ,  ( w `  (
 i  +  1 ) ) }  e.  (Edg `  g )  /\  {
 (lastS `  w ) ,  ( w `  0
 ) }  e.  (Edg `  g ) ) }
 )
 
Theoremclwwlkg 16805* The set of closed walks (in an undirected graph) as words over the set of vertices. (Contributed by Alexander van der Vekens, 20-Mar-2018.) (Revised by AV, 24-Apr-2021.)
 |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( G  e.  W  ->  (ClWWalks `  G )  =  { w  e. Word  V  |  ( w  =/=  (/)  /\  A. i  e.  ( 0..^ ( (♯ `  w )  -  1 ) ) { ( w `  i ) ,  ( w `  ( i  +  1 ) ) }  e.  E  /\  { (lastS `  w ) ,  ( w `  0 ) }  e.  E ) } )
 
Theoremisclwwlk 16806* Properties of a word to represent a closed walk (in an undirected graph). (Contributed by Alexander van der Vekens, 20-Mar-2018.) (Revised by AV, 24-Apr-2021.)
 |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( W  e.  (ClWWalks `  G )  <->  ( ( W  e. Word  V  /\  W  =/=  (/) )  /\  A. i  e.  ( 0..^ ( (♯ `  W )  -  1
 ) ) { ( W `  i ) ,  ( W `  (
 i  +  1 ) ) }  e.  E  /\  { (lastS `  W ) ,  ( W `  0 ) }  e.  E ) )
 
Theoremclwwlkbp 16807 Basic properties of a closed walk (in an undirected graph) as word. (Contributed by Alexander van der Vekens, 15-Mar-2018.) (Revised by AV, 24-Apr-2021.)
 |-  V  =  (Vtx `  G )   =>    |-  ( W  e.  (ClWWalks `  G )  ->  ( G  e.  _V  /\  W  e. Word  V  /\  W  =/=  (/) ) )
 
Theoremclwwlkgt0 16808 There is no empty closed walk (i.e. a closed walk without any edge) represented by a word of vertices. (Contributed by Alexander van der Vekens, 15-Sep-2018.) (Revised by AV, 24-Apr-2021.)
 |-  ( W  e.  (ClWWalks `  G )  ->  0  <  (♯ `  W )
 )
 
Theoremclwwlksswrd 16809 Closed walks (represented by words) are words. (Contributed by Alexander van der Vekens, 25-Mar-2018.) (Revised by AV, 25-Apr-2021.)
 |-  (ClWWalks `  G )  C_ Word 
 (Vtx `  G )
 
Theoremclwwlkex 16810 Existence of the set of closed walks (represented by words). (Contributed by Jim Kingdon, 21-Feb-2026.)
 |-  ( G  e.  V  ->  (ClWWalks `  G )  e.  _V )
 
Theoremclwwlk1loop 16811 A closed walk of length 1 is a loop. (Contributed by AV, 24-Apr-2021.)
 |-  ( ( W  e.  (ClWWalks `  G )  /\  (♯ `  W )  =  1 )  ->  { ( W `  0 ) ,  ( W `  0
 ) }  e.  (Edg `  G ) )
 
Theoremclwwlkccatlem 16812* Lemma for clwwlkccat 16813: index  j is shifted up by 
(♯ `  A ), and the case  i  =  (
(♯ `  A )  - 
1 ) is covered by the "bridge"  { (lastS `  A ) ,  ( B `  0 ) }  =  { (lastS `  A ) ,  ( A `  0 ) }  e.  (Edg `  G ). (Contributed by AV, 23-Apr-2022.)
 |-  ( ( ( ( A  e. Word  (Vtx `  G )  /\  A  =/=  (/) )  /\  A. i  e.  ( 0..^ ( (♯ `  A )  -  1 ) ) { ( A `  i ) ,  ( A `  ( i  +  1 ) ) }  e.  (Edg `  G )  /\  { (lastS `  A ) ,  ( A `  0 ) }  e.  (Edg `  G ) ) 
 /\  ( ( B  e. Word  (Vtx `  G )  /\  B  =/=  (/) )  /\  A. j  e.  ( 0..^ ( (♯ `  B )  -  1 ) ) { ( B `  j ) ,  ( B `  ( j  +  1 ) ) }  e.  (Edg `  G )  /\  { (lastS `  B ) ,  ( B `  0 ) }  e.  (Edg `  G ) ) 
 /\  ( A `  0 )  =  ( B `  0 ) ) 
 ->  A. i  e.  (
 0..^ ( (♯ `  ( A ++  B ) )  -  1 ) ) {
 ( ( A ++  B ) `  i ) ,  ( ( A ++  B ) `  ( i  +  1 ) ) }  e.  (Edg `  G )
 )
 
Theoremclwwlkccat 16813 The concatenation of two words representing closed walks anchored at the same vertex represents a closed walk. The resulting walk is a "double loop", starting at the common vertex, coming back to the common vertex by the first walk, following the second walk and finally coming back to the common vertex again. (Contributed by AV, 23-Apr-2022.)
 |-  ( ( A  e.  (ClWWalks `  G )  /\  B  e.  (ClWWalks `  G )  /\  ( A `  0 )  =  ( B `  0 ) ) 
 ->  ( A ++  B )  e.  (ClWWalks `  G )
 )
 
Theoremumgrclwwlkge2 16814 A closed walk in a multigraph has a length of at least 2 (because it cannot have a loop). (Contributed by Alexander van der Vekens, 16-Sep-2018.) (Revised by AV, 24-Apr-2021.)
 |-  ( G  e. UMGraph  ->  ( P  e.  (ClWWalks `  G )  ->  2  <_  (♯ `  P ) ) )
 
12.3.3.2  Closed walks of a fixed length as words
 
Syntaxcclwwlkn 16815 Extend class notation with closed walks (in an undirected graph) of a fixed length as word over the set of vertices.
 class ClWWalksN
 
Definitiondf-clwwlkn 16816* Define the set of all closed walks of a fixed length  n as words over the set of vertices in a graph 
g. If  0  <  n, such a word corresponds to the sequence p(0) p(1) ... p(n-1) of the vertices in a closed walk p(0) e(f(1)) p(1) e(f(2)) ... p(n-1) e(f(n)) p(n)=p(0) . For  n  =  0, the set is empty, see clwwlkn0 16820. (Contributed by Alexander van der Vekens, 20-Mar-2018.) (Revised by AV, 24-Apr-2021.) (Revised by AV, 22-Mar-2022.)
 |- ClWWalksN  =  ( n  e.  NN0 ,  g  e.  _V  |->  { w  e.  (ClWWalks `  g
 )  |  (♯ `  w )  =  n }
 )
 
Theoremclwwlkng 16817* The set of closed walks of a fixed length  N as words over the set of vertices in a graph  G. (Contributed by Alexander van der Vekens, 20-Mar-2018.) (Revised by AV, 24-Apr-2021.) (Revised by AV, 22-Mar-2022.)
 |-  ( ( N  e.  NN0  /\  G  e.  V ) 
 ->  ( N ClWWalksN  G )  =  { w  e.  (ClWWalks `  G )  |  (♯ `  w )  =  N } )
 
Theoremisclwwlkng 16818 A word over the set of vertices representing a closed walk of a fixed length. (Contributed by Alexander van der Vekens, 15-Mar-2018.) (Revised by AV, 24-Apr-2021.) (Revised by AV, 22-Mar-2022.)
 |-  ( N  e.  NN0  ->  ( W  e.  ( N ClWWalksN  G )  <->  ( W  e.  (ClWWalks `  G )  /\  (♯ `  W )  =  N ) ) )
 
Theoremisclwwlkni 16819 A word over the set of vertices representing a closed walk of a fixed length. (Contributed by Jim Kingdon, 22-Feb-2026.)
 |-  ( W  e.  ( N ClWWalksN  G )  ->  ( W  e.  (ClWWalks `  G )  /\  (♯ `  W )  =  N )
 )
 
Theoremclwwlkn0 16820 There is no closed walk of length 0 (i.e. a closed walk without any edge) represented by a word of vertices. (Contributed by Alexander van der Vekens, 15-Sep-2018.) (Revised by AV, 24-Apr-2021.)
 |-  ( 0 ClWWalksN  G )  =  (/)
 
Theoremclwwlkclwwlkn 16821 A closed walk of a fixed length as word is a closed walk (in an undirected graph) as word. (Contributed by Alexander van der Vekens, 15-Mar-2018.) (Revised by AV, 24-Apr-2021.) (Proof shortened by AV, 22-Mar-2022.)
 |-  ( W  e.  ( N ClWWalksN  G )  ->  W  e.  (ClWWalks `  G )
 )
 
Theoremclwwlksclwwlkn 16822 The closed walks of a fixed length as words are closed walks (in an undirected graph) as words. (Contributed by Alexander van der Vekens, 15-Mar-2018.) (Revised by AV, 12-Apr-2021.)
 |-  ( N ClWWalksN  G )  C_  (ClWWalks `  G )
 
Theoremclwwlknlen 16823 The length of a word representing a closed walk of a fixed length is this fixed length. (Contributed by AV, 22-Mar-2022.)
 |-  ( W  e.  ( N ClWWalksN  G )  ->  (♯ `  W )  =  N )
 
Theoremclwwlknnn 16824 The length of a closed walk of a fixed length as word is a positive integer. (Contributed by AV, 22-Mar-2022.)
 |-  ( W  e.  ( N ClWWalksN  G )  ->  N  e.  NN )
 
Theoremisclwwlkn 16825 A word over the set of vertices representing a closed walk of a fixed length. (Contributed by Alexander van der Vekens, 15-Mar-2018.) (Revised by AV, 24-Apr-2021.) (Revised by AV, 22-Mar-2022.)
 |-  ( W  e.  ( N ClWWalksN  G )  <->  ( W  e.  (ClWWalks `  G )  /\  (♯ `  W )  =  N ) )
 
Theoremclwwlknwrd 16826 A closed walk of a fixed length as word is a word over the vertices. (Contributed by AV, 30-Apr-2021.)
 |-  V  =  (Vtx `  G )   =>    |-  ( W  e.  ( N ClWWalksN  G )  ->  W  e. Word  V )
 
Theoremclwwlknbp 16827 Basic properties of a closed walk of a fixed length as word. (Contributed by AV, 30-Apr-2021.) (Proof shortened by AV, 22-Mar-2022.)
 |-  V  =  (Vtx `  G )   =>    |-  ( W  e.  ( N ClWWalksN  G )  ->  ( W  e. Word  V  /\  (♯ `  W )  =  N ) )
 
Theoremisclwwlknx 16828* Characterization of a word representing a closed walk of a fixed length, definition of ClWWalks expanded. (Contributed by AV, 25-Apr-2021.) (Proof shortened by AV, 22-Mar-2022.)
 |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( N  e.  NN  ->  ( W  e.  ( N ClWWalksN  G )  <->  ( ( W  e. Word  V  /\  A. i  e.  ( 0..^ ( (♯ `  W )  -  1
 ) ) { ( W `  i ) ,  ( W `  (
 i  +  1 ) ) }  e.  E  /\  { (lastS `  W ) ,  ( W `  0 ) }  e.  E )  /\  (♯ `  W )  =  N )
 ) )
 
Theoremclwwlknp 16829* Properties of a set being a closed walk (represented by a word). (Contributed by Alexander van der Vekens, 17-Jun-2018.) (Revised by AV, 24-Apr-2021.) (Proof shortened by AV, 23-Mar-2022.)
 |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( W  e.  ( N ClWWalksN  G )  ->  (
 ( W  e. Word  V  /\  (♯ `  W )  =  N )  /\  A. i  e.  ( 0..^ ( N  -  1
 ) ) { ( W `  i ) ,  ( W `  (
 i  +  1 ) ) }  e.  E  /\  { (lastS `  W ) ,  ( W `  0 ) }  e.  E ) )
 
Theoremclwwlkn1 16830 A closed walk of length 1 represented as word is a word consisting of 1 symbol representing a vertex connected to itself by (at least) one edge, that is, a loop. (Contributed by AV, 24-Apr-2021.) (Revised by AV, 11-Feb-2022.)
 |-  ( W  e.  (
 1 ClWWalksN  G )  <->  ( (♯ `  W )  =  1  /\  W  e. Word  (Vtx `  G )  /\  { ( W `
  0 ) }  e.  (Edg `  G )
 ) )
 
Theoremloopclwwlkn1b 16831 The singleton word consisting of a vertex  V represents a closed walk of length 1 iff there is a loop at vertex  V. (Contributed by AV, 11-Feb-2022.)
 |-  ( V  e.  (Vtx `  G )  ->  ( { V }  e.  (Edg `  G )  <->  <" V ">  e.  ( 1 ClWWalksN  G ) ) )
 
Theoremclwwlkn1loopb 16832* A word represents a closed walk of length 1 iff this word is a singleton word consisting of a vertex with an attached loop. (Contributed by AV, 11-Feb-2022.)
 |-  ( W  e.  (
 1 ClWWalksN  G )  <->  E. v  e.  (Vtx `  G ) ( W  =  <" v ">  /\  { v }  e.  (Edg `  G )
 ) )
 
Theoremclwwlkn2 16833 A closed walk of length 2 represented as word is a word consisting of 2 symbols representing (not necessarily different) vertices connected by (at least) one edge. (Contributed by Alexander van der Vekens, 19-Sep-2018.) (Revised by AV, 25-Apr-2021.)
 |-  ( W  e.  (
 2 ClWWalksN  G )  <->  ( (♯ `  W )  =  2  /\  W  e. Word  (Vtx `  G )  /\  { ( W `
  0 ) ,  ( W `  1
 ) }  e.  (Edg `  G ) ) )
 
Theoremclwwlkext2edg 16834 If a word concatenated with a vertex represents a closed walk (in a graph), there is an edge between this vertex and the last vertex of the word, and between this vertex and the first vertex of the word. (Contributed by Alexander van der Vekens, 3-Oct-2018.) (Revised by AV, 27-Apr-2021.) (Proof shortened by AV, 22-Mar-2022.)
 |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( ( ( W  e. Word  V  /\  Z  e.  V  /\  N  e.  ( ZZ>=
 `  2 ) ) 
 /\  ( W ++  <" Z "> )  e.  ( N ClWWalksN  G )
 )  ->  ( {
 (lastS `  W ) ,  Z }  e.  E  /\  { Z ,  ( W `  0 ) }  e.  E ) )
 
Theoremclwwlknccat 16835 The concatenation of two words representing closed walks anchored at the same vertex represents a closed walk with a length which is the sum of the lengths of the two walks. The resulting walk is a "double loop", starting at the common vertex, coming back to the common vertex by the first walk, following the second walk and finally coming back to the common vertex again. (Contributed by AV, 24-Apr-2022.)
 |-  ( ( A  e.  ( M ClWWalksN  G )  /\  B  e.  ( N ClWWalksN  G )  /\  ( A `
  0 )  =  ( B `  0
 ) )  ->  ( A ++  B )  e.  (
 ( M  +  N ) ClWWalksN  G ) )
 
Theoremumgr2cwwk2dif 16836 If a word represents a closed walk of length at least 2 in a multigraph, the first two symbols of the word must be different. (Contributed by Alexander van der Vekens, 17-Jun-2018.) (Revised by AV, 30-Apr-2021.)
 |-  ( ( G  e. UMGraph  /\  N  e.  ( ZZ>= `  2 )  /\  W  e.  ( N ClWWalksN  G ) ) 
 ->  ( W `  1
 )  =/=  ( W `  0 ) )
 
Theoremumgr2cwwkdifex 16837* If a word represents a closed walk of length at least 2 in a undirected simple graph, there must be a symbol different from the first symbol of the word. (Contributed by Alexander van der Vekens, 17-Jun-2018.) (Revised by AV, 30-Apr-2021.)
 |-  ( ( G  e. UMGraph  /\  N  e.  ( ZZ>= `  2 )  /\  W  e.  ( N ClWWalksN  G ) ) 
 ->  E. i  e.  (
 0..^ N ) ( W `  i )  =/=  ( W `  0 ) )
 
12.3.3.3  Closed walks on a vertex of a fixed length as words
 
Syntaxcclwwlknon 16838 Extend class notation with closed walks (in an undirected graph) anchored at a fixed vertex and of a fixed length as word over the set of vertices.
 class ClWWalksNOn
 
Definitiondf-clwwlknon 16839* Define the set of all closed walks a graph  g, anchored at a fixed vertex  v (i.e., a walk starting and ending at the fixed vertex  v, also called "a closed walk on vertex  v") and having a fixed length  n as words over the set of vertices. Such a word corresponds to the sequence v=p(0) p(1) ... p(n-1) of the vertices in a closed walk p(0) e(f(1)) p(1) e(f(2)) ... p(n-1) e(f(n)) p(n)=p(0)=v . The set  ( (
v (ClWWalksNOn `  g ) n ) corresponds to the set of "walks from v to v of length n" in a statement of [Huneke] p. 2. (Contributed by AV, 24-Feb-2022.)
 |- ClWWalksNOn  =  ( g  e.  _V  |->  ( v  e.  (Vtx `  g ) ,  n  e.  NN0  |->  { w  e.  ( n ClWWalksN  g )  |  ( w `  0 )  =  v } )
 )
 
Theoremclwwlknonmpo 16840*  (ClWWalksNOn `  G
) is an operator mapping a vertex  v and a nonnegative integer  n to the set of closed walks on  v of length  n as words over the set of vertices in a graph  G. (Contributed by AV, 25-Feb-2022.) (Proof shortened by AV, 2-Mar-2024.)
 |-  (ClWWalksNOn `  G )  =  ( v  e.  (Vtx `  G ) ,  n  e.  NN0  |->  { w  e.  ( n ClWWalksN  G )  |  ( w `  0 )  =  v } )
 
Theoremclwwlknon 16841* The set of closed walks on vertex 
X of length  N in a graph  G as words over the set of vertices. (Contributed by Alexander van der Vekens, 14-Sep-2018.) (Revised by AV, 28-May-2021.) (Revised by AV, 24-Mar-2022.)
 |-  ( X (ClWWalksNOn `  G ) N )  =  { w  e.  ( N ClWWalksN  G )  |  ( w `
  0 )  =  X }
 
Theoremisclwwlknon 16842 A word over the set of vertices representing a closed walk on vertex  X of length  N in a graph  G. (Contributed by AV, 25-Feb-2022.) (Revised by AV, 24-Mar-2022.)
 |-  ( W  e.  ( X (ClWWalksNOn `  G ) N )  <->  ( W  e.  ( N ClWWalksN  G )  /\  ( W `  0 )  =  X ) )
 
Theoremclwwlk0on0 16843 There is no word over the set of vertices representing a closed walk on vertex  X of length  0 in a graph  G. (Contributed by AV, 17-Feb-2022.) (Revised by AV, 25-Feb-2022.)
 |-  ( X (ClWWalksNOn `  G ) 0 )  =  (/)
 
Theoremclwwlknonel 16844* Characterization of a word over the set of vertices representing a closed walk on vertex  X of (nonzero) length  N in a graph  G. This theorem would not hold for  N  =  0 if  W  =  X  =  (/). (Contributed by Alexander van der Vekens, 20-Sep-2018.) (Revised by AV, 28-May-2021.) (Revised by AV, 24-Mar-2022.)
 |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( N  =/=  0  ->  ( W  e.  ( X (ClWWalksNOn `  G ) N )  <->  ( ( W  e. Word  V  /\  A. i  e.  ( 0..^ ( (♯ `  W )  -  1
 ) ) { ( W `  i ) ,  ( W `  (
 i  +  1 ) ) }  e.  E  /\  { (lastS `  W ) ,  ( W `  0 ) }  e.  E )  /\  (♯ `  W )  =  N  /\  ( W `  0 )  =  X ) ) )
 
Theoremclwwlknonccat 16845 The concatenation of two words representing closed walks on a vertex  X represents a closed walk on vertex  X. The resulting walk is a "double loop", starting at vertex  X, coming back to  X by the first walk, following the second walk and finally coming back to  X again. (Contributed by AV, 24-Apr-2022.)
 |-  ( ( A  e.  ( X (ClWWalksNOn `  G ) M )  /\  B  e.  ( X (ClWWalksNOn `  G ) N ) )  ->  ( A ++  B )  e.  ( X (ClWWalksNOn `  G ) ( M  +  N ) ) )
 
Theoremclwwlknon2 16846* The set of closed walks on vertex 
X of length  2 in a graph  G as words over the set of vertices. (Contributed by AV, 5-Mar-2022.) (Revised by AV, 25-Mar-2022.)
 |-  C  =  (ClWWalksNOn `  G )   =>    |-  ( X C 2 )  =  { w  e.  ( 2 ClWWalksN  G )  |  ( w `  0
 )  =  X }
 
Theoremclwwlknon2x 16847* The set of closed walks on vertex 
X of length  2 in a graph  G as words over the set of vertices, definition of ClWWalksN expanded. (Contributed by Alexander van der Vekens, 19-Sep-2018.) (Revised by AV, 25-Mar-2022.)
 |-  C  =  (ClWWalksNOn `  G )   &    |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( X C 2 )  =  { w  e. Word  V  |  ( (♯ `  w )  =  2 
 /\  { ( w `  0 ) ,  ( w `  1 ) }  e.  E  /\  ( w `
  0 )  =  X ) }
 
Theorems2elclwwlknon2 16848 Sufficient conditions of a doubleton word to represent a closed walk on vertex  X of length  2. (Contributed by AV, 11-May-2022.)
 |-  C  =  (ClWWalksNOn `  G )   &    |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( ( X  e.  V  /\  Y  e.  V  /\  { X ,  Y }  e.  E )  -> 
 <" X Y ">  e.  ( X C
 2 ) )
 
Theoremclwwlknonex2lem1 16849 Lemma 1 for clwwlknonex2 16851: Transformation of a special half-open integer range into a union of a smaller half-open integer range and an unordered pair. This Lemma would not hold for  N  =  2, i.e.,  (♯ `  W
)  =  0, because  (
0..^ ( ( (♯ `  W )  +  2 )  -  1 ) )  =  (
0..^ ( ( 0  +  2 )  - 
1 ) )  =  ( 0..^ 1 )  =  { 0 }  =/=  { -u
1 ,  0 }  =  ( (/)  u.  { -u 1 ,  0 } )  =  (
( 0..^ ( 0  -  1 ) )  u.  { ( 0  -  1 ) ,  0 } )  =  (
( 0..^ ( (♯ `  W )  -  1 ) )  u.  { ( (♯ `  W )  -  1 ) ,  (♯ `  W ) } ). (Contributed by AV, 22-Sep-2018.) (Revised by AV, 26-Jan-2022.)
 |-  ( ( N  e.  ( ZZ>= `  3 )  /\  (♯ `  W )  =  ( N  -  2
 ) )  ->  (
 0..^ ( ( (♯ `  W )  +  2 )  -  1 ) )  =  ( ( 0..^ ( (♯ `  W )  -  1 ) )  u.  { ( (♯ `  W )  -  1
 ) ,  (♯ `  W ) } ) )
 
Theoremclwwlknonex2lem2 16850* Lemma 2 for clwwlknonex2 16851: Transformation of a walk and two edges into a walk extended by two vertices/edges. (Contributed by AV, 22-Sep-2018.) (Revised by AV, 27-Jan-2022.)
 |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( ( ( ( X  e.  V  /\  Y  e.  V  /\  N  e.  ( ZZ>= `  3 ) )  /\  ( ( W  e. Word  V 
 /\  A. i  e.  (
 0..^ ( (♯ `  W )  -  1 ) ) { ( W `  i ) ,  ( W `  ( i  +  1 ) ) }  e.  E  /\  { (lastS `  W ) ,  ( W `  0 ) }  e.  E )  /\  (♯ `  W )  =  ( N  -  2 ) 
 /\  ( W `  0 )  =  X ) )  /\  { X ,  Y }  e.  E )  ->  A. i  e.  (
 ( 0..^ ( (♯ `  W )  -  1
 ) )  u.  {
 ( (♯ `  W )  -  1 ) ,  (♯ `  W ) } ) { (
 ( ( W ++  <" X "> ) ++  <" Y "> ) `  i ) ,  (
 ( ( W ++  <" X "> ) ++  <" Y "> ) `  ( i  +  1 ) ) }  e.  E )
 
Theoremclwwlknonex2 16851 Extending a closed walk  W on vertex  X by an additional edge (forth and back) results in a closed walk. (Contributed by AV, 22-Sep-2018.) (Revised by AV, 25-Feb-2022.) (Proof shortened by AV, 28-Mar-2022.)
 |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( ( ( X  e.  V  /\  Y  e.  V  /\  N  e.  ( ZZ>= `  3 )
 )  /\  { X ,  Y }  e.  E  /\  W  e.  ( X (ClWWalksNOn `  G ) ( N  -  2 ) ) )  ->  (
 ( W ++  <" X "> ) ++  <" Y "> )  e.  ( N ClWWalksN  G ) )
 
Theoremclwwlknonex2e 16852 Extending a closed walk  W on vertex  X by an additional edge (forth and back) results in a closed walk on vertex  X. (Contributed by AV, 17-Apr-2022.)
 |-  V  =  (Vtx `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( ( ( X  e.  V  /\  Y  e.  V  /\  N  e.  ( ZZ>= `  3 )
 )  /\  { X ,  Y }  e.  E  /\  W  e.  ( X (ClWWalksNOn `  G ) ( N  -  2 ) ) )  ->  (
 ( W ++  <" X "> ) ++  <" Y "> )  e.  ( X (ClWWalksNOn `  G ) N ) )
 
Theoremclwwlknun 16853* The set of closed walks of fixed length  N in a simple graph  G is the union of the closed walks of the fixed length  N on each of the vertices of graph  G. (Contributed by Alexander van der Vekens, 7-Oct-2018.) (Revised by AV, 28-May-2021.) (Revised by AV, 3-Mar-2022.) (Proof shortened by AV, 28-Mar-2022.)
 |-  V  =  (Vtx `  G )   =>    |-  ( G  e. USGraph  ->  ( N ClWWalksN  G )  =  U_ x  e.  V  ( x (ClWWalksNOn `  G ) N ) )
 
12.4  Eulerian paths and the Konigsberg Bridge problem
 
12.4.1  Eulerian paths

According to Wikipedia ("Eulerian path", 9-Mar-2021, https://en.wikipedia.org/wiki/Eulerian_path): "In graph theory, an Eulerian trail (or Eulerian path) is a trail in a finite graph that visits every edge exactly once (allowing for revisiting vertices). Similarly, an Eulerian circuit or Eulerian cycle is an Eulerian trail that starts and ends on the same vertex. ... The term Eulerian graph has two common meanings in graph theory. One meaning is a graph with an Eulerian circuit, and the other is a graph with every vertex of even degree. These definitions coincide for connected graphs. ... A graph that has an Eulerian trail but not an Eulerian circuit is called semi-Eulerian."

 
Syntaxceupth 16854 Extend class notation with Eulerian paths.
 class EulerPaths
 
Definitiondf-eupth 16855* Define the set of all Eulerian paths on an arbitrary graph. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV, 18-Feb-2021.)
 |- EulerPaths  =  ( g  e.  _V  |->  {
 <. f ,  p >.  |  ( f (Trails `  g
 ) p  /\  f : ( 0..^ (♯ `  f ) ) -onto-> dom  (iEdg `  g )
 ) } )
 
Theoremreleupth 16856 The set  (EulerPaths `  G
) of all Eulerian paths on  G is a set of pairs by our definition of an Eulerian path, and so is a relation. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV, 18-Feb-2021.)
 |- 
 Rel  (EulerPaths `  G )
 
Theoremeupthsg 16857* The Eulerian paths on the graph  G. (Contributed by AV, 18-Feb-2021.) (Revised by AV, 29-Oct-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( G  e.  V  ->  (EulerPaths `  G )  =  { <. f ,  p >.  |  ( f (Trails `  G ) p  /\  f : ( 0..^ (♯ `  f ) ) -onto-> dom 
 I ) } )
 
Theoremeupthv 16858 The classes involved in a Eulerian path are sets. (Contributed by Jim Kingdon, 13-Mar-2026.)
 |-  ( F (EulerPaths `  G ) P  ->  ( G  e.  _V  /\  F  e.  _V  /\  P  e.  _V ) )
 
Theoremiseupth 16859 The property " <. F ,  P >. is an Eulerian path on the graph  G". An Eulerian path is defined as bijection  F from the edges to a set  0 ... ( N  -  1 ) and a function  P : ( 0 ... N ) --> V into the vertices such that for each  0  <_  k  <  N,  F ( k ) is an edge from  P ( k ) to  P ( k  +  1 ). (Since the edges are undirected and there are possibly many edges between any two given vertices, we need to list both the edges and the vertices of the path separately.) (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by Mario Carneiro, 3-May-2015.) (Revised by AV, 18-Feb-2021.) (Revised by AV, 30-Oct-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( F (EulerPaths `  G ) P  <->  ( F (Trails `  G ) P  /\  F : ( 0..^ (♯ `  F ) ) -onto-> dom 
 I ) )
 
Theoremiseupthf1o 16860 The property " <. F ,  P >. is an Eulerian path on the graph  G". An Eulerian path is defined as bijection  F from the edges to a set  0 ... ( N  -  1 ) and a function  P : ( 0 ... N ) --> V into the vertices such that for each  0  <_  k  <  N,  F ( k ) is an edge from  P ( k ) to  P ( k  +  1 ). (Since the edges are undirected and there are possibly many edges between any two given vertices, we need to list both the edges and the vertices of the path separately.) (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by Mario Carneiro, 3-May-2015.) (Revised by AV, 18-Feb-2021.) (Revised by AV, 30-Oct-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( F (EulerPaths `  G ) P  <->  ( F (Walks `  G ) P  /\  F : ( 0..^ (♯ `  F ) ) -1-1-onto-> dom  I
 ) )
 
Theoremeupthi 16861 Properties of an Eulerian path. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV, 18-Feb-2021.) (Proof shortened by AV, 30-Oct-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( F (EulerPaths `  G ) P  ->  ( F (Walks `  G ) P  /\  F : ( 0..^ (♯ `  F )
 )
 -1-1-onto-> dom  I ) )
 
Theoremeupthf1o 16862 The  F function in an Eulerian path is a bijection from a half-open range of nonnegative integers to the set of edges. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV, 18-Feb-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( F (EulerPaths `  G ) P  ->  F :
 ( 0..^ (♯ `  F ) ) -1-1-onto-> dom  I )
 
Theoremeupthfi 16863 Any graph with an Eulerian path is of finite size, i.e. with a finite number of edges. (Contributed by Mario Carneiro, 7-Apr-2015.) (Revised by AV, 18-Feb-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( F (EulerPaths `  G ) P  ->  dom  I  e.  Fin )
 
Theoremeupthseg 16864 The  N-th edge in an eulerian path is the edge having  P ( N ) and  P ( N  +  1 ) as endpoints . (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV, 18-Feb-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( ( F (EulerPaths `  G ) P  /\  N  e.  ( 0..^ (♯ `  F ) ) )  ->  { ( P `  N ) ,  ( P `  ( N  +  1 )
 ) }  C_  ( I `  ( F `  N ) ) )
 
Theoremeupthcl 16865 An Eulerian path has length ♯ ( F ), which is an integer. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV, 18-Feb-2021.)
 |-  ( F (EulerPaths `  G ) P  ->  (♯ `  F )  e.  NN0 )
 
Theoremeupthistrl 16866 An Eulerian path is a trail. (Contributed by Alexander van der Vekens, 24-Nov-2017.) (Revised by AV, 18-Feb-2021.)
 |-  ( F (EulerPaths `  G ) P  ->  F (Trails `  G ) P )
 
Theoremeupthiswlk 16867 An Eulerian path is a walk. (Contributed by AV, 6-Apr-2021.)
 |-  ( F (EulerPaths `  G ) P  ->  F (Walks `  G ) P )
 
Theoremeupthpf 16868 The  P function in an Eulerian path is a function from a finite sequence of nonnegative integers to the vertices. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV, 18-Feb-2021.)
 |-  ( F (EulerPaths `  G ) P  ->  P :
 ( 0 ... (♯ `  F ) ) --> (Vtx `  G ) )
 
Theoremeupthres 16869 The restriction  <. H ,  Q >. of an Eulerian path  <. F ,  P >. to an initial segment of the path (of length  N) forms an Eulerian path on the subgraph  S consisting of the edges in the initial segment. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by Mario Carneiro, 3-May-2015.) (Revised by AV, 6-Mar-2021.) Hypothesis revised using the prefix operation. (Revised by AV, 30-Nov-2022.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  F (EulerPaths `  G ) P )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  (iEdg `  S )  =  ( I  |`  ( F " (
 0..^ N ) ) ) )   &    |-  H  =  ( F prefix  N )   &    |-  Q  =  ( P  |`  ( 0 ... N ) )   &    |-  (Vtx `  S )  =  V   =>    |-  ( ph  ->  H (EulerPaths `  S ) Q )
 
Theoremeupth2lem1 16870 Lemma for eupth2 . (Contributed by Mario Carneiro, 8-Apr-2015.)
 |-  ( U  e.  V  ->  ( U  e.  if ( A  =  B ,  (/) ,  { A ,  B } )  <->  ( A  =/=  B 
 /\  ( U  =  A  \/  U  =  B ) ) ) )
 
Theoremeupth2lem2dc 16871 Lemma for eupth2 . (Contributed by Mario Carneiro, 8-Apr-2015.)
 |-  ( ph  ->  B  e.  X )   &    |-  ( ph  -> DECID  A  =  B )   &    |-  ( ph  ->  B  =/=  C )   &    |-  ( ph  ->  B  =  U )   =>    |-  ( ph  ->  ( -.  U  e.  if ( A  =  B ,  (/)
 ,  { A ,  B } )  <->  U  e.  if ( A  =  C ,  (/) ,  { A ,  C } ) ) )
 
Theoremtrlsegvdeglem1 16872 Lemma for trlsegvdeg . (Contributed by AV, 20-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   =>    |-  ( ph  ->  (
 ( P `  N )  e.  V  /\  ( P `  ( N  +  1 ) )  e.  V ) )
 
Theoremtrlsegvdeglem2 16873 Lemma for trlsegvdeg . (Contributed by AV, 20-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   =>    |-  ( ph  ->  Fun  (iEdg `  X ) )
 
Theoremtrlsegvdeglem3 16874 Lemma for trlsegvdeg . (Contributed by AV, 20-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   =>    |-  ( ph  ->  Fun  (iEdg `  Y ) )
 
Theoremtrlsegvdeglem4 16875 Lemma for trlsegvdeg . (Contributed by AV, 21-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   =>    |-  ( ph  ->  dom  (iEdg `  X )  =  (
 ( F " (
 0..^ N ) )  i^i  dom  I )
 )
 
Theoremtrlsegvdeglem5 16876 Lemma for trlsegvdeg . (Contributed by AV, 21-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   =>    |-  ( ph  ->  dom  (iEdg `  Y )  =  {
 ( F `  N ) } )
 
Theoremtrlsegvdeglem6 16877 Lemma for trlsegvdeg . (Contributed by AV, 21-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   =>    |-  ( ph  ->  dom  (iEdg `  X )  e.  Fin )
 
Theoremtrlsegvdeglem7 16878 Lemma for trlsegvdeg . (Contributed by AV, 21-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   =>    |-  ( ph  ->  dom  (iEdg `  Y )  e.  Fin )
 
Theoremtrlsegvdegfi 16879 The effect on vertex degree of adding one edge to a trail. In the following, a subgraph induced by a segment of a trail is called a "subtrail": For any subtrail  Z of a trail  <. F ,  P >. in a pseudograph  G which is composed of subtrails  X and  Y, where  Y consists of a single edge, the vertex degree of any vertex  U within  Z is the sum of the vertex degree of  U within  X and the vertex degree of  U within  Y. Note that this theorem would not hold for arbitrary walks (if the last edge was identical with a previous edge, the degree of the vertices incident with this edge would not be increased because of this edge). (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 20-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   &    |-  ( ph  ->  G  e. UPGraph )   &    |-  ( ph  ->  V  e.  Fin )   =>    |-  ( ph  ->  (
 (VtxDeg `  Z ) `  U )  =  (
 ( (VtxDeg `  X ) `  U )  +  ( (VtxDeg `  Y ) `  U ) ) )
 
Theoremeupth2lem3lem1fi 16880 Lemma for eupth2lem3fi 16888. (Contributed by AV, 21-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   &    |-  ( ph  ->  G  e. UPGraph )   &    |-  ( ph  ->  V  e.  Fin )   =>    |-  ( ph  ->  (
 (VtxDeg `  X ) `  U )  e.  NN0 )
 
Theoremeupth2lem3lem2fi 16881 Lemma for eupth2lem3fi 16888. (Contributed by AV, 21-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   &    |-  ( ph  ->  G  e. UPGraph )   &    |-  ( ph  ->  V  e.  Fin )   =>    |-  ( ph  ->  (
 (VtxDeg `  Y ) `  U )  e.  NN0 )
 
Theoremeupth2lem3lem3fi 16882* Lemma for eupth2lem3fi 16888. If a loop  { ( P `
 N ) ,  ( P `  ( N  +  1 ) ) } is added to a trail, the degree of the vertices with odd degree remains odd (regarding the subgraphs induced by the involved trails). (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 21-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   &    |-  ( ph  ->  G  e. UPGraph )   &    |-  ( ph  ->  V  e.  Fin )   &    |-  ( ph  ->  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  X ) `  x ) }  =  if ( ( P `  0 )  =  ( P `  N ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  N ) } ) )   &    |-  ( ph  -> if- ( ( P `
  N )  =  ( P `  ( N  +  1 )
 ) ,  ( I `
  ( F `  N ) )  =  { ( P `  N ) } ,  { ( P `  N ) ,  ( P `  ( N  +  1 ) ) }  C_  ( I `  ( F `  N ) ) ) )   =>    |-  ( ( ph  /\  ( P `  N )  =  ( P `  ( N  +  1 )
 ) )  ->  ( -.  2  ||  ( ( (VtxDeg `  X ) `  U )  +  (
 (VtxDeg `  Y ) `  U ) )  <->  U  e.  if ( ( P `  0 )  =  ( P `  ( N  +  1 ) ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  ( N  +  1 )
 ) } ) ) )
 
Theoremeupth2lem3lem6fi 16883* If an edge (not a loop) is added to a trail, the degree of vertices not being end vertices of this edge remains odd if it was odd before (regarding the subgraphs induced by the involved trails). Remark: This seems to be not valid for hyperedges joining more vertices than  ( P ` 
0 ) and  ( P `
 N ): if there is a third vertex in the edge, and this vertex is already contained in the trail, then the degree of this vertex could be affected by this edge! (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 25-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   &    |-  ( ph  ->  G  e. UPGraph )   &    |-  ( ph  ->  V  e.  Fin )   &    |-  ( ph  ->  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  X ) `  x ) }  =  if ( ( P `  0 )  =  ( P `  N ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  N ) } ) )   &    |-  ( ph  ->  ( I `  ( F `  N ) )  =  { ( P `  N ) ,  ( P `  ( N  +  1 )
 ) } )   =>    |-  ( ( ph  /\  ( P `  N )  =/=  ( P `  ( N  +  1
 ) )  /\  ( U  =/=  ( P `  N )  /\  U  =/=  ( P `  ( N  +  1 ) ) ) )  ->  ( -.  2  ||  ( ( (VtxDeg `  X ) `  U )  +  (
 (VtxDeg `  Y ) `  U ) )  <->  U  e.  if ( ( P `  0 )  =  ( P `  ( N  +  1 ) ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  ( N  +  1 )
 ) } ) ) )
 
Theoremeupth2lem3lem5 16884 Lemma for eupth2fi 16891. (Contributed by AV, 25-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   &    |-  ( ph  ->  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  X ) `  x ) }  =  if ( ( P `
  0 )  =  ( P `  N ) ,  (/) ,  {
 ( P `  0
 ) ,  ( P `
  N ) }
 ) )   &    |-  ( ph  ->  ( I `  ( F `
  N ) )  =  { ( P `
  N ) ,  ( P `  ( N  +  1 )
 ) } )   =>    |-  ( ph  ->  ( I `  ( F `
  N ) )  e.  ~P V )
 
Theoremeupth2lem3lem4fi 16885* Lemma for eupth2lem3fi 16888. If an edge (not a loop) is added to a trail, the degree of the end vertices of this edge remains odd if it was odd before (regarding the subgraphs induced by the involved trails). (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 25-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   &    |-  ( ph  ->  G  e. UMGraph )   &    |-  ( ph  ->  V  e.  Fin )   &    |-  ( ph  ->  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  X ) `  x ) }  =  if ( ( P `  0 )  =  ( P `  N ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  N ) } ) )   &    |-  ( ph  -> if- ( ( P `
  N )  =  ( P `  ( N  +  1 )
 ) ,  ( I `
  ( F `  N ) )  =  { ( P `  N ) } ,  { ( P `  N ) ,  ( P `  ( N  +  1 ) ) }  C_  ( I `  ( F `  N ) ) ) )   &    |-  ( ph  ->  ( I `  ( F `
  N ) )  e.  ~P V )   =>    |-  ( ( ph  /\  ( P `  N )  =/=  ( P `  ( N  +  1 )
 )  /\  ( U  =  ( P `  N )  \/  U  =  ( P `  ( N  +  1 ) ) ) )  ->  ( -.  2  ||  ( ( (VtxDeg `  X ) `  U )  +  (
 (VtxDeg `  Y ) `  U ) )  <->  U  e.  if ( ( P `  0 )  =  ( P `  ( N  +  1 ) ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  ( N  +  1 )
 ) } ) ) )
 
Theoremeupth2lem3lem7fi 16886* Lemma for eupth2lem3fi 16888: Combining trlsegvdegfi 16879, eupth2lem3lem3fi 16882, eupth2lem3lem4fi 16885 and eupth2lem3lem6fi 16883. (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 27-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  N  e.  ( 0..^ (♯ `  F ) ) )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  F (Trails `  G ) P )   &    |-  ( ph  ->  (Vtx `  X )  =  V )   &    |-  ( ph  ->  (Vtx `  Y )  =  V )   &    |-  ( ph  ->  (Vtx `  Z )  =  V )   &    |-  ( ph  ->  (iEdg `  X )  =  ( I  |`  ( F " ( 0..^ N ) ) ) )   &    |-  ( ph  ->  (iEdg `  Y )  =  { <. ( F `
  N ) ,  ( I `  ( F `  N ) )
 >. } )   &    |-  ( ph  ->  (iEdg `  Z )  =  ( I  |`  ( F " ( 0 ... N ) ) ) )   &    |-  ( ph  ->  G  e. UMGraph )   &    |-  ( ph  ->  V  e.  Fin )   &    |-  ( ph  ->  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  X ) `  x ) }  =  if ( ( P `  0 )  =  ( P `  N ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  N ) } ) )   &    |-  ( ph  ->  ( I `  ( F `  N ) )  =  { ( P `  N ) ,  ( P `  ( N  +  1 )
 ) } )   =>    |-  ( ph  ->  ( -.  2  ||  (
 (VtxDeg `  Z ) `  U )  <->  U  e.  if ( ( P `  0 )  =  ( P `  ( N  +  1 ) ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  ( N  +  1 )
 ) } ) ) )
 
Theoremeupthvdres 16887 The vertex degree remains the same for all vertices if the edges are restricted to the edges of an Eulerian path. (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 26-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  G  e.  W )   &    |-  ( ph  ->  Fun  I )   &    |-  ( ph  ->  F (EulerPaths `  G ) P )   &    |-  H  =  <. V ,  ( I  |`  ( F " ( 0..^ (♯ `  F )
 ) ) ) >.   =>    |-  ( ph  ->  (VtxDeg `  H )  =  (VtxDeg `  G ) )
 
Theoremeupth2lem3fi 16888* Lemma for eupth2fi 16891. (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 26-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  G  e. UMGraph )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  F (EulerPaths `  G ) P )   &    |-  ( ph  ->  V  e.  Fin )   &    |-  H  =  <. V ,  ( I  |`  ( F "
 ( 0..^ N ) ) ) >.   &    |-  X  =  <. V ,  ( I  |`  ( F
 " ( 0..^ ( N  +  1 ) ) ) ) >.   &    |-  ( ph  ->  N  e.  NN0 )   &    |-  ( ph  ->  ( N  +  1 )  <_  (♯ `  F )
 )   &    |-  ( ph  ->  U  e.  V )   &    |-  ( ph  ->  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  H ) `  x ) }  =  if ( ( P `  0 )  =  ( P `  N ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  N ) } ) )   =>    |-  ( ph  ->  ( -.  2  ||  (
 (VtxDeg `  X ) `  U )  <->  U  e.  if ( ( P `  0 )  =  ( P `  ( N  +  1 ) ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  ( N  +  1 )
 ) } ) ) )
 
Theoremeupth2lembfi 16889* Lemma for eupth2fi 16891 (induction basis): There are no vertices of odd degree in an Eulerian path of length 0, having no edge and identical endpoints (the single vertex of the Eulerian path). (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 26-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  G  e. UMGraph )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  F (EulerPaths `  G ) P )   &    |-  ( ph  ->  V  e.  Fin )   =>    |-  ( ph  ->  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  <. V ,  ( I  |`  ( F "
 ( 0..^ 0 ) ) ) >. ) `  x ) }  =  (/) )
 
Theoremeupth2lemsfi 16890* Lemma for eupth2fi 16891 (induction step): The only vertices of odd degree in a graph with an Eulerian path are the endpoints, and then only if the endpoints are distinct, if the Eulerian path shortened by one edge has this property. (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 26-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  G  e. UMGraph )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  F (EulerPaths `  G ) P )   &    |-  ( ph  ->  V  e.  Fin )   =>    |-  ( ( ph  /\  n  e.  NN0 )  ->  ( ( n  <_  (♯ `  F )  ->  { x  e.  V  |  -.  2  ||  (
 (VtxDeg `  <. V ,  ( I  |`  ( F "
 ( 0..^ n ) ) ) >. ) `  x ) }  =  if ( ( P `  0 )  =  ( P `  n ) ,  (/) ,  { ( P `
  0 ) ,  ( P `  n ) } ) )  ->  ( ( n  +  1 )  <_  (♯ `  F )  ->  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  <. V ,  ( I  |`  ( F
 " ( 0..^ ( n  +  1 ) ) ) ) >. ) `
  x ) }  =  if ( ( P `
  0 )  =  ( P `  ( n  +  1 )
 ) ,  (/) ,  {
 ( P `  0
 ) ,  ( P `
  ( n  +  1 ) ) }
 ) ) ) )
 
Theoremeupth2fi 16891* The only vertices of odd degree in a graph with an Eulerian path are the endpoints, and then only if the endpoints are distinct. (Contributed by Mario Carneiro, 8-Apr-2015.) (Revised by AV, 26-Feb-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  G  e. UMGraph )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  F (EulerPaths `  G ) P )   &    |-  ( ph  ->  V  e.  Fin )   =>    |-  ( ph  ->  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  G ) `  x ) }  =  if ( ( P `  0 )  =  ( P `  (♯ `  F ) ) ,  (/) ,  {
 ( P `  0
 ) ,  ( P `
  (♯ `  F )
 ) } ) )
 
Theoremeulerpathprum 16892* A graph with an Eulerian path has either zero or two vertices of odd degree. (Contributed by Mario Carneiro, 7-Apr-2015.) (Revised by AV, 26-Feb-2021.)
 |-  V  =  (Vtx `  G )   =>    |-  ( ( G  e. UMGraph  /\  F (EulerPaths `  G ) P 
 /\  V  e.  Fin )  ->  (♯ `  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  G ) `  x ) }
 )  e.  { 0 ,  2 } )
 
Theoremeulerpathum 16893* A multigraph with an Eulerian path has either zero or two vertices of odd degree. (Contributed by Mario Carneiro, 7-Apr-2015.) (Revised by AV, 26-Feb-2021.)
 |-  V  =  (Vtx `  G )   =>    |-  ( ( G  e. UMGraph  /\ 
 E. j  j  e.  (EulerPaths `  G )  /\  V  e.  Fin )  ->  (♯ `  { x  e.  V  |  -.  2  ||  ( (VtxDeg `  G ) `  x ) }
 )  e.  { 0 ,  2 } )
 
12.4.2  The Königsberg Bridge problem

According to Wikipedia ("Seven Bridges of Königsberg", 9-Mar-2021, https://en.wikipedia.org/wiki/Seven_Bridges_of_Koenigsberg): "The Seven Bridges of Königsberg is a historically notable problem in mathematics. Its negative resolution by Leonhard Euler in 1736 laid the foundations of graph theory and prefigured the idea of topology. The city of Königsberg in [East] Prussia (now Kaliningrad, Russia) was set on both sides of the Pregel River, and included two large islands - Kneiphof and Lomse - which were connected to each other, or to the two mainland portions of the city, by seven bridges. The problem was to devise a walk through the city that would cross each of those bridges once and only once.". Euler proved that the problem has no solution by applying Euler's theorem to the Königsberg graph, which is obtained by replacing each land mass with an abstract "vertex" or node, and each bridge with an abstract connection, an "edge", which connects two land masses/vertices. The Königsberg graph  G is a multigraph consisting of 4 vertices and 7 edges, represented by the following ordered pair:  G  =  <. (
0 ... 3 ) , 
<" { 0 ,  1 } { 0 ,  2 }  { 0 ,  3 } {
1 ,  2 } { 1 ,  2 } { 2 ,  3 } { 2 ,  3 } "> >., see konigsbergumgr 16899. konigsberg 16905 shows that the Königsberg graph has no Eulerian path, thus the Königsberg Bridge problem has no solution.

 
Theoremkonigsbergvtx 16894 The set of vertices of the Königsberg graph  G. (Contributed by AV, 28-Feb-2021.)
 |-  V  =  ( 0
 ... 3 )   &    |-  E  =  <" { 0 ,  1 }  {
 0 ,  2 }  { 0 ,  3 }  { 1 ,  2 }  { 1 ,  2 }  {
 2 ,  3 }  { 2 ,  3 } ">   &    |-  G  =  <. V ,  E >.   =>    |-  (Vtx `  G )  =  ( 0 ... 3
 )
 
Theoremkonigsbergiedg 16895 The indexed edges of the Königsberg graph  G. (Contributed by AV, 28-Feb-2021.)
 |-  V  =  ( 0
 ... 3 )   &    |-  E  =  <" { 0 ,  1 }  {
 0 ,  2 }  { 0 ,  3 }  { 1 ,  2 }  { 1 ,  2 }  {
 2 ,  3 }  { 2 ,  3 } ">   &    |-  G  =  <. V ,  E >.   =>    |-  (iEdg `  G )  =  <" { 0 ,  1 }  {
 0 ,  2 }  { 0 ,  3 }  { 1 ,  2 }  { 1 ,  2 }  {
 2 ,  3 }  { 2 ,  3 } ">
 
Theoremkonigsbergiedgwen 16896* The indexed edges of the Königsberg graph  G is a word over the pairs of vertices. (Contributed by AV, 28-Feb-2021.)
 |-  V  =  ( 0
 ... 3 )   &    |-  E  =  <" { 0 ,  1 }  {
 0 ,  2 }  { 0 ,  3 }  { 1 ,  2 }  { 1 ,  2 }  {
 2 ,  3 }  { 2 ,  3 } ">   &    |-  G  =  <. V ,  E >.   =>    |-  E  e. Word  { x  e.  ~P V  |  x  ~~ 
 2o }
 
Theoremkonigsbergssiedgwpren 16897* Each subset of the indexed edges of the Königsberg graph  G is a word over the pairs of vertices. (Contributed by AV, 28-Feb-2021.)
 |-  V  =  ( 0
 ... 3 )   &    |-  E  =  <" { 0 ,  1 }  {
 0 ,  2 }  { 0 ,  3 }  { 1 ,  2 }  { 1 ,  2 }  {
 2 ,  3 }  { 2 ,  3 } ">   &    |-  G  =  <. V ,  E >.   =>    |-  ( ( A  e. Word  _V 
 /\  B  e. Word  _V  /\  E  =  ( A ++ 
 B ) )  ->  A  e. Word  { x  e. 
 ~P V  |  x  ~~ 
 2o } )
 
Theoremkonigsbergssiedgwen 16898* Each subset of the indexed edges of the Königsberg graph  G is a word over the pairs of vertices. (Contributed by AV, 28-Feb-2021.)
 |-  V  =  ( 0
 ... 3 )   &    |-  E  =  <" { 0 ,  1 }  {
 0 ,  2 }  { 0 ,  3 }  { 1 ,  2 }  { 1 ,  2 }  {
 2 ,  3 }  { 2 ,  3 } ">   &    |-  G  =  <. V ,  E >.   =>    |-  ( ( A  e. Word  _V 
 /\  B  e. Word  _V  /\  E  =  ( A ++ 
 B ) )  ->  A  e. Word  { x  e. 
 ~P V  |  ( x  ~~  1o  \/  x  ~~  2o ) }
 )
 
Theoremkonigsbergumgr 16899 The Königsberg graph  G is a multigraph. (Contributed by AV, 28-Feb-2021.) (Revised by AV, 9-Mar-2021.)
 |-  V  =  ( 0
 ... 3 )   &    |-  E  =  <" { 0 ,  1 }  {
 0 ,  2 }  { 0 ,  3 }  { 1 ,  2 }  { 1 ,  2 }  {
 2 ,  3 }  { 2 ,  3 } ">   &    |-  G  =  <. V ,  E >.   =>    |-  G  e. UMGraph
 
Theoremkonigsberglem1 16900 Lemma 1 for konigsberg 16905: Vertex  0 has degree three. (Contributed by Mario Carneiro, 11-Mar-2015.) (Revised by Mario Carneiro, 28-Feb-2016.) (Revised by AV, 4-Mar-2021.)
 |-  V  =  ( 0
 ... 3 )   &    |-  E  =  <" { 0 ,  1 }  {
 0 ,  2 }  { 0 ,  3 }  { 1 ,  2 }  { 1 ,  2 }  {
 2 ,  3 }  { 2 ,  3 } ">   &    |-  G  =  <. V ,  E >.   =>    |-  ( (VtxDeg `  G ) `  0 )  =  3
    < Previous  Next >

Page List
Jump to page: Contents  1 1-100 2 101-200 3 201-300 4 301-400 5 401-500 6 501-600 7 601-700 8 701-800 9 801-900 10 901-1000 11 1001-1100 12 1101-1200 13 1201-1300 14 1301-1400 15 1401-1500 16 1501-1600 17 1601-1700 18 1701-1800 19 1801-1900 20 1901-2000 21 2001-2100 22 2101-2200 23 2201-2300 24 2301-2400 25 2401-2500 26 2501-2600 27 2601-2700 28 2701-2800 29 2801-2900 30 2901-3000 31 3001-3100 32 3101-3200 33 3201-3300 34 3301-3400 35 3401-3500 36 3501-3600 37 3601-3700 38 3701-3800 39 3801-3900 40 3901-4000 41 4001-4100 42 4101-4200 43 4201-4300 44 4301-4400 45 4401-4500 46 4501-4600 47 4601-4700 48 4701-4800 49 4801-4900 50 4901-5000 51 5001-5100 52 5101-5200 53 5201-5300 54 5301-5400 55 5401-5500 56 5501-5600 57 5601-5700 58 5701-5800 59 5801-5900 60 5901-6000 61 6001-6100 62 6101-6200 63 6201-6300 64 6301-6400 65 6401-6500 66 6501-6600 67 6601-6700 68 6701-6800 69 6801-6900 70 6901-7000 71 7001-7100 72 7101-7200 73 7201-7300 74 7301-7400 75 7401-7500 76 7501-7600 77 7601-7700 78 7701-7800 79 7801-7900 80 7901-8000 81 8001-8100 82 8101-8200 83 8201-8300 84 8301-8400 85 8401-8500 86 8501-8600 87 8601-8700 88 8701-8800 89 8801-8900 90 8901-9000 91 9001-9100 92 9101-9200 93 9201-9300 94 9301-9400 95 9401-9500 96 9501-9600 97 9601-9700 98 9701-9800 99 9801-9900 100 9901-10000 101 10001-10100 102 10101-10200 103 10201-10300 104 10301-10400 105 10401-10500 106 10501-10600 107 10601-10700 108 10701-10800 109 10801-10900 110 10901-11000 111 11001-11100 112 11101-11200 113 11201-11300 114 11301-11400 115 11401-11500 116 11501-11600 117 11601-11700 118 11701-11800 119 11801-11900 120 11901-12000 121 12001-12100 122 12101-12200 123 12201-12300 124 12301-12400 125 12401-12500 126 12501-12600 127 12601-12700 128 12701-12800 129 12801-12900 130 12901-13000 131 13001-13100 132 13101-13200 133 13201-13300 134 13301-13400 135 13401-13500 136 13501-13600 137 13601-13700 138 13701-13800 139 13801-13900 140 13901-14000 141 14001-14100 142 14101-14200 143 14201-14300 144 14301-14400 145 14401-14500 146 14501-14600 147 14601-14700 148 14701-14800 149 14801-14900 150 14901-15000 151 15001-15100 152 15101-15200 153 15201-15300 154 15301-15400 155 15401-15500 156 15501-15600 157 15601-15700 158 15701-15800 159 15801-15900 160 15901-16000 161 16001-16100 162 16101-16200 163 16201-16300 164 16301-16400 165 16401-16500 166 16501-16600 167 16601-16700 168 16701-16800 169 16801-16900 170 16901-17000 171 17001-17100 172 17101-17200 173 17201-17300 174 17301-17351
  Copyright terms: Public domain < Previous  Next >