Metamath Proof Explorer


Definition df-vtx

Description: Define the function mapping a graph to the set of its vertices. This definition is very general: It defines the set of vertices for any ordered pair as its first component, and for any other class as its "base set". It is meaningful, however, only if the ordered pair represents a graph resp. the class is an extensible structure representing a graph. (Contributed by AV, 9-Jan-2020) (Revised by AV, 20-Sep-2020)

Ref Expression
Assertion df-vtx
|- Vtx = ( g e. _V |-> if ( g e. ( _V X. _V ) , ( 1st ` g ) , ( Base ` g ) ) )

Detailed syntax breakdown

Step Hyp Ref Expression
0 cvtx
 |-  Vtx
1 vg
 |-  g
2 cvv
 |-  _V
3 1 cv
 |-  g
4 2 2 cxp
 |-  ( _V X. _V )
5 3 4 wcel
 |-  g e. ( _V X. _V )
6 c1st
 |-  1st
7 3 6 cfv
 |-  ( 1st ` g )
8 cbs
 |-  Base
9 3 8 cfv
 |-  ( Base ` g )
10 5 7 9 cif
 |-  if ( g e. ( _V X. _V ) , ( 1st ` g ) , ( Base ` g ) )
11 1 2 10 cmpt
 |-  ( g e. _V |-> if ( g e. ( _V X. _V ) , ( 1st ` g ) , ( Base ` g ) ) )
12 0 11 wceq
 |-  Vtx = ( g e. _V |-> if ( g e. ( _V X. _V ) , ( 1st ` g ) , ( Base ` g ) ) )