let X be non empty TopSpace; :: according to WAYBEL18:def 5 :: thesis: for f being Function of X,Sierpinski_Space st f is continuous holds
for Y being non empty TopSpace st X is SubSpace of Y holds
ex g being Function of Y,Sierpinski_Space st
( g is continuous & g | the carrier of X = f )

set S = Sierpinski_Space ;
let f be Function of X,Sierpinski_Space; :: thesis: ( f is continuous implies for Y being non empty TopSpace st X is SubSpace of Y holds
ex g being Function of Y,Sierpinski_Space st
( g is continuous & g | the carrier of X = f ) )

A1: [#] Sierpinski_Space <> {} ;
{1} c= {0,1} by ZFMISC_1:7;
then reconsider u = {1} as Subset of Sierpinski_Space by Def9;
u in {{},{1},{0,1}} by ENUMSET1:def 1;
then u in the topology of Sierpinski_Space by Def9;
then A2: u is open ;
assume f is continuous ; :: thesis: for Y being non empty TopSpace st X is SubSpace of Y holds
ex g being Function of Y,Sierpinski_Space st
( g is continuous & g | the carrier of X = f )

then f " u is open by A1, A2, TOPS_2:43;
then A3: f " u in the topology of X ;
let Y be non empty TopSpace; :: thesis: ( X is SubSpace of Y implies ex g being Function of Y,Sierpinski_Space st
( g is continuous & g | the carrier of X = f ) )

assume A4: X is SubSpace of Y ; :: thesis: ex g being Function of Y,Sierpinski_Space st
( g is continuous & g | the carrier of X = f )

then consider V being Subset of Y such that
A5: V in the topology of Y and
A6: f " u = V /\ ([#] X) by A3, PRE_TOPC:def 4;
reconsider V = V as Subset of Y ;
set g = chi (V, the carrier of Y);
A7: dom (chi (V, the carrier of Y)) = the carrier of Y by FUNCT_3:def 3;
reconsider g = chi (V, the carrier of Y) as Function of Y,Sierpinski_Space by Def9;
A8: the carrier of X c= the carrier of Y by A4, BORSUK_1:1;
A9: for x being object st x in dom f holds
f . x = g . x
proof
let x be object ; :: thesis: ( x in dom f implies f . x = g . x )
assume A10: x in dom f ; :: thesis: f . x = g . x
then A11: x in the carrier of X ;
per cases ( x in V or not x in V ) ;
end;
end;
take g ; :: thesis: ( g is continuous & g | the carrier of X = f )
A16: V is open by A5;
for P being Subset of Sierpinski_Space st P is open holds
g " P is open
proof
let P be Subset of Sierpinski_Space; :: thesis: ( P is open implies g " P is open )
assume P is open ; :: thesis: g " P is open
then P in the topology of Sierpinski_Space ;
then A17: P in {{},{1},{0,1}} by Def9;
per cases ( P = {} or P = {1} or P = {0,1} ) by A17, ENUMSET1:def 1;
suppose P = {} ; :: thesis: g " P is open
then g " P = {} ;
then g " P in the topology of Y by PRE_TOPC:1;
hence g " P is open ; :: thesis: verum
end;
suppose A18: P = {1} ; :: thesis: g " P is open
A19: g " P c= V
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in g " P or x in V )
assume A20: x in g " P ; :: thesis: x in V
then g . x in {1} by A18, FUNCT_1:def 7;
then g . x = 1 by TARSKI:def 1;
hence x in V by A20, FUNCT_3:def 3; :: thesis: verum
end;
V c= g " P
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in V or x in g " P )
assume A21: x in V ; :: thesis: x in g " P
then g . x = 1 by FUNCT_3:def 3;
then g . x in {1} by TARSKI:def 1;
hence x in g " P by A7, A18, A21, FUNCT_1:def 7; :: thesis: verum
end;
hence g " P is open by A16, A19, XBOOLE_0:def 10; :: thesis: verum
end;
suppose P = {0,1} ; :: thesis: g " P is open
then g " P = the carrier of Y by FUNCT_2:40;
then g " P in the topology of Y by PRE_TOPC:def 1;
hence g " P is open ; :: thesis: verum
end;
end;
end;
hence g is continuous by A1, TOPS_2:43; :: thesis: g | the carrier of X = f
(dom g) /\ the carrier of X = the carrier of Y /\ the carrier of X by FUNCT_3:def 3
.= the carrier of X by A4, BORSUK_1:1, XBOOLE_1:28
.= dom f by FUNCT_2:def 1 ;
hence g | the carrier of X = f by A9, FUNCT_1:46; :: thesis: verum