let T, S be non empty TopSpace; :: thesis: ( T is injective implies for f being Function of T,S st corestr f is being_homeomorphism holds
T is_Retract_of S )

assume A1: T is injective ; :: thesis: for f being Function of T,S st corestr f is being_homeomorphism holds
T is_Retract_of S

let f be Function of T,S; :: thesis: ( corestr f is being_homeomorphism implies T is_Retract_of S )
consider g being Function of (Image f),T such that
A2: g = (corestr f) " ;
assume A3: corestr f is being_homeomorphism ; :: thesis: T is_Retract_of S
then g is continuous by A2, TOPS_2:def 5;
then consider h being Function of S,T such that
A4: h is continuous and
A5: h | the carrier of (Image f) = g by A1, Def5;
g is being_homeomorphism by A3, A2, TOPS_2:56;
then A6: g is one-to-one by TOPS_2:def 5;
A7: the carrier of (Image f) = rng f by Th10;
A8: for x being set st x in the carrier of T holds
(h * f) . x = x
proof
let x be set ; :: thesis: ( x in the carrier of T implies (h * f) . x = x )
assume A10: x in the carrier of T ; :: thesis: (h * f) . x = x
then A11: x in dom (corestr f) by FUNCT_2:def 1;
A12: x in dom f by A10, FUNCT_2:def 1;
then A13: f . x in rng f by FUNCT_1:def 3;
A14: corestr f is one-to-one by A3, TOPS_2:def 5;
thus (h * f) . x = h . (f . x) by A12, FUNCT_1:13
.= ((corestr f) ") . ((corestr f) . x) by A2, A5, A7, A13, FUNCT_1:49
.= ((corestr f) ") . ((corestr f) . x) by A14, TOPS_2:def 4
.= x by A11, A14, FUNCT_1:34 ; :: thesis: verum
end;
dom (h * f) = the carrier of T by FUNCT_2:def 1;
then A15: h * f = id the carrier of T by A8, FUNCT_1:17;
take F = f * h; :: according to WAYBEL18:def 8 :: thesis: ( F is continuous & F * F = F & Image F,T are_homeomorphic )
set H = h * (incl (Image F));
A16: dom (h * (incl (Image F))) = [#] (Image F) by FUNCT_2:def 1;
rng h c= the carrier of T ;
then A17: rng h c= dom f by FUNCT_2:def 1;
A18: rng F c= rng f
proof
let y be set ; :: according to TARSKI:def 3 :: thesis: ( not y in rng F or y in rng f )
assume y in rng F ; :: thesis: y in rng f
then consider x being set such that
A19: x in dom F and
A20: y = F . x by FUNCT_1:def 3;
x in the carrier of S by A19;
then A21: x in dom h by FUNCT_2:def 1;
then A22: h . x in rng h by FUNCT_1:def 3;
f . (h . x) = y by A20, A21, FUNCT_1:13;
hence y in rng f by A17, A22, FUNCT_1:def 3; :: thesis: verum
end;
A23: h * (incl (Image F)) is one-to-one
proof
let x, y be Element of (Image F); :: according to WAYBEL_1:def 1 :: thesis: ( not (h * (incl (Image F))) . x = (h * (incl (Image F))) . y or x = y )
assume A24: (h * (incl (Image F))) . x = (h * (incl (Image F))) . y ; :: thesis: x = y
A25: x in the carrier of (Image F) ;
then A26: x in dom (incl (Image F)) by FUNCT_2:def 1;
A27: y in the carrier of (Image F) ;
then A28: y in dom (incl (Image F)) by FUNCT_2:def 1;
A29: y in rng F by A27, Th10;
A30: x in rng F by A25, Th10;
then reconsider a = x, b = y as Point of S by A29;
reconsider x9 = x, y9 = y as Element of (Image f) by A18, A30, A29, Th10;
g . x9 = h . x by A5, FUNCT_1:49
.= h . ((incl (Image F)) . a) by TMAP_1:84
.= (h * (incl (Image F))) . b by A24, A26, FUNCT_1:13
.= h . ((incl (Image F)) . b) by A28, FUNCT_1:13
.= h . y by TMAP_1:84
.= g . y9 by A5, FUNCT_1:49 ;
hence x = y by A6, WAYBEL_1:def 1; :: thesis: verum
end;
A31: dom (incl (Image F)) = the carrier of (Image F) by FUNCT_2:def 1;
A32: rng (h * (incl (Image F))) = [#] T
proof
thus rng (h * (incl (Image F))) c= [#] T ; :: according to XBOOLE_0:def 10 :: thesis: [#] T c= rng (h * (incl (Image F)))
let y be set ; :: according to TARSKI:def 3 :: thesis: ( not y in [#] T or y in rng (h * (incl (Image F))) )
assume A33: y in [#] T ; :: thesis: y in rng (h * (incl (Image F)))
then A34: y in dom f by FUNCT_2:def 1;
then A35: F . (f . y) = ((f * h) * f) . y by FUNCT_1:13
.= (f * (id T)) . y by A15, RELAT_1:36
.= f . y by FUNCT_2:17 ;
A36: f . y in rng f by A34, FUNCT_1:def 3;
then reconsider pp = f . y as Point of S ;
f . y in the carrier of S by A36;
then A37: f . y in dom F by FUNCT_2:def 1;
then F . (f . y) in rng F by FUNCT_1:def 3;
then A38: f . y in the carrier of (Image F) by A35, Th10;
then A39: y in dom ((incl (Image F)) * f) by A31, A34, FUNCT_1:11;
dom (h * (incl (Image F))) = rng F by A16, Th10;
then A40: f . y in dom (h * (incl (Image F))) by A37, A35, FUNCT_1:def 3;
(h * (incl (Image F))) . (f . y) = ((h * (incl (Image F))) * f) . y by A34, FUNCT_1:13
.= (h * ((incl (Image F)) * f)) . y by RELAT_1:36
.= h . (((incl (Image F)) * f) . y) by A39, FUNCT_1:13
.= h . ((incl (Image F)) . pp) by A34, FUNCT_1:13
.= h . (f . y) by A38, TMAP_1:84
.= (id T) . y by A15, A34, FUNCT_1:13
.= y by A33, FUNCT_1:18 ;
hence y in rng (h * (incl (Image F))) by A40, FUNCT_1:def 3; :: thesis: verum
end;
reconsider p = incl (Image f) as Function of (Image f),S ;
A41: [#] S <> {} ;
A42: dom (p * (corestr f)) = the carrier of T by FUNCT_2:def 1
.= dom f by FUNCT_2:def 1 ;
A43: for P being Subset of S holds f " P = (p * (corestr f)) " P
proof
let P be Subset of S; :: thesis: f " P = (p * (corestr f)) " P
hereby :: according to TARSKI:def 3,XBOOLE_0:def 10 :: thesis: (p * (corestr f)) " P c= f " P
let x be set ; :: thesis: ( x in f " P implies x in (p * (corestr f)) " P )
assume A44: x in f " P ; :: thesis: x in (p * (corestr f)) " P
then A45: x in dom f by FUNCT_1:def 7;
then f . x in rng f by FUNCT_1:def 3;
then A46: f . x in the carrier of (Image f) by Th10;
A47: f . x in P by A44, FUNCT_1:def 7;
then reconsider y = f . x as Point of S ;
(p * (corestr f)) . x = p . (f . x) by A45, FUNCT_1:13
.= y by A46, TMAP_1:84 ;
hence x in (p * (corestr f)) " P by A42, A45, A47, FUNCT_1:def 7; :: thesis: verum
end;
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in (p * (corestr f)) " P or x in f " P )
assume A48: x in (p * (corestr f)) " P ; :: thesis: x in f " P
then A49: x in dom (p * (corestr f)) by FUNCT_1:def 7;
then A50: f . x in rng f by A42, FUNCT_1:def 3;
then reconsider y = f . x as Point of S ;
A51: (p * (corestr f)) . x in P by A48, FUNCT_1:def 7;
A52: f . x in the carrier of (Image f) by A50, Th10;
(p * (corestr f)) . x = p . (f . x) by A42, A49, FUNCT_1:13
.= y by A52, TMAP_1:84 ;
hence x in f " P by A42, A49, A51, FUNCT_1:def 7; :: thesis: verum
end;
A53: corestr f is continuous by A3, TOPS_2:def 5;
A54: for P being Subset of (Image F) st P is open holds
((h * (incl (Image F))) ") " P is open
proof
let P be Subset of (Image F); :: thesis: ( P is open implies ((h * (incl (Image F))) ") " P is open )
A55: p is continuous by TMAP_1:87;
(incl (Image F)) .: P = P
proof
hereby :: according to TARSKI:def 3,XBOOLE_0:def 10 :: thesis: P c= (incl (Image F)) .: P
let y be set ; :: thesis: ( y in (incl (Image F)) .: P implies y in P )
assume y in (incl (Image F)) .: P ; :: thesis: y in P
then consider x being set such that
A56: x in dom (incl (Image F)) and
A57: ( x in P & y = (incl (Image F)) . x ) by FUNCT_1:def 6;
x in the carrier of (Image F) by A56;
then x in rng F by Th10;
then reconsider xx = x as Point of S ;
(incl (Image F)) . xx = x by A56, TMAP_1:84;
hence y in P by A57; :: thesis: verum
end;
let y be set ; :: according to TARSKI:def 3 :: thesis: ( not y in P or y in (incl (Image F)) .: P )
assume A58: y in P ; :: thesis: y in (incl (Image F)) .: P
then A59: y in the carrier of (Image F) ;
then y in rng F by Th10;
then reconsider yy = y as Point of S ;
A60: yy = (incl (Image F)) . y by A58, TMAP_1:84;
y in dom (incl (Image F)) by A59, FUNCT_2:def 1;
hence y in (incl (Image F)) .: P by A58, A60, FUNCT_1:def 6; :: thesis: verum
end;
then A61: (h * (incl (Image F))) .: P = h .: P by RELAT_1:126;
assume P is open ; :: thesis: ((h * (incl (Image F))) ") " P is open
then P in the topology of (Image F) by PRE_TOPC:def 2;
then consider Q being Subset of S such that
A62: Q in the topology of S and
A63: P = Q /\ ([#] (Image F)) by PRE_TOPC:def 4;
reconsider Q = Q as Subset of S ;
A64: f " Q = h .: P
proof
hereby :: according to TARSKI:def 3,XBOOLE_0:def 10 :: thesis: h .: P c= f " Q
let x be set ; :: thesis: ( x in f " Q implies x in h .: P )
assume A65: x in f " Q ; :: thesis: x in h .: P
then A66: x in dom f by FUNCT_1:def 7;
then A67: h . (f . x) = (id T) . x by A15, FUNCT_1:13
.= x by A65, FUNCT_1:18 ;
f . x in rng f by A66, FUNCT_1:def 3;
then A68: f . x in the carrier of S ;
then A69: f . x in dom h by FUNCT_2:def 1;
A70: f . x in dom F by A68, FUNCT_2:def 1;
F . (f . x) = f . (h . (f . x)) by A69, FUNCT_1:13
.= f . ((id T) . x) by A15, A66, FUNCT_1:13
.= f . x by A65, FUNCT_1:18 ;
then f . x in rng F by A70, FUNCT_1:def 3;
then A71: f . x in the carrier of (Image F) by Th10;
f . x in Q by A65, FUNCT_1:def 7;
then f . x in P by A63, A71, XBOOLE_0:def 4;
hence x in h .: P by A69, A67, FUNCT_1:def 6; :: thesis: verum
end;
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in h .: P or x in f " Q )
assume x in h .: P ; :: thesis: x in f " Q
then consider y being set such that
A72: y in dom h and
A73: y in P and
A74: x = h . y by FUNCT_1:def 6;
A75: y in Q by A63, A73, XBOOLE_0:def 4;
y in the carrier of (Image F) by A73;
then A76: y in rng F by Th10;
A77: x in rng h by A72, A74, FUNCT_1:def 3;
then f . x in rng f by A17, FUNCT_1:def 3;
then reconsider a = f . x, b = y as Element of (Image f) by A18, A76, Th10;
g . a = h . (f . x) by A5, FUNCT_1:49
.= (id T) . x by A17, A15, A77, FUNCT_1:13
.= h . y by A74, A77, FUNCT_1:18
.= g . b by A5, FUNCT_1:49 ;
then f . x in Q by A6, A75, WAYBEL_1:def 1;
hence x in f " Q by A17, A77, FUNCT_1:def 7; :: thesis: verum
end;
Q is open by A62, PRE_TOPC:def 2;
then (p * (corestr f)) " Q is open by A41, A53, A55, TOPS_2:43;
then f " Q is open by A43;
hence ((h * (incl (Image F))) ") " P is open by A32, A23, A64, A61, TOPS_2:54; :: thesis: verum
end;
A78: p is continuous by TMAP_1:87;
A79: [#] T <> {} ;
for P being Subset of S st P is open holds
F " P is open
proof
let P be Subset of S; :: thesis: ( P is open implies F " P is open )
assume P is open ; :: thesis: F " P is open
then (p * (corestr f)) " P is open by A41, A53, A78, TOPS_2:43;
then f " P is open by A43;
then h " (f " P) is open by A79, A4, TOPS_2:43;
hence F " P is open by RELAT_1:146; :: thesis: verum
end;
hence F is continuous by A41, TOPS_2:43; :: thesis: ( F * F = F & Image F,T are_homeomorphic )
thus F * F = ((f * h) * f) * h by RELAT_1:36
.= (f * (id T)) * h by A15, RELAT_1:36
.= F by FUNCT_2:17 ; :: thesis: Image F,T are_homeomorphic
[#] (Image F) <> {} ;
then ( incl (Image F) is continuous & (h * (incl (Image F))) " is continuous ) by A54, TMAP_1:87, TOPS_2:43;
then h * (incl (Image F)) is being_homeomorphism by A4, A16, A32, A23, TOPS_2:def 5;
hence Image F,T are_homeomorphic by T_0TOPSP:def 1; :: thesis: verum