Regular Expression
Definition. The regular expressions over an alphabet are defined inductively: , , and each symbol are regular expressions, and if and are regular expressions then so are , , and . The language denoted by , written , follows the same induction, with union, concatenation, and star of languages taken clause by clause.
and denote different languages: the first contains no strings, the second contains the empty string. always contains , since concatenating zero strings gives . Kleene's theorem, in Lecture 4, proves that a language is regular exactly when some regular expression denotes it, so this notation and the machines of Lecture 3 describe the same class. A language has many expressions denoting it; there is no canonical one.