Show that the following language is not regular.
If
has a regular grammar, then
is a regular set. If
is a regular
set, then the pumping lemma holds:
Let's
be the pumping lemma constant. We can choose
. Following the above notations, we have
with
and
. It means that
is composed of one or more
's. By
the pumping lemma,
(case
). But since we deleted between 1
and
's, it is not possible that the number of
's be still half of
the number of
's, a contradiction. So,
is not regular.