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

Definition df-vtxdg 16442
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 7203), 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 16441 . 2  class VtxDeg
2 vg . . 3  setvar  g
3 cvv 2821 . . 3  class  _V
4 vv . . . 4  setvar  v
52cv 1401 . . . . 5  class  g
6 cvtx 16167 . . . . 5  class Vtx
75, 6cfv 5372 . . . 4  class  (Vtx `  g )
8 ve . . . . 5  setvar  e
9 ciedg 16168 . . . . . 6  class iEdg
105, 9cfv 5372 . . . . 5  class  (iEdg `  g )
11 vu . . . . . 6  setvar  u
124cv 1401 . . . . . 6  class  v
1311cv 1401 . . . . . . . . . 10  class  u
14 vx . . . . . . . . . . . 12  setvar  x
1514cv 1401 . . . . . . . . . . 11  class  x
168cv 1401 . . . . . . . . . . 11  class  e
1715, 16cfv 5372 . . . . . . . . . 10  class  ( e `
 x )
1813, 17wcel 2209 . . . . . . . . 9  wff  u  e.  ( e `  x
)
1916cdm 4769 . . . . . . . . 9  class  dom  e
2018, 14, 19crab 2532 . . . . . . . 8  class  { x  e.  dom  e  |  u  e.  ( e `  x ) }
21 chash 11192 . . . . . . . 8  class
2220, 21cfv 5372 . . . . . . 7  class  ( `  {
x  e.  dom  e  |  u  e.  (
e `  x ) } )
2313csn 3705 . . . . . . . . . 10  class  { u }
2417, 23wceq 1402 . . . . . . . . 9  wff  ( e `
 x )  =  { u }
2524, 14, 19crab 2532 . . . . . . . 8  class  { x  e.  dom  e  |  ( e `  x )  =  { u } }
2625, 21cfv 5372 . . . . . . 7  class  ( `  {
x  e.  dom  e  |  ( e `  x )  =  {
u } } )
27 cxad 10151 . . . . . . 7  class  +e
2822, 26, 27co 6075 . . . . . 6  class  ( ( `  { x  e.  dom  e  |  u  e.  ( e `  x
) } ) +e ( `  {
x  e.  dom  e  |  ( e `  x )  =  {
u } } ) )
2911, 12, 28cmpt 4187 . . . . 5  class  ( u  e.  v  |->  ( ( `  { x  e.  dom  e  |  u  e.  ( e `  x
) } ) +e ( `  {
x  e.  dom  e  |  ( e `  x )  =  {
u } } ) ) )
308, 10, 29csb 3147 . . . 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 3147 . . 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 4187 . 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 1402 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  16443
  Copyright terms: Public domain W3C validator