0

Hi I’m trying to prove that L isn’t regular $L=\{0^m1^n \mid3m\leq2n\}.$

It’s from an exam of CS class, that’s my solution even if at some point I’m stuck.

  1. I assume that L is regular
  2. Let k > 0 length of the pumpling lemma
  3. Let w = $0^{2k/3}1^k$ ∈ L and |w| = $2k/3 + k > k$ ‘cause I must respect the condition that $3m≤2n$; $m≤2k/3$
  4. Let xyz be a subdivision of w such that $|xy|<k$ and $ y \neq ε$
  5. ‘Cause of that x and y are not completely contained in the first sequence of zeros

We have to divide in two cases:

(a) xy contains only zeros

  1. Let z = $0^{(2k/3)-p-q}1^k$ with p >= 0 and q > 0 (cause y can’t be an empty string whereas x yes)
  2. xyz = $0^p0^q0^{(2k/3)-p-q}1^k$
  3. We can choose i = 2 so $xy^{2}z=0^p0^{2q}0^{(2k/3)-p-q}1^k$ and $xy^2z=0^{(2k/3)+q}1^k$
  4. This string ∉ L for $q>k/3$

(b) xy contains both zeros and ones

And now I’m stuck … I don’t know if I overthink for case (a) but for case (b) I’ve no clue

Thomas Andrews
  • 177,126
  • 1
    Just make your expression bigger (more 0’s and 1’s) so there is no case (b). – Eric Oct 26 '23 at 22:50
  • Ok got it! Make my expression bigger remove the (b) case but the statement “This string ∉ L for $q>k/3$ “ still remains ‘cause the initial condition of L. Because for $q ≤ k/3$ L ∈ L. Specular reasoning (can be applied if I choose i=0 (in this case the string ∉ L for $q>2 k/3$) as length of pumpling boost. So my answer is: the way I do it is it wrong? I mean adding an additional condition. – guglielmo Oct 27 '23 at 18:00

0 Answers0