let X be non empty set ; :: thesis: for S being SigmaField of X
for M being sigma_Measure of S
for A being Element of S
for f being PartFunc of X,ExtREAL st A = dom f & f is A -measurable & f is nonnegative holds
( Integral (M,f) in REAL iff f is_integrable_on M )

let S be SigmaField of X; :: thesis: for M being sigma_Measure of S
for A being Element of S
for f being PartFunc of X,ExtREAL st A = dom f & f is A -measurable & f is nonnegative holds
( Integral (M,f) in REAL iff f is_integrable_on M )

let M be sigma_Measure of S; :: thesis: for A being Element of S
for f being PartFunc of X,ExtREAL st A = dom f & f is A -measurable & f is nonnegative holds
( Integral (M,f) in REAL iff f is_integrable_on M )

let A be Element of S; :: thesis: for f being PartFunc of X,ExtREAL st A = dom f & f is A -measurable & f is nonnegative holds
( Integral (M,f) in REAL iff f is_integrable_on M )

let f be PartFunc of X,ExtREAL; :: thesis: ( A = dom f & f is A -measurable & f is nonnegative implies ( Integral (M,f) in REAL iff f is_integrable_on M ) )
assume A1: ( A = dom f & f is A -measurable & f is nonnegative ) ; :: thesis: ( Integral (M,f) in REAL iff f is_integrable_on M )
A2: now :: thesis: ( f is_integrable_on M implies Integral (M,f) in REAL )end;
now :: thesis: ( Integral (M,f) in REAL implies f is_integrable_on M )
assume A3: Integral (M,f) in REAL ; :: thesis:
A4: ( dom (max- f) = A & max- f is A -measurable ) by ;
A5: ( dom (max+ f) = A & max+ f is A -measurable ) by ;
for x being Element of X holds 0 <= (max+ f) . x by MESFUNC2:12;
then max+ f is nonnegative by SUPINF_2:39;
then A6: Integral (M,(max+ f)) = integral+ (M,(max+ f)) by ;
A7: for x being Element of X st x in dom f holds
(max+ f) . x = f . x
proof
let x be Element of X; :: thesis: ( x in dom f implies (max+ f) . x = f . x )
A8: f . x >= 0 by ;
assume x in dom f ; :: thesis: (max+ f) . x = f . x
then (max+ f) . x = max ((f . x),0) by ;
hence (max+ f) . x = f . x by ; :: thesis: verum
end;
then max+ f = f by ;
then A9: Integral (M,(max+ f)) < +infty by ;
for x being Element of X holds 0 <= (max- f) . x by MESFUNC2:13;
then max- f is nonnegative by SUPINF_2:39;
then A10: Integral (M,(max- f)) = integral+ (M,(max- f)) by ;
for x being Element of X st x in dom (max- f) holds
0 = (max- f) . x
proof
let x be Element of X; :: thesis: ( x in dom (max- f) implies 0 = (max- f) . x )
assume x in dom (max- f) ; :: thesis: 0 = (max- f) . x
(max+ f) . x = f . x by ;
hence 0 = (max- f) . x by MESFUNC2:19; :: thesis: verum
end;
then Integral (M,(max- f)) = 0 by ;
hence f is_integrable_on M by A1, A6, A9, A10; :: thesis: verum
end;
hence ( Integral (M,f) in REAL iff f is_integrable_on M ) by A2; :: thesis: verum