let X be non empty set ; :: thesis: for G being SimpleGraph of X
for v being set ex ww being finite set st
( ww = { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } & degree (G,v) = card ww )

let G be SimpleGraph of X; :: thesis: for v being set ex ww being finite set st
( ww = { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } & degree (G,v) = card ww )

let v be set ; :: thesis: ex ww being finite set st
( ww = { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } & degree (G,v) = card ww )

set ww = { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } ;
consider Y being finite set such that
A1: for z being set holds
( z in Y iff ( z in the SEdges of G & v in z ) ) and
A2: degree (G,v) = card Y by Def8;
A3: for z being set holds
( z in { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } iff ( z in the carrier of G & {v,z} in the SEdges of G ) )
proof
let z be set ; :: thesis: ( z in { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } iff ( z in the carrier of G & {v,z} in the SEdges of G ) )
hereby :: thesis: ( z in the carrier of G & {v,z} in the SEdges of G implies z in { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } )
assume z in { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } ; :: thesis: ( z in the carrier of G & {v,z} in the SEdges of G )
then ex w being Element of X st
( z = w & w in the carrier of G & {v,w} in the SEdges of G ) ;
hence ( z in the carrier of G & {v,z} in the SEdges of G ) ; :: thesis: verum
end;
thus ( z in the carrier of G & {v,z} in the SEdges of G implies z in { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } ) :: thesis: verum
proof
assume A4: ( z in the carrier of G & {v,z} in the SEdges of G ) ; :: thesis: z in { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) }
the carrier of G is finite Subset of X by Th21;
hence z in { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } by A4; :: thesis: verum
end;
end;
A5: { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } c= the carrier of G by A3;
the carrier of G is finite by Th21;
then reconsider ww = { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } as finite set by A5;
take ww ; :: thesis: ( ww = { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } & degree (G,v) = card ww )
ww,Y are_equipotent
proof
set wwY = { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ;
take { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ; :: according to TARSKI:def 6 :: thesis: ( ( for b1 being object holds
( not b1 in ww or ex b2 being object st
( b2 in Y & [b1,b2] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ) ) ) & ( for b1 being object holds
( not b1 in Y or ex b2 being object st
( b2 in ww & [b2,b1] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ) ) ) & ( for b1, b2, b3, b4 being object holds
( not [b1,b2] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } or not [b3,b4] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } or ( ( not b1 = b3 or b2 = b4 ) & ( not b2 = b4 or b1 = b3 ) ) ) ) )

A6: for x, y, z, u being object st [x,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } & [z,u] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } holds
( x = z iff y = u )
proof
let x, y, z, u be object ; :: thesis: ( [x,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } & [z,u] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } implies ( x = z iff y = u ) )
assume that
A7: [x,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } and
A8: [z,u] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ; :: thesis: ( x = z iff y = u )
consider w1 being Element of X such that
A9: [x,y] = [w1,{v,w1}] and
w1 in ww and
A10: {v,w1} in Y by A7;
consider w2 being Element of X such that
A11: [z,u] = [w2,{v,w2}] and
w2 in ww and
{v,w2} in Y by A8;
hereby :: thesis: ( y = u implies x = z )
assume A12: x = z ; :: thesis: y = u
w1 = [w1,{v,w1}] `1
.= [x,y] `1 by A9
.= z by A12
.= [w2,{v,w2}] `1 by A11
.= w2 ;
hence y = [w2,{v,w2}] `2 by A9
.= u by A11 ;
:: thesis: verum
end;
hereby :: thesis: verum
{v,w1} in the SEdges of G by A1, A10;
then A13: v <> w1 by Th10;
assume A14: y = u ; :: thesis: x = z
{v,w1} = [w1,{v,w1}] `2
.= [x,y] `2 by A9
.= u by A14
.= [w2,{v,w2}] `2 by A11
.= {v,w2} ;
then w1 = w2 by A13, ZFMISC_1:6;
hence x = [z,u] `1 by A9, A11
.= z ;
:: thesis: verum
end;
end;
A15: for w being set holds
( [w,{v,w}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } iff ( w in ww & {v,w} in Y ) )
proof
let w be set ; :: thesis: ( [w,{v,w}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } iff ( w in ww & {v,w} in Y ) )
hereby :: thesis: ( w in ww & {v,w} in Y implies [w,{v,w}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } )
assume [w,{v,w}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ; :: thesis: ( w in ww & {v,w} in Y )
then consider w9 being Element of X such that
A16: [w,{v,w}] = [w9,{v,w9}] and
A17: ( w9 in ww & {v,w9} in Y ) ;
w = [w9,{v,w9}] `1 by A16
.= w9 ;
hence ( w in ww & {v,w} in Y ) by A17; :: thesis: verum
end;
thus ( w in ww & {v,w} in Y implies [w,{v,w}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ) :: thesis: verum
proof
assume that
A18: w in ww and
A19: {v,w} in Y ; :: thesis: [w,{v,w}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) }
A20: w in the carrier of G by A3, A18;
the carrier of G is finite Subset of X by Th21;
then reconsider w = w as Element of X by A20;
ex z being Element of X st
( [w,{v,w}] = [z,{v,z}] & z in ww & {v,z} in Y ) by A18, A19;
hence [w,{v,w}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ; :: thesis: verum
end;
end;
A21: for y being object st y in Y holds
ex x being object st
( x in ww & [x,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } )
proof
let y be object ; :: thesis: ( y in Y implies ex x being object st
( x in ww & [x,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ) )

assume A22: y in Y ; :: thesis: ex x being object st
( x in ww & [x,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } )

then A23: y in the SEdges of G by A1;
reconsider yy = y as set by TARSKI:1;
A24: v in yy by A1, A22;
ex w being set st
( w in the carrier of G & y = {v,w} )
proof
consider v1, v2 being object such that
A25: v1 in the carrier of G and
A26: v2 in the carrier of G and
v1 <> v2 and
A27: y = {v1,v2} by A23, Th8;
per cases ( v = v1 or v = v2 ) by A24, A27, TARSKI:def 2;
suppose A28: v = v1 ; :: thesis: ex w being set st
( w in the carrier of G & y = {v,w} )

take v2 ; :: thesis: ( v2 is set & v2 in the carrier of G & y = {v,v2} )
thus ( v2 is set & v2 in the carrier of G & y = {v,v2} ) by A26, A27, A28; :: thesis: verum
end;
suppose A29: v = v2 ; :: thesis: ex w being set st
( w in the carrier of G & y = {v,w} )

take v1 ; :: thesis: ( v1 is set & v1 in the carrier of G & y = {v,v1} )
thus ( v1 is set & v1 in the carrier of G & y = {v,v1} ) by A27, A29, A25; :: thesis: verum
end;
end;
end;
then consider w being set such that
A30: w in the carrier of G and
A31: y = {v,w} ;
take w ; :: thesis: ( w in ww & [w,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } )
thus w in ww by A3, A23, A30, A31; :: thesis: [w,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) }
hence [w,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } by A15, A22, A31; :: thesis: verum
end;
for x being object st x in ww holds
ex y being object st
( y in Y & [x,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } )
proof
let x be object ; :: thesis: ( x in ww implies ex y being object st
( y in Y & [x,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ) )

assume A32: x in ww ; :: thesis: ex y being object st
( y in Y & [x,y] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } )

take {v,x} ; :: thesis: ( {v,x} in Y & [x,{v,x}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } )
A33: v in {v,x} by TARSKI:def 2;
{v,x} in the SEdges of G by A3, A32;
hence {v,x} in Y by A1, A33; :: thesis: [x,{v,x}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) }
hence [x,{v,x}] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } by A15, A32; :: thesis: verum
end;
hence ( ( for b1 being object holds
( not b1 in ww or ex b2 being object st
( b2 in Y & [b1,b2] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ) ) ) & ( for b1 being object holds
( not b1 in Y or ex b2 being object st
( b2 in ww & [b2,b1] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } ) ) ) & ( for b1, b2, b3, b4 being object holds
( not [b1,b2] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } or not [b3,b4] in { [w,{v,w}] where w is Element of X : ( w in ww & {v,w} in Y ) } or ( ( not b1 = b3 or b2 = b4 ) & ( not b2 = b4 or b1 = b3 ) ) ) ) ) by A21, A6; :: thesis: verum
end;
hence ( ww = { w where w is Element of X : ( w in the carrier of G & {v,w} in the SEdges of G ) } & degree (G,v) = card ww ) by A2, CARD_1:5; :: thesis: verum