CACrown ArchivesThe cinema collection
Menu
Research dossier · General Reference

Ogden's lemma

generalization of the pumping lemma for context-free languages

Cross-disciplinary reference desk with index cards, atlas, dictionary and catalogue
General referenceInterpretive dossier study · Crown Archives visual atlas
Record originEnglish Wikipedia
Text licenseCC BY-SA 4.0
Source revisionJun 23, 2026
Entity authorityQ1855893
Source-derived summary

In the theory of formal languages, Ogden's lemma (named after William F. Ogden) is a generalization of the pumping lemma for context-free languages.

Despite Ogden's lemma being a strengthening of the pumping lemma, it is insufficient to fully characterize the class of context-free languages. This is in contrast to the Myhill–Nerode theorem, which unlike the pumping lemma for regular languages is a necessary and sufficient condition for regularity.

Statement

We will use underlines to indicate "marked" positions.

Special cases

Ogden's lemma is often stated in the following form, which can be obtained by "forgetting about" the grammar, and concentrating on the language itself:

If a language L is context-free, then there exists some number

p

1

{\displaystyle p\geq 1}

(where p may or may not be a pumping length) such that for any string s of length at least p in L and every way of "marking" p or more of the positions in s, s can be written as

s

=

u

v

w

x

y

{\displaystyle s=uvwxy}

with strings u, v, w, x, and y, such that

vx has at least one marked position,

vwx has at most p marked positions, and

u

v

n

w

x

n

y

L

{\displaystyle uv^{n}wx^{n}y\in L}

for all

n

0

{\displaystyle n\geq 0}

.

In the special case where every position is marked, Ogden's lemma is equivalent to the pumping lemma for context-free languages. Ogden's lemma can be used to show that certain languages are not context-free in cases where the pumping lemma is not sufficient. An example is the language

{

a

i

b

j

c

k

d

l

:

i

=

0

or

j

=

k

=

l

}

{\displaystyle \{a^{i}b^{j}c^{k}d^{l}:i=0{\text{ or }}j=k=l\}}

.

Example applications

Non-context-freeness

The special case of Ogden's lemma is often sufficient to prove some languages are not context-free. For example,

{

a

m

b

n

c

m

d

n

|

m

,

n

1

}

{\displaystyle \{a^{m}b^{n}c^{m}d^{n}|m,n\geq 1\}}

is a standard example of non-context-free language,

Similarly, one can prove the "copy twice" language

L

=

{

w

2

|

w

{

a

,

b

}

}

{\displaystyle L=\{w^{2}|w\in \{a,b\}^{*}\}}

is not context-free, by using Ogden's lemma on

a

2

p

b

2

p

_

a

2

p

b

2

p

{\displaystyle a^{2p}{\underline {b^{2p}}}a^{2p}b^{2p}}

.

Editorial summary

Begin with the source’s own compact description: “Ogden's lemma” is generalization of the pumping lemma for context-free languages. The dossier treats that line as a proposition to test through Ogden's, lemma and generalization, not as a finished interpretation.

Editorial reviewA concise reference frame for defining the subject, testing terminology and identifying the institution closest to the evidence. The current 386-word lead offers orientation but no explicit four-digit date, so chronology should not be assumed. The selected authority fields contribute no independent date. For this dossier, Ogden's, lemma and generalization is the immediate research focus.
Editorial analysis

Why this record matters

The phrase “generalization of the pumping lemma for context-free languages” supplies a clear boundary for inquiry. It also exposes the unanswered questions: who defined that boundary, when it became stable and which sources sit outside it.

Evidence profile

Vocabulary and entity names are the principal evidence signals here, because they determine the precision of every later search. The source revision retrieved here is dated Jun 23, 2026. The linked authority identifier is Q1855893. None of the 0 selected statements returned an explicit reference.

Critical limits

The absence of detail may reflect summary conventions rather than a lack of surviving documentation. The source lead contains qualifying language; that uncertainty should survive quotation, summary and reuse. Authority statements aid reconciliation but still require their own references, qualifiers and ranks to be checked.

How to read it

Use the entry as an orientation point, then follow its citations and revision history. Names, dates and institutional relationships should be checked against the original record.

Best used for
  • Subject orientation
  • Search vocabulary
  • Locating named sources
Verify next

The closest primary source, responsible institution and strongest cited specialist reference.

Three-step research path

  1. Establish the record: confirm the title “Ogden's lemma”, its source revision and the description used here.
  2. Expand the search: follow Ogden's lemma primary sources, Ogden's lemma archive and Ogden's research across catalogues and specialist indexes.
  3. Test the account: compare the strongest cited source with the responsible institution’s current record and note any disagreement.

Questions for further research

  1. Which source most directly establishes the central claim about “Ogden's lemma”?
  2. Which cited source is closest to the event, object or claim?
  3. What terminology or title could unlock a more precise catalogue search?
Subject index

Search terms from this dossier

Source & attribution

This entry incorporates text from Ogden's lemma” on English Wikipedia. Contributors are listed in the page history. Text is available under the Creative Commons Attribution-ShareAlike 4.0 License. Selected authority identifiers and statements are retrieved from Wikidata under CC0; their references and qualifiers remain part of the verification path.