Pumping Lemma for Regular Languages
Context: FIT2014_MOC Ā· the property every infinite regular language must have ā the tool that finally proves some languages are not regular Ā· applied in Proving a Language Non-Regular Ā· the outer-ring twin is Pumping Lemma for Context-Free Languages
Quick Revision
- šÆ Objective: in an FA with states, any accepted word of length must repeat a state, so its path contains a circuit ā the looping segment can be repeated (āpumpedā) any number of times and the word stays in the language.
- ā” Key Constraint: the lemma is a necessary, not sufficient condition ā it can prove a language non-regular, but satisfying it never proves a language is regular.
š Circuits in finite automata
- Circuit ā a directed path that starts and ends at the same state; its length is the number of edges.
- Observation (pigeonhole) ā take any FA and any string with at least as many letters as the FA has states. The path for must revisit a state, so it contains a circuit.
- Natural split ā where
- = the part before the circuit,
- = the part that goes around the circuit,
- = the part after the circuit.
š The lemma
Theorem (Pumping Lemma). Let be an infinite regular language, accepted by an FA with states. Then for all words with , there exist strings with such that:
- for all : ā i.e.
Symbolically:
- ā ā the pumped segment cannot be empty, otherwise the statement would be vacuous.
- is allowed ā āpumping downā to (deleting the loop) is just as legitimate as pumping up.
š§® Formal Proof Blueprint
Theorem. As stated above.
Strategy. Pigeonhole on states, then exploit that a circuit returns to the same state.
Derivation.
Q.E.D.
ā ļø Common Mistakes
- š” Necessary, not sufficient ā every infinite regular language satisfies the lemma, but some non-regular languages satisfy it too. Passing the pumping test proves nothing positive.
- š” The quantifiers are the whole game ā (long enough), , . To use it for a contradiction you pick (you may choose it cleverly) but must handle every valid decomposition .
- š” is mandatory ā without it, taking would satisfy the conclusion trivially for any language.
- š” is a gift, not decoration ā it confines the loop to the first letters of , which is exactly what collapses the case analysis in real proofs.
- š” The lemma is stated for infinite regular languages ā finite languages have no words long enough to force a circuit.
š§ Active Recall
Why must a sufficiently long accepted word give rise to a circuit in the automaton?
Answer
- Short answer: an FA with states reading a word of length visits at least states (counting the start), so by the pigeonhole principle some state is visited twice ā and the path between those two visits is a circuit.
- Why: Finite memory ā the automaton has no way to distinguish the two visits to that state, so whatever follows works identically from either; the loop can therefore be traversed times, giving .
Why can the Pumping Lemma never be used to prove a language is regular?
Answer
- Short answer: it states a property that regularity implies (regular pumpable). Confirming the consequent does not establish the antecedent ā that is the fallacy of affirming the consequent.
- Why: One-way implication ā it is only usable contrapositively: exhibit a word that cannot be pumped the language is not regular. To prove regularity you must instead construct a regular expression or finite automaton (Kleeneās Theorem).