let X be open Subset of REAL ; :: thesis: for r being real number st r in X holds
ex N being Neighbourhood of r st N c= X
let r be real number ; :: thesis: ( r in X implies ex N being Neighbourhood of r st N c= X )
assume that
A1:
r in X
and
A2:
for N being Neighbourhood of r holds not N c= X
; :: thesis: contradiction
defpred S1[ Element of NAT , real number ] means ( $2 in ].(r - (1 / ($1 + 1))),(r + (1 / ($1 + 1))).[ & $2 in X ` );
A7:
for n being Element of NAT ex s being Real st S1[n,s]
deffunc H1( Element of NAT ) -> Element of REAL = r - (1 / ($1 + 1));
consider s1 being Real_Sequence such that
A8:
for n being Element of NAT holds s1 . n = H1(n)
from SEQ_1:sch 1();
deffunc H2( Element of NAT ) -> Element of REAL = r + (1 / ($1 + 1));
consider s2 being Real_Sequence such that
A9:
for n being Element of NAT holds s2 . n = H2(n)
from SEQ_1:sch 1();
consider s3 being Real_Sequence such that
A10:
for n being Element of NAT holds S1[n,s3 . n]
from FUNCT_2:sch 3(A7);
then A16:
s1 is convergent
by SEQ_2:def 6;
then A17:
lim s1 = r
by A11, SEQ_2:def 7;
then A23:
s2 is convergent
by SEQ_2:def 6;
then A24:
lim s2 = r
by A18, SEQ_2:def 7;
A25:
for n being Element of NAT holds
( s1 . n <= s3 . n & s3 . n <= s2 . n )
then A27:
s3 is convergent
by A16, A17, A23, A24, SEQ_2:33;
A28:
lim s3 = r
by A16, A17, A23, A24, A25, SEQ_2:34;
A29:
rng s3 c= X `
X ` is closed
by Def5;
then
r in X `
by A27, A28, A29, Def4;
hence
contradiction
by A1, XBOOLE_0:def 5; :: thesis: verum