let G be non-Dmulti _Graph; for v being Vertex of G holds v .outDegree() = card (v .outNeighbors())
let v be Vertex of G; v .outDegree() = card (v .outNeighbors())
defpred S1[ object , object ] means $2 DJoins v,$1,G;
A1:
for x, y1, y2 being object st x in v .outNeighbors() & S1[x,y1] & S1[x,y2] holds
y1 = y2
by Def21;
A2:
for x being object st x in v .outNeighbors() holds
ex y being object st S1[x,y]
by Th70;
consider f being Function such that
A3:
dom f = v .outNeighbors()
and
A4:
for x being object st x in v .outNeighbors() holds
S1[x,f . x]
from FUNCT_1:sch 2(A1, A2);
for y being object holds
( y in rng f iff y in v .edgesOut() )
then A8:
rng f = v .edgesOut()
by TARSKI:2;
for x1, x2 being object st x1 in dom f & x2 in dom f & f . x1 = f . x2 holds
x1 = x2
then
f is one-to-one
by FUNCT_1:def 4;
then
card (v .outNeighbors()) = card (v .edgesOut())
by A3, A8, WELLORD2:def 4, CARD_1:5;
hence
v .outDegree() = card (v .outNeighbors())
; verum