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

Definition df-vtxdg 16282
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 7166), 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 16281 . 2  class VtxDeg
2 vg . . 3  setvar  g
3 cvv 2813 . . 3  class  _V
4 vv . . . 4  setvar  v
52cv 1397 . . . . 5  class  g
6 cvtx 16007 . . . . 5  class Vtx
75, 6cfv 5352 . . . 4  class  (Vtx `  g )
8 ve . . . . 5  setvar  e
9 ciedg 16008 . . . . . 6  class iEdg
105, 9cfv 5352 . . . . 5  class  (iEdg `  g )
11 vu . . . . . 6  setvar  u
124cv 1397 . . . . . 6  class  v
1311cv 1397 . . . . . . . . . 10  class  u
14 vx . . . . . . . . . . . 12  setvar  x
1514cv 1397 . . . . . . . . . . 11  class  x
168cv 1397 . . . . . . . . . . 11  class  e
1715, 16cfv 5352 . . . . . . . . . 10  class  ( e `
 x )
1813, 17wcel 2203 . . . . . . . . 9  wff  u  e.  ( e `  x
)
1916cdm 4749 . . . . . . . . 9  class  dom  e
2018, 14, 19crab 2524 . . . . . . . 8  class  { x  e.  dom  e  |  u  e.  ( e `  x ) }
21 chash 11138 . . . . . . . 8  class
2220, 21cfv 5352 . . . . . . 7  class  ( `  {
x  e.  dom  e  |  u  e.  (
e `  x ) } )
2313csn 3689 . . . . . . . . . 10  class  { u }
2417, 23wceq 1398 . . . . . . . . 9  wff  ( e `
 x )  =  { u }
2524, 14, 19crab 2524 . . . . . . . 8  class  { x  e.  dom  e  |  ( e `  x )  =  { u } }
2625, 21cfv 5352 . . . . . . 7  class  ( `  {
x  e.  dom  e  |  ( e `  x )  =  {
u } } )
27 cxad 10103 . . . . . . 7  class  +e
2822, 26, 27co 6050 . . . . . 6  class  ( ( `  { x  e.  dom  e  |  u  e.  ( e `  x
) } ) +e ( `  {
x  e.  dom  e  |  ( e `  x )  =  {
u } } ) )
2911, 12, 28cmpt 4171 . . . . 5  class  ( u  e.  v  |->  ( ( `  { x  e.  dom  e  |  u  e.  ( e `  x
) } ) +e ( `  {
x  e.  dom  e  |  ( e `  x )  =  {
u } } ) ) )
308, 10, 29csb 3138 . . . 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 3138 . . 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 4171 . 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 1398 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  16283
  Copyright terms: Public domain W3C validator