4

The exercise says

"Show that the grammar $G = \langle\{S\}, \{a, b\}, S, \{S \to \lambda, S \to aSb\}\rangle$ generates the language $L = \{a^i b^i \mid i = 0, 1, 2, \ldots\}$."

Now, I'm new to this subject although I'm familiar with the theory of Turing machines and automata. I'm teaching myself (not in a class, completely independently) from scratch. Please go easy on me.

Now, two questions:

(1) I suspect the way to do this proof is by induction on $i$, which is to say induction on the iterations of letters in the alphabet or the length of the word formed by iterations of $a, b$. Is this assumption correct?

(2) If the assumption in (1) is not correct, what is the correct strategy?

  • The link which Raphael provides does not solve this problem. 2. This question has been up for 8 months. Just now someone intends to mark it as a duplicate (when, again, it isn't)? This couldn't be more inappropriate.
  • – لويس العرب Jan 02 '15 at 17:14
  • If the question really is a duplicate, it doesn't matter how much time elapses between the question being asked and somebody noticing that it's been asked before. The linked question explains how to prove that a grammar generates a particular language, and your question is exactly that. You're asking what techniques to use and the other question does that. I'm satisfied that it's a duplicate, even though the other question doesn't mention the specific language you're asking about. – David Richerby Jan 02 '15 at 17:58
  • The explanation provided by examples on that page is not at all clear, the techniques are not well-explained, the author uses notation which is completely foreign and not explained at all, and on top of this the entry seems to be taken from a larger tractate which might be more informative with regard to these matters. So, no, it's inconceivable to me how his entry could be of much help to my question, let alone provide the basis on which someone could conclude the current question is a duplicate. – لويس العرب Jan 02 '15 at 18:40
  • I might add that the users opinion -- many of us are self-taught, or view stackexchange as a useful addition to formal education -- should matter here, and there probably should be a stricter definition for what counts as a duplicate. Does it solve the exact same problem? If not, for the sake of pedagogy, let it alone. – لويس العرب Jan 02 '15 at 18:55