let X be non empty TopSpace; :: thesis: for X1, X2 being non empty SubSpace of X holds
( X1,X2 are_separated iff ex Y1, Y2 being non empty open SubSpace of X st
( X1 is SubSpace of Y1 & X2 is SubSpace of Y2 & ( Y1 misses Y2 or Y1 meet Y2 misses X1 union X2 ) ) )

let X1, X2 be non empty SubSpace of X; :: thesis: ( X1,X2 are_separated iff ex Y1, Y2 being non empty open SubSpace of X st
( X1 is SubSpace of Y1 & X2 is SubSpace of Y2 & ( Y1 misses Y2 or Y1 meet Y2 misses X1 union X2 ) ) )

reconsider A2 = the carrier of X2 as Subset of X by Th1;
reconsider A1 = the carrier of X1 as Subset of X by Th1;
thus ( X1,X2 are_separated implies ex Y1, Y2 being non empty open SubSpace of X st
( X1 is SubSpace of Y1 & X2 is SubSpace of Y2 & ( Y1 misses Y2 or Y1 meet Y2 misses X1 union X2 ) ) ) :: thesis: ( ex Y1, Y2 being non empty open SubSpace of X st
( X1 is SubSpace of Y1 & X2 is SubSpace of Y2 & ( Y1 misses Y2 or Y1 meet Y2 misses X1 union X2 ) ) implies X1,X2 are_separated )
proof
assume X1,X2 are_separated ; :: thesis: ex Y1, Y2 being non empty open SubSpace of X st
( X1 is SubSpace of Y1 & X2 is SubSpace of Y2 & ( Y1 misses Y2 or Y1 meet Y2 misses X1 union X2 ) )

then A1,A2 are_separated ;
then consider C1, C2 being Subset of X such that
A1: A1 c= C1 and
A2: A2 c= C2 and
A3: C1 /\ C2 misses A1 \/ A2 and
A4: C1 is open and
A5: C2 is open by Th45;
not C1 is empty by A1, XBOOLE_1:3;
then consider Y1 being non empty strict open SubSpace of X such that
A6: C1 = the carrier of Y1 by A4, Th20;
not C2 is empty by A2, XBOOLE_1:3;
then consider Y2 being non empty strict open SubSpace of X such that
A7: C2 = the carrier of Y2 by A5, Th20;
take Y1 ; :: thesis: ex Y2 being non empty open SubSpace of X st
( X1 is SubSpace of Y1 & X2 is SubSpace of Y2 & ( Y1 misses Y2 or Y1 meet Y2 misses X1 union X2 ) )

take Y2 ; :: thesis: ( X1 is SubSpace of Y1 & X2 is SubSpace of Y2 & ( Y1 misses Y2 or Y1 meet Y2 misses X1 union X2 ) )
now :: thesis: ( not Y1 misses Y2 implies Y1 meet Y2 misses X1 union X2 )
assume not Y1 misses Y2 ; :: thesis: Y1 meet Y2 misses X1 union X2
then A8: the carrier of (Y1 meet Y2) = C1 /\ C2 by A6, A7, Def4;
the carrier of (X1 union X2) = A1 \/ A2 by Def2;
hence Y1 meet Y2 misses X1 union X2 by A3, A8; :: thesis: verum
end;
hence ( X1 is SubSpace of Y1 & X2 is SubSpace of Y2 & ( Y1 misses Y2 or Y1 meet Y2 misses X1 union X2 ) ) by A1, A2, A6, A7, Th4; :: thesis: verum
end;
given Y1, Y2 being non empty open SubSpace of X such that A9: ( X1 is SubSpace of Y1 & X2 is SubSpace of Y2 ) and
A10: ( Y1 misses Y2 or Y1 meet Y2 misses X1 union X2 ) ; :: thesis: X1,X2 are_separated
now :: thesis: for A1, A2 being Subset of X st A1 = the carrier of X1 & A2 = the carrier of X2 holds
A1,A2 are_separated
let A1, A2 be Subset of X; :: thesis: ( A1 = the carrier of X1 & A2 = the carrier of X2 implies A1,A2 are_separated )
assume A11: ( A1 = the carrier of X1 & A2 = the carrier of X2 ) ; :: thesis: A1,A2 are_separated
ex C1, C2 being Subset of X st
( A1 c= C1 & A2 c= C2 & C1 /\ C2 misses A1 \/ A2 & C1 is open & C2 is open )
proof
reconsider C2 = the carrier of Y2 as Subset of X by Th1;
reconsider C1 = the carrier of Y1 as Subset of X by Th1;
take C1 ; :: thesis: ex C2 being Subset of X st
( A1 c= C1 & A2 c= C2 & C1 /\ C2 misses A1 \/ A2 & C1 is open & C2 is open )

take C2 ; :: thesis: ( A1 c= C1 & A2 c= C2 & C1 /\ C2 misses A1 \/ A2 & C1 is open & C2 is open )
now :: thesis: C1 /\ C2 misses A1 \/ A2
per cases ( Y1 misses Y2 or not Y1 misses Y2 ) ;
suppose A12: not Y1 misses Y2 ; :: thesis: C1 /\ C2 misses A1 \/ A2
A13: the carrier of (X1 union X2) = A1 \/ A2 by A11, Def2;
the carrier of (Y1 meet Y2) = C1 /\ C2 by A12, Def4;
hence C1 /\ C2 misses A1 \/ A2 by A10, A12, A13; :: thesis: verum
end;
end;
end;
hence ( A1 c= C1 & A2 c= C2 & C1 /\ C2 misses A1 \/ A2 & C1 is open & C2 is open ) by A9, A11, Th4, Th16; :: thesis: verum
end;
hence A1,A2 are_separated by Th45; :: thesis: verum
end;
hence X1,X2 are_separated ; :: thesis: verum