let H be addLoops of G,V; :: thesis: H is with_max_degree
per cases ( V c= the_Vertices_of G or not V c= the_Vertices_of G ) ;
suppose A3: V c= the_Vertices_of G ; :: thesis: H is with_max_degree
consider v0 being Vertex of G such that
A4: for w0 being Vertex of G holds w0 .degree() c= v0 .degree() by Def12;
A5: the_Vertices_of G = the_Vertices_of H by A3, GLIB_012:def 5;
then reconsider v = v0 as Vertex of H ;
per cases ( v0 in V or ( not v0 in V & ex w0 being Vertex of G st
( w0 in V & v0 .degree() c< (w0 .degree()) +` 2 ) ) or ( not v0 in V & ( for w0 being Vertex of G holds
( not w0 in V or not v0 .degree() c< (w0 .degree()) +` 2 ) ) ) )
;
suppose v0 in V ; :: thesis: H is with_max_degree
end;
suppose ( not v0 in V & ex w0 being Vertex of G st
( w0 in V & v0 .degree() c< (w0 .degree()) +` 2 ) ) ; :: thesis: H is with_max_degree
then consider w0 being Vertex of G such that
A9: ( w0 in V & v0 .degree() c< (w0 .degree()) +` 2 ) ;
reconsider w = w0 as Vertex of H by A5;
A10: w .degree() = (w0 .degree()) +` 2 by A3, A9, GLIB_012:43;
per cases ( for u0 being Vertex of G st u0 in V holds
u0 .degree() c= w0 .degree() or ex u0 being Vertex of G st
( u0 in V & not u0 .degree() c= w0 .degree() ) )
;
suppose A11: for u0 being Vertex of G st u0 in V holds
u0 .degree() c= w0 .degree() ; :: thesis: H is with_max_degree
end;
suppose ex u0 being Vertex of G st
( u0 in V & not u0 .degree() c= w0 .degree() ) ; :: thesis: H is with_max_degree
end;
end;
end;
suppose A19: ( not v0 in V & ( for w0 being Vertex of G holds
( not w0 in V or not v0 .degree() c< (w0 .degree()) +` 2 ) ) ) ; :: thesis: H is with_max_degree
end;
end;
end;
suppose not V c= the_Vertices_of G ; :: thesis: H is with_max_degree
end;
end;