let A be Subset of REAL?; :: according to FRECHET:def 6 :: thesis: for x being Point of REAL? st x in Cl A holds
ex S being sequence of REAL? st
( rng S c= A & x in Lim S )

let x be Point of REAL?; :: thesis: ( x in Cl A implies ex S being sequence of REAL? st
( rng S c= A & x in Lim S ) )

assume A1: x in Cl A ; :: thesis: ex S being sequence of REAL? st
( rng S c= A & x in Lim S )

x in the carrier of REAL? ;
then x in (REAL \ NAT) \/ {REAL} by Def8;
then A2: ( x in REAL \ NAT or x in {REAL} ) by XBOOLE_0:def 3;
per cases ( x in REAL \ NAT or ( x = REAL & x in A ) or ( x = REAL & not x in A ) ) by A2, TARSKI:def 1;
suppose A3: x in REAL \ NAT ; :: thesis: ex S being sequence of REAL? st
( rng S c= A & x in Lim S )

then A4: x in REAL ;
A c= the carrier of REAL? ;
then A5: A c= (REAL \ NAT) \/ {REAL} by Def8;
A \ {REAL} c= REAL
proof
let a be set ; :: according to TARSKI:def 3 :: thesis: ( not a in A \ {REAL} or a in REAL )
assume A6: a in A \ {REAL} ; :: thesis: a in REAL
then a in A by XBOOLE_0:def 5;
then ( a in REAL \ NAT or a in {REAL} ) by A5, XBOOLE_0:def 3;
hence a in REAL by A6, XBOOLE_0:def 5; :: thesis: verum
end;
then reconsider A9 = A \ {REAL} as Subset of R^1 by TOPMETR:17;
reconsider x9 = x as Point of R^1 by A3, TOPMETR:17;
reconsider A9 = A9 as Subset of R^1 ;
for B9 being Subset of R^1 st B9 is open & x9 in B9 holds
A9 meets B9
proof
reconsider C = NAT as Subset of R^1 by TOPMETR:17;
let B9 be Subset of R^1; :: thesis: ( B9 is open & x9 in B9 implies A9 meets B9 )
reconsider B1 = B9 as Subset of R^1 ;
reconsider C = C as Subset of R^1 ;
A7: not x9 in NAT by A3, XBOOLE_0:def 5;
B9 \ NAT misses NAT by XBOOLE_1:79;
then A8: (B9 \ NAT) /\ NAT = {} by XBOOLE_0:def 7;
then reconsider D = B1 \ C as Subset of REAL? by Th32;
assume B9 is open ; :: thesis: ( not x9 in B9 or A9 meets B9 )
then B1 \ C is open by Th4, Th10;
then A9: D is open by A8, Th33;
reconsider D = D as Subset of REAL? ;
assume x9 in B9 ; :: thesis: A9 meets B9
then x9 in B9 \ NAT by A7, XBOOLE_0:def 5;
then A meets D by A1, A9, PRE_TOPC:def 7;
then A10: A /\ D <> {} by XBOOLE_0:def 7;
A9 /\ B9 <> {} hence A9 meets B9 by XBOOLE_0:def 7; :: thesis: verum
end;
then x9 in Cl A9 by PRE_TOPC:def 7;
then consider S9 being sequence of R^1 such that
A15: rng S9 c= A9 and
A16: x9 in Lim S9 by Def6;
A17: rng S9 c= A
proof
let a be set ; :: according to TARSKI:def 3 :: thesis: ( not a in rng S9 or a in A )
assume a in rng S9 ; :: thesis: a in A
hence a in A by A15, XBOOLE_0:def 5; :: thesis: verum
end;
then reconsider S = S9 as sequence of REAL? by Th2, XBOOLE_1:1;
take S ; :: thesis: ( rng S c= A & x in Lim S )
thus rng S c= A by A17; :: thesis: x in Lim S
A18: S9 is_convergent_to x9 by A16, Def5;
S is_convergent_to x
proof
reconsider C = {REAL} as Subset of REAL? by Lm3;
let V be Subset of REAL?; :: according to FRECHET:def 3 :: thesis: ( V is open & x in V implies ex n being Element of NAT st
for m being Element of NAT st n <= m holds
S . m in V )

assume that
A19: V is open and
A20: x in V ; :: thesis: ex n being Element of NAT st
for m being Element of NAT st n <= m holds
S . m in V

reconsider C = C as Subset of REAL? ;
REAL in {REAL} by TARSKI:def 1;
then A21: not REAL in V \ {REAL} by XBOOLE_0:def 5;
then reconsider V9 = V \ C as Subset of R^1 by Th32;
V \ C is open by A19, Th4, Th34;
then A22: V9 is open by A21, Th33;
not x in C then x in V \ C by A20, XBOOLE_0:def 5;
then consider n being Element of NAT such that
A23: for m being Element of NAT st n <= m holds
S9 . m in V9 by A18, A22, Def3;
take n ; :: thesis: for m being Element of NAT st n <= m holds
S . m in V

thus for m being Element of NAT st n <= m holds
S . m in V :: thesis: verum
proof
let m be Element of NAT ; :: thesis: ( n <= m implies S . m in V )
assume n <= m ; :: thesis: S . m in V
then S9 . m in V9 by A23;
hence S . m in V by XBOOLE_0:def 5; :: thesis: verum
end;
end;
hence x in Lim S by Def5; :: thesis: verum
end;
suppose A24: ( x = REAL & x in A ) ; :: thesis: ex S being sequence of REAL? st
( rng S c= A & x in Lim S )

reconsider S = NAT --> x as sequence of REAL? ;
take S ; :: thesis: ( rng S c= A & x in Lim S )
{x} c= A by A24, ZFMISC_1:31;
hence rng S c= A by FUNCOP_1:8; :: thesis: x in Lim S
S is_convergent_to x by Th23;
hence x in Lim S by Def5; :: thesis: verum
end;
suppose A25: ( x = REAL & not x in A ) ; :: thesis: ex S being sequence of REAL? st
( rng S c= A & x in Lim S )

then reconsider A9 = A as Subset of R^1 by Th32;
ex k being Point of R^1 st
( k in NAT & ex S9 being sequence of R^1 st
( rng S9 c= A9 & S9 is_convergent_to k ) )
proof
defpred S1[ set , set ] means ( $1 in $2 & $2 in the topology of R^1 & $2 /\ A9 = {} );
assume A26: for k being Point of R^1 holds
( not k in NAT or for S9 being sequence of R^1 holds
( not rng S9 c= A9 or not S9 is_convergent_to k ) ) ; :: thesis: contradiction
A27: for k being set st k in NAT holds
ex U1 being set st S1[k,U1]
proof
given k being set such that A28: k in NAT and
A29: for U1 being set st k in U1 & U1 in the topology of R^1 holds
not U1 /\ A9 = {} ; :: thesis: contradiction
reconsider k = k as Point of R^1 by A28, TOPMETR:17;
reconsider k99 = k as Point of (TopSpaceMetr RealSpace) ;
reconsider k9 = k99 as Point of RealSpace by TOPMETR:12;
set Bs = Balls k99;
consider h being Function of NAT,(Balls k99) such that
A30: for n being Element of NAT holds h . n = Ball (k9,(1 / (n + 1))) by Th11;
defpred S2[ set , set ] means $2 in (h . $1) /\ A9;
A31: for n being set st n in NAT holds
ex z being set st
( z in the carrier of R^1 & S2[n,z] )
proof
let n be set ; :: thesis: ( n in NAT implies ex z being set st
( z in the carrier of R^1 & S2[n,z] ) )

assume n in NAT ; :: thesis: ex z being set st
( z in the carrier of R^1 & S2[n,z] )

then reconsider n = n as Element of NAT ;
A32: h . n in Balls k99 ;
then reconsider H = h . n as Subset of R^1 ;
take z = the Element of H /\ A9; :: thesis: ( z in the carrier of R^1 & S2[n,z] )
Balls k99 c= the topology of R^1 by TOPS_2:64;
then A33: H /\ A9 <> {} by A29, A32, YELLOW_8:12;
then z in H by XBOOLE_0:def 4;
hence ( z in the carrier of R^1 & S2[n,z] ) by A33; :: thesis: verum
end;
consider S9 being Function such that
A34: ( dom S9 = NAT & rng S9 c= the carrier of R^1 ) and
A35: for n being set st n in NAT holds
S2[n,S9 . n] from FUNCT_1:sch 5(A31);
reconsider S9 = S9 as Function of NAT, the carrier of R^1 by A34, FUNCT_2:2;
A36: S9 is_convergent_to k
proof
let U1 be Subset of R^1; :: according to FRECHET:def 3 :: thesis: ( U1 is open & k in U1 implies ex n being Element of NAT st
for m being Element of NAT st n <= m holds
S9 . m in U1 )

assume ( U1 is open & k in U1 ) ; :: thesis: ex n being Element of NAT st
for m being Element of NAT st n <= m holds
S9 . m in U1

then consider r being real number such that
A37: r > 0 and
A38: Ball (k9,r) c= U1 by TOPMETR:15;
reconsider r = r as Real by XREAL_0:def 1;
consider n being Element of NAT such that
A39: 1 / n < r and
A40: n > 0 by A37, Lm1;
take n ; :: thesis: for m being Element of NAT st n <= m holds
S9 . m in U1

thus for m being Element of NAT st n <= m holds
S9 . m in U1 :: thesis: verum
proof
let m be Element of NAT ; :: thesis: ( n <= m implies S9 . m in U1 )
S9 . m in (h . m) /\ A9 by A35;
then A41: S9 . m in h . m by XBOOLE_0:def 4;
assume n <= m ; :: thesis: S9 . m in U1
then n < m + 1 by NAT_1:13;
then 1 / (m + 1) < 1 / n by A40, XREAL_1:88;
then Ball (k9,(1 / (m + 1))) c= Ball (k9,r) by A39, PCOMPS_1:1, XXREAL_0:2;
then A42: Ball (k9,(1 / (m + 1))) c= U1 by A38, XBOOLE_1:1;
h . m = Ball (k9,(1 / (m + 1))) by A30;
hence S9 . m in U1 by A42, A41; :: thesis: verum
end;
end;
rng S9 c= A9
proof
let z be set ; :: according to TARSKI:def 3 :: thesis: ( not z in rng S9 or z in A9 )
assume z in rng S9 ; :: thesis: z in A9
then consider z9 being set such that
A43: z9 in dom S9 and
A44: z = S9 . z9 by FUNCT_1:def 3;
S9 . z9 in (h . z9) /\ A9 by A35, A43;
hence z in A9 by A44, XBOOLE_0:def 4; :: thesis: verum
end;
hence contradiction by A26, A28, A36; :: thesis: verum
end;
consider g being Function such that
A45: ( dom g = NAT & ( for k being set st k in NAT holds
S1[k,g . k] ) ) from CLASSES1:sch 1(A27);
rng g c= bool the carrier of R^1
proof
let z be set ; :: according to TARSKI:def 3 :: thesis: ( not z in rng g or z in bool the carrier of R^1 )
assume z in rng g ; :: thesis: z in bool the carrier of R^1
then consider k being set such that
A46: k in dom g and
A47: z = g . k by FUNCT_1:def 3;
g . k in the topology of R^1 by A45, A46;
hence z in bool the carrier of R^1 by A47; :: thesis: verum
end;
then reconsider F = rng g as Subset-Family of R^1 ;
F is open
proof
let O be Subset of R^1; :: according to TOPS_2:def 1 :: thesis: ( not O in F or O is open )
assume O in F ; :: thesis: O is open
then consider k being set such that
A48: k in dom g and
A49: O = g . k by FUNCT_1:def 3;
g . k in the topology of R^1 by A45, A48;
hence O is open by A49, PRE_TOPC:def 2; :: thesis: verum
end;
then A50: union F is open by TOPS_2:19;
(union F) \ NAT c= REAL \ NAT by TOPMETR:17, XBOOLE_1:33;
then ((union F) \ NAT) \/ {REAL} c= (REAL \ NAT) \/ {REAL} by XBOOLE_1:9;
then reconsider B = ((union F) \ NAT) \/ {REAL} as Subset of REAL? by Def8;
reconsider B = B as Subset of REAL? ;
A51: B /\ A = {}
proof
set z = the Element of B /\ A;
assume A52: B /\ A <> {} ; :: thesis: contradiction
then A53: the Element of B /\ A in B by XBOOLE_0:def 4;
A54: the Element of B /\ A in A by A52, XBOOLE_0:def 4;
per cases ( the Element of B /\ A in (union F) \ NAT or the Element of B /\ A in {REAL} ) by A53, XBOOLE_0:def 3;
suppose the Element of B /\ A in (union F) \ NAT ; :: thesis: contradiction
then the Element of B /\ A in union F by XBOOLE_0:def 5;
then consider C being set such that
A55: the Element of B /\ A in C and
A56: C in F by TARSKI:def 4;
consider l being set such that
A57: l in dom g and
A58: C = g . l by A56, FUNCT_1:def 3;
(g . l) /\ A = {} by A45, A57;
hence contradiction by A54, A55, A58, XBOOLE_0:def 4; :: thesis: verum
end;
end;
end;
NAT c= union F
proof
let k be set ; :: according to TARSKI:def 3 :: thesis: ( not k in NAT or k in union F )
assume k in NAT ; :: thesis: k in union F
then ( k in g . k & g . k in rng g ) by A45, FUNCT_1:def 3;
hence k in union F by TARSKI:def 4; :: thesis: verum
end;
then ( B is open & REAL in B ) by A50, Th31;
then A meets B by A1, A25, PRE_TOPC:def 7;
hence contradiction by A51, XBOOLE_0:def 7; :: thesis: verum
end;
then consider k being Point of R^1 such that
A59: k in NAT and
A60: ex S9 being sequence of R^1 st
( rng S9 c= A9 & S9 is_convergent_to k ) ;
consider S9 being sequence of R^1 such that
A61: rng S9 c= A9 and
A62: S9 is_convergent_to k by A60;
reconsider S = S9 as sequence of REAL? by A61, Th2, XBOOLE_1:1;
take S ; :: thesis: ( rng S c= A & x in Lim S )
thus rng S c= A by A61; :: thesis: x in Lim S
S is_convergent_to x
proof
let U1 be Subset of REAL?; :: according to FRECHET:def 3 :: thesis: ( U1 is open & x in U1 implies ex n being Element of NAT st
for m being Element of NAT st n <= m holds
S . m in U1 )

assume ( U1 is open & x in U1 ) ; :: thesis: ex n being Element of NAT st
for m being Element of NAT st n <= m holds
S . m in U1

then consider O being Subset of R^1 such that
A63: ( O is open & NAT c= O ) and
A64: U1 = (O \ NAT) \/ {REAL} by A25, Th31;
consider n being Element of NAT such that
A65: for m being Element of NAT st n <= m holds
S9 . m in O by A59, A62, A63, Def3;
take n ; :: thesis: for m being Element of NAT st n <= m holds
S . m in U1

thus for m being Element of NAT st n <= m holds
S . m in U1 :: thesis: verum
end;
hence x in Lim S by Def5; :: thesis: verum
end;
end;