defpred S1[ set ] means for F being FinSequence of the carrier of V st len F = $1 holds
ex u being Element of V ex f being Function of NAT ,the carrier of V st
( u = f . (len F) & f . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f . (j + 1) = (f . j) + v ) );
now
let n be Element of NAT ; :: thesis: ( ( for F being FinSequence of the carrier of V st len F = n holds
ex u being Element of V ex f being Function of NAT ,the carrier of V st
( u = f . (len F) & f . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f . (j + 1) = (f . j) + v ) ) ) implies for F being FinSequence of the carrier of V st len F = n + 1 holds
ex z being Element of the carrier of V ex f99 being Function of NAT ,the carrier of V st
( z = f99 . (len F) & f99 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + v ) ) )

assume A1: for F being FinSequence of the carrier of V st len F = n holds
ex u being Element of V ex f being Function of NAT ,the carrier of V st
( u = f . (len F) & f . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f . (j + 1) = (f . j) + v ) ) ; :: thesis: for F being FinSequence of the carrier of V st len F = n + 1 holds
ex z being Element of the carrier of V ex f99 being Function of NAT ,the carrier of V st
( z = f99 . (len F) & f99 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + v ) )

let F be FinSequence of the carrier of V; :: thesis: ( len F = n + 1 implies ex z being Element of the carrier of V ex f99 being Function of NAT ,the carrier of V st
( z = f99 . (len F) & f99 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + v ) ) )

reconsider G = F | (Seg n) as FinSequence of the carrier of V by FINSEQ_1:23;
A2: rng F c= the carrier of V by FINSEQ_1:def 4;
assume A3: len F = n + 1 ; :: thesis: ex z being Element of the carrier of V ex f99 being Function of NAT ,the carrier of V st
( z = f99 . (len F) & f99 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + v ) )

then dom F = Seg (n + 1) by FINSEQ_1:def 3;
then n + 1 in dom F by FINSEQ_1:6;
then F . (n + 1) in rng F by FUNCT_1:def 5;
then reconsider u1 = F . (n + 1) as Element of V by A2;
A4: n < n + 1 by NAT_1:13;
then consider u being Element of V, f being Function of NAT ,the carrier of V such that
u = f . (len G) and
A5: f . 0 = 0. V and
A6: for j being Element of NAT
for v being Element of V st j < len G & v = G . (j + 1) holds
f . (j + 1) = (f . j) + v by A1, A3, FINSEQ_1:21;
defpred S2[ set , set ] means for j being Element of NAT st $1 = j holds
( ( j < n + 1 implies $2 = f . $1 ) & ( n + 1 <= j implies for u being Element of V st u = F . (n + 1) holds
$2 = (f . (len G)) + u ) );
A7: for k being Element of NAT ex v being Element of V st S2[k,v]
proof
let k be Element of NAT ; :: thesis: ex v being Element of V st S2[k,v]
reconsider i = k as Element of NAT ;
A8: now
assume A9: n + 1 <= i ; :: thesis: ex v being Element of the carrier of V st
for j being Element of NAT st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies for u2 being Element of V st u2 = F . (n + 1) holds
v = (f . (len G)) + u2 ) )

take v = (f . (len G)) + u1; :: thesis: for j being Element of NAT st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies for u2 being Element of V st u2 = F . (n + 1) holds
v = (f . (len G)) + u2 ) )

let j be Element of NAT ; :: thesis: ( k = j implies ( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies for u2 being Element of V st u2 = F . (n + 1) holds
v = (f . (len G)) + u2 ) ) )

assume k = j ; :: thesis: ( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies for u2 being Element of V st u2 = F . (n + 1) holds
v = (f . (len G)) + u2 ) )

hence ( j < n + 1 implies v = f . k ) by A9; :: thesis: ( n + 1 <= j implies for u2 being Element of V st u2 = F . (n + 1) holds
v = (f . (len G)) + u2 )

assume n + 1 <= j ; :: thesis: for u2 being Element of V st u2 = F . (n + 1) holds
v = (f . (len G)) + u2

let u2 be Element of V; :: thesis: ( u2 = F . (n + 1) implies v = (f . (len G)) + u2 )
assume u2 = F . (n + 1) ; :: thesis: v = (f . (len G)) + u2
hence v = (f . (len G)) + u2 ; :: thesis: verum
end;
now
assume A10: i < n + 1 ; :: thesis: ex v being Element of the carrier of V st
for j being Element of NAT st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies for u being Element of V st u = F . (n + 1) holds
v = (f . (len G)) + u ) )

take v = f . k; :: thesis: for j being Element of NAT st k = j holds
( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies for u being Element of V st u = F . (n + 1) holds
v = (f . (len G)) + u ) )

let j be Element of NAT ; :: thesis: ( k = j implies ( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies for u being Element of V st u = F . (n + 1) holds
v = (f . (len G)) + u ) ) )

assume A11: k = j ; :: thesis: ( ( j < n + 1 implies v = f . k ) & ( n + 1 <= j implies for u being Element of V st u = F . (n + 1) holds
v = (f . (len G)) + u ) )

thus ( j < n + 1 implies v = f . k ) ; :: thesis: ( n + 1 <= j implies for u being Element of V st u = F . (n + 1) holds
v = (f . (len G)) + u )

thus ( n + 1 <= j implies for u being Element of V st u = F . (n + 1) holds
v = (f . (len G)) + u ) by A10, A11; :: thesis: verum
end;
hence ex v being Element of V st S2[k,v] by A8; :: thesis: verum
end;
consider f9 being Function of NAT ,the carrier of V such that
A12: for k being Element of NAT holds S2[k,f9 . k] from FUNCT_2:sch 3(A7);
take z = f9 . (n + 1); :: thesis: ex f99 being Function of NAT ,the carrier of V st
( z = f99 . (len F) & f99 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + v ) )

take f99 = f9; :: thesis: ( z = f99 . (len F) & f99 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + v ) )

thus z = f99 . (len F) by A3; :: thesis: ( f99 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + v ) )

thus f99 . 0 = 0. V by A5, A12; :: thesis: for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + v

let j be Element of NAT ; :: thesis: for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + v

let v be Element of V; :: thesis: ( j < len F & v = F . (j + 1) implies f99 . (j + 1) = (f99 . j) + v )
assume that
A13: j < len F and
A14: v = F . (j + 1) ; :: thesis: f99 . (j + 1) = (f99 . j) + v
A15: len G = n by A3, A4, FINSEQ_1:21;
A16: now
assume A17: j = n ; :: thesis: f99 . (j + 1) = (f99 . j) + v
then f99 . (j + 1) = (f . j) + v by A15, A12, A14;
hence f99 . (j + 1) = (f99 . j) + v by A4, A12, A17; :: thesis: verum
end;
A18: now
assume A19: j < n ; :: thesis: f99 . (j + 1) = (f99 . j) + v
then A20: j + 1 < n + 1 by XREAL_1:8;
( 1 <= 1 + j & j + 1 <= n ) by A19, NAT_1:11, NAT_1:13;
then j + 1 in Seg n by FINSEQ_1:3;
then A21: v = G . (j + 1) by A14, FUNCT_1:72;
j < len G by A3, A4, A19, FINSEQ_1:21;
then A22: f . (j + 1) = (f . j) + v by A6, A21;
j < n + 1 by A19, NAT_1:13;
then f . (j + 1) = (f9 . j) + v by A12, A22;
hence f99 . (j + 1) = (f99 . j) + v by A12, A20; :: thesis: verum
end;
j <= n by A3, A13, NAT_1:13;
hence f99 . (j + 1) = (f99 . j) + v by A18, A16, XXREAL_0:1; :: thesis: verum
end;
then A23: for n being Element of NAT st S1[n] holds
S1[n + 1] ;
now
reconsider f = NAT --> (0. V) as Function of NAT ,the carrier of V ;
let F be FinSequence of the carrier of V; :: thesis: ( len F = 0 implies ex u being Element of the carrier of V ex f9 being Function of NAT ,the carrier of V st
( u = f9 . (len F) & f9 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f9 . (j + 1) = (f9 . j) + v ) ) )

assume A24: len F = 0 ; :: thesis: ex u being Element of the carrier of V ex f9 being Function of NAT ,the carrier of V st
( u = f9 . (len F) & f9 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f9 . (j + 1) = (f9 . j) + v ) )

take u = f . (len F); :: thesis: ex f9 being Function of NAT ,the carrier of V st
( u = f9 . (len F) & f9 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f9 . (j + 1) = (f9 . j) + v ) )

take f9 = f; :: thesis: ( u = f9 . (len F) & f9 . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f9 . (j + 1) = (f9 . j) + v ) )

thus ( u = f9 . (len F) & f9 . 0 = 0. V ) by FUNCOP_1:13; :: thesis: for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f9 . (j + 1) = (f9 . j) + v

let j be Element of NAT ; :: thesis: for v being Element of V st j < len F & v = F . (j + 1) holds
f9 . (j + 1) = (f9 . j) + v

thus for v being Element of V st j < len F & v = F . (j + 1) holds
f9 . (j + 1) = (f9 . j) + v by A24; :: thesis: verum
end;
then A25: S1[ 0 ] ;
for n being Element of NAT holds S1[n] from NAT_1:sch 1(A25, A23);
hence ex b1 being Element of V ex f being Function of NAT ,the carrier of V st
( b1 = f . (len F) & f . 0 = 0. V & ( for j being Element of NAT
for v being Element of V st j < len F & v = F . (j + 1) holds
f . (j + 1) = (f . j) + v ) ) ; :: thesis: verum