let X be non empty set ; :: thesis: for S being SigmaField of X
for M being sigma_Measure of S
for f being PartFunc of X,ExtREAL
for A being Element of S
for E being SetSequence of S st f is A -measurable & A = dom f & E is non-descending & lim E c= A & M . (A \ (lim E)) = 0 & ( integral+ (M,(max+ f)) < +infty or integral+ (M,(max- f)) < +infty ) holds
ex I being ExtREAL_sequence st
( ( for n being Nat holds I . n = Integral (M,(f | ((Partial_Union E) . n))) ) & I is convergent & Integral (M,f) = lim I )

let S be SigmaField of X; :: thesis: for M being sigma_Measure of S
for f being PartFunc of X,ExtREAL
for A being Element of S
for E being SetSequence of S st f is A -measurable & A = dom f & E is non-descending & lim E c= A & M . (A \ (lim E)) = 0 & ( integral+ (M,(max+ f)) < +infty or integral+ (M,(max- f)) < +infty ) holds
ex I being ExtREAL_sequence st
( ( for n being Nat holds I . n = Integral (M,(f | ((Partial_Union E) . n))) ) & I is convergent & Integral (M,f) = lim I )

let M be sigma_Measure of S; :: thesis: for f being PartFunc of X,ExtREAL
for A being Element of S
for E being SetSequence of S st f is A -measurable & A = dom f & E is non-descending & lim E c= A & M . (A \ (lim E)) = 0 & ( integral+ (M,(max+ f)) < +infty or integral+ (M,(max- f)) < +infty ) holds
ex I being ExtREAL_sequence st
( ( for n being Nat holds I . n = Integral (M,(f | ((Partial_Union E) . n))) ) & I is convergent & Integral (M,f) = lim I )

let f be PartFunc of X,ExtREAL; :: thesis: for A being Element of S
for E being SetSequence of S st f is A -measurable & A = dom f & E is non-descending & lim E c= A & M . (A \ (lim E)) = 0 & ( integral+ (M,(max+ f)) < +infty or integral+ (M,(max- f)) < +infty ) holds
ex I being ExtREAL_sequence st
( ( for n being Nat holds I . n = Integral (M,(f | ((Partial_Union E) . n))) ) & I is convergent & Integral (M,f) = lim I )

let A be Element of S; :: thesis: for E being SetSequence of S st f is A -measurable & A = dom f & E is non-descending & lim E c= A & M . (A \ (lim E)) = 0 & ( integral+ (M,(max+ f)) < +infty or integral+ (M,(max- f)) < +infty ) holds
ex I being ExtREAL_sequence st
( ( for n being Nat holds I . n = Integral (M,(f | ((Partial_Union E) . n))) ) & I is convergent & Integral (M,f) = lim I )

let E be SetSequence of S; :: thesis: ( f is A -measurable & A = dom f & E is non-descending & lim E c= A & M . (A \ (lim E)) = 0 & ( integral+ (M,(max+ f)) < +infty or integral+ (M,(max- f)) < +infty ) implies ex I being ExtREAL_sequence st
( ( for n being Nat holds I . n = Integral (M,(f | ((Partial_Union E) . n))) ) & I is convergent & Integral (M,f) = lim I ) )

assume that
A1: f is A -measurable and
A2: A = dom f and
A3: E is non-descending and
A4: lim E c= A and
A5: M . (A \ (lim E)) = 0 and
A6: ( integral+ (M,(max+ f)) < +infty or integral+ (M,(max- f)) < +infty ) ; :: thesis: ex I being ExtREAL_sequence st
( ( for n being Nat holds I . n = Integral (M,(f | ((Partial_Union E) . n))) ) & I is convergent & Integral (M,f) = lim I )

Union E is Element of S by PROB_1:17;
then reconsider LE = lim E as Element of S by A3, SETLIM_1:80;
A \ (A \ LE) = A /\ LE by XBOOLE_1:48
.= LE by A4, XBOOLE_1:28 ;
then A7: Integral (M,f) = Integral (M,(f | LE)) by A1, A2, A5, MESFUNC5:95;
reconsider F = Partial_Diff_Union E as SetSequence of S ;
set g = f | LE;
A8: LE = (dom f) /\ LE by A2, A4, XBOOLE_1:28;
f is LE -measurable by A1, A4, MESFUNC1:30;
then A9: f | LE is LE -measurable by A8, MESFUNC5:42;
A10: lim E = Union E by A3, SETLIM_1:80;
then A11: LE = Union F by PROB_3:20;
A12: ( max+ f is nonnegative & max- f is nonnegative ) by MESFUN11:5;
A13: ( (max+ f) | A = max+ (f | A) & (max- f) | A = max- (f | A) & (max+ f) | LE = max+ (f | LE) & (max- f) | LE = max- (f | LE) ) by MESFUNC5:28;
( dom (max+ f) = dom f & dom (max- f) = dom f ) by MESFUNC2:def 2, MESFUNC2:def 3;
then ( integral+ (M,((max+ f) | LE)) <= integral+ (M,((max+ f) | A)) & integral+ (M,((max- f) | LE)) <= integral+ (M,((max- f) | A)) ) by A2, A4, A12, A1, MESFUNC2:25, MESFUNC2:26, MESFUNC5:83;
then A14: ( integral+ (M,(max+ (f | LE))) < +infty or integral+ (M,(max- (f | LE))) < +infty ) by A2, A6, A13, XXREAL_0:2;
A15: LE = dom (f | LE) by A8, RELAT_1:61;
then consider J being ExtREAL_sequence such that
A16: for n being Nat holds J . n = Integral (M,((f | LE) | (F . n))) and
A17: ( J is summable & Integral (M,(f | LE)) = Sum J ) by A9, A11, A14, Th17;
reconsider I = Partial_Sums J as ExtREAL_sequence ;
take I ; :: thesis: ( ( for n being Nat holds I . n = Integral (M,(f | ((Partial_Union E) . n))) ) & I is convergent & Integral (M,f) = lim I )
A18: for n being Nat holds (f | LE) | ((Partial_Union F) . n) = f | ((Partial_Union E) . n)
proof
let n be Nat; :: thesis: (f | LE) | ((Partial_Union F) . n) = f | ((Partial_Union E) . n)
A19: (Partial_Union F) . n = (Partial_Union E) . n by PROB_3:19;
now :: thesis: for x being object st x in (Partial_Union E) . n holds
x in Union E
let x be object ; :: thesis: ( x in (Partial_Union E) . n implies x in Union E )
assume x in (Partial_Union E) . n ; :: thesis: x in Union E
then consider k being Nat such that
A20: ( k <= n & x in E . k ) by PROB_3:13;
k in NAT by ORDINAL1:def 12;
then k in dom E by FUNCT_2:def 1;
then E . k c= union (rng E) by FUNCT_1:3, ZFMISC_1:74;
then E . k c= Union E by CARD_3:def 4;
hence x in Union E by A20; :: thesis: verum
end;
then (Partial_Union E) . n c= LE by A10;
hence (f | LE) | ((Partial_Union F) . n) = f | ((Partial_Union E) . n) by A19, RELAT_1:74; :: thesis: verum
end;
A21: for n being Nat holds (Partial_Union E) . n c= Union E
proof
let n be Nat; :: thesis: (Partial_Union E) . n c= Union E
now :: thesis: for x being object st x in (Partial_Union E) . n holds
x in Union E
let x be object ; :: thesis: ( x in (Partial_Union E) . n implies x in Union E )
assume x in (Partial_Union E) . n ; :: thesis: x in Union E
then consider k being Nat such that
A22: ( k <= n & x in E . k ) by PROB_3:13;
k in NAT by ORDINAL1:def 12;
then k in dom E by FUNCT_2:def 1;
then E . k in rng E by FUNCT_1:3;
then x in union (rng E) by A22, TARSKI:def 4;
hence x in Union E by CARD_3:def 4; :: thesis: verum
end;
hence (Partial_Union E) . n c= Union E ; :: thesis: verum
end;
defpred S1[ Nat] means I . $1 = Integral (M,((f | LE) | ((Partial_Union F) . $1)));
I . 0 = J . 0 by MESFUNC9:def 1
.= Integral (M,((f | LE) | (F . 0))) by A16 ;
then A23: S1[ 0 ] by PROB_3:def 2;
A24: for n being Nat st S1[n] holds
S1[n + 1]
proof
let n be Nat; :: thesis: ( S1[n] implies S1[n + 1] )
assume A25: S1[n] ; :: thesis: S1[n + 1]
reconsider PFn = (Partial_Union F) . n as Element of S by PROB_1:25;
reconsider Fn1 = F . (n + 1) as Element of S by PROB_1:25;
n < n + 1 by NAT_1:13;
then A26: PFn misses Fn1 by PROB_3:42;
PFn \/ Fn1 = (Partial_Union F) . (n + 1) by PROB_3:def 2;
then A27: PFn \/ Fn1 = (Partial_Union E) . (n + 1) by PROB_3:19;
then A28: PFn \/ Fn1 c= dom (f | LE) by A21, A15, A10;
A29: f | LE is PFn \/ Fn1 -measurable by A9, A21, A10, A27, MESFUNC1:30;
A30: ( max+ (f | LE) is nonnegative & max- (f | LE) is nonnegative ) by MESFUN11:5;
A31: ( max+ (f | LE) is LE -measurable & max- (f | LE) is LE -measurable ) by A9, A15, MESFUNC2:25, MESFUNC2:26;
A32: ( (max+ (f | LE)) | LE = max+ ((f | LE) | LE) & (max- (f | LE)) | LE = max- ((f | LE) | LE) ) by MESFUNC5:28;
( dom (max+ (f | LE)) = dom (f | LE) & dom (max- (f | LE)) = dom (f | LE) ) by MESFUNC2:def 2, MESFUNC2:def 3;
then ( integral+ (M,((max+ (f | LE)) | (PFn \/ Fn1))) <= integral+ (M,((max+ (f | LE)) | LE)) & integral+ (M,((max- (f | LE)) | (PFn \/ Fn1))) <= integral+ (M,((max- (f | LE)) | LE)) ) by A30, A31, A15, A27, A21, A10, MESFUNC5:83;
then ( integral+ (M,((max+ (f | LE)) | (PFn \/ Fn1))) < +infty or integral+ (M,((max- (f | LE)) | (PFn \/ Fn1))) < +infty ) by A14, A32, XXREAL_0:2;
then A33: ( integral+ (M,(max+ ((f | LE) | (PFn \/ Fn1)))) < +infty or integral+ (M,(max- ((f | LE) | (PFn \/ Fn1)))) < +infty ) by MESFUNC5:28;
I . (n + 1) = ((Partial_Sums J) . n) + (J . (n + 1)) by MESFUNC9:def 1
.= (Integral (M,((f | LE) | PFn))) + (Integral (M,((f | LE) | Fn1))) by A16, A25
.= Integral (M,((f | LE) | (PFn \/ Fn1))) by A28, A29, A26, A33, Th18 ;
hence I . (n + 1) = Integral (M,((f | LE) | ((Partial_Union F) . (n + 1)))) by PROB_3:def 2; :: thesis: verum
end;
A34: for n being Nat holds S1[n] from NAT_1:sch 2(A23, A24);
thus for n being Nat holds I . n = Integral (M,(f | ((Partial_Union E) . n))) :: thesis: ( I is convergent & Integral (M,f) = lim I )
proof
let n be Nat; :: thesis: I . n = Integral (M,(f | ((Partial_Union E) . n)))
I . n = Integral (M,((f | LE) | ((Partial_Union F) . n))) by A34;
hence I . n = Integral (M,(f | ((Partial_Union E) . n))) by A18; :: thesis: verum
end;
thus I is convergent by A17, MESFUNC9:def 2; :: thesis: Integral (M,f) = lim I
thus Integral (M,f) = lim I by A7, A17, MESFUNC9:def 3; :: thesis: verum