let G be real-weighted WGraph; :: thesis: for W1 being Walk of G
for W2 being Subwalk of W1 ex ws being Subset of (W1 .weightSeq()) st W2 .weightSeq() = Seq ws

let W1 be Walk of G; :: thesis: for W2 being Subwalk of W1 ex ws being Subset of (W1 .weightSeq()) st W2 .weightSeq() = Seq ws
let W2 be Subwalk of W1; :: thesis: ex ws being Subset of (W1 .weightSeq()) st W2 .weightSeq() = Seq ws
consider es being Subset of (W1 .edgeSeq()) such that
A1: W2 .edgeSeq() = Seq es by GLIB_001:def 32;
deffunc H1( object ) -> set = (the_Weight_of G) . (es . $1);
consider ws being Function such that
A2: ( dom ws = dom es & ( for x being object st x in dom es holds
ws . x = H1(x) ) ) from FUNCT_1:sch 3();
ex k being Nat st dom ws c= Seg k by A2, FINSEQ_1:def 12;
then reconsider ws = ws as FinSubsequence by FINSEQ_1:def 12;
now :: thesis: for z being object st z in ws holds
z in W1 .weightSeq()
end;
then reconsider ws = ws as Subset of (W1 .weightSeq()) by TARSKI:def 3;
take ws ; :: thesis: W2 .weightSeq() = Seq ws
A14: len (Seq es) = card es by GLIB_001:5
.= card (dom ws) by A2, CARD_1:62
.= card ws by CARD_1:62
.= len (Seq ws) by GLIB_001:5 ;
then A15: len (W2 .weightSeq()) = len (Seq ws) by A1, Def18;
now :: thesis: for n being Nat st 1 <= n & n <= len (W2 .weightSeq()) holds
(W2 .weightSeq()) . n = (Seq ws) . n
A16: rng (Sgm (dom es)) = dom es by FINSEQ_1:def 14;
let n be Nat; :: thesis: ( 1 <= n & n <= len (W2 .weightSeq()) implies (W2 .weightSeq()) . n = (Seq ws) . n )
A17: Seq ws = ws * (Sgm (dom es)) by A2, FINSEQ_1:def 15;
assume A18: ( 1 <= n & n <= len (W2 .weightSeq()) ) ; :: thesis: (W2 .weightSeq()) . n = (Seq ws) . n
then A19: ( Seq es = es * (Sgm (dom es)) & n in dom (Seq es) ) by A14, A15, FINSEQ_1:def 15, FINSEQ_3:25;
A20: n in dom (Seq ws) by A15, A18, FINSEQ_3:25;
then n in dom (Sgm (dom es)) by A17, FUNCT_1:11;
then A21: (Sgm (dom es)) . n in dom es by A16, FUNCT_1:def 3;
(Seq ws) . n = ws . ((Sgm (dom es)) . n) by A17, A20, FUNCT_1:12
.= (the_Weight_of G) . (es . ((Sgm (dom es)) . n)) by A2, A21
.= (the_Weight_of G) . ((Seq es) . n) by A19, FUNCT_1:12 ;
hence (W2 .weightSeq()) . n = (Seq ws) . n by A1, A18, Def18; :: thesis: verum
end;
hence W2 .weightSeq() = Seq ws by A15, FINSEQ_1:14; :: thesis: verum