I'm trying to find out how to switch between set notation and logic, but am having difficult. For instance, I know that these two are equivalent
x \[Element] (A\[Intersection]B) \[Union](A \[Intersection]C)
(x \[Element] A \[And] x \[Element] B) \[Or] (x\[Element]A\[And] x\[Element]C)
I had to manually type this out. Ideally, I'd like to know how to simplify or expand one into the other using mathematica operations. Mathematica doesn't even seem to recognize that this is a valid way of writing logic notation, and gives me an error.
Part of the problem is I am unable to use the [Element] operator on sets or objects. I tried defining a list with a set of real numbers {1,2,3} but that didn't help me use elements with sets. I will have more complicated set formulas to simplify and i'd like to know how to do them. I'm a little new to mathematica. thanks