let T, S be non empty TopSpace; :: thesis: for p being Point of T
for T1, T2 being SubSpace of T
for f being Function of T1,S
for g being Function of T2,S st ([#] T1) \/ ([#] T2) = [#] T & ([#] T1) /\ ([#] T2) = {p} & T1 is compact & T2 is compact & T is Hausdorff & f is continuous & g is continuous & f . p = g . p holds
f +* g is continuous Function of T,S

let p be Point of T; :: thesis: for T1, T2 being SubSpace of T
for f being Function of T1,S
for g being Function of T2,S st ([#] T1) \/ ([#] T2) = [#] T & ([#] T1) /\ ([#] T2) = {p} & T1 is compact & T2 is compact & T is Hausdorff & f is continuous & g is continuous & f . p = g . p holds
f +* g is continuous Function of T,S

let T1, T2 be SubSpace of T; :: thesis: for f being Function of T1,S
for g being Function of T2,S st ([#] T1) \/ ([#] T2) = [#] T & ([#] T1) /\ ([#] T2) = {p} & T1 is compact & T2 is compact & T is Hausdorff & f is continuous & g is continuous & f . p = g . p holds
f +* g is continuous Function of T,S

let f be Function of T1,S; :: thesis: for g being Function of T2,S st ([#] T1) \/ ([#] T2) = [#] T & ([#] T1) /\ ([#] T2) = {p} & T1 is compact & T2 is compact & T is Hausdorff & f is continuous & g is continuous & f . p = g . p holds
f +* g is continuous Function of T,S

let g be Function of T2,S; :: thesis: ( ([#] T1) \/ ([#] T2) = [#] T & ([#] T1) /\ ([#] T2) = {p} & T1 is compact & T2 is compact & T is Hausdorff & f is continuous & g is continuous & f . p = g . p implies f +* g is continuous Function of T,S )
assume that
A1: ( ([#] T1) \/ ([#] T2) = [#] T & ([#] T1) /\ ([#] T2) = {p} ) and
A2: T1 is compact and
A3: T2 is compact and
A4: T is Hausdorff and
A5: f is continuous and
A6: g is continuous and
A7: f . p = g . p ; :: thesis: f +* g is continuous Function of T,S
A8: dom f = [#] T1 by FUNCT_2:def 1;
A9: dom g = [#] T2 by FUNCT_2:def 1;
set h = f +* g;
A10: dom (f +* g) = the carrier of T by A1, A8, A9, FUNCT_4:def 1;
( rng (f +* g) c= (rng f) \/ (rng g) & (rng f) \/ (rng g) c= the carrier of S ) by FUNCT_4:18;
then rng (f +* g) c= the carrier of S by XBOOLE_1:1;
then reconsider h = f +* g as Function of T,S by A10, FUNCT_2:def 1, RELSET_1:11;
for P being Subset of S st P is closed holds
h " P is closed
proof
let P be Subset of S; :: thesis: ( P is closed implies h " P is closed )
assume A11: P is closed ; :: thesis: h " P is closed
A12: ( h " P c= dom h & dom h = (dom f) \/ (dom g) ) by FUNCT_4:def 1, RELAT_1:167;
then A13: h " P = (h " P) /\ (([#] T1) \/ ([#] T2)) by A8, A9, XBOOLE_1:28
.= ((h " P) /\ ([#] T1)) \/ ((h " P) /\ ([#] T2)) by XBOOLE_1:23 ;
A14: for x being set st x in [#] T1 holds
h . x = f . x
proof
let x be set ; :: thesis: ( x in [#] T1 implies h . x = f . x )
assume A15: x in [#] T1 ; :: thesis: h . x = f . x
now
per cases ( x in [#] T2 or not x in [#] T2 ) ;
suppose not x in [#] T2 ; :: thesis: h . x = f . x
hence h . x = f . x by A9, FUNCT_4:12; :: thesis: verum
end;
end;
end;
hence h . x = f . x ; :: thesis: verum
end;
now
let x be set ; :: thesis: ( ( x in (h " P) /\ ([#] T1) implies x in f " P ) & ( x in f " P implies x in (h " P) /\ ([#] T1) ) )
thus ( x in (h " P) /\ ([#] T1) implies x in f " P ) :: thesis: ( x in f " P implies x in (h " P) /\ ([#] T1) )
proof
assume x in (h " P) /\ ([#] T1) ; :: thesis: x in f " P
then ( x in h " P & x in dom f & x in [#] T1 ) by A8, XBOOLE_0:def 4;
then ( h . x in P & x in dom f & f . x = h . x ) by A14, FUNCT_1:def 13;
hence x in f " P by FUNCT_1:def 13; :: thesis: verum
end;
assume x in f " P ; :: thesis: x in (h " P) /\ ([#] T1)
then ( x in dom f & f . x in P ) by FUNCT_1:def 13;
then ( x in dom h & x in [#] T1 & h . x in P ) by A12, A14, XBOOLE_0:def 3;
then ( x in h " P & x in [#] T1 ) by FUNCT_1:def 13;
hence x in (h " P) /\ ([#] T1) by XBOOLE_0:def 4; :: thesis: verum
end;
then A17: (h " P) /\ ([#] T1) = f " P by TARSKI:2;
now
let x be set ; :: thesis: ( ( x in (h " P) /\ ([#] T2) implies x in g " P ) & ( x in g " P implies x in (h " P) /\ ([#] T2) ) )
thus ( x in (h " P) /\ ([#] T2) implies x in g " P ) :: thesis: ( x in g " P implies x in (h " P) /\ ([#] T2) )
proof
assume x in (h " P) /\ ([#] T2) ; :: thesis: x in g " P
then ( x in h " P & x in dom g & x in [#] T2 ) by A9, XBOOLE_0:def 4;
then ( h . x in P & x in dom g & g . x = h . x ) by FUNCT_1:def 13, FUNCT_4:14;
hence x in g " P by FUNCT_1:def 13; :: thesis: verum
end;
assume x in g " P ; :: thesis: x in (h " P) /\ ([#] T2)
then ( x in dom g & g . x in P ) by FUNCT_1:def 13;
then ( x in dom h & x in [#] T2 & h . x in P ) by A12, FUNCT_4:14, XBOOLE_0:def 3;
then ( x in h " P & x in [#] T2 ) by FUNCT_1:def 13;
hence x in (h " P) /\ ([#] T2) by XBOOLE_0:def 4; :: thesis: verum
end;
then A18: h " P = (f " P) \/ (g " P) by A13, A17, TARSKI:2;
( f " P c= [#] T1 & [#] T1 c= [#] T ) by A1, XBOOLE_1:7;
then reconsider P1 = f " P as Subset of T by XBOOLE_1:1;
( g " P c= [#] T2 & [#] T2 c= [#] T ) by A1, XBOOLE_1:7;
then reconsider P2 = g " P as Subset of T by XBOOLE_1:1;
( f " P is closed & g " P is closed ) by A5, A6, A11, PRE_TOPC:def 12;
then ( f " P is compact & g " P is compact ) by A2, A3, Th17;
then ( P1 is compact & P2 is compact ) by Th42;
hence h " P is closed by A4, A18, Th16, Th19; :: thesis: verum
end;
hence f +* g is continuous Function of T,S by PRE_TOPC:def 12; :: thesis: verum