1. Deterministic Finite Automaton (DFA)
Definition 1. A deterministic finite automaton denoted by is a 5-tuple,
where
(i) Q is a finite set of states;
(ii) Σ is a finite alphabet;
(iii) is the transition function;
(iv) is the start state; and
(v) is the set of accept states.
Let be a string over Σ where each and .
M accepts w if and only if s.t. the following conditions are satisfied:
(a) ;
(b) for ; and
(c)
For Only conditions (a) and (c) are applicable and they become and . We therefore define M to accept ϵ if the start state is also an accept state.
On the other hand, since there is no ϵ-movement in a , the only way the can accept an empty string is to accept it at the start state.
Accordingly, M accepts ϵ if and only if the start state is also an accept state.
If we write instead of for then conditions (a), (b) and (c) can be written as follows:
We say M recognizes language A if accepts and it is written as
Definition 2. A language is called regular if it is recognized by a .
Definition 3. For any language L,
for .
| for
Definition 4. Inductive Transition Function
Let be a .
s.t.
(i)
(ii)
Definition 5.
Proposition 1.
Theorem 1.
For any ,
accepts
Claim: If where and
then
This Claim can be proved by induction on n.
For and the computation becomes .
(By Definition 1.4(i))
Therefore, the statement is true for .
Assume the statement is true for , where .
That is,
Therefore, the statement is true for .
If M accepts where for and or and
st
By Claim,
Therefore, ()
Since
Therefore, M accepts
Conversely, if
Take
By Claim,
Since .
Therefore, M accepts w.
Therefore, accepts w.
Therefore, accepts w.
This completes the proof.
Theorem 2. For any and where
The proof is by induction on .
For .
By Definition 1.4(i),
and
Therefore,
Assume the statement is true for .
The statement is also true for
2. Nondeterministic Finite Automaton (NFA)
Definition 6. A nondeterministic finite automaton () is a 5-tuple,
, where
(i) Q is a finite set of states;
(ii) Σ is a finite alphabet;
(iii) is the transition function, where
the power set of .
(iv) is the start state; and
(v) is the set of accept states.
Let where for and .
N accepts w if and only if s.t. the following conditions are satisfied:
(a)
(b) for
(c)
For
Only conditions (a) and (c) are applicable and they become and .
We therefore define N to accept ϵ if the start state is also an accept state.
If we write instead of for , then conditions (a), (b) and (c) can be written as follows:
.
Note that when this computation becomes and
Definition 7. (Inductive Transition Function)
Let be an .
such that
(i)
(ii) .
Definition 8. .
Proposition 2. If is an , then
(Definition 1.10 (ii))
(Definition 1.10 (i))
Proposition 3. If is an ,
where ; for and or for
s.t.
This proposition can be proved by induction on n.
Let denote the statement:
s.t. ; and
denote the statement: .
For .
s.t.
(Definition 1.10(i))
()
Assume for any .
s.t.
(From computation path of )
(Induction Hypothesis)
where (Definition of )
Since
(Definition 1.10(ii)
and ,
(From computation path of )
Therefore,
Therefore,
Therefore, .
Conversely,
for some
(Induction Hypothesis)
s.t.
Combining the two computation paths,
Therefore, and the proof is complete.
Proposition 4. &,
The proof is by induction on .
Let denote the statement corresponding to
For , .
(Definition 1.10(i))
is true.
Assume is true for .
That is for
For any , ,
LHS of
(By Definition 1.10(ii))
(By Induction Hypothesis)
(By Definition 1.10(ii))
RHS of
Therefore, .
Proposition 5.
The proof is by induction on .
For , .
(Definition 1.10(i))
(Definition 1.10(i))
Claim: , sets and
<Proof of Claim>
LHS
RHS
Assume the statement is true for for .
, .
(Definition 1.10(ii))
(Induction Hypothesis)
(Claim)
(Definition 1.10(ii))
Therefore, the statement is also true for .
Proposition 6. for all .
LHS
(Proposition 1.15)
= RHS
Proposition 7. where
(Set Theory)
(Proposition 1.15)
Therefore,
Proposition 8. For any two and , where
and
The proof is by induction on .
For , .
and (By Definition 1.10(i))
Therefore,
The statement is true for .
Assume the statement is true for .
That is, for .
For ,
(By Induction Hypothesis and )
(By Definition 1.10(ii))
Theorem 3. (NFA acceptance)
is an .
where and
for and or and
N accepts w if and only if
In other words, N accepts w if and only if s.t.
If N accepts w
s.t. and .
(By Proposition 1.13)
Since is also in F,
Conversely, if ,
and .
s.t. ; (Proposition 1.13)
Therefore, N accepts w.
4. The Equivalence of DFA and NFA
Lemma 1. Let be an , be a .
such that
Let such that if and if then .
Let be integers and
The following holds:
Proof is by induction on
Let denote the statement of
and denote the statement of corresponding to .
For .
(Definition 1.4(i))
Assume for .
&
& (Induction Hypothesis)
where &
where &
where
where
(Consider &)
where (Definition 1.4(ii))
This completes the proof of Lemma 1.22.
Theorem 4. Every can be converted to an equivalent .
Let be an .
Construct a DFA as follows.
where
such that
We claim that N and M are equivalent by showing that
accepts accepts w
The proof is divided into two cases, one with and one with .
(i)
If N accepts w,
s.t. and .
Therefore, &.
Therefore, &.
Therefore, .
Therefore, .
Therefore, the start state of M is also an accept state of M.
By definition, M accepts .
Conversely, if M accepts ,
(A accepts ϵ iff its start state is also an accept state.)
(By definition of )
and .
Since for some .
Since , N accepts , which is same as ϵ.
(ii)
and
for some integers
If N accepts w,
and s.t.
&.
By Lemma 1.22, where .
Therefore, .
Therefore, .
Therefore, M accepts ( acceptance)
Conversely, if M accepts ,
( acceptance)
(Definition of )
and .
By Lemma 1.22,
&.
Therefore, N accepts
This completes the proof of Theorem 1.23.
Corollary 1. A language is regular iff some recognizes it.
5. Regular Operators
Regular Languages are closed under the operation of Regular Operators.
Theorem 5. L is regular is regular.
Let be the that recognizes L.
That is, .
Define where
s.t.
,
(Theorem 1.8)
accepts w
Conversely, if accepts w,
(Theorem 1.8)
Therefore,
Therefore, (because accepts )
Therefore, accepts w.
is regular.
Theorem 6. and are regular is regular.
and s.t. and
Let
Define as follows.
where
s.t.
.
Claim. , where , if
(i)
(ii)
(iii)
then .
Proof of Claim is by induction on n.
For , (i), (ii) and (iii) become , and .
(By definition of .)
Therefore,
Assume the statement is true for .
(i), (ii) & (iii) for
⇒ (i), (ii) & (iii) for &&&
&&&
(Induction Hypothesis)
&&
&&
(Definition of
We now need to show .
and .
s.t. &
s.t. &
Let
.
Therefore,
By Claim,
Since and .
Therefore, accepts w.
Conversely, if ,
s.t. &
Take
;
;
;
.
Therefore,
By Claim,
Since and .
accepts w and accepts w.
and
and
Combining both directions,
is regular.
Theorem 7. and are regular is regular.
From set theory,
is regular is regular. (Theorem 1.25)
is regular is regular. (Theorem 1.25)
and are regular is regular. (Theorem 1.26)
Therefore, is regular.
Therefore, is regular. (Theorem 1.25)
Theorem 8. Every can be converted to another with the following properties.
(i) There is only one accept state which has transition arrows coming in and no
transition arrows going out.
(ii) The accept state is different from the start state.
(iii) The start state has no arrows coming in from other states but only transition
arrows going out.
Let be the to be converted.
Define , where and
It is clear that N satisfies conditions (i), (ii) and (iii).
Furthermore, and hence
by Proposition 1.18.
It remains to show that accepts accepts w.
For forward direction ,
Let accepts w.
, .
Since .
Since .
Furthermore, since , .
Therefore, .
That is,
Therefore, .
Therefore N accepts which is the same as w.
Therefore, accepts accepts w.
Conversely, if N accepts where for &.
(Note that if .)
s.t.
&
Since the only way to transition to using δ is from a state in via the ϵ arrow, we must have &.
Since the only way to transition out of using δ is via an ϵ arrow, we must have .
Since , we must have .
We now can rewrite the above computation as
&.
For all because has both incoming and outgoing arrows.
Therefore, .
Claim. .
Since or by definition of δ.
or
or (because )
The computation now becomes
&.
Therefore, &.
Therefore, accepts .
Therefore, accepts because .
Therefore, N accepts accepts w.
This completes the proof of Theorem 1.28.
Theorem 9. For any regular languages and , the language is regular.
Since and are regular, there exist that recognize and .
By Theorem 1.28, we can start with and defined as follows.
where
and .
where
and .
We can further assume that because we can always replace with a set of objects which are completely different from those in without affecting the function of .
Now construct where .
We now need to show .
If where and .
Since recognizes and recognizes accepts and accepts .
and such that
and (By Theorem 1.19 of Acceptance)
and (Proposition 1.18 and ).
By definition of .
Therefore,
.
Therefore, N accepts which is the same as .
Conversely, if N accepts where for ,
such that
&.
(Note that if ).
Since the only way to transition from a state of to a state of is via to using the ϵ arrow, ∃ an and such that and the computation becomes
.
Claim 1. .
<Proof of Claim 1>
.
Assume for contradiction that .
Then .
( if )
⇒ Contradiction
Therefore, .
With similar and inductive argument, we can conclude are all in .
Claim 2. .
Assume for contradiction for some .
Therefore, .
By definition of
or
or
or
Therefore, or .
Either of these leads to a contradiction.
Therefore, .
Combining Claim 1 and Claim 2, .
By definition of .
Therefore, computation can be replaced by computation
.
Therefore, accepts .
.
Claim 3. .
<Proof of Claim 3>
if
.
With similar and inductive argument, we can show that are all in .
Therefore, computation can be replaced by computation
Therefore, accepts .
.
.
Therefore, .
Therefore, .
Combining both directions, .
Theorem 10. For any regular language is regular.
Let be the that recognizes L.
By Theorem 1.28, we can start with an defined as follows.
where
and .
Let such that .
We need to show accepts w.
If ,
for some .
If .
Therefore, .
ϵ is accepted by N because N has a start state that is also an accept state.
For ,
let with each for .
Therefore, accepts for each i.
For each (By Theorem 1.19 of Acceptance)
For each (Proposition 1.18)
Since ,
.
Therefore,
Therefore, N accepts .
Therefore, accepts w.
Conversely, if N accepts where for .
(Note that if .)
such that
&.
Since if .
Furthermore, .
Therefore, .
because has no incoming arrows.
The computation now becomes
.
Therefore, .
Claim 1:
For the computation, &,
if for , then &.
<Proof of Claim 1>
.
or (by definition of T)
or (by definition of )
or
Therefore, or .
Therefore, and hence .
Therefore,
if
if (by definition of )
⇒ Contradiction if .
Therefore, .
Claim 2:
For any computation ,
if ∃ no in between and , that is for , then
for some .
<Proof of Claim 2>
because has no incoming arrows.
Therefore, .
Therefore, .
By definition of if .
Therefore, for &.
The given computation can be replaced by
,
where .
Back to computation .
Let m be the number of ’s in between &.
If , by Claim 2, where .
accepts .
.
accepts w.
.
For .
By Claim 1, .
(Claim 2)
(Claim 1)
(Claim 2)
(Claim 1)
⋮
⋮
(Claim 2)
(Claim 1 & Claim 2)
Therefore, accepts .
.
However, .
.
Therefore, .
Therefore, N accepts .
Combining both directions, accepts w.
This completes the proof of Theorem 1.30.
Definition 10. For any string , where for each i, the reverse of w, written is the string .
For any language A, .
Theorem 11. For any language A, A is regular iff is regular.
Since A is regular, there is an , that recognizes it.
Let .
Construct where such that
From the third row of this definition, it immediately follows that
or
.
Claim: ∃ a computation path for w from p to q via transition function iff ∃ a computation path for from q to p via transition function .
That is, .
This Claim can be proved by induction on .
For , where .
From ,
Therefore, the statement is true for .
Assume the statement is true for where .
That is , for .
(Proposition 1.12)
and
and (Induction Hypothesis and (*))
(Proposition 1.12)
()
The statement is true for and the proof of Claim is complete.
To prove that is regular, we need to prove that
iff accepts .
If , .
Since accepts w, , (Theorem 1.19 – acceptance)
By Claim,
Since , and ,
.
Therefore, .
accepts (Theorem 1.19 – acceptance)
accepts .
Conversely, if accepts ,
accepts .
(Theorem 1.19 – acceptance)
(Proposition 1.12)
Since , .
, and (Claim)
Therefore, accepts (Theorem 1.19 – acceptance)
( recognizes A)
.
iff accepts .
We have proved that A is regular is regular.
On the other hand, sine ,
is regular is regular is regular.
Therefore, A is regular iff is regular.
6. Regular Expression
Definition 11. (Regular Expression)
Let Σ be a finite alphabet.
is a set with the following properties:
(a) iff R is one of the following:
(i) a for some
(ii)
(iii)
(iv) for some
(v) for some
(vi) for some
where and are operations in with
(b)
∃ an injective (one-to-one) mapping s.t.
(i)
(ii)
(iii)
(iv)
(v)
(vi)
is called the set of all regular expressions over the alphabet Σ.
Any member of is called a regular expression over Σ.
For any regular expression R, is called the language described by R.
While and are operations in , and * are set operations in .
When there is no danger of confusion, and are usually written same as and *.
While and are regular expressions, ϵ is the empty string and ∅ is the empty language. When there is no danger of confusion, they are all written as ϵ and ∅.
Proposition 10. Let Σ be a finite alphabet and be the set of all regular expressions over Σ.
The following statements are true.
(a)
(b) ∃ regular expressions and such that and . When there is no danger of confusion, and are usually written same as Σ and .
(a)
from set theory.
Therefore,
Therefore, (L is one-one)
(b) Define
is a regular expression by Definition 1.33(a)(i) and 1.33(a)(iv).
By Definition 1.33(b)(iv)
Define .
is a regular expression by Definition 1.33(a)(vi).
By Definition 1.33(b)(vi),
Example 1. Find the language described by where .
.
Example 2. Find the language described by where .
.
Lemma 2. If a language is described by a regular expression, then it is regular. That is, if for some , then for some finite automaton N.
From the formal definition of regular expressions, R is one of the following:
(i) a for some
(ii)
(iii)
(iv) for some
(v) for some
(vi) for some
In case (i), and can be recognized by the defined as follows:
such that , .
In case (ii), and can be recognized by the following :
, where and .
In case (iii), , which is recognized by the following :
where .
In cases (iv), (v) and (vi), R is repeated operations of and on a, ϵ and ∅. Since we have shown above , and are regular and we have proved before that regular languages are closed under and * , is regular.
Definition 12. A generalized nondeterministic finite automaton (denoted by ) has all the properties as described in Theorem 1.28 and is a 5-tuple, where
(i) Q is a finite set of states;
(ii) Σ is a finite alphabet;
(iii) is the transition function;
(iv) is the start state; and
(v) is the accept state.
A accepts a string , if , where each is in and a sequence of states exist such that
(1) ;
(2) ; and
(3) For each i, where
and is the language described by expression .
If we write instead of , the definition of acceptance can be written as
with for .
Lemma 3. Every can be converted into an equivalent .
Because of Theorem 1.28, we can start with an defined as follows.
where
; ; and .
Define , as follows:
where
such that:
where
; and
.
Note that if , , ; and
is unique and therefore is unique.
Since w is the concatenation of symbols from Σ, and every symbol in Σ is a regular expression, w is a regular expression.
Therefore, is a regular expression.
Therefore, is well defined.
Claim 1. For any string w in , .
< Proof of Claim 1 >
where
Claim 2. , N accepts accepts w.
< Proof of Claim 2 >
For forward direction
Let N accepts w where , , and each is in for .
By theorem of acceptance, such that
.
Since .
By definition of ,
(By Claim 1)
.
Since , .
Since ,
.
accepts w.
Conversely, if accepts w for , , and each is in ,
such that
with ,
and
(By Claim 1)
.
,
(Definition of )
Therefore, .
Therefore, N accepts .
N and are equivalent and the Lemma is proved.
Lemma 4. Every of n states () can be reduced to an equivalent of 2 states.
This lemma can be proved by induction on n.
It is trivial that the statement is true for .
Assume that the statement is true for .
Let be a with states.
because .
Construct such that
,
.
Therefore, is a with k states.
Let G accept where each .
such that
; and
.
If none of is , then they are all in .
Also,
where
with .
Therefore, accepts .
If ∃ some q’s in the sequence which are ,
let be the first such and be the first state in the sequence after such that .
.
⋮
Let
and
and
Therefore,
where
If there are no more ’s in the sequence,
is the path of acceptance in for ,
which is the same as because
.
Therefore, accepts .
If there are some more ’s in the sequence, repeat the above process until all ’s are removed and the resulting computation path is the path of acceptance of w in .
Conversely, if accepts where ,
such that
with where .
Therefore,
Therefore, or .
If ,
where
is the acceptance path for in G.
If ,
let where
,
, and
.
such that .
where each .
is a computation path in G for .
This is true for all .
Therefore, there is a computation path in G from to for .
Therefore, G accepts .
So G and are equivalent.
Since has k states, by induction hypothesis, can be reduced to an equivalent of 2 states.
Hence, G can be reduced to an equivalent of 2 states.
This completes the proof.
Lemma 5. If an , is equivalent to a 2-state , , then where .
accepts w
accepts (N and are equivalent.)
()
By Lemmas 1.39, 1.40, 1.41, we have the following conclusion:
Lemma 6. If a language is regular, it is described by a regular expression.
By Lemma 1.37 and Lemma 1.42, we have the following theorem.
Theorem 12. A language is regular iff some regular expression describes it.
7. Pumping Lemma
Theorem 13. - Pumping Lemma
Let A be a language.
Let denote the following statement:
∃ a number p (the pumping length) where, if s is any string in A of length at least p, then s may be divided into three pieces, , satisfying the following conditions:
(1) For each , ,
(2) , and
(3) .
The Pumping Lemma states that A is regular .
Since A is regular, there exists a finite automaton that recognizes A.
That is, .
Let p be the number of states in M.
Let where each and .
, such that
.
Since is a sub path with states.
Since M has only p states, by the pigeonhole principle, such that and .
Let and .
Therefore, .
Since , .
Therefore, with .
Therefore, M accepts .
Therefore, .
Since , .
.
This completes the proof of the Pumping Lemma.
Theorem 14. - Pumping Lemma (contra positive form)
is not regular where
is equivalent to:
with such that whenever , at least one of the conditions or cannot be satisfied.
The contra positive form of the Pumping Lemma is used to prove a language is not regular. The general strategy is to find an with for any given so that whenever s is broken into , at least one of the conditions of or must be false. This can be usually accomplished by showing one of the following:
(i) Condition 1 alone is false.
(ii) Condition 3 (Condition 1)
(iii) (Condition 2 and Condition 3) (Condition 1).
Example 3. Show that is not regular.
The strategy is to create an s that will force y to contain all 0’s or all 1’s so that when y is pumped indefinitely, will contain too many 0’s or 1’s to make it impossible for to remain in A.
Since Condition 3 requires , a prefix of in s will achieve that purpose.
Formally, we make the argument as follows.
, let .
and .
If , then .
Condition 3
consists of only 0’s
consists of only 0’s.
.
Since Condition 2 requires , adds a positive number of 0’s to .
Since has equal numbers of 0’s and 1’s, must have more 0’s than 1’s and hence is not in A.
Therefore, (Condition 2 + Condition 3) (Condition 1) and hence A is not regular.
Example 4. Show that is not regular.
The strategy is to create an s with some leading 0’s on the left, say but we also want to make sure that is long enough to force to contain all 0’s in it so that when y is pumped up indefinitely, it will create too many 0’s to make it impossible for .
Since Condition 3 requires , we want to make .
A natural candidate for s is therefore .
To prove that this construction works, however, requires some algebraic manipulation.
Formally, we make the argument as follows.
, take .
If , then .
Condition 3
consists of only 0’s
consists of only 0’s.
Let where or .
For , ( by Condition 2)
Therefore, for .
Assume for contradiction that , .
That is, .
For all ,
( for )
Therefore, .
This implies w consists of at least two 1’s.
On the other hand, .
This implies w must consist of all 0’s.
This leads to a contradiction.
Therefore, (Condition 2 + Condition 3) (Condition 1) and hence A is not regular.
Example 5. Show that is not regular.
The idea behind this problem is every time we pump up y, we increase the length of s by an amount of which is bounded by p and p is fixed. On the other hand, s has to be the square of a natural number and the difference between two consecutive squares, say and will grow to infinity as n goes to infinity. In this case, we don’t have to worry about how to create more 0’s in s so as to outnumber the 1’s or vice versa. This particular nature of s will automatically lead to a contradiction to Condition 1 as grows to infinity.
Proving this to work requires some algebraic manipulation.
The formal argument is made as follows.
, take
Therefore, .
Assume for contradiction that Condition 1 is true.
That is, , .
Both and are in A.
Let and where m and n are positive integers.
and .
By Condition 2,
By Condition 3, .
Therefore, .
Therefore, .
.
.
where is true for all i.
On the other hand,
Condition 2 .
.
for all i.
For , and
This contradicts which is true for all i.
Therefore, (Condition 2 + Condition 3) (Condition 1) and hence A is not regular.
8. Myhill-Nerode Theorem
Definition 13. ,
we say that x and y are indistinguishable by L iff .
We say that x and y are distinguishable by L iff there exists such that exactly one of and is in L.
If x and y are indistinguishable by L, we write .
Proposition 11. is an equivalence relation.
is reflexive.
,
is symmetric.
,
is transitive.
Proposition 12. is right congruence. That is .
,
()
(Definition of )
Proposition 13.
Take .
Therefore, .
Theorem 15. - Myhill-Nerode Theorem
Let .
X is said to be pairwise distinguishable by L iff every two distinct strings in X are
distinguishable by L.
The index of L is defined as
.
The following statements are true:
If L is recognized by a with k states, L has an index at most k.
If the index of L is a finite number k, it is recognized by a with k states.
L is regular iff it has finite index. Moreover, its index is the size of the smallest
recognizing it.
Let be a with k states that recognizes L.
Assume for contradiction that L has an index greater than k.
(pairwise distinguishable by L) that has more than k members.
Let be distinct and pairwise distinguishable members in X.
are states in Q.
Since , by the pigeonhole principle, there are where s.t.
.
,
(M recognizes L)
(Proposition 1.14)
(Proposition 1.14)
(M recognizes L)
Therefore, (Definition of )
This contradicts the assumption that X is pairwise distinguishable by L.
Let be pairwise distinguishable by L.
Claim 1. and hence .
<Proof of Claim 1>
(pairwise distinguishable by L) that has at least 2 members.
where and are distinguishable by L.
s.t. and or vice versa.
.
Since or , L is defined to be 1 whenever .
Claim 2. , there is one and only one s.t. . Hence by taking ,
there is one and only one s.t. .
<Proof of Claim 2>
Either or .
If s.t. .
Call this so that .
Since is reflexive, it follows that .
If , w must be indistinguishable with a member of X otherwise it will contradict
the assumption that .
Therefore, for some .
Either case, for some .
If there is another s.t. , then because is transitive.
This contradicts the assumption that X is pairwise distinguishable by L.
Therefore, is unique.
Claim 3. If then
<Proof of Claim 3>
By Claim 2, there is one and only one s.t. .
By Proposition 1.52, .
Therefore, .
Therefore, .
This completes proof of Claim 3.
If Index , which is recognized by the one-state ,
where .
If ,
where X is pairwise distinguishable by L.
Let
Let such that with
f is bijective (one-one and onto).
a unique s.t. since f is bijective.
a unique s.t. by Claim 2.
Since f is a bijective mapping, there is a unique such that .
Let where
s.t. where
s.t. where and .
If there is another such that such that and
by definition of .
Since is transitive, .
This contradicts that both and are in X and hence must be distinguishable by L.
Therefore, is uniquely defined.
where and is defined in Claim 2.
because of Claim 1 and Claim 3.
Claim 4. , where .
<Proof of Claim 4>
Claim 4 can be proved by induction on .
For , there exists one and only one s.t. by Claim 2.
()
(Definition of 1.4(i))
(Definition of )
(Definition of )
(f is bijective)
( by Claim 2)
()
The statement is true for .
Let .
.
s.t.
s.t. and
(By induction hypothesis)
( is right congruence by Proposition 1.51)
(Definition of δ)
( is transitive)
Conversely, if for some ,
where
By induction hypothesis, because .
(Right congruence by Proposition 1.51)
Let
(By definition of δ)
( is transitive)
(Assumption)
(Claim 2)
This completes the proof of Claim 4.
It remains to prove .
one and only one s.t. (By Claim 2)
(Proposition 1.52)
Therefore, ()
Since and , (Definition of F)
(Claim 4)
()
M accepts ()
Conversely, if M accepts w,
and ()
where (Claim 4)
(Proposition 1.52)
Since and ,
by definition of F.
Therefore, .
Therefore, .
and M has k states.
L is regular
s.t.
where the number of states in (by (a))
has a finite index
L has a finite index
for some k-state (by (b))
is regular
Assume for contradiction that there is a -state accepting L where .
By (a), .
This would contradict L.