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 st f is_simple_func_in S & f is nonnegative holds
integral+ (M,f) = integral' (M,f)

let S be SigmaField of X; :: thesis: for M being sigma_Measure of S
for f being PartFunc of X,ExtREAL st f is_simple_func_in S & f is nonnegative holds
integral+ (M,f) = integral' (M,f)

let M be sigma_Measure of S; :: thesis: for f being PartFunc of X,ExtREAL st f is_simple_func_in S & f is nonnegative holds
integral+ (M,f) = integral' (M,f)

let f be PartFunc of X,ExtREAL; :: thesis: ( f is_simple_func_in S & f is nonnegative implies integral+ (M,f) = integral' (M,f) )
assume that
A1: f is_simple_func_in S and
A2: f is nonnegative ; :: thesis: integral+ (M,f) = integral' (M,f)
deffunc H1( Nat) -> PartFunc of X,ExtREAL = f;
consider F being Functional_Sequence of X,ExtREAL such that
A3: for n being Nat holds F . n = H1(n) from SEQFUNC:sch 1();
A4: for n, m being Nat st n <= m holds
for x being Element of X st x in dom f holds
(F . n) . x <= (F . m) . x
proof
let n, m be Nat; :: thesis: ( n <= m implies for x being Element of X st x in dom f holds
(F . n) . x <= (F . m) . x )

assume n <= m ; :: thesis: for x being Element of X st x in dom f holds
(F . n) . x <= (F . m) . x

let x be Element of X; :: thesis: ( x in dom f implies (F . n) . x <= (F . m) . x )
assume x in dom f ; :: thesis: (F . n) . x <= (F . m) . x
(F . n) . x = f . x by A3;
hence (F . n) . x <= (F . m) . x by A3; :: thesis: verum
end;
deffunc H2( Nat) -> Element of ExtREAL = integral' (M,(F . $1));
consider K being sequence of ExtREAL such that
A5: for n being Element of NAT holds K . n = H2(n) from FUNCT_2:sch 4();
A6: now :: thesis: for n being Nat holds K . n = H2(n)
let n be Nat; :: thesis: K . n = H2(n)
n in NAT by ORDINAL1:def 12;
hence K . n = H2(n) by A5; :: thesis: verum
end;
A7: for n being Nat holds K . n = integral' (M,f)
proof
let n be Nat; :: thesis: K . n = integral' (M,f)
thus K . n = integral' (M,(F . n)) by A6
.= integral' (M,f) by A3 ; :: thesis: verum
end;
then A8: lim K = integral' (M,f) by Th60;
ex GF being Finite_Sep_Sequence of S st
( dom f = union (rng GF) & ( for n being Nat
for x, y being Element of X st n in dom GF & x in GF . n & y in GF . n holds
f . x = f . y ) ) by A1, MESFUNC2:def 4;
then reconsider A = dom f as Element of S by MESFUNC2:31;
A9: f is A -measurable by A1, MESFUNC2:34;
A10: for x being Element of X st x in dom f holds
( F # x is convergent & lim (F # x) = f . x )
proof
let x be Element of X; :: thesis: ( x in dom f implies ( F # x is convergent & lim (F # x) = f . x ) )
assume x in dom f ; :: thesis: ( F # x is convergent & lim (F # x) = f . x )
now :: thesis: for n being Nat holds (F # x) . n = f . x
let n be Nat; :: thesis: (F # x) . n = f . x
thus (F # x) . n = (F . n) . x by Def13
.= f . x by A3 ; :: thesis: verum
end;
hence ( F # x is convergent & lim (F # x) = f . x ) by Th60; :: thesis: verum
end;
A11: for n being Nat holds F . n is nonnegative by A2, A3;
A12: for n being Nat holds
( F . n is_simple_func_in S & dom (F . n) = dom f ) by A1, A3;
K is convergent by A7, Th60;
hence integral+ (M,f) = integral' (M,f) by A2, A9, A6, A12, A11, A4, A10, A8, Def15; :: thesis: verum