Pumping Lemma

Definition. The pumping lemma states that for every regular language AA there exists a pumping length p≥1p \geq 1 such that every s∈As \in A with ∣s∣≥p|s| \geq p can be written s=xyzs = xyz where xyiz∈Axy^iz \in A for every i≥0i \geq 0, ∣y∣>0|y| > 0, and ∣xy∣≤p|xy| \leq p.

The proof, in Lecture 4, is the pigeonhole principle applied to the states a DFA visits while reading ss: among the first p+1p+1 of them two must coincide, and the loop between them is yy. The lemma is used through its contrapositive, to prove a language is not regular, and the quantifiers decide who chooses what: pp and the split xyzxyz are given to you, while ss and ii are yours to choose. The converse fails, so a language having a pumping length does not make it regular.

Updated
Copyright © 2026 Jared Coleman. All rights reserved.