This exercise comes from Introduction to Automata Theory, Languages, and Computation, Second Edition, by Hopcroft, Motwani and Ullman.

Exercise Description

Show that for any state q, string x, and input symbol a, latex2png equation.

Hint: Use Exercise 2.2.2.

Solution

We can proceed by induction in the length of the string x as follows.

  • Basis: Consider the case where latex2png equation

latex2png equation

Given that latex2png equation and applying the definition of latex2png equation several times in both sides of the equation we get:

latex2png equation

So the hipothesis hold for the basis case.

  • Induction: Given that latex2png equation we assume that the following sentence is true: latex2png equation

    Now lets see if the hipothesis hold for the latex2png equation case:

    latex2png equation

    Applying the result of Exercise 2.2.2 in the left side of the equation we get:

    latex2png equation

    QED