let G2 be _Graph; :: thesis: for v being object
for V being set
for G1 being addAdjVertexAll of G2,v,V st V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & ( for G3 being Component of G2 ex w being Vertex of G3 st w in V ) holds
G1 is connected

let v be object ; :: thesis: for V being set
for G1 being addAdjVertexAll of G2,v,V st V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & ( for G3 being Component of G2 ex w being Vertex of G3 st w in V ) holds
G1 is connected

let V be set ; :: thesis: for G1 being addAdjVertexAll of G2,v,V st V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & ( for G3 being Component of G2 ex w being Vertex of G3 st w in V ) holds
G1 is connected

let G1 be addAdjVertexAll of G2,v,V; :: thesis: ( V c= the_Vertices_of G2 & not v in the_Vertices_of G2 & ( for G3 being Component of G2 ex w being Vertex of G3 st w in V ) implies G1 is connected )
assume that
A1: ( V c= the_Vertices_of G2 & not v in the_Vertices_of G2 ) and
A2: for G3 being Component of G2 ex w being Vertex of G3 st w in V ; :: thesis: G1 is connected
A3: for u being Vertex of G1 st u <> v holds
ex W1 being Walk of G1 st W1 is_Walk_from u,v
proof
let u be Vertex of G1; :: thesis: ( u <> v implies ex W1 being Walk of G1 st W1 is_Walk_from u,v )
assume u <> v ; :: thesis: ex W1 being Walk of G1 st W1 is_Walk_from u,v
then A4: not u in {v} by TARSKI:def 1;
the_Vertices_of G1 = (the_Vertices_of G2) \/ {v} by A1, Def4;
then u in the_Vertices_of G2 by A4, XBOOLE_0:def 3;
then reconsider u1 = u as Vertex of G2 ;
reconsider G3 = the inducedSubgraph of G2,(G2 .reachableFrom u1) as Component of G2 ;
consider w being Vertex of G3 such that
A5: w in V by A2;
the_Vertices_of G3 = G2 .reachableFrom u1 by GLIB_000:def 37;
then w in G2 .reachableFrom u1 ;
then consider W2 being Walk of G2 such that
A6: W2 is_Walk_from u1,w by GLIB_002:def 5;
reconsider W3 = W2 as Walk of G1 by GLIB_006:75;
A7: W3 is_Walk_from u,w by A6, GLIB_001:19;
consider E being set such that
( card V = card E & E misses the_Edges_of G2 & the_Edges_of G1 = (the_Edges_of G2) \/ E ) and
A8: 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 A1, Def4;
consider e1 being object such that
A9: ( e1 in E & e1 Joins w,v,G1 ) and
for e2 being object st e2 Joins w,v,G1 holds
e1 = e2 by A8, A5;
take W3 .addEdge e1 ; :: thesis: W3 .addEdge e1 is_Walk_from u,v
( W3 .first() = u & W3 .last() = w ) by A7, GLIB_001:def 23;
hence W3 .addEdge e1 is_Walk_from u,v by A9, GLIB_001:63; :: thesis: verum
end;
for u, w being Vertex of G1 ex W1 being Walk of G1 st W1 is_Walk_from u,w
proof
let u, w be Vertex of G1; :: thesis: ex W1 being Walk of G1 st W1 is_Walk_from u,w
per cases ( ( u = v & w = v ) or ( u = v & w <> v ) or ( u <> v & w = v ) or ( u <> v & w <> v ) ) ;
suppose A10: ( u = v & w = v ) ; :: thesis: ex W1 being Walk of G1 st W1 is_Walk_from u,w
end;
suppose ( u = v & w <> v ) ; :: thesis: ex W1 being Walk of G1 st W1 is_Walk_from u,w
then consider W3 being Walk of G1 such that
A11: W3 is_Walk_from w,u by A3;
take W3 .reverse() ; :: thesis: W3 .reverse() is_Walk_from u,w
thus W3 .reverse() is_Walk_from u,w by A11, GLIB_001:23; :: thesis: verum
end;
suppose ( u <> v & w = v ) ; :: thesis: ex W1 being Walk of G1 st W1 is_Walk_from u,w
hence ex W1 being Walk of G1 st W1 is_Walk_from u,w by A3; :: thesis: verum
end;
suppose A12: ( u <> v & w <> v ) ; :: thesis: ex W1 being Walk of G1 st W1 is_Walk_from u,w
consider W2 being Walk of G1 such that
A13: W2 is_Walk_from u,v by A12, A3;
consider W3 being Walk of G1 such that
A14: W3 is_Walk_from w,v by A12, A3;
A15: W3 .reverse() is_Walk_from v,w by A14, GLIB_001:23;
take W2 .append (W3 .reverse()) ; :: thesis: W2 .append (W3 .reverse()) is_Walk_from u,w
thus W2 .append (W3 .reverse()) is_Walk_from u,w by A13, A15, GLIB_001:31; :: thesis: verum
end;
end;
end;
hence G1 is connected by GLIB_002:def 1; :: thesis: verum