How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
The pumping lemma for context-free languages
Statement
If is a context-free language, then there exists an integer such that every word with can be written as with
Facts & Assumptions
Given: A context-free language .
By The language generated by a CFG, there exists a context-free grammar with .
By Every context-free language has an equivalent grammar in Chomsky normal form, has an equivalent grammar in Chomsky normal form.
By Derivations and parse trees correspond, every word of the language of a CFG is the yield of some parse tree for that grammar.
By A Chomsky-normal-form parse tree of height has yield length at most , a CNF parse tree of height has yield length at most .
Proof
Choose a CNF grammar with by [L1] and [L2], and let . Set . Let satisfy . By [L3], is the yield of some parse tree for . If every root-to-leaf path of had at most variable nodes, then would have height at most , so [L4] would give , contradicting . Therefore some root-to-leaf path has at least variable occurrences.
Choose two equal variables on the last variable occurrences of such a path, with the upper one above the lower one. Let the yield of the upper -subtree be and the yield of the lower -subtree be , so the whole word is . Because the lower occurrence lies strictly below the upper one and is in CNF, the path segment from the upper to the lower one cannot consist only of unit moves, so at least one of the side contexts and is nonempty. Hence . The upper -subtree contains at most the last variable occurrences on the path, so its height is at most ; therefore [L4] gives .
The parse-tree segment from the upper occurrence of down to the lower one shows that , and the lower subtree shows . Repeating or deleting the first derivation segment any number of times while keeping the rest of the tree fixed yields derivations of in for every . Hence every such word lies in .
Therefore the integer satisfies the required pumping property.
Depends on
Used by
Dependency tree · two levels
12 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Jean Gallier and Jocelyn Quaintance, Introduction to the Theory of Computation: Some Notes for CIS511 (standard reference, not scraped)
- Alfred V. Aho, COMS W3261 CS Theory, Lecture 10 (standard reference, not scraped)