let X be set ; :: thesis: for S being SigmaField of X
for F being Function of NAT ,S
for f being PartFunc of X,ExtREAL
for A being set
for r being Real st ( for n being Element of NAT holds F . n = A /\ (great_eq_dom f,(R_EAL (r + (1 / (n + 1))))) ) holds
A /\ (great_dom f,(R_EAL r)) = union (rng F)

let S be SigmaField of X; :: thesis: for F being Function of NAT ,S
for f being PartFunc of X,ExtREAL
for A being set
for r being Real st ( for n being Element of NAT holds F . n = A /\ (great_eq_dom f,(R_EAL (r + (1 / (n + 1))))) ) holds
A /\ (great_dom f,(R_EAL r)) = union (rng F)

let F be Function of NAT ,S; :: thesis: for f being PartFunc of X,ExtREAL
for A being set
for r being Real st ( for n being Element of NAT holds F . n = A /\ (great_eq_dom f,(R_EAL (r + (1 / (n + 1))))) ) holds
A /\ (great_dom f,(R_EAL r)) = union (rng F)

let f be PartFunc of X,ExtREAL ; :: thesis: for A being set
for r being Real st ( for n being Element of NAT holds F . n = A /\ (great_eq_dom f,(R_EAL (r + (1 / (n + 1))))) ) holds
A /\ (great_dom f,(R_EAL r)) = union (rng F)

let A be set ; :: thesis: for r being Real st ( for n being Element of NAT holds F . n = A /\ (great_eq_dom f,(R_EAL (r + (1 / (n + 1))))) ) holds
A /\ (great_dom f,(R_EAL r)) = union (rng F)

let r be Real; :: thesis: ( ( for n being Element of NAT holds F . n = A /\ (great_eq_dom f,(R_EAL (r + (1 / (n + 1))))) ) implies A /\ (great_dom f,(R_EAL r)) = union (rng F) )
assume A1: for n being Element of NAT holds F . n = A /\ (great_eq_dom f,(R_EAL (r + (1 / (n + 1))))) ; :: thesis: A /\ (great_dom f,(R_EAL r)) = union (rng F)
A2: A /\ (great_dom f,(R_EAL r)) c= union (rng F)
proof
for x being set st x in A /\ (great_dom f,(R_EAL r)) holds
x in union (rng F)
proof
let x be set ; :: thesis: ( x in A /\ (great_dom f,(R_EAL r)) implies x in union (rng F) )
assume A3: x in A /\ (great_dom f,(R_EAL r)) ; :: thesis: x in union (rng F)
then A4: ( x in A & x in great_dom f,(R_EAL r) ) by XBOOLE_0:def 4;
ex Y being set st
( x in Y & Y in rng F )
proof
reconsider x = x as Element of X by A3;
A5: x in dom f by A4, Def14;
A6: R_EAL r < f . x by A4, Def14;
ex m being Element of NAT st R_EAL (r + (1 / (m + 1))) <= f . x
proof
per cases ( f . x = +infty or not f . x = +infty ) ;
suppose A7: f . x = +infty ; :: thesis: ex m being Element of NAT st R_EAL (r + (1 / (m + 1))) <= f . x
take 1 ; :: thesis: R_EAL (r + (1 / (1 + 1))) <= f . x
thus R_EAL (r + (1 / (1 + 1))) <= f . x by A7, XXREAL_0:4; :: thesis: verum
end;
suppose not f . x = +infty ; :: thesis: ex m being Element of NAT st R_EAL (r + (1 / (m + 1))) <= f . x
then not +infty <= f . x by XXREAL_0:4;
then reconsider y1 = f . x as Real by A6, XXREAL_0:48;
consider m being Element of NAT such that
A8: 1 / (m + 1) < y1 - r by A6, Th13;
take m ; :: thesis: R_EAL (r + (1 / (m + 1))) <= f . x
thus R_EAL (r + (1 / (m + 1))) <= f . x by A8, XREAL_1:22; :: thesis: verum
end;
end;
end;
then consider m being Element of NAT such that
A9: R_EAL (r + (1 / (m + 1))) <= f . x ;
x in great_eq_dom f,(R_EAL (r + (1 / (m + 1)))) by A5, A9, Def15;
then A10: x in A /\ (great_eq_dom f,(R_EAL (r + (1 / (m + 1))))) by A4, XBOOLE_0:def 4;
m in NAT ;
then A11: m in dom F by FUNCT_2:def 1;
take F . m ; :: thesis: ( x in F . m & F . m in rng F )
thus ( x in F . m & F . m in rng F ) by A1, A10, A11, FUNCT_1:def 5; :: thesis: verum
end;
hence x in union (rng F) by TARSKI:def 4; :: thesis: verum
end;
hence A /\ (great_dom f,(R_EAL r)) c= union (rng F) by TARSKI:def 3; :: thesis: verum
end;
union (rng F) c= A /\ (great_dom f,(R_EAL r))
proof
for x being set st x in union (rng F) holds
x in A /\ (great_dom f,(R_EAL r))
proof
let x be set ; :: thesis: ( x in union (rng F) implies x in A /\ (great_dom f,(R_EAL r)) )
assume x in union (rng F) ; :: thesis: x in A /\ (great_dom f,(R_EAL r))
then consider Y being set such that
A12: ( x in Y & Y in rng F ) by TARSKI:def 4;
consider m being Element of NAT such that
A13: ( m in dom F & F . m = Y ) by A12, PARTFUN1:26;
x in A /\ (great_eq_dom f,(R_EAL (r + (1 / (m + 1))))) by A1, A12, A13;
then A14: ( x in A & x in great_eq_dom f,(R_EAL (r + (1 / (m + 1)))) ) by XBOOLE_0:def 4;
then A15: x in dom f by Def15;
A16: R_EAL (r + (1 / (m + 1))) <= f . x by A14, Def15;
reconsider x = x as Element of X by A12;
R_EAL r < f . x
proof
now
per cases ( f . x = +infty or not f . x = +infty ) ;
suppose not f . x = +infty ; :: thesis: R_EAL r < f . x
1 / (m + 1) > 0 by XREAL_1:141;
then r < r + (1 / (m + 1)) by XREAL_1:31;
hence R_EAL r < f . x by A16, XXREAL_0:2; :: thesis: verum
end;
end;
end;
hence R_EAL r < f . x ; :: thesis: verum
end;
then x in great_dom f,(R_EAL r) by A15, Def14;
hence x in A /\ (great_dom f,(R_EAL r)) by A14, XBOOLE_0:def 4; :: thesis: verum
end;
hence union (rng F) c= A /\ (great_dom f,(R_EAL r)) by TARSKI:def 3; :: thesis: verum
end;
hence A /\ (great_dom f,(R_EAL r)) = union (rng F) by A2, XBOOLE_0:def 10; :: thesis: verum