let S, T be RealNormSpace; :: thesis: for f being PartFunc of S,T
for x0 being Point of S holds
( f is_continuous_in x0 iff ( x0 in dom f & ( for N1 being Neighbourhood of f /. x0 ex N being Neighbourhood of x0 st f .: N c= N1 ) ) )

let f be PartFunc of S,T; :: thesis: for x0 being Point of S holds
( f is_continuous_in x0 iff ( x0 in dom f & ( for N1 being Neighbourhood of f /. x0 ex N being Neighbourhood of x0 st f .: N c= N1 ) ) )

let x0 be Point of S; :: thesis: ( f is_continuous_in x0 iff ( x0 in dom f & ( for N1 being Neighbourhood of f /. x0 ex N being Neighbourhood of x0 st f .: N c= N1 ) ) )
thus ( f is_continuous_in x0 implies ( x0 in dom f & ( for N1 being Neighbourhood of f /. x0 ex N being Neighbourhood of x0 st f .: N c= N1 ) ) ) :: thesis: ( x0 in dom f & ( for N1 being Neighbourhood of f /. x0 ex N being Neighbourhood of x0 st f .: N c= N1 ) implies f is_continuous_in x0 )
proof
assume A1: f is_continuous_in x0 ; :: thesis: ( x0 in dom f & ( for N1 being Neighbourhood of f /. x0 ex N being Neighbourhood of x0 st f .: N c= N1 ) )
hence x0 in dom f ; :: thesis: for N1 being Neighbourhood of f /. x0 ex N being Neighbourhood of x0 st f .: N c= N1
let N1 be Neighbourhood of f /. x0; :: thesis: ex N being Neighbourhood of x0 st f .: N c= N1
consider N being Neighbourhood of x0 such that
A2: for x1 being Point of S st x1 in dom f & x1 in N holds
f /. x1 in N1 by A1, Th9;
take N ; :: thesis: f .: N c= N1
now :: thesis: for r being object st r in f .: N holds
r in N1
let r be object ; :: thesis: ( r in f .: N implies r in N1 )
assume r in f .: N ; :: thesis: r in N1
then consider x being Point of S such that
A3: x in dom f and
A4: x in N and
A5: r = f . x by PARTFUN2:59;
r = f /. x by A3, A5, PARTFUN1:def 6;
hence r in N1 by A2, A3, A4; :: thesis: verum
end;
hence f .: N c= N1 ; :: thesis: verum
end;
assume that
A6: x0 in dom f and
A7: for N1 being Neighbourhood of f /. x0 ex N being Neighbourhood of x0 st f .: N c= N1 ; :: thesis: f is_continuous_in x0
now :: thesis: for N1 being Neighbourhood of f /. x0 ex N being Neighbourhood of x0 st
for x1 being Point of S st x1 in dom f & x1 in N holds
f /. x1 in N1
let N1 be Neighbourhood of f /. x0; :: thesis: ex N being Neighbourhood of x0 st
for x1 being Point of S st x1 in dom f & x1 in N holds
f /. x1 in N1

consider N being Neighbourhood of x0 such that
A8: f .: N c= N1 by A7;
take N = N; :: thesis: for x1 being Point of S st x1 in dom f & x1 in N holds
f /. x1 in N1

let x1 be Point of S; :: thesis: ( x1 in dom f & x1 in N implies f /. x1 in N1 )
assume that
A9: x1 in dom f and
A10: x1 in N ; :: thesis: f /. x1 in N1
f . x1 in f .: N by A9, A10, FUNCT_1:def 6;
then f . x1 in N1 by A8;
hence f /. x1 in N1 by A9, PARTFUN1:def 6; :: thesis: verum
end;
hence f is_continuous_in x0 by A6, Th9; :: thesis: verum