Describe $ (A \setminus B) \cup (A \cap B) $ in set-builder notation, and simplify it using the laws of logic.
So, looking at this intuitively, I know that it translates to “all elements contained in $ A $ but not $ B $, as well as all elements contained in both $ A $ and $ B $”. In other words, this is just $ A $. I can thus write out a variation of set-builder notation: $$ \{ x \mid ((x \in A) \land \neg (x \in B)) \lor ((x \in A) \land (x \in B)) \}. $$ This does allow me to use logical laws to simplify the problem, but it doesn’t look like examples of set-builder notation that I’ve seen and I feel like I’m missing a step. Would anyone be able to tell me how to convert what I’ve done so far into formal set-builder notation, while keeping the logical operators needed to simplify it?