2026-08-28·作者 Sijie Wang#node#idea#math

regular-languages

Type 3 — regular languages (no memory)

Parent: chomsky-hierarchy

The bottom tier: recognized by machines with no memory beyond a current state. What makes it special is that three independent formalisms — and several more — all define exactly this class. Each gets its own note; the coincidence is a note of its own.

The three formalisms

They are all equivalent (Kleene, + Myhill–Nerode, + MSO logic, + finite monoids) — the equivalence and its constructions are their own article: regular-equivalences.

The one limitation

Pumping lemma (regular)

Every long enough word w in a regular language splits w=xyz with |xy|≤p, y≠ε, such that xyⁱz stays in the language for all i≥0.

Consequence: aⁿbⁿ is not regular — with no memory you can't count, so you can't match the two blocks. (Myhill–Nerode gives a cleaner proof — see regular-equivalences.) That limitation is exactly why you climb to a stack.

Facts

  • Closure: union, concatenation, star, complement, intersection — a Boolean algebra.
  • Decidability: membership, emptiness, equivalence — all decidable and efficient.
  • Uses: lexers, grep, protocol/state machines.
關於這一條

sijie 的一條 wiki 條目。本站的 AI 以同一套語料庫為依據、以 sijie 的口吻作答,並附有指向此類條目的引用——回答會花 sijie 的錢,所以它在存取碼後等待: 輸入存取碼 →

regular-languages — Sijie Wang