Definition
Definition for Regular Languages
Definition
Link to originalPumping Lemma (Regular Languages)
Infinite regular language have a special property: Every word from a certain length onward can be pumped, i.e. every such word contains a substring that can be repeated arbitrarily often, with the resulting words still belong to the same language.
Let be an infinite regular language. Then there exists a bound (depending only on ) such that for every word with there exist words , such that:
and
Short (quantifier) form:
Important
Equivalently:
Definition for Context-free Languages
Definition
Link to originalPumping Lemma (Context-free Languages)
Infinite context-free languages have a special pumping property: every sufficiently long word contains a middle part that can be repeated.
Let be an infinite context-free language. Then there exists a bound (depending only on ) such that for every word with there exist words , such that:
and
Short (quantifier) form:
Important
Equivalently: