Paper 1, Section I, 4H4 \mathrm{H}

Automata and Formal Languages
Part II, 2017

(a) Prove that every regular language is also a context-free language (CFL).

(b) Show that, for any fixed n>0n>0, the set of regular expressions over the alphabet {a1,,an}\left\{a_{1}, \ldots, a_{n}\right\} is a CFL, but not a regular language.