let G2 be _Graph; for v being object
for V being set
for G1 being addAdjVertexAll of G2,v,V
for w being Vertex of G1 st V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & v = w holds
( w .allNeighbors() = V & w .degree() = card V )
let v be object ; for V being set
for G1 being addAdjVertexAll of G2,v,V
for w being Vertex of G1 st V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & v = w holds
( w .allNeighbors() = V & w .degree() = card V )
let V be set ; for G1 being addAdjVertexAll of G2,v,V
for w being Vertex of G1 st V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & v = w holds
( w .allNeighbors() = V & w .degree() = card V )
let G1 be addAdjVertexAll of G2,v,V; for w being Vertex of G1 st V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & v = w holds
( w .allNeighbors() = V & w .degree() = card V )
let w be Vertex of G1; ( V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & v = w implies ( w .allNeighbors() = V & w .degree() = card V ) )
assume A1:
( V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & v = w )
; ( w .allNeighbors() = V & w .degree() = card V )
then consider E being set such that
A2:
( card V = card E & E misses the_Edges_of G2 )
and
A3:
the_Edges_of G1 = (the_Edges_of G2) \/ E
and
A4:
for v1 being object st v1 in V holds
ex e1 being object st
( e1 in E & e1 Joins v1,v,G1 & ( for e2 being object st e2 Joins v1,v,G1 holds
e1 = e2 ) )
by GLIB_007:def 4;
hence
w .allNeighbors() = V
by TARSKI:2; w .degree() = card V
per cases
( V <> {} or V = {} )
;
suppose A7:
V <> {}
;
w .degree() = card V
V c= V
;
then consider f being
Function of
V,
(G1 .edgesBetween (V,{v})) such that A8:
(
f is
one-to-one &
f is
onto )
and A9:
for
u being
object st
u in V holds
f . u Joins u,
v,
G1
by A1, GLIB_007:57;
A10:
rng f = G1 .edgesBetween (
V,
{w})
by A1, A8, FUNCT_2:def 3;
the_Vertices_of G2 c= the_Vertices_of G1
by GLIB_006:def 9;
then
V c= the_Vertices_of G1
by A1, XBOOLE_1:1;
then A11:
G1 .edgesBetween (
V,
{w})
c= G1 .edgesBetween (
(the_Vertices_of G1),
{w})
by GLIB_000:37;
now for e being object st e in G1 .edgesBetween ((the_Vertices_of G1),{w}) holds
e in G1 .edgesBetween (V,{w})let e be
object ;
( e in G1 .edgesBetween ((the_Vertices_of G1),{w}) implies e in G1 .edgesBetween (V,{w}) )assume
e in G1 .edgesBetween (
(the_Vertices_of G1),
{w})
;
e in G1 .edgesBetween (V,{w})then A12:
e SJoins the_Vertices_of G1,
{w},
G1
by GLIB_000:def 30;
ex
u being
object st
e Joins u,
w,
G1
then consider u being
object such that A17:
e Joins u,
w,
G1
;
(
u in V &
w in {w} )
by A1, A17, GLIB_007:def 4, TARSKI:def 1;
then
e SJoins V,
{w},
G1
by A17, GLIB_000:17;
hence
e in G1 .edgesBetween (
V,
{w})
by GLIB_000:def 30;
verum end; then
G1 .edgesBetween (
(the_Vertices_of G1),
{w})
c= G1 .edgesBetween (
V,
{w})
by TARSKI:def 3;
then
G1 .edgesBetween (
V,
{w})
= G1 .edgesBetween (
(the_Vertices_of G1),
{w})
by A11, XBOOLE_0:def 10;
then A18:
rng f = w .edgesInOut()
by A10, GLIB_000:151;
set u = the
Element of
V;
A19:
( the
Element of
V in V &
v in {v} )
by A7, TARSKI:def 1;
then
f . the
Element of
V Joins the
Element of
V,
v,
G1
by A9;
then
f . the
Element of
V SJoins V,
{v},
G1
by A19, GLIB_000:17;
then
f . the
Element of
V in G1 .edgesBetween (
V,
{v})
by GLIB_000:def 30;
then
dom f = V
by FUNCT_2:def 1;
then A20:
card V = card (w .edgesInOut())
by A8, A18, CARD_1:70;
for
e being
object holds not
e Joins w,
w,
G1
by A1, GLIB_007:def 4;
hence
w .degree() = card V
by A20, GLIB_000:154;
verum end; end;