Interchange lemma
{{Multiple issues|
{{primary sources|date=March 2019}}
{{No footnotes|date=September 2022}}
}}
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.
It states that for every context-free language there is a such that for all for any collection of length words there is a with , and decompositions such that each of , , is independent of , moreover, , and the words are in for every and .
The first application of the interchange lemma was to show that the set of repetitive strings (i.e., strings of the form with ) over an alphabet of three or more characters is not context-free.
See also
References
- {{cite journal | author=William Ogden, Rockford J. Ross, and Karl Winklmann | title=An "Interchange Lemma" for Context-Free Languages | journal= SIAM Journal on Computing| volume=14 | year=1982 | pages=410–415 | doi=10.1137/0214031 | issue=2}}
{{Formal languages and grammars |state=collapsed}}
{{grammar-stub}}