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 ;
( ( 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 ) )
;
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;
( 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
;
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 ;
ex v being Element of V st S2[k,v]
reconsider i =
k as
Element of
NAT ;
A8:
now assume A9:
n + 1
<= i
;
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;
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 ;
( 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
;
( ( 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;
( 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
;
for u2 being Element of V st u2 = F . (n + 1) holds
v = (f . (len G)) + u2let u2 be
Element of
V;
( u2 = F . (n + 1) implies v = (f . (len G)) + u2 )assume
u2 = F . (n + 1)
;
v = (f . (len G)) + u2hence
v = (f . (len G)) + u2
;
verum end;
now assume A10:
i < n + 1
;
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;
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 ;
( 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
;
( ( 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 )
;
( 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;
verum end;
hence
ex
v being
Element of
V st
S2[
k,
v]
by A8;
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);
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;
( 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;
( 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;
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) + vlet j be
Element of
NAT ;
for v being Element of V st j < len F & v = F . (j + 1) holds
f99 . (j + 1) = (f99 . j) + vlet v be
Element of
V;
( 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)
;
f99 . (j + 1) = (f99 . j) + vA15:
len G = n
by A3, A4, FINSEQ_1:21;
A18:
now assume A19:
j < n
;
f99 . (j + 1) = (f99 . j) + vthen 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;
verum end;
j <= n
by A3, A13, NAT_1:13;
hence
f99 . (j + 1) = (f99 . j) + v
by A18, A16, XXREAL_0:1;
verum end;
then A23:
for n being Element of NAT st S1[n] holds
S1[n + 1]
;
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 ) )
; verum