I feel that I didn't utilize the fact that A and B are disjoint in the proof below. Can anyone find the flaws in my proof?
Suppose $A$ and $B$ are disjoint sets.
Let $f : \mathcal P(A \cup B) \rightarrow \mathcal P(A) \times \mathcal P(B)$ be defined as $f (X) = (A \cap X) \times (B \cap X)$.
Let $C \subseteq A \cup B$ and $D \subseteq A \cup B$.
Suppose $f (C) = f (D)$. From the definition of $f$, it follows that $(A \cap C) \times (B \cap C) = (A \cap D) \times (B \cap D)$. This means $A \cap C = A \cap D$ and $B \cap C = B \cap D$.
Suppose $x \in C \subseteq A \cup B$. If $x \in A$, then $x \in A \cap C = A \cap D \subseteq D$. If $x \in B$, then $x \in B \cap C = B \cap D \subseteq D$. Thus, $x \in D$.
Suppose $x \in D \subseteq A \cup B$. If $x \in A$, $x \in A \cap D = A \cap C \subseteq C$. If $x \in B$, $x \in B \cap D = B \cap C \subseteq C$.
Therefore, $C = D$, and $f$ is one-to-one.
To prove $f$ is onto, let $D \subseteq A \times B$. Let $C = \{ x \in A \cup B| \exists (a, b) \in D (x = a \vee x = b) \}$. Then, $f (C) = D$.