00:03
We're given a regular set and we're asked to show that a to the r, the set of all reversals of strings in a, is also regular.
00:18
To prove this statement, we'll use induction.
00:43
So, first of all, since a is a regular set, it follows that a is generated by some grammar, g, with productions of the form s to lambda, a to a, and a to a to a.
01:32
A b, the base case suppose that an element x in the regular set is lambda or a.
02:17
For some terminal symbol a, then we have that the reversal of x is simply x itself.
02:44
And we have that these symbols can be generated by the grammar g, so they can be generated by the production rules of a regular grammar.
03:06
Now for the inductive case, we have that if x equals bc, then we have the reversal of x, is of course the reversal of bc, which is equal to the reversal of c, reversal of b.
03:49
Now by the inductive hypothesis, we're assuming that there are production rules in a regular grammar that generate reversal of b and the reversal of c.
03:58
But then bc is generated by first, using the production rules a to ad, to generate all elements of b, and then the same rule to generate all elements of c...