Chomsky Hierarchy

1 min read Updated Wed May 06 2026 17:34:33 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 \subset Type 2 \subset Type 1 \subset Type 0.

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