Here
is the transition function of a simple, deterministic automaton with
start state A and accepting state B:
We want to show that
this automaton accepts exactly those strings with an odd number of 1's,
or more formally:
δ(A,w) = B if and only if w has
an odd number of 1's.
Here, δ is the extended transition
function of the automaton; that is, δ(A,w) is the state that the automaton is
in after processing input string w. The proof of the statement above is
an induction on the length of w. Below, we give the proof with reasons
missing. You must give a reason for each step, and then demonstrate your
understanding of the proof by classifying your reasons into the following
three categories:
A)
Use of the inductive hypothesis.
B)
Reasoning about properties of
deterministic finite automata, e.g., that if string s = yz, then δ(q,s) = δ(δ(q,y),z).
C)
Reasoning about properties of binary
strings (strings of 0's and 1's), e.g., that every string is longer than
any of its proper substrings.
Basis (|w| = 0):
(1)
w = ε because ________
(2)
δ(A,ε) = A because ________
(3)
ε has an even number of 0's because
________
Induction (|w| = n > 0)
(4)
There are two cases: (a) when w = x1 and
(b) when w = x0 because ________
Case (a):
(5)
In case (a), w has an odd number of 1's
if and only if x has an even number of 1's because ________
(6)
In case (a), δ(A,x) = A if and only if w has
an odd number of 1's because ________
(7)
In case (a), δ(A,w) = B if and only if w has
an odd number of 1's because ________
Case (b):
(8)
In case (b), w has an odd number of 1's
if and only if x has an odd number of 1's because ________
(9)
In case (b), δ(A,x) = B if and only if w has
an odd number of 1's because ________
(10)
In case (b), δ(A,w) = B if and only if w has
an odd number of 1's because ________
|