let X, Y be TopSpace; ( [#] X c= [#] Y & ex Xy being Subset of Y st
( Xy = [#] X & the topology of (Y | Xy) = the topology of X ) implies incl (X,Y) is embedding )
assume A1:
[#] X c= [#] Y
; ( for Xy being Subset of Y holds
( not Xy = [#] X or not the topology of (Y | Xy) = the topology of X ) or incl (X,Y) is embedding )
A2:
incl (X,Y) = id X
by A1, YELLOW_9:def 1;
set YY = Y | (rng (incl (X,Y)));
A3:
[#] (Y | (rng (incl (X,Y)))) = rng (incl (X,Y))
by PRE_TOPC:def 5;
A4:
( [#] Y = {} implies [#] X = {} )
by A1;
then reconsider h = incl (X,Y) as Function of X,(Y | (rng (incl (X,Y)))) by A3, FUNCT_2:6;
set f = id X;
given Xy being Subset of Y such that A5:
Xy = [#] X
and
A6:
the topology of (Y | Xy) = the topology of X
; incl (X,Y) is embedding
A7:
for P being Subset of X st P is open holds
(h ") " P is open
A9:
( [#] X = {} implies [#] X = {} )
;
A10:
for P being Subset of (Y | (rng (incl (X,Y)))) st P is open holds
h " P is open
take
h
; COMPACT1:def 7 ( h = incl (X,Y) & h is being_homeomorphism )
thus
h = incl (X,Y)
; h is being_homeomorphism
thus
( dom h = [#] X & rng h = [#] (Y | (rng (incl (X,Y)))) )
by A4, FUNCT_2:def 1, PRE_TOPC:def 5; TOPS_2:def 5 ( h is one-to-one & h is continuous & h " is continuous )
thus
h is one-to-one
by A2; ( h is continuous & h " is continuous )
( [#] (Y | (rng (incl (X,Y)))) = {} implies [#] X = {} )
by A2, A3;
hence
h is continuous
by A10, TOPS_2:43; h " is continuous
( [#] X = {} implies [#] (Y | (rng (incl (X,Y)))) = {} )
;
hence
h " is continuous
by A7, TOPS_2:43; verum