let m be Nat; :: thesis: for f being Function of R^1,() holds
( f is continuous iff for p being Point of R^1
for r being positive Real ex s being positive Real st f .: ].(p - s),(p + s).[ c= Ball ((f . p),r) )

let f be Function of R^1,(); :: thesis: ( f is continuous iff for p being Point of R^1
for r being positive Real ex s being positive Real st f .: ].(p - s),(p + s).[ c= Ball ((f . p),r) )

A1: TopStruct(# the U1 of (), the topology of () #) = TopSpaceMetr () by EUCLID:def 8;
then reconsider f1 = f as Function of R^1,() ;
hereby :: thesis: ( ( for p being Point of R^1
for r being positive Real ex s being positive Real st f .: ].(p - s),(p + s).[ c= Ball ((f . p),r) ) implies f is continuous )
assume A2: f is continuous ; :: thesis: for p being Point of R^1
for r being positive Real ex s being positive Real st f .: ].(p - s),(p + s).[ c= Ball ((f . p),r)

let p be Point of R^1; :: thesis: for r being positive Real ex s being positive Real st f .: ].(p - s),(p + s).[ c= Ball ((f . p),r)
let r be positive Real; :: thesis: ex s being positive Real st f .: ].(p - s),(p + s).[ c= Ball ((f . p),r)
reconsider p1 = p as Point of RealSpace ;
reconsider q1 = f . p as Point of () by EUCLID:67;
f1 is continuous by ;
then consider s being positive Real such that
A3: f1 .: (Ball (p1,s)) c= Ball (q1,r) by Th17;
take s = s; :: thesis: f .: ].(p - s),(p + s).[ c= Ball ((f . p),r)
( Ball (p1,s) = ].(p - s),(p + s).[ & Ball (q1,r) = Ball ((f . p),r) ) by ;
hence f .: ].(p - s),(p + s).[ c= Ball ((f . p),r) by A3; :: thesis: verum
end;
assume A4: for p being Point of R^1
for r being positive Real ex s being positive Real st f .: ].(p - s),(p + s).[ c= Ball ((f . p),r) ; :: thesis: f is continuous
for p being Point of RealSpace
for q being Point of ()
for r being positive Real st q = f . p holds
ex s being positive Real st f .: (Ball (p,s)) c= Ball (q,r)
proof
let p be Point of RealSpace; :: thesis: for q being Point of ()
for r being positive Real st q = f . p holds
ex s being positive Real st f .: (Ball (p,s)) c= Ball (q,r)

let q be Point of (); :: thesis: for r being positive Real st q = f . p holds
ex s being positive Real st f .: (Ball (p,s)) c= Ball (q,r)

let r be positive Real; :: thesis: ( q = f . p implies ex s being positive Real st f .: (Ball (p,s)) c= Ball (q,r) )
assume A5: q = f . p ; :: thesis: ex s being positive Real st f .: (Ball (p,s)) c= Ball (q,r)
reconsider p1 = p as Point of R^1 ;
consider s being positive Real such that
A6: f .: ].(p - s),(p + s).[ c= Ball ((f . p1),r) by A4;
take s ; :: thesis: f .: (Ball (p,s)) c= Ball (q,r)
( ].(p - s),(p + s).[ = Ball (p,s) & Ball ((f . p1),r) = Ball (q,r) ) by ;
hence f .: (Ball (p,s)) c= Ball (q,r) by A6; :: thesis: verum
end;
then f1 is continuous by ;
hence f is continuous by ; :: thesis: verum