Chomsky hierarchy
Builds on Formal grammarUnrestricted grammarContext-sensitive languageContext-free languageRegular languageRecursively enumerable language
Definition
Let be a formal grammar, with , , and . The grammar is of:
- type 0 always; these are the unrestricted grammars;
- type 1 if every rule has the form with nonempty, except possibly when occurs on no right side;
- type 2 if every rule has the form ;
- type 3 if every rule has the form , or .
A language is of type if it is generated by a grammar of type . The Chomsky hierarchy is the chain of the four classes of languages of types .
Remarks
The languages of types are the recursively enumerable languages, the context-sensitive languages, the context-free languages and the regular languages. They form a strictly increasing chain: type type type type . Example: is of type 2 but not of type 3, and is of type 1 but not of type 2. Every type-1 language is decidable, so an undecidable recursively enumerable language, such as the halting problem, is of type 0 but not of type 1. Non-example: a grammar with the rule is of type 0 but not of type 1, since the rule shortens the string. It is not of type 2 either, since its left side has two symbols.
Reading path
To understand this page from the ground up, read these 7 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Context-free language concept
- Context-sensitive language concept
- Formal grammar concept
- Recursively enumerable language concept
- Regular language concept
- Unrestricted grammar concept
- Chomsky hierarchy definition
Further reading
About this page
| Tag | CE2FH977F8 |
|---|---|
| URI | m2://CE2FH977F8 |
| Kind | definition |
| Writing | W0 stub |
| MSC | 68Q45, 68Q42, 03D05 |
| Defines | Chomsky hierarchy |
| Uses | Formal grammar, Unrestricted grammar, Context-sensitive language, Context-free language, Regular language, Recursively enumerable language |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.