HomeHome Intuitionistic Logic Explorer
Theorem List (p. 162 of 166)
< 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 - 16101-16200   *Has distinct variable group(s)
TypeLabelDescription
Statement
 
Theoremiswlkg 16101* Generalization of iswlk 16095: Conditions for two classes to represent a walk. (Contributed by Alexander van der Vekens, 23-Jun-2018.) (Revised by AV, 1-Jan-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   =>    |-  ( G  e.  W  ->  ( F (Walks `  G ) P  <->  ( F  e. Word  dom 
 I  /\  P :
 ( 0 ... ( `  F ) ) --> V  /\  A. k  e.  ( 0..^ ( `  F )
 )if- ( ( P `
  k )  =  ( P `  (
 k  +  1 ) ) ,  ( I `
  ( F `  k ) )  =  { ( P `  k ) } ,  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  C_  ( I `  ( F `  k ) ) ) ) ) )
 
Theoremwlkf 16102 The mapping enumerating the (indices of the) edges of a walk is a word over the indices of the edges of the graph. (Contributed by AV, 5-Apr-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( F (Walks `  G ) P  ->  F  e. Word  dom  I )
 
Theoremwlkfg 16103 The mapping enumerating the (indices of the) edges of a walk is a word over the indices of the edges of the graph. (Contributed by AV, 5-Apr-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( ( G  e.  W  /\  F (Walks `  G ) P ) 
 ->  F  e. Word  dom  I )
 
Theoremwlkcl 16104 A walk has length ♯ ( F ), which is an integer. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV, 18-Feb-2021.)
 |-  ( F (Walks `  G ) P  ->  ( `  F )  e.  NN0 )
 
Theoremwlkclg 16105 A walk has length ♯ ( F ), which is an integer. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by AV, 18-Feb-2021.)
 |-  ( ( G  e.  W  /\  F (Walks `  G ) P ) 
 ->  ( `  F )  e.  NN0 )
 
Theoremwlkp 16106 The mapping enumerating the vertices of a walk is a function. (Contributed by AV, 5-Apr-2021.)
 |-  V  =  (Vtx `  G )   =>    |-  ( F (Walks `  G ) P  ->  P : ( 0 ... ( `  F )
 ) --> V )
 
Theoremwlkpg 16107 The mapping enumerating the vertices of a walk is a function. (Contributed by AV, 5-Apr-2021.)
 |-  V  =  (Vtx `  G )   =>    |-  ( ( G  e.  W  /\  F (Walks `  G ) P ) 
 ->  P : ( 0
 ... ( `  F )
 ) --> V )
 
Theoremwlkpwrdg 16108 The sequence of vertices of a walk is a word over the set of vertices. (Contributed by AV, 27-Jan-2021.)
 |-  V  =  (Vtx `  G )   =>    |-  ( ( G  e.  W  /\  F (Walks `  G ) P ) 
 ->  P  e. Word  V )
 
Theoremwlklenvp1 16109 The number of vertices of a walk (in an undirected graph) is the number of its edges plus 1. (Contributed by Alexander van der Vekens, 29-Jun-2018.) (Revised by AV, 1-May-2021.)
 |-  ( F (Walks `  G ) P  ->  ( `  P )  =  ( ( `  F )  +  1 ) )
 
Theoremwlklenvp1g 16110 The number of vertices of a walk (in an undirected graph) is the number of its edges plus 1. (Contributed by Alexander van der Vekens, 29-Jun-2018.) (Revised by AV, 1-May-2021.)
 |-  ( ( G  e.  W  /\  F (Walks `  G ) P ) 
 ->  ( `  P )  =  ( ( `  F )  +  1 )
 )
 
Theoremwlkm 16111* The sequence of vertices of a walk cannot be empty, i.e. a walk always consists of at least one vertex. (Contributed by Alexander van der Vekens, 19-Jul-2018.) (Revised by AV, 2-Jan-2021.)
 |-  ( F (Walks `  G ) P  ->  E. x  x  e.  P )
 
Theoremwlkvtxm 16112* A graph with a walk has at least one vertex. (Contributed by Jim Kingdon, 8-Feb-2026.)
 |-  V  =  (Vtx `  G )   =>    |-  ( F (Walks `  G ) P  ->  E. x  x  e.  V )
 
Theoremwlklenvm1 16113 The number of edges of a walk is the number of its vertices minus 1. (Contributed by Alexander van der Vekens, 1-Jul-2018.) (Revised by AV, 2-Jan-2021.)
 |-  ( F (Walks `  G ) P  ->  ( `  F )  =  ( ( `  P )  -  1 ) )
 
Theoremwlklenvm1g 16114 The number of edges of a walk is the number of its vertices minus 1. (Contributed by Alexander van der Vekens, 1-Jul-2018.) (Revised by AV, 2-Jan-2021.)
 |-  ( ( G  e.  W  /\  F (Walks `  G ) P ) 
 ->  ( `  F )  =  ( ( `  P )  -  1 ) )
 
Theoremifpsnprss 16115 Lemma for wlkvtxeledgg 16116: Two adjacent (not necessarily different) vertices  A and  B in a walk are incident with an edge  E. (Contributed by AV, 4-Apr-2021.) (Revised by AV, 5-Nov-2021.)
 |-  (if- ( A  =  B ,  E  =  { A } ,  { A ,  B }  C_  E )  ->  { A ,  B }  C_  E )
 
Theoremwlkvtxeledgg 16116* Each pair of adjacent vertices in a walk is a subset of an edge. (Contributed by AV, 28-Jan-2021.) (Proof shortened by AV, 4-Apr-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( ( G  e.  W  /\  F (Walks `  G ) P ) 
 ->  A. k  e.  (
 0..^ ( `  F )
 ) { ( P `
  k ) ,  ( P `  (
 k  +  1 ) ) }  C_  ( I `  ( F `  k ) ) )
 
Theoremwlkvtxiedg 16117* The vertices of a walk are connected by indexed edges. (Contributed by Alexander van der Vekens, 22-Jul-2018.) (Revised by AV, 2-Jan-2021.) (Proof shortened by AV, 4-Apr-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( F (Walks `  G ) P  ->  A. k  e.  ( 0..^ ( `  F )
 ) E. e  e. 
 ran  I { ( P `  k ) ,  ( P `  (
 k  +  1 ) ) }  C_  e
 )
 
Theoremwlkvtxiedgg 16118* The vertices of a walk are connected by indexed edges. (Contributed by Alexander van der Vekens, 22-Jul-2018.) (Revised by AV, 2-Jan-2021.) (Proof shortened by AV, 4-Apr-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( ( G  e.  W  /\  F (Walks `  G ) P ) 
 ->  A. k  e.  (
 0..^ ( `  F )
 ) E. e  e. 
 ran  I { ( P `  k ) ,  ( P `  (
 k  +  1 ) ) }  C_  e
 )
 
Theoremrelwlk 16119 The set  (Walks `  G
) of all walks on  G is a set of pairs by our definition of a walk, and so is a relation. (Contributed by Alexander van der Vekens, 30-Jun-2018.) (Revised by AV, 19-Feb-2021.)
 |- 
 Rel  (Walks `  G )
 
Theoremwlkop 16120 A walk is an ordered pair. (Contributed by Alexander van der Vekens, 30-Jun-2018.) (Revised by AV, 1-Jan-2021.)
 |-  ( W  e.  (Walks `  G )  ->  W  =  <. ( 1st `  W ) ,  ( 2nd `  W ) >. )
 
Theoremwlkelvv 16121 A walk is an ordered pair. (Contributed by Jim Kingdon, 2-Feb-2026.)
 |-  ( W  e.  (Walks `  G )  ->  W  e.  ( _V  X.  _V ) )
 
Theoremwlkcprim 16122 A walk as class with two components. (Contributed by Alexander van der Vekens, 22-Jul-2018.) (Revised by AV, 2-Jan-2021.) (Revised by Jim Kingdon, 1-Feb-2026.)
 |-  ( W  e.  (Walks `  G )  ->  ( 1st `  W ) (Walks `  G ) ( 2nd `  W ) )
 
Theoremwlk2f 16123* If there is a walk  W there is a pair of functions representing this walk. (Contributed by Alexander van der Vekens, 22-Jul-2018.)
 |-  ( W  e.  (Walks `  G )  ->  E. f E. p  f (Walks `  G ) p )
 
Theoremwlkcompim 16124* Implications for the properties of the components of a walk. (Contributed by Alexander van der Vekens, 23-Jun-2018.) (Revised by AV, 2-Jan-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  F  =  ( 1st `  W )   &    |-  P  =  ( 2nd `  W )   =>    |-  ( W  e.  (Walks `  G )  ->  ( F  e. Word  dom  I  /\  P : ( 0 ... ( `  F )
 ) --> V  /\  A. k  e.  ( 0..^ ( `  F ) )if- ( ( P `  k )  =  ( P `  ( k  +  1 ) ) ,  ( I `  ( F `  k ) )  =  { ( P `
  k ) } ,  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }  C_  ( I `  ( F `  k ) ) ) ) )
 
Theoremwlkelwrd 16125 The components of a walk are words/functions over a zero based range of integers. (Contributed by Alexander van der Vekens, 23-Jun-2018.) (Revised by AV, 2-Jan-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  F  =  ( 1st `  W )   &    |-  P  =  ( 2nd `  W )   =>    |-  ( W  e.  (Walks `  G )  ->  ( F  e. Word  dom  I  /\  P : ( 0 ... ( `  F )
 ) --> V ) )
 
Theoremwlkeq 16126* Conditions for two walks (within the same graph) being the same. (Contributed by AV, 1-Jul-2018.) (Revised by AV, 16-May-2019.) (Revised by AV, 14-Apr-2021.)
 |-  ( ( A  e.  (Walks `  G )  /\  B  e.  (Walks `  G )  /\  N  =  ( `  ( 1st `  A ) ) )  ->  ( A  =  B  <->  ( N  =  ( `  ( 1st `  B ) ) 
 /\  A. x  e.  (
 0..^ N ) ( ( 1st `  A ) `  x )  =  ( ( 1st `  B ) `  x )  /\  A. x  e.  ( 0
 ... N ) ( ( 2nd `  A ) `  x )  =  ( ( 2nd `  B ) `  x ) ) ) )
 
Theoremedginwlkd 16127 The value of the edge function for an index of an edge within a walk is an edge. (Contributed by AV, 2-Jan-2021.) (Revised by AV, 9-Dec-2021.) (Revised by Jim Kingdon, 2-Feb-2026.)
 |-  I  =  (iEdg `  G )   &    |-  E  =  (Edg `  G )   &    |-  ( ph  ->  Fun 
 I )   &    |-  ( ph  ->  F  e. Word  dom  I )   &    |-  ( ph  ->  K  e.  (
 0..^ ( `  F )
 ) )   &    |-  ( ph  ->  G  e.  V )   =>    |-  ( ph  ->  ( I `  ( F `
  K ) )  e.  E )
 
Theoremupgredginwlk 16128 The value of the edge function for an index of an edge within a walk is an edge. (Contributed by AV, 2-Jan-2021.)
 |-  I  =  (iEdg `  G )   &    |-  E  =  (Edg `  G )   =>    |-  ( ( G  e. UPGraph  /\  F  e. Word  dom  I ) 
 ->  ( K  e.  (
 0..^ ( `  F )
 )  ->  ( I `  ( F `  K ) )  e.  E ) )
 
Theoremiedginwlk 16129 The value of the edge function for an index of an edge within a walk is an edge. (Contributed by AV, 23-Apr-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( ( Fun  I  /\  F (Walks `  G ) P  /\  X  e.  ( 0..^ ( `  F )
 ) )  ->  ( I `  ( F `  X ) )  e. 
 ran  I )
 
Theoremwlkl1loop 16130 A walk of length 1 from a vertex to itself is a loop. (Contributed by AV, 23-Apr-2021.)
 |-  ( ( ( Fun  (iEdg `  G )  /\  F (Walks `  G ) P )  /\  (
 ( `  F )  =  1  /\  ( P `
  0 )  =  ( P `  1
 ) ) )  ->  { ( P `  0 ) }  e.  (Edg `  G ) )
 
Theoremwlk1walkdom 16131* A walk is a 1-walk "on the edge level" according to Aksoy et al. (Contributed by AV, 30-Dec-2020.)
 |-  I  =  (iEdg `  G )   =>    |-  ( F (Walks `  G ) P  ->  A. k  e.  ( 1..^ ( `  F )
 ) 1o  ~<_  ( ( I `  ( F `
  ( k  -  1 ) ) )  i^i  ( I `  ( F `  k ) ) ) )
 
Theoremupgriswlkdc 16132* Properties of a pair of functions to be a walk in a pseudograph. (Contributed by AV, 2-Jan-2021.) (Revised by AV, 28-Oct-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   =>    |-  ( G  e. UPGraph  ->  ( F (Walks `  G ) P 
 <->  ( F  e. Word  dom  I 
 /\  P : ( 0 ... ( `  F ) ) --> V  /\  A. k  e.  ( 0..^ ( `  F )
 ) (DECID  ( P `  k
 )  =  ( P `
  ( k  +  1 ) )  /\  ( I `  ( F `
  k ) )  =  { ( P `
  k ) ,  ( P `  (
 k  +  1 ) ) } ) ) ) )
 
Theoremupgrwlkedg 16133* The edges of a walk in a pseudograph join exactly the two corresponding adjacent vertices in the walk. (Contributed by AV, 27-Feb-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( ( G  e. UPGraph  /\  F (Walks `  G ) P )  ->  A. k  e.  ( 0..^ ( `  F ) ) ( I `
  ( F `  k ) )  =  { ( P `  k ) ,  ( P `  ( k  +  1 ) ) }
 )
 
Theoremupgrwlkcompim 16134* Implications for the properties of the components of a walk in a pseudograph. (Contributed by Alexander van der Vekens, 23-Jun-2018.) (Revised by AV, 14-Apr-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  F  =  ( 1st `  W )   &    |-  P  =  ( 2nd `  W )   =>    |-  ( ( G  e. UPGraph  /\  W  e.  (Walks `  G ) )  ->  ( F  e. Word  dom  I  /\  P : ( 0
 ... ( `  F )
 ) --> V  /\  A. k  e.  ( 0..^ ( `  F ) ) ( I `  ( F `  k ) )  =  { ( P `
  k ) ,  ( P `  (
 k  +  1 ) ) } ) )
 
Theoremwlkvtxedg 16135* The vertices of a walk are connected by edges. (Contributed by Alexander van der Vekens, 22-Jul-2018.) (Revised by AV, 2-Jan-2021.)
 |-  E  =  (Edg `  G )   =>    |-  ( F (Walks `  G ) P  ->  A. k  e.  ( 0..^ ( `  F )
 ) E. e  e.  E  { ( P `
  k ) ,  ( P `  (
 k  +  1 ) ) }  C_  e
 )
 
Theoremupgrwlkvtxedg 16136* The pairs of connected vertices of a walk are edges in a pseudograph. (Contributed by Alexander van der Vekens, 22-Jul-2018.) (Revised by AV, 2-Jan-2021.)
 |-  E  =  (Edg `  G )   =>    |-  ( ( G  e. UPGraph  /\  F (Walks `  G ) P )  ->  A. k  e.  ( 0..^ ( `  F ) ) { ( P `  k ) ,  ( P `  (
 k  +  1 ) ) }  e.  E )
 
Theoremuspgr2wlkeq 16137* Conditions for two walks within the same simple pseudograph being the same. It is sufficient that the vertices (in the same order) are identical. (Contributed by AV, 3-Jul-2018.) (Revised by AV, 14-Apr-2021.)
 |-  ( ( G  e. USPGraph  /\  ( A  e.  (Walks `  G )  /\  B  e.  (Walks `  G )
 )  /\  N  =  ( `  ( 1st `  A ) ) )  ->  ( A  =  B  <->  ( N  =  ( `  ( 1st `  B ) ) 
 /\  A. y  e.  (
 0 ... N ) ( ( 2nd `  A ) `  y )  =  ( ( 2nd `  B ) `  y ) ) ) )
 
Theoremuspgr2wlkeq2 16138 Conditions for two walks within the same simple pseudograph to be identical. It is sufficient that the vertices (in the same order) are identical. (Contributed by Alexander van der Vekens, 25-Aug-2018.) (Revised by AV, 14-Apr-2021.)
 |-  ( ( ( G  e. USPGraph  /\  N  e.  NN0 )  /\  ( A  e.  (Walks `  G )  /\  ( `  ( 1st `  A ) )  =  N )  /\  ( B  e.  (Walks `  G )  /\  ( `  ( 1st `  B ) )  =  N ) )  ->  ( ( 2nd `  A )  =  ( 2nd `  B )  ->  A  =  B ) )
 
Theoremuspgr2wlkeqi 16139 Conditions for two walks within the same simple pseudograph to be identical. It is sufficient that the vertices (in the same order) are identical. (Contributed by AV, 6-May-2021.)
 |-  ( ( G  e. USPGraph  /\  ( A  e.  (Walks `  G )  /\  B  e.  (Walks `  G )
 )  /\  ( 2nd `  A )  =  ( 2nd `  B )
 )  ->  A  =  B )
 
Theoremumgrwlknloop 16140* In a multigraph, each walk has no loops! (Contributed by Alexander van der Vekens, 7-Nov-2017.) (Revised by AV, 3-Jan-2021.)
 |-  ( ( G  e. UMGraph  /\  F (Walks `  G ) P )  ->  A. k  e.  ( 0..^ ( `  F ) ) ( P `
  k )  =/=  ( P `  (
 k  +  1 ) ) )
 
Theoremwlkv0 16141 If there is a walk in the null graph (a class without vertices), it would be the pair consisting of empty sets. (Contributed by Alexander van der Vekens, 2-Sep-2018.) (Revised by AV, 5-Mar-2021.)
 |-  ( ( (Vtx `  G )  =  (/)  /\  W  e.  (Walks `  G )
 )  ->  ( ( 1st `  W )  =  (/)  /\  ( 2nd `  W )  =  (/) ) )
 
Theoremg0wlk0 16142 There is no walk in a null graph (a class without vertices). (Contributed by Alexander van der Vekens, 2-Sep-2018.) (Revised by AV, 5-Mar-2021.)
 |-  ( (Vtx `  G )  =  (/)  ->  (Walks `  G )  =  (/) )
 
Theorem0wlk0 16143 There is no walk for the empty set, i.e. in a null graph. (Contributed by Alexander van der Vekens, 2-Sep-2018.) (Revised by AV, 5-Mar-2021.)
 |-  (Walks `  (/) )  =  (/)
 
Theoremwlk0prc 16144 There is no walk in a null graph (a class without vertices). (Contributed by Alexander van der Vekens, 2-Sep-2018.) (Revised by AV, 5-Mar-2021.)
 |-  ( ( S  e/  _V 
 /\  (Vtx `  S )  =  (Vtx `  G ) )  ->  (Walks `  G )  =  (/) )
 
Theoremwlklenvclwlk 16145 The number of vertices in a walk equals the length of the walk after it is "closed" (i.e. enhanced by an edge from its last vertex to its first vertex). (Contributed by Alexander van der Vekens, 29-Jun-2018.) (Revised by AV, 2-May-2021.) (Revised by JJ, 14-Jan-2024.)
 |-  ( W  e. Word  (Vtx `  G )  ->  ( <. F ,  ( W ++ 
 <" ( W `  0 ) "> ) >.  e.  (Walks `  G )  ->  ( `  F )  =  ( `  W ) ) )
 
Theorem2wlklem 16146* Lemma for theorems for walks of length 2. (Contributed by Alexander van der Vekens, 1-Feb-2018.)
 |-  ( A. k  e. 
 { 0 ,  1 }  ( E `  ( F `  k ) )  =  { ( P `  k ) ,  ( P `  (
 k  +  1 ) ) }  <->  ( ( E `
  ( F `  0 ) )  =  { ( P `  0 ) ,  ( P `  1 ) }  /\  ( E `  ( F `  1 ) )  =  { ( P `
  1 ) ,  ( P `  2
 ) } ) )
 
Theoremupgr2wlkdc 16147* Properties of a pair of functions to be a walk of length 2 in a pseudograph. Note that the vertices need not to be distinct and the edges can be loops or multiedges. (Contributed by Alexander van der Vekens, 16-Feb-2018.) (Revised by AV, 3-Jan-2021.) (Revised by AV, 28-Oct-2021.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   =>    |-  ( G  e. UPGraph  ->  (
 ( F (Walks `  G ) P  /\  F  ~~  2o )  <->  ( ( F : ( 0..^ 2 ) --> dom  I  /\  P : ( 0 ... 2 ) --> V  /\  A. k  e.  { 0 ,  1 }DECID  ( P `  k )  =  ( P `  ( k  +  1 ) ) )  /\  ( ( I `  ( F `
  0 ) )  =  { ( P `
  0 ) ,  ( P `  1
 ) }  /\  ( I `  ( F `  1 ) )  =  { ( P `  1 ) ,  ( P `  2 ) }
 ) ) ) )
 
Theoremwlkreslem 16148 Lemma for wlkres 16149. (Contributed by AV, 5-Mar-2021.) (Revised by AV, 30-Nov-2022.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  F (Walks `  G ) P )   &    |-  ( ph  ->  N  e.  ( 0..^ ( `  F ) ) )   &    |-  ( ph  ->  (Vtx `  S )  =  V )   =>    |-  ( ph  ->  S  e.  _V )
 
Theoremwlkres 16149 The restriction  <. H ,  Q >. of a walk  <. F ,  P >. to an initial segment of the walk (of length  N) forms a walk 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, 5-Mar-2021.) Hypothesis revised using the prefix operation. (Revised by AV, 30-Nov-2022.)
 |-  V  =  (Vtx `  G )   &    |-  I  =  (iEdg `  G )   &    |-  ( ph  ->  F (Walks `  G ) P )   &    |-  ( ph  ->  N  e.  ( 0..^ ( `  F ) ) )   &    |-  ( ph  ->  (Vtx `  S )  =  V )   &    |-  ( ph  ->  (iEdg `  S )  =  ( I  |`  ( F " (
 0..^ N ) ) ) )   &    |-  H  =  ( F prefix  N )   &    |-  Q  =  ( P  |`  ( 0 ... N ) )   =>    |-  ( ph  ->  H (Walks `  S ) Q )
 
12.3.2  Trails
 
Syntaxctrls 16150 Extend class notation with trails (within a graph).
 class Trails
 
Definitiondf-trls 16151* Define the set of all Trails (in an undirected graph).

According to Wikipedia ("Path (graph theory)", https://en.wikipedia.org/wiki/Path_(graph_theory), 3-Oct-2017): "A trail is a walk in which all edges are distinct.

According to Bollobas: "... walk is called a trail if all its edges are distinct.", see Definition of [Bollobas] p. 5.

Therefore, a trail can be represented by an injective mapping f from { 1 , ... , n } and a mapping p from { 0 , ... , n }, where f enumerates the (indices of the) different edges, and p enumerates the vertices. So the trail is also 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 Alexander van der Vekens and Mario Carneiro, 4-Oct-2017.) (Revised by AV, 28-Dec-2020.)

 |- Trails  =  ( g  e.  _V  |->  {
 <. f ,  p >.  |  ( f (Walks `  g ) p  /\  Fun  `' f ) } )
 
Theoremreltrls 16152 The set  (Trails `  G
) of all trails on  G is a set of pairs by our definition of a trail, and so is a relation. (Contributed by AV, 29-Oct-2021.)
 |- 
 Rel  (Trails `  G )
 
Theoremtrlsfvalg 16153* The set of trails (in an undirected graph). (Contributed by Alexander van der Vekens, 20-Oct-2017.) (Revised by AV, 28-Dec-2020.) (Revised by AV, 29-Oct-2021.)
 |-  ( G  e.  V  ->  (Trails `  G )  =  { <. f ,  p >.  |  ( f (Walks `  G ) p  /\  Fun  `' f ) } )
 
Theoremtrlsv 16154 The classes involved in a trail are sets. (Contributed by Jim Kingdon, 7-Feb-2026.)
 |-  ( F (Trails `  G ) P  ->  ( G  e.  _V  /\  F  e.  _V  /\  P  e.  _V ) )
 
Theoremistrl 16155 Conditions for a pair of classes/functions to be a trail (in an undirected graph). (Contributed by Alexander van der Vekens, 20-Oct-2017.) (Revised by AV, 28-Dec-2020.) (Revised by AV, 29-Oct-2021.)
 |-  ( F (Trails `  G ) P  <->  ( F (Walks `  G ) P  /\  Fun  `' F ) )
 
Theoremtrliswlk 16156 A trail is a walk. (Contributed by Alexander van der Vekens, 20-Oct-2017.) (Revised by AV, 7-Jan-2021.) (Proof shortened by AV, 29-Oct-2021.)
 |-  ( F (Trails `  G ) P  ->  F (Walks `  G ) P )
 
Theoremtrlf1 16157 The enumeration  F of a trail  <. F ,  P >. is injective. (Contributed by AV, 20-Feb-2021.) (Proof shortened by AV, 29-Oct-2021.)
 |-  I  =  (iEdg `  G )   =>    |-  ( F (Trails `  G ) P  ->  F :
 ( 0..^ ( `  F ) ) -1-1-> dom  I
 )
 
Theoremtrlreslem 16158 Lemma for trlres 16159. (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 16159 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 16160 Extend class notation with closed walks (in an undirected graph) as word over the set of vertices.
 class ClWWalks
 
Definitiondf-clwwlk 16161* 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 16162* 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 16163* 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 16164 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 16165 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 16166 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 16167 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 16168 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 16169* Lemma for clwwlkccat 16170: 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 16170 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 16171 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 16172 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 16173* 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 16177. (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 16174* 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 16175 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 16176 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 16177 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 16178 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 16179 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 16180 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 16181 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 )
 
Theoremclwwlknwrd 16182 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 16183 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 16184* 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 16185* 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 16186 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 16187 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 16188* 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 16189 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 16190 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 16191 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 16192 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 16193* 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 ) )
 
PART 13  GUIDES AND MISCELLANEA
 
13.1  Guides (conventions, explanations, and examples)
 
13.1.1  Conventions

This section describes the conventions we use. These conventions often refer to existing mathematical practices, which are discussed in more detail in other references. The following sources lay out how mathematics is developed without the law of the excluded middle. Of course, there are a greater number of sources which assume excluded middle and most of what is in them applies here too (especially in a treatment such as ours which is built on first-order logic and set theory, rather than, say, type theory). Studying how a topic is treated in the Metamath Proof Explorer and the references therein is often a good place to start (and is easy to compare with the Intuitionistic Logic Explorer). The textbooks provide a motivation for what we are doing, whereas Metamath lets you see in detail all hidden and implicit steps. Most standard theorems are accompanied by citations. Some closely followed texts include the following:

  • Axioms of propositional calculus - Stanford Encyclopedia of Philosophy or [Heyting].
  • Axioms of predicate calculus - our axioms are adapted from the ones in the Metamath Proof Explorer.
  • Theorems of propositional calculus - [Heyting].
  • Theorems of pure predicate calculus - Metamath Proof Explorer.
  • Theorems of equality and substitution - Metamath Proof Explorer.
  • Axioms of set theory - [Crosilla].
  • Development of set theory - Chapter 10 of [HoTT].
  • Construction of real and complex numbers - Chapter 11 of [HoTT]; [BauerTaylor].
  • Theorems about real numbers - [Geuvers].
 
Theoremconventions 16194 Unless there is a reason to diverge, we follow the conventions of the Metamath Proof Explorer (MPE, set.mm). This list of conventions is intended to be read in conjunction with the corresponding conventions in the Metamath Proof Explorer, and only the differences are described below.
  • Minimizing axioms and the axiom of choice. We prefer proofs that depend on fewer and/or weaker axioms, even if the proofs are longer. In particular, our choice of IZF (Intuitionistic Zermelo-Fraenkel) over CZF (Constructive Zermelo-Fraenkel, a weaker system) was just an expedient choice because IZF is easier to formalize in Metamath. You can find some development using CZF in BJ's mathbox starting at wbd 16284 (and the section header just above it). As for the axiom of choice, the full axiom of choice implies excluded middle as seen at acexmid 6009, although some authors will use countable choice or dependent choice. For example, countable choice or excluded middle is needed to show that the Cauchy reals coincide with the Dedekind reals - Corollary 11.4.3 of [HoTT], p. (varies).
  • Junk/undefined results. Much of the discussion of this topic in the Metamath Proof Explorer applies except that certain techniques are not available to us. For example, the Metamath Proof Explorer will often say "if a function is evaluated within its domain, a certain result follows; if the function is evaluated outside its domain, the same result follows. Since the function must be evaluated within its domain or outside it, the result follows unconditionally" (the use of excluded middle in this argument is perhaps obvious when stated this way). Often, the easiest fix will be to prove we are evaluating functions within their domains, other times it will be possible to use a theorem like relelfvdm 5664 which says that if a function value produces an inhabited set, then the function is being evaluated within its domain.
  • Bibliography references. The bibliography for the Intuitionistic Logic Explorer is separate from the one for the Metamath Proof Explorer but feel free to copy-paste a citation in either direction in order to cite it.

Label naming conventions

Here are a few of the label naming conventions:

  • Suffixes. We follow the conventions of the Metamath Proof Explorer with a few additions. A biconditional in set.mm which is an implication in iset.mm should have a "r" (for the reverse direction), or "i"/"im" (for the forward direction) appended. A theorem in set.mm which has a decidability condition added should add "dc" to the theorem name. A theorem in set.mm where "nonempty class" is changed to "inhabited class" should add "m" (for member) to the theorem name.
  • iset.mm versus set.mm names

    Theorems which are the same as in set.mm should be named the same (that is, where the statement of the theorem is the same; the proof can differ without a new name being called for). Theorems which are different should be named differently (we do have a small number of intentional exceptions to this rule but on the whole it serves us well).

    As for how to choose names so they are different between iset.mm and set.mm, when possible choose a name which reflect the difference in the theorems. For example, if a theorem in set.mm is an equality and the iset.mm analogue is a subset, add "ss" to the iset.mm name. If need be, add "i" to the iset.mm name (usually as a prefix to some portion of the name).

    As with set.mm, we welcome suggestions for better names (such as names which are more consistent with naming conventions).

    We do try to keep set.mm and iset.mm similar where we can. For example, if a theorem exists in both places but the name in set.mm isn't great, we tend to keep that name for iset.mm, or change it in both files together. This is mainly to make it easier to copy theorems, but also to generally help people browse proofs, find theorems, write proofs, etc.

The following table shows some commonly-used abbreviations in labels which are not found in the Metamath Proof Explorer, in alphabetical order. For each abbreviation we provide a mnenomic to help you remember it, the source theorem/assumption defining it, an expression showing what it looks like, whether or not it is a "syntax fragment" (an abbreviation that indicates a particular kind of syntax), and hyperlinks to label examples that use the abbreviation. The abbreviation is bolded if there is a df-NAME definition but the label fragment is not NAME.

For the "g" abbreviation, this is related to the set.mm usage, in which "is a set" conditions are converted from hypotheses to antecedents, but is also used where "is a set" conditions are added relative to similar set.mm theorems.

AbbreviationMnenomic/MeaningSource ExpressionSyntax?Example(s)
apapart df-pap 7450, df-ap 8745 Yes apadd1 8771, apne 8786
gwith "is a set" condition No 1stvalg 6297, brtposg 6411, setsmsbasg 15174
minhabited (from "member")  E. x x  e.  A No r19.2m 3578, negm 9827, ctm 7292, basmex 13113
seq3, sum3recursive sequence df-seqfrec 10687 Yes seq3-1 10701, fsum3 11919
taptight apartness df-tap 7452 Yes df-tap 7452

(Contributed by Jim Kingdon, 24-Feb-2020.) (New usage is discouraged.)

 |-  ph   =>    |-  ph
 
13.1.2  Definitional examples
 
Theoremex-or 16195 Example for ax-io 714. Example by David A. Wheeler. (Contributed by Mario Carneiro, 9-May-2015.)
 |-  ( 2  =  3  \/  4  =  4 )
 
Theoremex-an 16196 Example for ax-ia1 106. Example by David A. Wheeler. (Contributed by Mario Carneiro, 9-May-2015.)
 |-  ( 2  =  2 
 /\  3  =  3 )
 
Theorem1kp2ke3k 16197 Example for df-dec 9595, 1000 + 2000 = 3000.

This proof disproves (by counterexample) the assertion of Hao Wang, who stated, "There is a theorem in the primitive notation of set theory that corresponds to the arithmetic theorem 1000 + 2000 = 3000. The formula would be forbiddingly long... even if (one) knows the definitions and is asked to simplify the long formula according to them, chances are he will make errors and arrive at some incorrect result." (Hao Wang, "Theory and practice in mathematics" , In Thomas Tymoczko, editor, New Directions in the Philosophy of Mathematics, pp 129-152, Birkauser Boston, Inc., Boston, 1986. (QA8.6.N48). The quote itself is on page 140.)

This is noted in Metamath: A Computer Language for Pure Mathematics by Norman Megill (2007) section 1.1.3. Megill then states, "A number of writers have conveyed the impression that the kind of absolute rigor provided by Metamath is an impossible dream, suggesting that a complete, formal verification of a typical theorem would take millions of steps in untold volumes of books... These writers assume, however, that in order to achieve the kind of complete formal verification they desire one must break down a proof into individual primitive steps that make direct reference to the axioms. This is not necessary. There is no reason not to make use of previously proved theorems rather than proving them over and over... A hierarchy of theorems and definitions permits an exponential growth in the formula sizes and primitive proof steps to be described with only a linear growth in the number of symbols used. Of course, this is how ordinary informal mathematics is normally done anyway, but with Metamath it can be done with absolute rigor and precision."

The proof here starts with  ( 2  +  1 )  =  3, commutes it, and repeatedly multiplies both sides by ten. This is certainly longer than traditional mathematical proofs, e.g., there are a number of steps explicitly shown here to show that we're allowed to do operations such as multiplication. However, while longer, the proof is clearly a manageable size - even though every step is rigorously derived all the way back to the primitive notions of set theory and logic. And while there's a risk of making errors, the many independent verifiers make it much less likely that an incorrect result will be accepted.

This proof heavily relies on the decimal constructor df-dec 9595 developed by Mario Carneiro in 2015. The underlying Metamath language has an intentionally very small set of primitives; it doesn't even have a built-in construct for numbers. Instead, the digits are defined using these primitives, and the decimal constructor is used to make it easy to express larger numbers as combinations of digits.

(Contributed by David A. Wheeler, 29-Jun-2016.) (Shortened by Mario Carneiro using the arithmetic algorithm in mmj2, 30-Jun-2016.)

 |-  (;;; 1 0 0 0  + ;;; 2 0 0 0 )  = ;;; 3 0 0 0
 
Theoremex-fl 16198 Example for df-fl 10507. Example by David A. Wheeler. (Contributed by Mario Carneiro, 18-Jun-2015.)
 |-  ( ( |_ `  (
 3  /  2 )
 )  =  1  /\  ( |_ `  -u (
 3  /  2 )
 )  =  -u 2
 )
 
Theoremex-ceil 16199 Example for df-ceil 10508. (Contributed by AV, 4-Sep-2021.)
 |-  ( ( `  (
 3  /  2 )
 )  =  2  /\  ( `  -u ( 3  / 
 2 ) )  =  -u 1 )
 
Theoremex-exp 16200 Example for df-exp 10778. (Contributed by AV, 4-Sep-2021.)
 |-  ( ( 5 ^
 2 )  = ; 2 5  /\  ( -u 3 ^ -u 2
 )  =  ( 1 
 /  9 ) )
    < 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-16566
  Copyright terms: Public domain < Previous  Next >