Interchange lemma

From testwiki
Revision as of 17:32, 18 September 2022 by imported>Old Man Consequences (Stub sort)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Multiple issues 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 L there is a c>0 such that for all nm2 for any collection of length n words RL there is a Z={z1,,zk}R with k|R|/(cn2), and decompositions zi=wixiyi such that each of |wi|, |xi|, |yi| is independent of i, moreover, m/2<|xi|m, and the words wixjyi are in L for every i and j.

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.

See also

References

Template:Formal languages and grammars


Template:Grammar-stub