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:

  1. 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