Let $M,N$ are elementary equivalent $L$-structures where $L$ is a first-order language. If $M$ is finite , then how to prove that $|M|=|N|$ ?
I was thinking like this. Let $|M|=n$. To prove $|N|=n$, I have to somehow write down the fact that $M$ has at least $n$ many elements by using a sentence (closed formula). If I can do that, then $M$ and $N$ proves same $L$-sentences would give me that $N$ has at least $n$ many elements. Now if $N$ had more than $n$ many elements then it would have at least $n+1$ many elements, then again using an $L$-sentence we would have $M$ has at least $n+1$ many elements , contradiction ! Hence that would prove $|N|=n$. But unfortunately I'm unable to write the fact that $M$ has at least $n$ many elements by using an $L$-sentence. (Perhaps if we could write $M$ has exactly $n$ many elements using some $L$-sentence, that would also work, but that seems even difficult)
Please help.
We have that $$ M\models\exists x_1...x_n\left(\bigwedge_{i,j\leq n, \ j\neq i}x_i\neq x_j\right) $$ then $$ N\models\exists x_1...x_n\left(\bigwedge_{i,j\leq n, \ j\neq i}x_i\neq x_j\right) $$
Now, if $$ N\models\exists x_{n+1}\exists x_1...x_n(\bigwedge_{i\leq n} x_{n+1}\neq x_i) $$
then $$ M\models\exists x_{n+1}\exists x_1...x_n(\bigwedge_{i\leq n} x_{n+1}\neq x_i) $$ but this is a contradiction, so $|N|=n$.