let A be closed-interval Subset of REAL ; :: thesis: 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 ; :: thesis: ( 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) ) )
assume A1:
f | A is bounded
; :: thesis: ( 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) ) )
assume A2:
f is integrable
; :: thesis: ex a being Real st
( lower_bound (rng f) <= a & a <= upper_bound (rng f) & integral f = a * (vol A) )
A3:
for x being Real st x in dom f holds
( lower_bound (rng f) <= f . x & f . x <= upper_bound (rng f) )
consider g being Function of A,REAL such that
A6:
( rng g = {(lower_bound (rng f))} & g | A is bounded )
by Th5;
A7:
( g is integrable & integral g = (lower_bound (rng f)) * (vol A) )
by A6, Th4;
consider h being Function of A,REAL such that
A8:
( rng h = {(upper_bound (rng f))} & h | A is bounded )
by Th5;
A9:
( h is integrable & integral h = (upper_bound (rng f)) * (vol A) )
by A8, Th4;
A10:
for x being Real st x in A holds
g . x <= f . x
for x being Real st x in A holds
f . x <= h . x
then A15:
( (lower_bound (rng f)) * (vol A) <= integral f & integral f <= (upper_bound (rng f)) * (vol A) )
by A1, A2, A6, A7, A8, A9, A10, INTEGRA2:34;
hence
ex a being Real st
( lower_bound (rng f) <= a & a <= upper_bound (rng f) & integral f = a * (vol A) )
; :: thesis: verum