Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8694749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:51:32+00:00 2026-06-13T00:51:32+00:00

I’m learning the difference between the lemmata in the question. Every reference I can

  • 0

I’m learning the difference between the lemmata in the question. Every reference I can find uses the example:

{(a^i)(b^j)(c^k)(d^l) : i = 0 or j = k = l}

to show the difference between the two. I can find an example using the regular lemma to “disprove” it.

Select w = uvxyz, s.t. |vy| > 0, |vxy| <= p.
Suppose w contains an equal number of b’s, c’s, d’s.

I selected:

u,v,x = ε
y = (the string of a's)
z = (the rest of the string w)

Pumping y will just add to the number of a’s, and if |b|=|c|=|d| at first, it still will now.

(Similar argument for if w has no a’s. Then just pump whatever you want.)

My question is, how does Ogden’s lemma change this strategy? What does “marking” do?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:51:33+00:00Added an answer on June 13, 2026 at 12:51 am

    One important stumbling issue here is that “being able to pump” does not imply context free, rather “not being able to pump” shows it is not context free. Similarly, being grey does not imply you’re an elephant, but being an elephant does imply you’re grey…

    Grammar context free        => Pumping Lemma is definitely satisfied  
    Grammar not context free    => Pumping Lemma *may* be satisfied
    Pumping Lemma satisfied     => Grammar *may* be context free
    Pumping Lemma not satisfied => Grammar definitely not context free
    # (we can write exactly the same for Ogden's Lemma)
    # Here "=>" should be read as implies
    

    That is to say, in order to demonstrate that a language is not context free we must show it fails(!) to satisfy one of these lemmata. (Even if it satisfies both we haven’t proved it is context free.)

    Below is a sketch proof that L = { a^i b^j c^k d^l where i = 0 or j = k = l} is not context free (although it satisfies The Pumping Lemma, it doesn’t satisfy Ogden’s Lemma):

    Pumping lemma for context free grammars:

    If a language L is context-free, then there exists some integer p ≥ 1 such that any string s in L with |s| ≥ p (where p is a pumping length) can be written as
    s = uvxyz
    with substrings u, v, x, y and z, such that:
    1. |vxy| ≤ p,
    2. |vy| ≥ 1, and
    3. u v^n x y^n z is in L for every natural number n.

    In our example:

    For any s in L (with |s|>=p):

    • If s contains as then choose v=a, x=epsilon, y=epsilon (and we have no contradiction to the language being context-free).
    • If s contains no as (w=b^j c^k d^l and one of j, k or l is non-zero, since |s|>=1) then choose v=b (if j>0, v=c elif k>0, else v=c), x=epsilon, y=epsilon (and we have no contradiction to the language being context-free).

    (So unfortunately: using the Pumping Lemma we are unable to prove anything about L!
    Note: the above was essentially the argument you gave in the question.)

    Ogden’s Lemma:

    If a language L is context-free, then there exists some number p > 0 (where p may or may not be a pumping length) such that for any string w of length at least p in L and every way of “marking” p or more of the positions in w, w can be written as
    w = uxyzv
    with strings u, x, y, z, and v such that:
    1. xz has at least one marked position,
    2. xyz has at most p marked positions, and
    3. u x^n y z^n v is in L for every n ≥ 0.

    Note: this marking is the key part of Ogden’s Lemma, it says: “not only can every element be “pumped”, but it can be pumped using any p marked positions”.

    In our example:

    Let w = a b^p c^p d^p and mark the positions of the bs (of which there are p, so w satisfies the requirements of Ogden’s Lemma), and let u,x,y,z,v be a decomposition satisfying the conditions from Ogden’s lemma (z=uxyzv).

    • If x or z contain multiple symbols, then u x^2 y z^2 w is not in L, because there will be symbols in the wrong order (consider (bc)^2 = bcbc).
    • Either x or z must contain a b (by Lemma condition 1.)

    This leaves us with five cases to check (for i,j>0):

    • x=epsilon, z=b^i
    • x=a, z=b^i
    • x=b^i, z=c^j
    • x=b^i, z=d^j
    • x=b^i, z=epsilon

    in every case (by comparing the number of bs, cs and ds) we can see that u x^2 v y^2 z is not in L (and we have a contradiction (!) to the language being context-free, that is, we’ve proved that L is not context free).

    .

    To summarise, L is not context-free, but this cannot be demonstrated using The Pumping Lemma (but can by Ogden’s Lemma) and thus we can say that:

    Ogden’s lemma is a second, stronger pumping lemma for context-free languages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I want to show the soap response to UIWebview.. my soap response is, <p><img

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.