defpred S1[ Nat, Real] means ex i being Element of NAT st
( $1 = i & $2 = integral (((proj (i,n)) * f),a,b) );
A1:
for i being Nat st i in Seg n holds
ex x being Element of REAL st S1[i,x]
consider p being FinSequence of REAL such that
A2:
( dom p = Seg n & ( for i being Nat st i in Seg n holds
S1[i,p . i] ) )
from FINSEQ_1:sch 5(A1);
take
p
; ( p is Element of REAL n & dom p = Seg n & ( for i being Element of NAT st i in Seg n holds
p . i = integral (((proj (i,n)) * f),a,b) ) )
A3:
for i being Element of NAT st i in Seg n holds
p . i = integral (((proj (i,n)) * f),a,b)
proof
let i be
Element of
NAT ;
( i in Seg n implies p . i = integral (((proj (i,n)) * f),a,b) )
assume
i in Seg n
;
p . i = integral (((proj (i,n)) * f),a,b)
then
S1[
i,
p . i]
by A2;
hence
p . i = integral (
((proj (i,n)) * f),
a,
b)
;
verum
end;
len p = n
by A2, FINSEQ_1:def 3;
hence
( p is Element of REAL n & dom p = Seg n & ( for i being Element of NAT st i in Seg n holds
p . i = integral (((proj (i,n)) * f),a,b) ) )
by A2, A3, FINSEQ_2:92; verum