let S be non empty TopSpace; :: thesis: for T being non empty MetrSpace
for f being Function of S,(TopSpaceMetr T)
for x being Point of S holds
( f is_continuous_at x iff for e being Real st 0 < e holds
ex H being Subset of S st
( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) ) )

let T be non empty MetrSpace; :: thesis: for f being Function of S,(TopSpaceMetr T)
for x being Point of S holds
( f is_continuous_at x iff for e being Real st 0 < e holds
ex H being Subset of S st
( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) ) )

let f be Function of S,(TopSpaceMetr T); :: thesis: for x being Point of S holds
( f is_continuous_at x iff for e being Real st 0 < e holds
ex H being Subset of S st
( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) ) )

let x be Point of S; :: thesis: ( f is_continuous_at x iff for e being Real st 0 < e holds
ex H being Subset of S st
( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) ) )

hereby :: thesis: ( ( for e being Real st 0 < e holds
ex H being Subset of S st
( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) ) ) implies f is_continuous_at x )
assume A1: f is_continuous_at x ; :: thesis: for e being Real st 0 < e holds
ex H being Subset of S st
( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) )

let e be Real; :: thesis: ( 0 < e implies ex H being Subset of S st
( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) ) )

assume A2: 0 < e ; :: thesis: ex H being Subset of S st
( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) )

reconsider V = Ball ((In ((f . x),T)),e) as Subset of (TopSpaceMetr T) ;
dist ((In ((f . x),T)),(In ((f . x),T))) = 0 by METRIC_1:1;
then In ((f . x),T) in V by METRIC_1:11, A2;
then consider H being Subset of S such that
A3: ( H is open & x in H & f .: H c= V ) by A1, TMAP_1:43, TOPMETR:14;
take H = H; :: thesis: ( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) )

thus H is open by A3; :: thesis: ( x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) )

thus x in H by A3; :: thesis: for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e

let y be Point of S; :: thesis: ( y in H implies dist ((In ((f . x),T)),(In ((f . y),T))) < e )
assume y in H ; :: thesis: dist ((In ((f . x),T)),(In ((f . y),T))) < e
then f . y in f .: H by FUNCT_2:35;
hence dist ((In ((f . x),T)),(In ((f . y),T))) < e by A3, METRIC_1:11; :: thesis: verum
end;
assume A4: for e being Real st 0 < e holds
ex H being Subset of S st
( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < e ) ) ; :: thesis: f is_continuous_at x
for G being Subset of (TopSpaceMetr T) st G is open & f . x in G holds
ex H being Subset of S st
( H is open & x in H & f .: H c= G )
proof
let G be Subset of (TopSpaceMetr T); :: thesis: ( G is open & f . x in G implies ex H being Subset of S st
( H is open & x in H & f .: H c= G ) )

assume ( G is open & f . x in G ) ; :: thesis: ex H being Subset of S st
( H is open & x in H & f .: H c= G )

then consider r being Real such that
A5: ( r > 0 & Ball ((In ((f . x),T)),r) c= G ) by TOPMETR:15;
consider H being Subset of S such that
A6: ( H is open & x in H & ( for y being Point of S st y in H holds
dist ((In ((f . x),T)),(In ((f . y),T))) < r ) ) by A4, A5;
take H ; :: thesis: ( H is open & x in H & f .: H c= G )
thus H is open by A6; :: thesis: ( x in H & f .: H c= G )
thus x in H by A6; :: thesis: f .: H c= G
now :: thesis: for z being object st z in f .: H holds
z in G
let z be object ; :: thesis: ( z in f .: H implies z in G )
assume z in f .: H ; :: thesis: z in G
then consider t being object such that
A7: ( t in dom f & t in H & z = f . t ) by FUNCT_1:def 6;
reconsider t = t as Point of S by A7;
dist ((In ((f . x),T)),(In ((f . t),T))) < r by A7, A6;
hence z in G by A5, A7, METRIC_1:11; :: thesis: verum
end;
hence f .: H c= G ; :: thesis: verum
end;
hence f is_continuous_at x by TMAP_1:43; :: thesis: verum