let x0 be Real; for f being PartFunc of REAL,REAL st x0 in dom f holds
( ( f is_upper_semicontinuous_in x0 & f is_lower_semicontinuous_in x0 ) iff f is_continuous_in x0 )
let f be PartFunc of REAL,REAL; ( x0 in dom f implies ( ( f is_upper_semicontinuous_in x0 & f is_lower_semicontinuous_in x0 ) iff f is_continuous_in x0 ) )
assume A1:
x0 in dom f
; ( ( f is_upper_semicontinuous_in x0 & f is_lower_semicontinuous_in x0 ) iff f is_continuous_in x0 )
A2:
( f is_continuous_in x0 implies ( f is_upper_semicontinuous_in x0 & f is_lower_semicontinuous_in x0 ) )
( f is_upper_semicontinuous_in x0 & f is_lower_semicontinuous_in x0 implies f is_continuous_in x0 )
proof
assume that A11:
f is_upper_semicontinuous_in x0
and A12:
f is_lower_semicontinuous_in x0
;
f is_continuous_in x0
for
r being
Real st
0 < r holds
ex
s being
Real st
(
0 < s & ( for
x being
Real st
x in dom f &
|.(x - x0).| < s holds
|.((f . x) - (f . x0)).| < r ) )
proof
let r be
Real;
( 0 < r implies ex s being Real st
( 0 < s & ( for x being Real st x in dom f & |.(x - x0).| < s holds
|.((f . x) - (f . x0)).| < r ) ) )
assume A13:
0 < r
;
ex s being Real st
( 0 < s & ( for x being Real st x in dom f & |.(x - x0).| < s holds
|.((f . x) - (f . x0)).| < r ) )
consider s1 being
Real such that A14:
0 < s1
and A15:
for
x being
Real st
x in dom f &
|.(x - x0).| < s1 holds
(f . x) - (f . x0) < r
by A12, A13;
consider s2 being
Real such that A16:
0 < s2
and A17:
for
x being
Real st
x in dom f &
|.(x - x0).| < s2 holds
(f . x0) - (f . x) < r
by A11, A13;
set s =
min (
s1,
s2);
A18:
for
x being
Real st
x in dom f &
|.(x - x0).| < min (
s1,
s2) holds
|.((f . x) - (f . x0)).| < r
proof
let x be
Real;
( x in dom f & |.(x - x0).| < min (s1,s2) implies |.((f . x) - (f . x0)).| < r )
assume that A19:
x in dom f
and A20:
|.(x - x0).| < min (
s1,
s2)
;
|.((f . x) - (f . x0)).| < r
min (
s1,
s2)
<= s2
by XXREAL_0:17;
then
|.(x - x0).| < s2
by A20, XXREAL_0:2;
then A21:
(f . x0) - (f . x) < r
by A17, A19;
min (
s1,
s2)
<= s1
by XXREAL_0:17;
then
|.(x - x0).| < s1
by A20, XXREAL_0:2;
then A22:
(f . x) - (f . x0) < r
by A15, A19;
A23:
|.((f . x) - (f . x0)).| <> r
proof
assume A24:
|.((f . x) - (f . x0)).| = r
;
contradiction
hence
contradiction
;
verum
end;
- ((f . x0) - (f . x)) > - r
by A21, XREAL_1:24;
then
|.((f . x) - (f . x0)).| <= r
by A22, ABSVALUE:5;
hence
|.((f . x) - (f . x0)).| < r
by A23, XXREAL_0:1;
verum
end;
take
min (
s1,
s2)
;
( 0 < min (s1,s2) & ( for x being Real st x in dom f & |.(x - x0).| < min (s1,s2) holds
|.((f . x) - (f . x0)).| < r ) )
min (
s1,
s2)
> 0
hence
(
0 < min (
s1,
s2) & ( for
x being
Real st
x in dom f &
|.(x - x0).| < min (
s1,
s2) holds
|.((f . x) - (f . x0)).| < r ) )
by A18;
verum
end;
hence
f is_continuous_in x0
by FCONT_1:3;
verum
end;
hence
( ( f is_upper_semicontinuous_in x0 & f is_lower_semicontinuous_in x0 ) iff f is_continuous_in x0 )
by A2; verum