let X be Subset of REAL ; :: thesis: ( X is open implies X in Family_open_set RealSpace )
reconsider V = X as Subset of RealSpace by METRIC_1:def 14;
assume A1: X is open ; :: thesis: X in Family_open_set RealSpace
for x being Element of RealSpace st x in X holds
ex r being Real st
( r > 0 & Ball x,r c= X )
proof
let x be Element of RealSpace ; :: thesis: ( x in X implies ex r being Real st
( r > 0 & Ball x,r c= X ) )

reconsider r = x as Real by METRIC_1:def 14;
assume x in X ; :: thesis: ex r being Real st
( r > 0 & Ball x,r c= X )

then consider N being Neighbourhood of r such that
A2: N c= X by A1, RCOMP_1:39;
consider g being real number such that
A3: 0 < g and
A4: N = ].(r - g),(r + g).[ by RCOMP_1:def 7;
reconsider g = g as Real by XREAL_0:def 1;
A5: N c= Ball x,g
proof
reconsider r9 = r as Element of RealSpace ;
let a be set ; :: according to TARSKI:def 3 :: thesis: ( not a in N or a in Ball x,g )
assume A6: a in N ; :: thesis: a in Ball x,g
then reconsider a9 = a as Real ;
reconsider a1 = a9, r1 = r9 as Element of REAL ;
a9 is Element of REAL ;
then reconsider a99 = a as Element of RealSpace by METRIC_1:def 14;
abs (a9 - r) < g by A4, A6, RCOMP_1:8;
then real_dist . a9,r < g by METRIC_1:def 13;
then ( dist r9,a99 = real_dist . r,a9 & real_dist . r1,a1 < g ) by METRIC_1:10, METRIC_1:def 1, METRIC_1:def 14;
hence a in Ball x,g by METRIC_1:12; :: thesis: verum
end;
Ball x,g c= N
proof
let a be set ; :: according to TARSKI:def 3 :: thesis: ( not a in Ball x,g or a in N )
assume a in Ball x,g ; :: thesis: a in N
then a in { q where q is Element of RealSpace : dist x,q < g } by METRIC_1:18;
then consider q being Element of RealSpace such that
A7: q = a and
A8: dist x,q < g ;
reconsider a9 = a as Real by A7, METRIC_1:def 14;
reconsider x1 = x, q1 = q as Element of REAL by METRIC_1:def 14;
real_dist . q1,x1 < g by A8, METRIC_1:def 1, METRIC_1:def 14;
then abs (a9 - r) < g by A7, METRIC_1:def 13;
hence a in N by A4, RCOMP_1:8; :: thesis: verum
end;
then N = Ball x,g by A5, XBOOLE_0:def 10;
hence ex r being Real st
( r > 0 & Ball x,r c= X ) by A2, A3; :: thesis: verum
end;
then V in Family_open_set RealSpace by PCOMPS_1:def 5;
hence X in Family_open_set RealSpace ; :: thesis: verum