Prove that if $A$ and $B$ are subsets of a topological space $(X, \mathcal{T})$, then $\overline{A \cup B} = \overline{A} \cup \overline{B}$
My Proof
We'll use the notation, $U_x$ to be an open set of $X$ containing $x$, (i.e $U_x := x \in U$ and $U \in \mathcal{T})$.
Now $x \in \overline{A \cup B}$ if every $U_x \cap (A \cup B) \neq \emptyset \iff (U_x \cap A) \cup (U_x \cap B) \neq \emptyset$. (The logical equivalence here is as a result of elementary set operations).
And we have $x \in \overline{A}$ if $U_x \cap A \neq \emptyset$ for every $U_x \in \mathcal{T}$, and similarly $x \in \overline{B}$ if $U_x \cap B \neq \emptyset$ for every $U_x \in \mathcal{T}$, so that $x \in \overline{A} \cup \overline{B}$ if $(U_x \cap A \neq \emptyset) \lor (U_x \cap B \neq \emptyset).$
Logically we have $(U_x \cap A \neq \emptyset) \lor (U_x \cap B \neq \emptyset) \iff (U_x \cap A) \cup (U_x \cap B) \neq \emptyset$, and hence it follows by the biconditional above that $x \in \overline{A \cup B} \implies x \in \overline{A} \cup \overline{B}$ and that $x \in \overline{A} \cup \overline{B} \implies x \in \overline{A \cup B}$ and thus we have $\overline{A \cup B} = \overline{A} \cup \overline{B}$. $\square$
Is my proof correct? If so how rigorous is it? I'm looking to improve my proof-writing skills, and the rigor in my proofs, so any comments and criticism, however critical they may be is greatly appreciated.