Notation, definitions, constructions and procedures of the Automata and Formal Languages course in one place, in course order.
Last updated:
Using the sheet
A page for looking things up: notation, definitions, constructions and procedures, in the order of the course. It teaches nothing new; each concept links to its glossary entry. The sheet grows with the course: a unit appears here when its first lesson is published.
To proveL1=L2: show both inclusions, L1⊆L2 and L2⊆L1, from the definitions of the operations (for an arbitrary word w, a chain of equivalences also works).
To refuteL1=L2: give one word that belongs to one language and not to the other.
Deterministic Finite Automata and Regular Languages
For a complete DFA (a transition for every state and letter):
AC=(Q,Σ,δ,q0,Q−F),L(AC)=Σ∗−L(A)
Product automaton
For A=(QA,Σ,δA,q0,FA) and B=(QB,Σ,δB,p0,FB) over the same alphabet (otherwise extend both to the union of the alphabets), the product automaton has
Qδ((q,p),x)start state =QA×QB=(δA(q,x),δB(p,x))(q0,p0)
and a set of accepting states that depends on the language we want:
Table filling, after removing the unreachable states: round 0 marks every pair of an accepting and a non-accepting state; round k marks a pair p,q if for some letter x the pair δ(p,x),δ(q,x) was marked in an earlier round; stop after a round that marks no pair. An unmarked pair is a pair of equivalent states.
Lower bound: if x1,…,xn are pairwise distinguishable, every DFA for L has at least n states. For a language that has a DFA, the number of classes is the number of states of the smallest DFA, which is unique up to renaming.
The Pumping Lemma
The lemma. If L is regular, there is N∈N+ (the pumping length) such that for every word w∈L with ∣w∣≥N there is a split w=xyz with ∣y∣>0,∣xy∣≤N and ∀i≥0:xyiz∈L.
Refuting regularity with the lemma:
Assume, for contradiction, that L is regular.
Then there is an N that satisfies the lemma for L.
Choose a word w∈L that depends on N, with ∣w∣≥N.
Write generally every split w=xyz with ∣y∣>0 and ∣xy∣≤N.
Show that for every such split there is an i≥0 with xyiz∈/L.
This contradicts the lemma, so L is not regular.
The lemma is a necessary condition only: a language that satisfies it need not be regular.