Let X be a topological space and A, B $ \subset $ X compact.
a) Show that A $ \cup $ B is compact.
b) Show that if X is Hausdorff, then A $\cap$ B is compact.
c) Show that the hypothesis that X is Hausdorff cannot be omitted in the previous item.
My attempt
a) Let X be a topological space and A, B $\cup$ where A and B are compact. We will claim A $\cup$ B is compact.
Let $\{O_{\alpha}\}_{\alpha \in I}$ be an open for A $\cup$ B, so A $\cup$ B $\subset$ $\bigcup_{\alpha \in I} O_{\alpha}$.
But A $\subset$ A $\cup$ B $\subset$ $\bigcup_{\alpha \in I} O_{\alpha}$.
So since A is compact, A $\subset$ $\bigcup_{i=1}^n O_{\alpha_i}$ wherer $\alpha_i \in I$
Likewise,
B $\subset$ A $\cup$ B $\subset$ $\bigcup_{\alpha \in I} O_{\beta}$.
So since B is compact, B $\subset$ $\bigcup_{j=1}^m O_{\beta_j}$, wherer $\beta_i \in I$.
therefore, A $\cup$ B $ \subset \bigcup_{\alpha \in I}^n \cup \bigcup_{\beta \in I}^m$, ando so, A $\cup$ B is compact.
b) Since X is $ T_2 $ and A, B $ \subset $ X compact, we have that A and B are closed.
So, let $ U_{\alpha} $ be an open cover of A $ \cap $ B
So, we have A $ \cap $ B $ \subset \bigcup_{\alpha} U_{\alpha} $
So, B $ \subset \bigcup_{\alpha} U_{\alpha} \cup$ (X\A)
Since A is closed (X∖A) is open
Therefore,
$ U_{\alpha} \cup $ X∖A is an open cover of A.
Now we have that B is compact, so it follows by definition that a finite subcover, {$U_{\alpha_1}, U_{\alpha_2},…, U_{\alpha_n }$, X∖A} of A exists.
Therefore,
A $\cap$ B $\subset \{U_{\alpha_1}, U_{\alpha_2},…, U_{\alpha_n}\}$ and therefore A $\cap B$ is compact.
c) If it is not $ T_2 $ we cannot assume A, B closed and in this case the demonstration does not take place.
Thanks in advance for any comments.