Public Mathlib landmark · existing upstream theorem · read-only

Computability and logic · existing Mathlib declaration

Myhill–Nerode Theorem

For each possible prefix x, look at exactly which suffixes y complete x to a word in the language. The language is regular exactly when only finitely many different suffix-languages arise as x varies.

The theorem at a glance

Myhill–Nerode theorem at a glance

A source-bound editorial overview of the exact Mathlib formulation. The image is explanatory; the statement map, formal type, and pinned source remain authoritative.

Mathlib's selected Myhill–Nerode endpoint: regularity is equivalent to finiteness of the range of the left-quotient function. Generated explanation only; the exact HTML statement and pinned source are authoritative.
Detailed visual description

A restrained editorial poster gives the exact left-quotient equivalence in large type, defines the left quotient by the suffix condition x ++ y ∈ L, and uses a small two-way automata-and-quotients diagram without adding minimality, Nerode-index, or pumping-lemma claims.

Formal orientation

Statement map

Statement map for Myhill–Nerode TheoremA language is regular if and only if its left-quotient function has finite range. The pinned upstream declaration is Language.isRegular_iff_finite_range_leftQuotient. The exact checked statement is theorem Language.isRegular_iff_finite_range_leftQuotient {α : Type u} {L : Language α} : L.IsRegular ↔ (Set.range L.leftQuotient).Finite.Mathematical readingA language is regular ifand only if itsleft-quotient functionhas finite range.Pinned declarationmathlib ·Language.isRegular_iff_finite_range_leftQuotientExact checked formtheoremLanguage.isRegular_iff_finite_range_leftQuotient{α : Type u} {L :Language α} :L.IsRegular ↔ (Set.rangeL.leftQuotient).FiniteStatement map for Myhill–Nerode TheoremA language is regular if and only if its left-quotient function has finite range. The pinned upstream declaration is Language.isRegular_iff_finite_range_leftQuotient. The exact checked statement is theorem Language.isRegular_iff_finite_range_leftQuotient {α : Type u} {L : Language α} : L.IsRegular ↔ (Set.range L.leftQuotient).Finite.Mathematical readingA language is regular ifand only if itsleft-quotient functionhas finite range.Pinned declarationmathlib ·Language.isRegular_iff_finite_range_leftQuotientExact checked formtheoremLanguage.isRegular_iff_finite_range_leftQuotient{α : Type u} {L :Language α} :L.IsRegular ↔ (Set.rangeL.leftQuotient).Finite

This deterministic map orients the reader from the mathematical summary to the pinned declaration and exact checked form. The HTML statement below is authoritative.

Regularity of L is equivalent to the range of x ↦ L.leftQuotient x being finite. Scientific diagram · explanatory, not proof evidence.
Detailed visual description

This target indexes Mathlib's left-quotient formulation of the Myhill–Nerode theorem. For a language L, leftQuotient sends a word x to the language of suffixes y such that x ++ y ∈ L. The theorem identifies regularity of L with finiteness of the range of that function. It does not, in this declaration, assert uniqueness of a minimal DFA, state finite index of the Nerode equivalence, or derive the pumping lemma.

Complementary intuition

A mathematical landmark

The theorem gives a structural characterization of regular languages: finite-state recognizability is exactly finiteness of the possible residual languages after prefixes. It is a foundational bridge between automata and language semantics.

The low-text schematic gives the theorem a visual identity; it does not replace the source-bound poster or exact statement.

Authoritative formal type

Exact Mathlib statement

theorem Language.isRegular_iff_finite_range_leftQuotient {α : Type u} {L : Language α} : L.IsRegular ↔ (Set.range L.leftQuotient).Finite
Selected evidence declaration text
theorem Language.isRegular_iff_finite_range_leftQuotient {α : Type u} {L : Language α} : L.IsRegular ↔ (Set.range L.leftQuotient).Finite

ProofAtlas record

What has been checked

Upstream indexedPinned source bytes verified locally
Locally reproducedExact upstream declaration replayed
Reviewed pageCurrent public presentation reviewed
Accepted Atlas resultNot recorded for the preferred artifact

These states distinguish upstream identity, local reproduction, review, and Atlas acceptance. This page is part of the public, read-only Mathlib landmark collection.

Claim boundary

No new theorem is claimed

This target indexes Mathlib's left-quotient formulation of the Myhill–Nerode theorem. For a language L, leftQuotient sends a word x to the language of suffixes y such that x ++ y ∈ L. The theorem identifies regularity of L with finiteness of the range of that function. It does not, in this declaration, assert uniqueness of a minimal DFA, state finite index of the Nerode equivalence, or derive the pumping lemma.

Provenance

Origin and evidence stay separate

Existing declaration
Language.isRegular_iff_finite_range_leftQuotient in mathlib
Relationship
The checked artifact is the upstream declaration itself
Preferred checked artifact
artifact.library.mathlib.myhill-nerode-theorem.v001
Source handling
Verified upstream reference; no mirrored source package