Interchange lemma
In the theory of formal languages, the interchange lemma states a necessary condition for a language to be context-free, just like the pumping lemma for context-free languages.[src] It states that for every context-free language L there is a c>0 such that for all n\geq m\geq 2 for any collection of length n words R\subset L there is a Z=\{z_1,\ldots,z_k\}\subset R with k\ge |R|/(cn^2) , and decompositions z_i=w_ix_iy_i such that each of |w_i| , |x_i| , |y_i| is independent of i , moreover, m/2 , and the words w_ix_jy_i are in L for every i and j .[src] The first application of the interchange lemma was to show that the set of repetitive strings (i.e., strings of the form xyyz with |y|>0 ) over an alphabet of three or more characters is not context-free.[src]
In the theory of formal languages, the interchange lemma states a necessary condition for a language to be context-free, just like the pumping lemma for context-free languages.[src] It states that for every context-free language L there is a c>0 such that for all n\geq m\geq 2 for any collection of length n words R\subset L there is a Z=\{z_1,\ldots,z_k\}\subset R with k\ge |R|/(cn^2) , and decompositions z_i=w_ix_iy_i such that each of |w_i| , |x_i| , |y_i| is independent of i , moreover, m/2 , and the words w_ix_jy_i are in L for every i and j .[src] The first application of the interchange lemma was to show that the set of repetitive strings (i.e., strings of the form xyyz with |y|>0 ) over an alphabet of three or more characters is not context-free.[src]
6 sentences · 6 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Interchange lemma." encyclopegia.org, 2022, https://encyclopegia.org/wiki/interchange-lemma. Accessed 03 December 2026.
Chicago
"Interchange lemma." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/interchange-lemma.
APA
encyclopegia.org. (2022). Interchange lemma. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/interchange-lemma
Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON