defpred S1[ Nat] means for F being FinSequence of COMPLEX
for Fr being FinSequence of REAL st len F = $1 & Fr = Re F holds
Sum Fr = Re (Sum F);
P0: S1[ 0 ]
proof
let F be FinSequence of COMPLEX ; :: thesis: for Fr being FinSequence of REAL st len F = 0 & Fr = Re F holds
Sum Fr = Re (Sum F)

let Fr be FinSequence of REAL ; :: thesis: ( len F = 0 & Fr = Re F implies Sum Fr = Re (Sum F) )
assume P01: ( len F = 0 & Fr = Re F ) ; :: thesis: Sum Fr = Re (Sum F)
then dom Fr = dom F by COMSEQ_3:def 3
.= Seg (len F) by FINSEQ_1:def 3 ;
then P02: len Fr = 0 by P01, FINSEQ_1:def 3;
thus Re (Sum F) = Re 0 by P01, FINSEQ_1:28, RVSUM1102
.= Sum Fr by P02, FINSEQ_1:28, RVSUM_1:102, COMPLEX1:12 ; :: thesis: verum
end;
P1: now
let k be Element of NAT ; :: thesis: ( S1[k] implies S1[k + 1] )
assume A1: S1[k] ; :: thesis: S1[k + 1]
now
let F be FinSequence of COMPLEX ; :: thesis: for Fr being FinSequence of REAL st len F = k + 1 & Fr = Re F holds
Re (Sum F) = Sum Fr

let Fr be FinSequence of REAL ; :: thesis: ( len F = k + 1 & Fr = Re F implies Re (Sum F) = Sum Fr )
assume P10: ( len F = k + 1 & Fr = Re F ) ; :: thesis: Re (Sum F) = Sum Fr
reconsider F1 = F | k as FinSequence of COMPLEX ;
P11: len F1 = k by P10, NAT_1:11, FINSEQ_1:80;
reconsider F1r = Re F1 as FinSequence of REAL ;
reconsider x = F . (k + 1) as Element of COMPLEX by XCMPLX_0:def 2;
P12: F = F1 ^ <*x*> by FINSEQ_3:61, P10;
hence Re (Sum F) = Re ((Sum F1) + x) by RVSUM1104
.= (Re (Sum F1)) + (Re x) by COMPLEX1:19
.= (Sum F1r) + (Re x) by A1, P11
.= Sum (F1r ^ <*(Re x)*>) by RVSUM_1:104
.= Sum Fr by P10, P12, RVSUM1105 ;
:: thesis: verum
end;
hence S1[k + 1] ; :: thesis: verum
end;
P2: for k being Element of NAT holds S1[k] from NAT_1:sch 1(P0, P1);
let F be FinSequence of COMPLEX ; :: thesis: for Fr being FinSequence of REAL st Fr = Re F holds
Sum Fr = Re (Sum F)

let Fr be FinSequence of REAL ; :: thesis: ( Fr = Re F implies Sum Fr = Re (Sum F) )
assume P3: Fr = Re F ; :: thesis: Sum Fr = Re (Sum F)
len F is Element of NAT ;
hence Sum Fr = Re (Sum F) by P2, P3; :: thesis: verum