Metamath Proof Explorer


Definition df-iedg

Description: Define the function mapping a graph to its indexed edges. This definition is very general: It defines the indexed edges for any ordered pair as its second component, and for any other class as its "edge function". It is meaningful, however, only if the ordered pair represents a graph resp. the class is an extensible structure (containing a slot for "edge functions") representing a graph. (Contributed by AV, 20-Sep-2020)

Ref Expression
Assertion df-iedg
|- iEdg = ( g e. _V |-> if ( g e. ( _V X. _V ) , ( 2nd ` g ) , ( .ef ` g ) ) )

Detailed syntax breakdown

Step Hyp Ref Expression
0 ciedg
 |-  iEdg
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 c2nd
 |-  2nd
7 3 6 cfv
 |-  ( 2nd ` g )
8 cedgf
 |-  .ef
9 3 8 cfv
 |-  ( .ef ` g )
10 5 7 9 cif
 |-  if ( g e. ( _V X. _V ) , ( 2nd ` g ) , ( .ef ` g ) )
11 1 2 10 cmpt
 |-  ( g e. _V |-> if ( g e. ( _V X. _V ) , ( 2nd ` g ) , ( .ef ` g ) ) )
12 0 11 wceq
 |-  iEdg = ( g e. _V |-> if ( g e. ( _V X. _V ) , ( 2nd ` g ) , ( .ef ` g ) ) )