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 f'' being Function of NAT ,the carrier of V st
( z = 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 ) ) )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 f'' being Function of NAT ,the carrier of V st
( z = 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 ) )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 f'' being Function of NAT ,the carrier of V st
( z = 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 ) ) )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 f'' being Function of NAT ,the carrier of V st
( z = 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 ) )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]
consider f' being
Function of
NAT ,the
carrier of
V such that A12:
for
k being
Element of
NAT holds
S2[
k,
f' . k]
from FUNCT_2:sch 3(A7);
take z =
f' . (n + 1);
:: thesis: ex f'' being Function of NAT ,the carrier of V st
( z = 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 ) )take f'' =
f';
:: thesis: ( z = 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 ) )thus
z = f'' . (len F)
by A3;
:: thesis: ( 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 ) )thus
f'' . 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
f'' . (j + 1) = (f'' . j) + vlet j be
Element of
NAT ;
:: thesis: for v being Element of V st j < len F & v = F . (j + 1) holds
f'' . (j + 1) = (f'' . j) + vlet v be
Element of
V;
:: thesis: ( j < len F & v = F . (j + 1) implies f'' . (j + 1) = (f'' . j) + v )assume that A13:
j < len F
and A14:
v = F . (j + 1)
;
:: thesis: f'' . (j + 1) = (f'' . j) + vA15:
len G = n
by A3, A4, FINSEQ_1:21;
A18:
now assume A19:
j < n
;
:: thesis: f'' . (j + 1) = (f'' . 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) = (f' . j) + v
by A12, A22;
hence
f'' . (j + 1) = (f'' . j) + v
by A12, A20;
:: thesis: verum end;
j <= n
by A3, A13, NAT_1:13;
hence
f'' . (j + 1) = (f'' . 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]
;
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