The assertion is true. Every single finite string over is denoted by the regular expression . The empty string is denoted by . Hence if is a finite formal language, the regular expression
denotes precisely , with each read as its concatenation of symbols. This uses the defining union and concatenation operations for regular expressions. For , use the regular expression . Therefore
The assertion is false. Use the pumping lemma for regular languages: if is a regular language, there is such that every with admits a factorization with , , and for every integer .
Suppose the stated formal language were a regular language, and take . This string has twice as many zeros as ones, so it belongs to . In every allowed factorization, the first positions are all zeros, forcing with . Pumping down with produces
It still has ones but fewer than zeros, contradicting the pumping lemma for regular languages. Thus
The assertion is false. Suppose the formal language were a regular language, and let be its constant from the pumping lemma for regular languages. Consider
In every decomposition with and , the pumped factor is with . Pumping down gives
This string has exactly two ones and ends in a one. If it were , each copy of would contain exactly one one, and each copy would end in a one. The first copy would consequently be , while the second would be . They have different lengths because , so they cannot be equal. This contradiction to the pumping lemma for regular languages proves
The assertion is true. Write and . The semantics of regular expressions reduce the claim to
where juxtaposition is concatenation of formal languages and a star is the Kleene star.
Every element of is a finite concatenation of members of , so belongs to . Concatenating any finite number of such elements still belongs to , proving .
Conversely, because one may take a single member of followed by the empty string from . Likewise by taking the empty string from . Hence any finite concatenation of members of lies in . The empty string belongs to both sides. Thus

Articles by others on the same topic (0)

There are currently no matching articles.