{
  "id": "7730",
  "ident": "NS.07730",
  "slug": "wikipedia-cernyconjecture",
  "title": "Černý Conjecture",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**Černý Conjecture**: Every synchronizing DFA with $n$ states admits a\nsynchronizing word of length at most $(n - 1)^2$.",
  "subjects": [
    "math.CO",
    "msc:68"
  ],
  "tags": [
    "question"
  ],
  "collection": "wikipedia",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "CernyConjecture.cerny_conjecture",
  "statement_lean": "theorem cerny_conjecture :\n    ∀ {α : Type*} {σ : Type*} [Fintype σ] (M : DFA α σ) (hM : M.IsSynchronizing) ,\n    ∃ w : List α, M.IsSynchronizingWord w ∧ w.length ≤ (Fintype.card σ - 1)^2",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Černý Conjecture\n\nA **synchronizing word** (also called a reset word) for a deterministic finite automaton (DFA)\n$M = (Q, \\Sigma, \\delta)$ is a word $w \\in \\Sigma^\\*$ such that reading $w$ from any state always\nleads to the same single state — formally, $\\exists p \\in Q, \\forall q \\in Q, \\delta^\\*(q, w) = p$.\n\nA DFA is called **synchronizing** if it admits at least one synchronizing word.\n\nThe **Černý conjecture** asserts that every synchronizing DFA with $n$ states has a\nsynchronizing word of length at most $(n - 1)^2$. This bound is sharp: the family of Černý\nautomata $C_n$ witnesses it, requiring exactly $(n - 1)^2$ steps.\n\n**Status:** Open. The best known upper bound is\n$\\left(\\frac{7}{48} + \\frac{2 \\cdot 15625}{1597536}\\right) n^3 + o(n^3) \\approx 0.1654\\,n^3$\n(Shitov, 2019). The bound $(n - 1)^2$ has been verified for small $n$ and for special classes of\nautomata (e.g., Eulerian, aperiodic, cyclic automata).\n\nWe use Mathlib's `DFA α σ` (from `Mathlib.Computability.DFA`), together with the auxiliary\n`DFA.IsSynchronizingWord` and `DFA.IsSynchronizing` predicates defined in\n`FormalConjecturesForMathlib.Computability.DFA`.\n\n*References:*\n- [Wikipedia: Synchronizing word](https://en.wikipedia.org/wiki/Synchronizing_word)\n- J. Černý, [*Poznámka k homogénnym experimentom s konečnými automatmi*](https://dml.cz/bitstream/handle/10338.dmlcz/126647/MathSlov_14-1964-3_2.pdf),\n  Matematicko-fyzikálny časopis, Vol. 14 (1964), No. 3, 208--216.\n- Y. Shitov, *An improvement to a recent upper bound for synchronizing words of finite automata*,\n  J. Autom. Lang. Comb. Vol. 24 (2019), 367--373.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace CernyConjecture\n\n/-- **Černý Conjecture**: Every synchronizing DFA with $n$ states admits a\nsynchronizing word of length at most $(n - 1)^2$.\n-/\n@[category research open, question, AMS 68]\ntheorem cerny_conjecture :\n    ∀ {α : Type*} {σ : Type*} [Fintype σ] (M : DFA α σ) (hM : M.IsSynchronizing) ,\n    ∃ w : List α, M.IsSynchronizingWord w ∧ w.length ≤ (Fintype.card σ - 1)^2 := by\n  sorry\n\n/-- **Shitov's bound (2019)**: Every synchronizing DFA with $n$ states admits a synchronizing\nword of length at most $\\left(\\frac{7}{48} + \\frac{2 \\cdot 15625}{1597536}\\right) n^3 + o(n^3)$,\nwhere the $o(n^3)$ term is uniform over all alphabets. This is the best known upper bound\ntowards the Černý conjecture.\n-/\n@[category research solved, AMS 68]\ntheorem shitov_upper_bound :\n    ∃ f : ℝ → ℝ, f =o[atTop] (fun n : ℝ => n ^ 3) ∧\n    ∀ {α : Type*} {σ : Type*} [Fintype σ] (M : DFA α σ) (hM : M.IsSynchronizing) ,\n    ∃ w : List α, M.IsSynchronizingWord w ∧\n    (w.length : ℝ) ≤ (7 / 48 + 2 * 15625 / 1597536) * (Fintype.card σ : ℝ) ^ 3\n      + f (Fintype.card σ : ℝ) := by\n  sorry\n\nend CernyConjecture\n",
  "statement_hash": "089ce262e3b57203de914aa2bf6bf8533c8466e0612e7cd54db198c0e1d76d2d",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}