I have a language $L$:
$$L = \{w : a^ib^j; i > j \}$$
I need to prove this language is not regular using Pumping Lemma. I'm wondering if I'm doing it correctly:
I need to find a suitable $w$, where $|w| \geq p$ (the pumping length). I choose:
$$w = a^{(p + 1)}b^p$$
This string can be broken up into $3$ substrings ($x, y$ and $z$), where $|y| > 0$.
For all $k \geq 0$, If the string $y$ can be 'pumped' $k$ times, and still be in the language, it is a regular language.
So I need to prove it is not regular by finding a counter example, $k = 2$:
$$xy^2z = a^{(p + 1)}b^{(p + |y|)}$$
Since $p + 1$ is not greater than $p + |y|$, then $L$ is not a regular language.
Would this be enough to prove that the language is not regular? Here, I assumed that $|y|$ could be $1$, since the number of $a$'s is a minimum of $1$.
I think I found the answer.
|xy| can be at most $p$, so it also contain only $a$'s. For this string, setting $i=0$ will make it: $a^{p+1-|y|}b^p$. Since |y| must be $|y| > 0$, then the length of the first a's is at most $p$. Given this, number of a's is Not greater than number of b's. Therefore I have found a string $w$ that does not hold the pumping lemma conditions for all $p >= 1$, therefore $L$ is not regular.