let T, S be non empty TopSpace; :: thesis: ( the carrier of T = the carrier of S & the topology of T = the topology of S & T is injective implies S is injective )
assume that
A1: the carrier of T = the carrier of S and
A2: the topology of T = the topology of S and
A3: T is injective ; :: thesis: S is injective
let X be non empty TopSpace; :: according to WAYBEL18:def 5 :: thesis: for f being Function of X,S st f is continuous holds
for Y being non empty TopSpace st X is SubSpace of Y holds
ex g being Function of Y,S st
( g is continuous & g | the carrier of X = f )

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

reconsider f9 = f as Function of X,T by A1;
A4: [#] S <> {} ;
assume A5: f is continuous ; :: thesis: for Y being non empty TopSpace st X is SubSpace of Y holds
ex g being Function of Y,S st
( g is continuous & g | the carrier of X = f )

A6: for P being Subset of T st P is open holds
f9 " P is open
proof
let P be Subset of T; :: thesis: ( P is open implies f9 " P is open )
reconsider P9 = P as Subset of S by A1;
assume P is open ; :: thesis: f9 " P is open
then P9 in the topology of S by A2;
then P9 is open ;
hence f9 " P is open by A4, A5, TOPS_2:43; :: thesis: verum
end;
let Y be non empty TopSpace; :: thesis: ( X is SubSpace of Y implies ex g being Function of Y,S st
( g is continuous & g | the carrier of X = f ) )

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

A8: [#] T <> {} ;
then f9 is continuous by A6, TOPS_2:43;
then consider h being Function of Y,T such that
A9: h is continuous and
A10: h | the carrier of X = f9 by A3, A7;
reconsider g = h as Function of Y,S by A1;
take g ; :: thesis: ( g is continuous & g | the carrier of X = f )
for P being Subset of S st P is open holds
g " P is open
proof
let P be Subset of S; :: thesis: ( P is open implies g " P is open )
reconsider P9 = P as Subset of T by A1;
assume P is open ; :: thesis: g " P is open
then P9 in the topology of T by A2;
then P9 is open ;
hence g " P is open by A8, A9, TOPS_2:43; :: thesis: verum
end;
hence g is continuous by A4, TOPS_2:43; :: thesis: g | the carrier of X = f
thus g | the carrier of X = f by A10; :: thesis: verum