let G be _Graph; :: thesis: for S being non empty Subset of (G .allSG())
for G9 being GraphUnion of S st (SubgraphRel G) |_2 S is being_linear-order holds
for W being Walk of G9 ex H being Element of S st W is Walk of H

let S be non empty Subset of (G .allSG()); :: thesis: for G9 being GraphUnion of S st (SubgraphRel G) |_2 S is being_linear-order holds
for W being Walk of G9 ex H being Element of S st W is Walk of H

let G9 be GraphUnion of S; :: thesis: ( (SubgraphRel G) |_2 S is being_linear-order implies for W being Walk of G9 ex H being Element of S st W is Walk of H )
set R = (SubgraphRel G) |_2 S;
assume A1: (SubgraphRel G) |_2 S is being_linear-order ; :: thesis: for W being Walk of G9 ex H being Element of S st W is Walk of H
defpred S1[ Walk of G9] means ex H being Element of S st $1 is Walk of H;
A2: for W being trivial Walk of G9 holds S1[W]
proof
let W be trivial Walk of G9; :: thesis: S1[W]
consider v9 being Vertex of G9 such that
A3: W = G9 .walkOf v9 by GLIB_001:128;
the_Vertices_of G9 = union (the_Vertices_of S) by GLIB_014:def 25;
then consider V being set such that
A4: ( v9 in V & V in the_Vertices_of S ) by TARSKI:def 4;
consider H being _Graph such that
A5: ( H in S & V = the_Vertices_of H ) by A4, GLIB_014:def 14;
reconsider H = H as Element of S by A5;
take H ; :: thesis: W is Walk of H
reconsider v = v9 as Vertex of H by A4, A5;
W = <*v*> by A3, GLIB_001:def 4
.= H .walkOf v by GLIB_001:def 4 ;
hence W is Walk of H ; :: thesis: verum
end;
A6: for W being Walk of G9
for e being object st e in (W .last()) .edgesInOut() & S1[W] holds
S1[W .addEdge e]
proof
let W be Walk of G9; :: thesis: for e being object st e in (W .last()) .edgesInOut() & S1[W] holds
S1[W .addEdge e]

let e be object ; :: thesis: ( e in (W .last()) .edgesInOut() & S1[W] implies S1[W .addEdge e] )
assume A7: ( e in (W .last()) .edgesInOut() & S1[W] ) ; :: thesis: S1[W .addEdge e]
then e in the_Edges_of G9 ;
then e in union (the_Edges_of S) by GLIB_014:def 25;
then consider E being set such that
A8: ( e in E & E in the_Edges_of S ) by TARSKI:def 4;
consider H2 being _Graph such that
A9: ( H2 in S & E = the_Edges_of H2 ) by A8, GLIB_014:def 15;
reconsider H2 = H2 as Element of S by A9;
consider H1 being Element of S such that
A10: W is Walk of H1 by A7;
( (SubgraphRel G) |_2 S is reflexive & (SubgraphRel G) |_2 S is connected ) by A1, ORDERS_1:def 6;
then A11: (SubgraphRel G) |_2 S is_strongly_connected_in field ((SubgraphRel G) |_2 S) by RELAT_2:def 15;
A12: field (SubgraphRel G) = G .allSG() by Th40;
then field ((SubgraphRel G) |_2 S) = S by ORDERS_1:71;
then A13: ( H1 in field ((SubgraphRel G) |_2 S) & H2 in field ((SubgraphRel G) |_2 S) ) ;
then A14: ( H1 in G .allSG() & H2 in G .allSG() ) by A12, WELLORD1:12;
consider w being Vertex of G9 such that
A15: e Joins W .last() ,w,G9 by A7, GLIB_000:64;
A16: ( H1 is Subgraph of G9 & H2 is Subgraph of G9 ) by GLIB_014:21;
then A17: e Joins W .last() ,w,H2 by A8, A9, A15, GLIB_000:73;
per cases ( [H1,H2] in (SubgraphRel G) |_2 S or [H2,H1] in (SubgraphRel G) |_2 S ) by A11, A13, RELAT_2:def 7;
end;
end;
for W being Walk of G9 holds S1[W] from GLIB_009:sch 1(A2, A6);
hence for W being Walk of G9 ex H being Element of S st W is Walk of H ; :: thesis: verum