Lably
Skip to content

Regular language

Formal language that can be expressed using a regular expression

  • 9 min read
  • 10 chapters

Related on Lably

Through Finite-state machine and Turing machine

Alternatively, a regular language can be defined as a language recognised by a finite automaton. The equivalence of regular expressions and finite automata is known as Kleene's theorem (after American mathematician Stephen Cole Kleene). In the Chomsky hierarchy, regular languages are the languages generated by Type-3 grammars.

Formal definition

The collection of regular languages over an alphabet Σ is defined recursively as follows:

  • The empty language ∅ is a regular language.
  • For each a ∈ Σ (a belongs to Σ), the singleton language {a} is a regular language.
  • If A is a regular language, A* (Kleene star) is a regular language. Due to this, the empty string language {ε} is also regular.
  • If A and B are regular languages, then A ∪ B (union) and A • B (concatenation) are regular languages.
  • No other languages over Σ are regular.

See Regular expression § Formal language theory for syntax and semantics of regular expressions.

Sign in to keep reading

9 more chapters are free with a Lably account.

More in Topics in mathematics