Definition

A language is regular if there exists a deterministic finite automaton (DFA) such that

See Automaton for the definition of a finite automaton and its extended transition function .

Intuitively, a finite automaton can remember only finitely many states of information about the input read so far.

Lemmas

Lemma 3.3

Let be a DFA. Let with satisfy

for some . Then, for every ,

In particular,

Words that reach the same state cannot be distinguished by any common suffix.

Lemma 3.4 (Pumping Lemma)

Let be regular. Then there exists a constant such that every word with has a decomposition satisfying:

  • ;
  • ;
  • for every integer ,

This formulation applies to both accepted and rejected words: pumping preserves membership in . The usual formulation restricts the choice to and concludes that for every .

The middle part must be non-empty, but it may consist of a single symbol. The case removes , since .

Proving non-regularity

Using Lemma 3.3: distinguishable prefixes

Find an infinite set of prefixes such that any two distinct prefixes can be distinguished by a common suffix : exactly one of and belongs to . The suffix may depend on the chosen pair.

If a DFA recognized , these prefixes would have to reach pairwise different states by Lemma 3.3. This requires infinitely many states, contradicting the finiteness of a DFA.

Equivalently, after assuming a DFA has states, it is enough to choose pairwise distinguishable prefixes and apply the pigeonhole principle.

Using the Pumping Lemma

Assume that is regular and let be its pumping length. Choose a word with . For every decomposition satisfying and , find an integer such that . This contradicts the Pumping Lemma.

The order of choices is essential:

You choose the word, but must handle every valid decomposition. The pumping exponent may depend on the decomposition.

Limits of the Pumping Lemma

Showing that one decomposition fails is insufficient to prove non-regularity. The Pumping Lemma is a necessary condition for regularity, not a sufficient condition: satisfying it does not prove that a language is regular.

Examples

TI Exercises Sheet 3

Participants: Eric Osborn (24-924-839), Lu Qiyu (25-927-120), Zhu Haochen (24-919-482)

Task 5

a)

Suppose is regular. Then there is an automaton with . let We consider the words with , which is more than the number of states of . Therefore, there exists with such that

By Lemma 3.3, it follows that for all , We choose . Then , but (because we have ab and ba in this word ()) Contradiction to Lemma 3.3

b)

Task 6

Suppose, for contradiction, that is regular. Then there exists a DFA such that . Let

Since the alphabet contains only one symbol, every state has exactly one outgoing transition. Therefore, when repeatedly reading starting from , some state must eventually be visited twice. Hence the automaton eventually enters a cycle. Let the length of this cycle be . Then

Since is infinite, at least one state in the cycle must be accepting. Otherwise, after entering the cycle no more words could be accepted, and would be finite.

Therefore, once the automaton has entered the cycle, if then also This is because reading another zeros traverses the whole cycle and returns to the same accepting state.

Now, Therefore, we can choose sufficiently large such that and such that is long enough that the automaton has already entered its cyclic part. By the assumption on the gaps,

Since , periodicity of the DFA implies that

But Thus there exists another word in whose length lies strictly between and . This contradicts the fact that and are consecutive words of when ordered by increasing length. Therefore, is not regular

Link to original