| 1 | /- |
| 2 | Ported from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7, |
| 3 | file FormalConjectures/Wikipedia/CernyConjecture.lean, declaration CernyConjecture.cerny_conjecture. |
| 4 | Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 |
| 5 | (https://www.apache.org/licenses/LICENSE-2.0). |
| 6 | Port: `public import FormalConjecturesUtil` replaced by specific Mathlib imports and the family's |
| 7 | `Defs.DFA` (upstream's `DFA.IsSynchronizingWord` and `DFA.IsSynchronizing`); the |
| 8 | `@[category …, AMS …]` attribute and the doc comments dropped; `shitov_upper_bound` dropped, and |
| 9 | with it `open Filter`, which only it used. The proposition is unchanged. |
| 10 | -/ |
| 11 | module |
| 12 | |
| 13 | public import statements.Defs.DFA |
| 14 | public import Mathlib.Data.Fintype.Card |
| 15 | |
| 16 | @[expose] public section |
| 17 | |
| 18 | namespace CernyConjecture |
| 19 | |
| 20 | theorem cerny_conjecture : |
| 21 | ∀ {α : Type*} {σ : Type*} [Fintype σ] (M : DFA α σ) (hM : M.IsSynchronizing) , |
| 22 | ∃ w : List α, M.IsSynchronizingWord w ∧ w.length ≤ (Fintype.card σ - 1)^2 := by |
| 23 | sorry |
| 24 | |
| 25 | end CernyConjecture |
| 26 | |
| 27 | /-- The family's target (decision 0100), under the family's name: its type is taken from upstream's |
| 28 | `CernyConjecture.cerny_conjecture` above, so the two cannot differ. Upstream's declaration is kept for provenance; it is not a |
| 29 | target. -/ |
| 30 | theorem Cerny.{u, v} : type_of% @CernyConjecture.cerny_conjecture.{u, v} := by |
| 31 | sorry |