Chomsky Hierarchy

1 min read Last updated Wed Jun 10 2026 04:52:55 GMT+0000 (Coordinated Universal Time)

Four language classes, nested by expressive power.

TypeLanguage ClassProduction FormAccepting Device
3RegularAaBA \to aB, AaA \to aFinite automaton
2Context-freeAαA \to \alphaPushdown automaton
1Context-sensitiveαβ\alpha \to \beta, βα\lvert \beta \rvert \geq \lvert\alpha\rvert, α\alpha has non-terminalLinear-bounded automaton
0Recursively enumerableαβ\alpha \to \beta, α\alpha has non-terminalTuring machine

Each type is a subset of the below type.

Type 3  Type 2  Type 1  Type 0\text{Type 3 }\subset\text{ Type 2 }\subset\text{ Type 1 }\subset\text{ Type 0}

Not all languages are RE. Proven using counting argument: languages>TMs|\text{languages}| > |\text{TMs}|.

Was this helpful?