I have to use the Myhill-Nerode theorem for the following language:
$$L = \left\{ a^n b^n\mid n\ \geq\ 1 \right\}$$
An equivalence relation is the following: $$x \sim y\ \Leftrightarrow \forall\ \ z\ \in \Sigma ^*\ : xz\ \in\ L\ \Leftrightarrow\ yz\ \in\ L$$
I thought that since $a^ib^j$ and $a^jb^j$ for $i \neq j$ belong to two different equivalence classes, and $i,j \in \mathbb{N}$, there are infinite many equivalence classes, so the language $L$ is not regular.
Is this correct?
And is the way I formulated the answer correct? Or is there a better way to construct the answer?