Every programming language has a rule about matching parentheses. Every URL must have balanced slashes and a valid domain. These patterns look regular — and yet no finite automaton can recognize them. The Pumping Lemma, proven by Michael Rabin and Dana Scott in their landmark 1959 paper that won the Turing Award, tells us precisely why.
A finite automaton (DFA) is the simplest model of computation: a fixed number of states, a reading head that scans one character at a time, and a transition function that never grows. It can remember exactly as much as its state count allows — no more.
Now feed a string longer than the automaton's state count into it. By the pigeonhole principle, at least one state must be visited twice. That creates a loop — a middle segment of the string that can be repeated (pumped) any number of times, including zero, and the machine will still reach the same accepting state. If that pumped string ever leaves the language, the language was never regular to begin with.
That is the Pumping Lemma: a necessary condition for regularity that works as a falsifier. You cannot use it to prove a language is regular; you use it to prove one is not.
Comments
Loading comments...