ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  df-vtxdg Unicode version

Definition df-vtxdg 16137
Description: Define the vertex degree function for a graph. To be appropriate for arbitrary hypergraphs, we have to double-count those edges that contain  u "twice" (i.e. self-loops), this being represented as a singleton as the edge's value. Since the degree of a vertex can be (positive) infinity (if the graph containing the vertex is infinite), the extended addition  +e is used for the summation of the number of "ordinary" edges" and the number of "loops".

Because we cannot in general show that an arbitrary set is either finite or infinite (see inffiexmid 7097), this definition is not as general as it may appear. But we keep it for consistency with the Metamath Proof Explorer. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by Alexander van der Vekens, 20-Dec-2017.) (Revised by AV, 9-Dec-2020.)

Assertion
Ref Expression
df-vtxdg  |- VtxDeg  =  ( g  e.  _V  |->  [_ (Vtx `  g )  / 
v ]_ [_ (iEdg `  g )  /  e ]_ ( u  e.  v 
|->  ( ( `  {
x  e.  dom  e  |  u  e.  (
e `  x ) } ) +e
( `  { x  e. 
dom  e  |  ( e `  x )  =  { u } } ) ) ) )
Distinct variable group:    e, g, u, v, x

Detailed syntax breakdown of Definition df-vtxdg
StepHypRef Expression
1 cvtxdg 16136 . 2  class VtxDeg
2 vg . . 3  setvar  g
3 cvv 2802 . . 3  class  _V
4 vv . . . 4  setvar  v
52cv 1396 . . . . 5  class  g
6 cvtx 15862 . . . . 5  class Vtx
75, 6cfv 5326 . . . 4  class  (Vtx `  g )
8 ve . . . . 5  setvar  e
9 ciedg 15863 . . . . . 6  class iEdg
105, 9cfv 5326 . . . . 5  class  (iEdg `  g )
11 vu . . . . . 6  setvar  u
124cv 1396 . . . . . 6  class  v
1311cv 1396 . . . . . . . . . 10  class  u
14 vx . . . . . . . . . . . 12  setvar  x
1514cv 1396 . . . . . . . . . . 11  class  x
168cv 1396 . . . . . . . . . . 11  class  e
1715, 16cfv 5326 . . . . . . . . . 10  class  ( e `
 x )
1813, 17wcel 2202 . . . . . . . . 9  wff  u  e.  ( e `  x
)
1916cdm 4725 . . . . . . . . 9  class  dom  e
2018, 14, 19crab 2514 . . . . . . . 8  class  { x  e.  dom  e  |  u  e.  ( e `  x ) }
21 chash 11036 . . . . . . . 8  class
2220, 21cfv 5326 . . . . . . 7  class  ( `  {
x  e.  dom  e  |  u  e.  (
e `  x ) } )
2313csn 3669 . . . . . . . . . 10  class  { u }
2417, 23wceq 1397 . . . . . . . . 9  wff  ( e `
 x )  =  { u }
2524, 14, 19crab 2514 . . . . . . . 8  class  { x  e.  dom  e  |  ( e `  x )  =  { u } }
2625, 21cfv 5326 . . . . . . 7  class  ( `  {
x  e.  dom  e  |  ( e `  x )  =  {
u } } )
27 cxad 10004 . . . . . . 7  class  +e
2822, 26, 27co 6017 . . . . . 6  class  ( ( `  { x  e.  dom  e  |  u  e.  ( e `  x
) } ) +e ( `  {
x  e.  dom  e  |  ( e `  x )  =  {
u } } ) )
2911, 12, 28cmpt 4150 . . . . 5  class  ( u  e.  v  |->  ( ( `  { x  e.  dom  e  |  u  e.  ( e `  x
) } ) +e ( `  {
x  e.  dom  e  |  ( e `  x )  =  {
u } } ) ) )
308, 10, 29csb 3127 . . . 4  class  [_ (iEdg `  g )  /  e ]_ ( u  e.  v 
|->  ( ( `  {
x  e.  dom  e  |  u  e.  (
e `  x ) } ) +e
( `  { x  e. 
dom  e  |  ( e `  x )  =  { u } } ) ) )
314, 7, 30csb 3127 . . 3  class  [_ (Vtx `  g )  /  v ]_ [_ (iEdg `  g
)  /  e ]_ ( u  e.  v  |->  ( ( `  {
x  e.  dom  e  |  u  e.  (
e `  x ) } ) +e
( `  { x  e. 
dom  e  |  ( e `  x )  =  { u } } ) ) )
322, 3, 31cmpt 4150 . 2  class  ( g  e.  _V  |->  [_ (Vtx `  g )  /  v ]_ [_ (iEdg `  g
)  /  e ]_ ( u  e.  v  |->  ( ( `  {
x  e.  dom  e  |  u  e.  (
e `  x ) } ) +e
( `  { x  e. 
dom  e  |  ( e `  x )  =  { u } } ) ) ) )
331, 32wceq 1397 1  wff VtxDeg  =  ( g  e.  _V  |->  [_ (Vtx `  g )  / 
v ]_ [_ (iEdg `  g )  /  e ]_ ( u  e.  v 
|->  ( ( `  {
x  e.  dom  e  |  u  e.  (
e `  x ) } ) +e
( `  { x  e. 
dom  e  |  ( e `  x )  =  { u } } ) ) ) )
Colors of variables: wff set class
This definition is referenced by:  vtxdgfval  16138
  Copyright terms: Public domain W3C validator