Consider theory $\tau = Th(M,\sim, =)$, where $M$ is an infinite set, $=$ is the equality relation, and $\sim$ is an equivalence relation over $M$ with infinitely many equivalence classes (i.e. $\{\{n|m \sim n\}|m \in M\}$ is infinite) that are all infinite (i.e. $\{n|m\sim n\}$ is infinite for every $\{m \in M\}$) . Show that $\tau$ has quantifier elimination.
Any hint/help would be appreciated!!!
Update: I read this post here I Need Help Understanding Quantifier Elimination but I still don't have a clear idea on how to get a start on this problem.
Alternatively, you can just check it directly.
To prove quantifier elimination, it is enough to show that every formula of the form $\exists x \varphi(x,\bar y)$, where $\varphi$ is quantifier-free, is either equivalent to a quantifier-free formula with free variables $\bar y$ or it is simply always false or true.
Since $\exists$ distributes over disjunctions, it is enough to show this for the case when $\varphi$ is a conjunction of atomic formulas and their negations. It is easy see that you can also drop any atomic formulas in which $x$ is not actually used. In this case, this tells you that $\varphi$ is equivalent to a formula of the form $$ \left(\bigwedge_{i\in I_1} x=y_i\right)\land \left(\bigwedge_{i\in I_2} x\neq y_i\right) \land \left(\bigwedge_{i\in I_3} x\sim y_i\right)\land \left(\bigwedge_{i\in I_4} x\not\sim y_i\right). $$ Now: