Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12
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 L is a context-free language, then there exists an integer p1 such that every word zL with zp can be written as z=uvwxy with vx1,vwxp,uviwxiyL for every i0.

Facts & Assumptions

Given: A context-free language L.

[L1]

By The language generated by a CFG, there exists a context-free grammar G with L=L(G).

[L2]

By Every context-free language has an equivalent grammar in Chomsky normal form, G has an equivalent grammar in Chomsky normal form.

[L3]

By Derivations and parse trees correspond, every word of the language of a CFG is the yield of some parse tree for that grammar.

[L4]

By A Chomsky-normal-form parse tree of height h has yield length at most 2h1, a CNF parse tree of height h has yield length at most 2h1.

Proof

technique · direct
1.1

Choose a CNF grammar G=(V,Σ,P,S) with L(G)=L by [L1] and [L2], and let m:=V. Set p:=2m+1+1. Let zL satisfy zp. By [L3], z is the yield of some parse tree T for G. If every root-to-leaf path of T had at most m variable nodes, then T would have height at most m+1, so [L4] would give z2m<p, contradicting zp. Therefore some root-to-leaf path has at least m+1 variable occurrences.

L1L2L3L4givenchoose
2.1

Choose two equal variables A on the last m+1 variable occurrences of such a path, with the upper one above the lower one. Let the yield of the upper A-subtree be vwx and the yield of the lower A-subtree be w, so the whole word is uvwxy. Because the lower occurrence lies strictly below the upper one and G is in CNF, the path segment from the upper A to the lower one cannot consist only of unit moves, so at least one of the side contexts v and x is nonempty. Hence vx1. The upper A-subtree contains at most the last m+1 variable occurrences on the path, so its height is at most m+2; therefore [L4] gives vwx2m+1<p.

L4step 1.1choose
3.1

The parse-tree segment from the upper occurrence of A down to the lower one shows that AvAx, and the lower subtree shows Aw. Repeating or deleting the first derivation segment any number of times while keeping the rest of the tree fixed yields derivations of uviwxiy in G for every i0. Hence every such word lies in L(G)=L.

L3step 2.1
4.1

Therefore the integer p satisfies the required pumping property.

step 2.1step 3.1

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