let a be FinSequence of ExtREAL ; for b being FinSequence of REAL st len a = len b & ( for i being Element of NAT st i in dom a holds
a . i = b . i ) holds
Sum a = Sum b
let b be FinSequence of REAL ; ( len a = len b & ( for i being Element of NAT st i in dom a holds
a . i = b . i ) implies Sum a = Sum b )
defpred S1[ Element of NAT ] means for a being FinSequence of ExtREAL
for b being FinSequence of REAL st len a = $1 & len b = $1 & ( for i being Element of NAT st i in dom a holds
a . i = b . i ) holds
Sum a = Sum b;
A1:
for n being Element of NAT st S1[n] holds
S1[n + 1]
proof
let n be
Element of
NAT ;
( S1[n] implies S1[n + 1] )
assume A2:
S1[
n]
;
S1[n + 1]
thus
S1[
n + 1]
verumproof
let a be
FinSequence of
ExtREAL ;
for b being FinSequence of REAL st len a = n + 1 & len b = n + 1 & ( for i being Element of NAT st i in dom a holds
a . i = b . i ) holds
Sum a = Sum blet b be
FinSequence of
REAL ;
( len a = n + 1 & len b = n + 1 & ( for i being Element of NAT st i in dom a holds
a . i = b . i ) implies Sum a = Sum b )
assume that A3:
len a = n + 1
and A4:
len b = n + 1
and A5:
for
i being
Element of
NAT st
i in dom a holds
a . i = b . i
;
Sum a = Sum b
A6:
dom a = Seg (n + 1)
by A3, FINSEQ_1:def 3;
then A7:
a . (n + 1) = b . (n + 1)
by A5, FINSEQ_1:6;
A8:
0 + n <= 1
+ n
by XREAL_1:8;
then A9:
len (a | n) = n
by A3, FINSEQ_1:80;
A10:
Seg n c= Seg (n + 1)
by A8, FINSEQ_1:7;
A11:
for
i being
Element of
NAT st
i in dom (a | n) holds
(a | n) . i = (b | n) . i
len (b | n) = n
by A4, A8, FINSEQ_1:80;
then A15:
Sum (a | n) = Sum (b | n)
by A2, A9, A11;
b | n = b | (Seg n)
by FINSEQ_1:def 15;
then A16:
b = (b | n) ^ <*(b . (n + 1))*>
by A4, FINSEQ_3:61;
a | n = a | (Seg n)
by FINSEQ_1:def 15;
then
a = (a | n) ^ <*(a . (n + 1))*>
by A3, FINSEQ_3:61;
then Sum a =
(Sum (a | n)) + (a . (n + 1))
by Lm4
.=
(Sum (b | n)) + (b . (n + 1))
by A15, A7, SUPINF_2:1
;
hence
Sum a = Sum b
by A16, RVSUM_1:104;
verum
end;
end;
A17:
S1[ 0 ]
for n being Element of NAT holds S1[n]
from NAT_1:sch 1(A17, A1);
hence
( len a = len b & ( for i being Element of NAT st i in dom a holds
a . i = b . i ) implies Sum a = Sum b )
; verum