I was assigned to prove the associative law on xor.
$(p \oplus q) \oplus r=p \oplus (q \oplus r)$
I'm sure
$(p\oplus q)=(p∧¬q)∨(¬p∧q)$
But I got stuck on
$(p \oplus q) \oplus r=[{(p∧¬q)∨(¬p∧q)}∧¬r]∨[¬{(p∧¬q)∨(¬p∧q)}]∧r$
What tatuologies (laws) would I need to prove the associative law for xor?
How do I relate those $p$ and $q$ to $r$ in order to prove it?
Any tips/advise would be appreciated.
You probably already know that $\oplus$ is commutative. Thus $p \oplus (q \oplus r)$ is obtained from $(p \oplus q) \oplus r$ by exchanging the roles of $p$ and $r$. Therefore it will be enough to find an expression for $(p \oplus q) \oplus r$ that is symmetric in the variables $p$ and $r$.
Your steps to $$(p \oplus q) \oplus r=[\{(p∧¬q)∨(¬p∧q)\}∧¬r]∨[¬\{(p∧¬q)∨(¬p∧q)\}]∧r$$ are correct.
Continue the calculation by applying the distributive law to $\{(p∧¬q)∨(¬p∧q)\}∧¬r$. Then apply De Morgan's Law to $¬\{(p∧¬q)∨(¬p∧q)\}$. After that you will need to apply the distributive law repeatedly to obtain a disjunction on the right.