$A, B, C$ are sets. I have to prove equality of this:
$$A \cap C = B \cap C \land A \cup C = B \cup C ⇒ A = B$$
I did this, but I don't know what to do next and whether I even did the right thing:
$A \cap C = x \in A \land x \in C$
$B \cap C ∧ A \cup C = (x \in B \land x \in C) \land (x \in A \lor x \in C)$
$B \cup C \implies A = x \in B \lor x \in C ⇒ A $
$B$
Any ideas what to do next? Or maybe how to solve this somehow else?
Partition $A$ into the two sets $A'=A\cap C$ and $A''=A\backslash (A\cap C)$, and partition $B$ into the two sets $B'=B\cap C$ and $B''=B\backslash (B\cap C)$. The first equality $$A\cap C=B\cap C$$ tells us that $A'=B'$. Since $(A\cup C)\backslash C=A''$ and $(B\cup C)\backslash C=B''$, the second equality $$A\cup C=B\cup C$$ tells us that $A''=B''$. Thus, since the corresponding parts of the partitions of $A$ and $B$ are equal, $A=B$.
I leave it to you to make this more rigorous/formal as needed.