I'm trying to prove that L = {$0^n1^m0^n | m,n >= 1$} in NOT regular but I am struggling with the demostration process.
I know the conditions are that:
- $|y| > 0$; $'y'$ can't be empty
- $|xy| <= p$(word/string length)
- for all $i$ > 0, $xy^iz$ must be in L
Lets choose the string $s = 0^p10^p$.
The first condition states that: $y = 0^k$ for $k > 0$
Being $x$ and $y$ composed of zeros such that complies with the second condition.
At $i = 0$, the string should be in L, thus $xy^0z = xz = 0^{p-k}10^p$ but $y$ can't be empty, right?
From now on, I get lost in the demostration and require help to properly prove it is not regular.