let A be non empty closed_interval Subset of REAL; for f being Function of A,REAL st f | A is bounded & f is integrable holds
ex a being Real st
( lower_bound (rng f) <= a & a <= upper_bound (rng f) & integral f = a * (vol A) )
let f be Function of A,REAL; ( f | A is bounded & f is integrable implies ex a being Real st
( lower_bound (rng f) <= a & a <= upper_bound (rng f) & integral f = a * (vol A) ) )
consider g being Function of A,REAL such that
A1:
rng g = {(lower_bound (rng f))}
and
A2:
g | A is bounded
by Th5;
consider h being Function of A,REAL such that
A3:
rng h = {(upper_bound (rng f))}
and
A4:
h | A is bounded
by Th5;
A5:
integral g = (lower_bound (rng f)) * (vol A)
by A1, Th4;
assume A6:
f | A is bounded
; ( not f is integrable or ex a being Real st
( lower_bound (rng f) <= a & a <= upper_bound (rng f) & integral f = a * (vol A) ) )
A7:
for x being Real st x in dom f holds
( lower_bound (rng f) <= f . x & f . x <= upper_bound (rng f) )
A10:
for x being Real st x in A holds
f . x <= h . x
A13:
for x being Real st x in A holds
g . x <= f . x
assume A16:
f is integrable
; ex a being Real st
( lower_bound (rng f) <= a & a <= upper_bound (rng f) & integral f = a * (vol A) )
A17:
integral h = (upper_bound (rng f)) * (vol A)
by A3, Th4;
A18:
h is integrable
by A3, Th4;
A19:
g is integrable
by A1, Th4;
now ex a being Real st
( lower_bound (rng f) <= a & a <= upper_bound (rng f) & integral f = a * (vol A) )per cases
( vol A <> 0 or vol A = 0 )
;
suppose A20:
vol A <> 0
;
ex a being Real st
( lower_bound (rng f) <= a & a <= upper_bound (rng f) & integral f = a * (vol A) )reconsider a =
(integral f) / (vol A) as
Real ;
A21:
integral f = a * (vol A)
by A20, XCMPLX_1:87;
A22:
vol A >= 0
by INTEGRA1:9;
then A23:
(integral f) / (vol A) <= upper_bound (rng f)
by A6, A16, A4, A18, A17, A10, A20, INTEGRA2:34, XREAL_1:79;
lower_bound (rng f) <= (integral f) / (vol A)
by A6, A16, A2, A19, A5, A13, A20, A22, INTEGRA2:34, XREAL_1:77;
hence
ex
a being
Real st
(
lower_bound (rng f) <= a &
a <= upper_bound (rng f) &
integral f = a * (vol A) )
by A23, A21;
verum end; end; end;
hence
ex a being Real st
( lower_bound (rng f) <= a & a <= upper_bound (rng f) & integral f = a * (vol A) )
; verum