Skip to content
DAH

The Černý conjecture: synchronizing words of length (n−1)²

OpenTo verify: Lean proofPosed by Ján Černý, 1964 (conjecture stated 1969)
AI-reviewed
On this page17 sections
Difficulty
75/100Major open
How far from a resolution. P vs NP = 100
Application value
8/100Theoretical
Realistic practical impact if resolved. P vs NP = 100
Leverage
30/100Local
How much other knowledge hinges on it. P vs NP = 100

Difficulty 75: sixty years, and the upper bound is still cubic, with only the constant improved (Pin–Frankl, then Szykuła 2018 and Shitov 2019) against a quadratic conjecture that is tight; harder than sunflowers (71), where one log factor remains, and just below deterministic prime construction (76) and diagonal Ramsey (78). Application value 8: reset sequences for finite-state devices and testing are a real, specific use. Leverage 30: the central open problem of synchronizing automata, with a large literature of special classes.

The problem

Can any n-state automaton that can be reset be reset by a word of at most (n−1)² letters?

  1. 1Machine in an unknown state
  2. 2A command word resets every state
  3. 3Černý machines need (n−1)² letters
  4. 4Best proof only gives about 0.165 n³

Finite-state machines. A deterministic finite automaton (DFA) is the simplest model of a digital controller: a finite set of nn states, an alphabet of input letters, and a rule that says, for each state and letter, which state comes next. You may have drawn one as a state diagram for a vending machine or a traffic light.

Resetting without looking. Suppose you do not know the machine's current state and cannot observe it. A synchronizing word (or reset word) is a sequence of letters that sends every possible starting state to the same final state, so after feeding it in you know exactly where the machine is. A DFA is synchronizing if such a word exists. Černý conjectured that whenever one exists, there is one of length at most (n−1)2(n-1)^2.

The bound would be tight. Černý's automata on states 0,…,n−10,\dots,n-1 use two letters: aa moves every state ii to i+1 mod ni+1 \bmod n, and bb sends state n−1n-1 to 00 and leaves the others alone. Their shortest reset word has length exactly (n−1)2(n-1)^2; for n=4n=4 that is 9, which a brute-force search over words confirms.

What is proved. The classical bound is (n3−n)/6(n^3-n)/6 (Frankl and Pin, early 1980s). Szykuła (2018) and Shitov (2019) improved the constant, reaching about 0.1654 n30.1654\,n^3. Eppstein (1990) gave a fast algorithm that finds reset words of length at most 11n3/48+O(n2)11n^3/48+O(n^2) and proved the conjecture for monotonic automata, whose letters preserve a cyclic order of the states. The conjecture also holds for several other special classes and has been checked by computer for small nn.

Why the proofs give n3n^3. Track the set SS of states the machine might be in; at the start SS is all nn states. The argument repeatedly finds a short word that makes SS smaller by at least one state. Linear algebra enters by treating SS as a 0/1 vector of length nn and each letter as a matrix acting on it. In the classical analysis, shrinking a set of kk states costs at most about k2/2k^2/2 letters; adding this up over kk from nn down to 2 gives about n3/6n^3/6. A quadratic bound would need shrinking steps of about 2n2n letters on average, and nobody knows how to guarantee that.

Lean and checking. M.IsSynchronizing → ∃ w, M.IsSynchronizingWord w ∧ w.length ≤ (Fintype.card σ - 1)^2, where Mathlib provides DFA and the corpus defines the two synchronizing predicates. A proof must cover every automaton; a counterexample would be one concrete automaton plus a finite check that no short reset word exists.

Go deeper

The full technical text.

A complete deterministic finite automaton (DFA) with nn states is synchronizing if some word sends every state to the same state. Černý conjectured that every synchronizing nn-state DFA has a synchronizing word of length at most (n−1)2(n-1)^2. Černý's own examples show this cannot be lowered.

Lean 4 statement in the Formal Conjectures corpus:

theorem cerny_conjecture :
    ∀ {α : Type*} {σ : Type*} [Fintype σ] (M : DFA α σ) (hM : M.IsSynchronizing),
    ∃ w : List α, M.IsSynchronizingWord w ∧ w.length ≤ (Fintype.card σ - 1)^2
Words on this page (6)
Words on this page
automaton
A machine with a finite number of states that changes state when it reads symbols.
synchronizing word
A word that sends every state of the machine to the same state.
alphabet
The set of symbols the machine can read.
Eppstein's algorithm
A polynomial-time method that finds reasonably short synchronizing words.
monotonic automaton
An automaton whose transitions preserve a cyclic order of the states.
big-O notation
A way to describe how fast a quantity grows.
New to this? Read first (2)
New to this? Read first

Path to understanding

foundations → problem

The research entries this problem rests on, in the order to read them. Each links to its explainer.

  1. Start with
  2. Step 2
  3. Step 3
  4. Step 4
  5. Then
    • The Černý conjecture: synchronizing words of length (n−1)²The problem

State of the art

Cubic upper bounds only. The classical bound (n3−n)/6(n^3-n)/6 (Pin and Frankl, early 1980s) stood until Szykuła (2018) and then Shitov (2019), who proved about 0.1654 n30.1654\,n^3, the best general bound. Eppstein (1990) gave an algorithm finding words of length at most 11n3/48+O(n2)11n^3/48 + O(n^2) and proved the conjecture for monotonic automata (transitions preserve a cyclic order). The conjecture is also known for several structured classes of automata. Lower bound: Černý's family of automata achieves exactly (n−1)2(n-1)^2. The gap between quadratic and cubic has not moved in over 40 years apart from the constant.

Realistic applications

Concrete in automata engineering: a short synchronizing word resets a finite-state device (a protocol machine, a robotic part-orienter, a coded sequence decoder) from an unknown state to a known one without sensing. A quadratic bound would give tighter guarantees for such resets and for testing finite-state systems.

What counts as solved

A Lean proof of cerny_conjecture as stated for all alphabets and state types, or a Lean-checked counterexample: a finite DFA with nn states whose shortest synchronizing word is longer than (n−1)2(n-1)^2.

How it gets verified

To verify: Lean proof

A formal proof checked by Lean 4 / Mathlib.

Statement: CernyConjecture.cerny_conjecture in formal-conjectures (quoted above). Mathlib has DFA and DFA.evalFrom (Computability.DFA); the predicates DFA.IsSynchronizingWord and DFA.IsSynchronizing are defined in the corpus' DFA.lean, not in Mathlib itself, so a submission must import the corpus' definitions unchanged. A counterexample is a concrete finite DFA plus a Lean proof that no synchronizing word of length at most (n−1)2(n-1)^2 exists (a finite check over words or subsets of states). A proof must cover every alphabet and state type with Fintype σ. Judge with Comparator.

Claims

No claimed results on this problem.

Where the work is

Theory
90%
New mathematical or conceptual ideas
Engineering
0%
Building instruments, chips, systems, software, formal proofs
Compute
10%
Raw computation, search, simulation
Empirical
0%
Observation, experiment, data collection

Small cases are verified by computer, but the conjecture is about all n and needs a new proof technique; the bound has not changed exponent in decades.

Connected problems

No connected problems.

Progress

  1. Jan 1, 2019
    Shitov's cubic bound

    About 0.1654 n^3, the best general upper bound (J. Autom. Lang. Comb. 24; year only known).

    source
  2. Jan 1, 1990
    Eppstein's algorithm and monotonic automata

    Words of length 11n^3/48 + O(n^2) found in polynomial time; the conjecture proved for monotonic automata (SIAM J. Computing 19).

    source
  3. Jan 1, 1964
    Černý's examples

    A family of automata whose shortest synchronizing words have length (n-1)^2 (Mat.-fyz. časopis SAV 14).

    source