let K be Field; for x being FinSequence of K
for a being Element of K st ex i being Element of NAT st
( 1 <= i & i <= len x & x . i = a & ( for j being Element of NAT st j <> i & 1 <= j & j <= len x holds
x . j = 0. K ) ) holds
Sum x = a
let x be FinSequence of K; for a being Element of K st ex i being Element of NAT st
( 1 <= i & i <= len x & x . i = a & ( for j being Element of NAT st j <> i & 1 <= j & j <= len x holds
x . j = 0. K ) ) holds
Sum x = a
let a be Element of K; ( ex i being Element of NAT st
( 1 <= i & i <= len x & x . i = a & ( for j being Element of NAT st j <> i & 1 <= j & j <= len x holds
x . j = 0. K ) ) implies Sum x = a )
given i being Element of NAT such that A1:
1 <= i
and
A2:
i <= len x
and
A3:
x . i = a
and
A4:
for j being Element of NAT st j <> i & 1 <= j & j <= len x holds
x . j = 0. K
; Sum x = a
1 <= len x
by A1, A2, XXREAL_0:2;
then consider f being sequence of the carrier of K such that
A5:
f . 1 = x . 1
and
A6:
for n being Nat st 0 <> n & n < len x holds
f . (n + 1) = the addF of K . ((f . n),(x . (n + 1)))
and
A7:
the addF of K "**" x = f . (len x)
by FINSOP_1:def 1;
A8:
for j being Nat st 1 <= j & j < i holds
f . j = 0. K
proof
defpred S1[
Nat]
means ( 1
<= $1 & $1
< i implies
f . $1
= 0. K );
let j be
Nat;
( 1 <= j & j < i implies f . j = 0. K )
assume A9:
( 1
<= j &
j < i )
;
f . j = 0. K
A10:
for
k being
Nat st
S1[
k] holds
S1[
k + 1]
proof
let k be
Nat;
( S1[k] implies S1[k + 1] )
assume A11:
S1[
k]
;
S1[k + 1]
end;
A21:
S1[
0 ]
;
for
l being
Nat holds
S1[
l]
from NAT_1:sch 2(A21, A10);
hence
f . j = 0. K
by A9;
verum
end;
for j being Element of NAT st i <= j & j <= len x holds
f . j = a
proof
defpred S1[
Nat]
means (
i <= $1 & $1
<= len x implies
f . $1
= a );
let j be
Element of
NAT ;
( i <= j & j <= len x implies f . j = a )
assume A22:
(
i <= j &
j <= len x )
;
f . j = a
A23:
for
k being
Nat st
S1[
k] holds
S1[
k + 1]
proof
let k be
Nat;
( S1[k] implies S1[k + 1] )
assume A24:
S1[
k]
;
S1[k + 1]
per cases
( not i <= k + 1 or not k + 1 <= len x or ( i <= k + 1 & k + 1 <= len x ) )
;
suppose A25:
(
i <= k + 1 &
k + 1
<= len x )
;
S1[k + 1]then A26:
k < len x
by NAT_1:13;
A27:
1
<= k + 1
by A1, A25, XXREAL_0:2;
now S1[k + 1]per cases
( i < k + 1 or i = k + 1 )
by A25, XXREAL_0:1;
suppose A28:
i < k + 1
;
S1[k + 1]A29:
k < len x
by A25, NAT_1:13;
i <= k
by A28, NAT_1:13;
then f . (k + 1) =
the
addF of
K . (
(f . k),
(x . (k + 1)))
by A1, A6, A29
.=
a + (0. K)
by A4, A24, A25, A27, A28, NAT_1:13
.=
a
by RLVECT_1:4
;
hence
S1[
k + 1]
;
verum end; end; end; hence
S1[
k + 1]
;
verum end; end;
end;
A34:
S1[
0 ]
by A1;
for
l being
Nat holds
S1[
l]
from NAT_1:sch 2(A34, A23);
hence
f . j = a
by A22;
verum
end;
then
f . (len x) = a
by A2;
hence
Sum x = a
by A7, FVSUM_1:def 8; verum