let x0 be real number ; :: thesis: for S being RealNormSpace
for f being PartFunc of REAL, the carrier of S holds
( f is_continuous_in x0 iff ( x0 in dom f & ( for r being Real st 0 < r holds
ex s being real number st
( 0 < s & ( for x1 being real number st x1 in dom f & abs (x1 - x0) < s holds
||.((f /. x1) - (f /. x0)).|| < r ) ) ) ) )

let S be RealNormSpace; :: thesis: for f being PartFunc of REAL, the carrier of S holds
( f is_continuous_in x0 iff ( x0 in dom f & ( for r being Real st 0 < r holds
ex s being real number st
( 0 < s & ( for x1 being real number st x1 in dom f & abs (x1 - x0) < s holds
||.((f /. x1) - (f /. x0)).|| < r ) ) ) ) )

let f be PartFunc of REAL, the carrier of S; :: thesis: ( f is_continuous_in x0 iff ( x0 in dom f & ( for r being Real st 0 < r holds
ex s being real number st
( 0 < s & ( for x1 being real number st x1 in dom f & abs (x1 - x0) < s holds
||.((f /. x1) - (f /. x0)).|| < r ) ) ) ) )

thus ( f is_continuous_in x0 implies ( x0 in dom f & ( for r being Real st 0 < r holds
ex s being real number st
( 0 < s & ( for x1 being real number st x1 in dom f & abs (x1 - x0) < s holds
||.((f /. x1) - (f /. x0)).|| < r ) ) ) ) ) :: thesis: ( x0 in dom f & ( for r being Real st 0 < r holds
ex s being real number st
( 0 < s & ( for x1 being real number st x1 in dom f & abs (x1 - x0) < s holds
||.((f /. x1) - (f /. x0)).|| < r ) ) ) implies f is_continuous_in x0 )
proof
assume A1: f is_continuous_in x0 ; :: thesis: ( x0 in dom f & ( for r being Real st 0 < r holds
ex s being real number st
( 0 < s & ( for x1 being real number st x1 in dom f & abs (x1 - x0) < s holds
||.((f /. x1) - (f /. x0)).|| < r ) ) ) )

hence x0 in dom f by Def1; :: thesis: for r being Real st 0 < r holds
ex s being real number st
( 0 < s & ( for x1 being real number st x1 in dom f & abs (x1 - x0) < s holds
||.((f /. x1) - (f /. x0)).|| < r ) )

given r being Real such that A2: 0 < r and
A3: for s being real number holds
( not 0 < s or ex x1 being real number st
( x1 in dom f & abs (x1 - x0) < s & not ||.((f /. x1) - (f /. x0)).|| < r ) ) ; :: thesis: contradiction
defpred S1[ Element of NAT , real number ] means ( $2 in dom f & abs ($2 - x0) < 1 / ($1 + 1) & not ||.((f /. $2) - (f /. x0)).|| < r );
A4: for n being Element of NAT ex p being Real st S1[n,p]
proof
let n be Element of NAT ; :: thesis: ex p being Real st S1[n,p]
0 < (n + 1) " ;
then 0 < 1 / (n + 1) by XCMPLX_1:215;
then consider x1 being real number such that
A5: ( x1 in dom f & abs (x1 - x0) < 1 / (n + 1) & not ||.((f /. x1) - (f /. x0)).|| < r ) by A3;
take x1 ; :: thesis: ( x1 is Real & S1[n,x1] )
thus ( x1 is Real & S1[n,x1] ) by A5; :: thesis: verum
end;
consider s1 being Real_Sequence such that
A6: for n being Element of NAT holds S1[n,s1 . n] from FUNCT_2:sch 3(A4);
now
let x be set ; :: thesis: ( x in rng s1 implies x in dom f )
assume x in rng s1 ; :: thesis: x in dom f
then ex n being Element of NAT st x = s1 . n by FUNCT_2:113;
hence x in dom f by A6; :: thesis: verum
end;
then A7: rng s1 c= dom f by TARSKI:def 3;
A8: now
let s be real number ; :: thesis: ( 0 < s implies ex k being Element of NAT st
for m being Element of NAT st k <= m holds
abs ((s1 . m) - x0) < s )

assume A9: 0 < s ; :: thesis: ex k being Element of NAT st
for m being Element of NAT st k <= m holds
abs ((s1 . m) - x0) < s

consider n being Element of NAT such that
A10: s " < n by SEQ_4:3;
(s ") + 0 < n + 1 by A10, XREAL_1:8;
then 1 / (n + 1) < 1 / (s ") by A9, XREAL_1:76;
then A11: 1 / (n + 1) < s by XCMPLX_1:216;
take k = n; :: thesis: for m being Element of NAT st k <= m holds
abs ((s1 . m) - x0) < s

let m be Element of NAT ; :: thesis: ( k <= m implies abs ((s1 . m) - x0) < s )
assume k <= m ; :: thesis: abs ((s1 . m) - x0) < s
then k + 1 <= m + 1 by XREAL_1:6;
then 1 / (m + 1) <= 1 / (k + 1) by XREAL_1:118;
then 1 / (m + 1) < s by A11, XXREAL_0:2;
hence abs ((s1 . m) - x0) < s by A6, XXREAL_0:2; :: thesis: verum
end;
then A12: s1 is convergent by SEQ_2:def 6;
then lim s1 = x0 by A8, SEQ_2:def 7;
then ( f /* s1 is convergent & f /. x0 = lim (f /* s1) ) by A1, A7, A12, Def1;
then consider n being Element of NAT such that
A13: for m being Element of NAT st n <= m holds
||.(((f /* s1) . m) - (f /. x0)).|| < r by A2, NORMSP_1:def 7;
||.(((f /* s1) . n) - (f /. x0)).|| < r by A13;
then ||.((f /. (s1 . n)) - (f /. x0)).|| < r by A7, FUNCT_2:109;
hence contradiction by A6; :: thesis: verum
end;
assume A14: ( x0 in dom f & ( for r being Real st 0 < r holds
ex s being real number st
( 0 < s & ( for x1 being real number st x1 in dom f & abs (x1 - x0) < s holds
||.((f /. x1) - (f /. x0)).|| < r ) ) ) ) ; :: thesis: f is_continuous_in x0
now
let s1 be Real_Sequence; :: thesis: ( rng s1 c= dom f & s1 is convergent & lim s1 = x0 implies ( f /* s1 is convergent & f /. x0 = lim (f /* s1) ) )
assume that
A15: rng s1 c= dom f and
A16: ( s1 is convergent & lim s1 = x0 ) ; :: thesis: ( f /* s1 is convergent & f /. x0 = lim (f /* s1) )
A17: now
let p be Real; :: thesis: ( 0 < p implies ex k being Element of NAT st
for m being Element of NAT st k <= m holds
||.(((f /* s1) . m) - (f /. x0)).|| < p )

assume 0 < p ; :: thesis: ex k being Element of NAT st
for m being Element of NAT st k <= m holds
||.(((f /* s1) . m) - (f /. x0)).|| < p

then consider s being real number such that
A18: 0 < s and
A19: for x1 being real number st x1 in dom f & abs (x1 - x0) < s holds
||.((f /. x1) - (f /. x0)).|| < p by A14;
consider n being Element of NAT such that
A20: for m being Element of NAT st n <= m holds
abs ((s1 . m) - x0) < s by A16, A18, SEQ_2:def 7;
take k = n; :: thesis: for m being Element of NAT st k <= m holds
||.(((f /* s1) . m) - (f /. x0)).|| < p

let m be Element of NAT ; :: thesis: ( k <= m implies ||.(((f /* s1) . m) - (f /. x0)).|| < p )
assume k <= m ; :: thesis: ||.(((f /* s1) . m) - (f /. x0)).|| < p
then ( s1 . m in rng s1 & abs ((s1 . m) - x0) < s ) by A20, VALUED_0:28;
then ||.((f /. (s1 . m)) - (f /. x0)).|| < p by A15, A19;
hence ||.(((f /* s1) . m) - (f /. x0)).|| < p by A15, FUNCT_2:109; :: thesis: verum
end;
then f /* s1 is convergent by NORMSP_1:def 6;
hence ( f /* s1 is convergent & f /. x0 = lim (f /* s1) ) by A17, NORMSP_1:def 7; :: thesis: verum
end;
hence f is_continuous_in x0 by A14, Def1; :: thesis: verum