{
  "id": "3575",
  "ident": "NS.03575",
  "slug": "erdos-902",
  "title": "Erdős Problem 902",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be minimal such that there is a tournament (a complete directed graph) on $f(n)$\nvertices such that every set of $n$ vertices is dominated by at least one other vertex.\nEstimate $f(n)$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos902.erdos_902",
  "statement_lean": "theorem erdos_902 : (fun n ↦ (f n : ℝ)) =Θ[atTop] erdos_902.answer",
  "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# Erdős Problem 902\n\n*References:*\n- [erdosproblems.com/902](https://www.erdosproblems.com/902)\n- [Er63c] Erdős, P., *On a problem in graph theory*. Math. Gaz. 47 (1963), 220-223.\n  [PDF](https://www.renyi.hu/~p_erdos/1963-08.pdf)\n- [Er82e] Erdős, Paul, *Some of my favourite problems which recently have been solved*.\n  (1982), 59-79.\n- [SzSz65] Szekeres, E. and Szekeres, G., *On a problem of Schütte and Erdős*. Math. Gaz. 49\n  (1965), 290-293.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics\n\nnamespace Erdos902\n\n/-- `HasPropertyS G n` is Schütte's property $S_n$ [Er63c]: every set `E` of `n` vertices is\ndominated by a vertex outside it, that is, some vertex `x ∉ E` has an edge to every vertex of\n`E`. -/\ndef HasPropertyS {V : Type*} (G : Digraph V) (n : ℕ) : Prop :=\n  ∀ E : Finset V, E.card = n → ∃ x ∉ E, ∀ e ∈ E, G.Adj x e\n\n/-- $f(n)$: the least number of vertices of a tournament with property $S_n$.\n\nA tournament with fewer than $n$ vertices has no set of $n$ vertices, so it has property $S_n$\nvacuously; the condition `n ≤ m` excludes this case. -/\nnoncomputable def f (n : ℕ) : ℕ :=\n  sInf {m : ℕ | n ≤ m ∧ ∃ G : Digraph (Fin m), G.IsTournament ∧ HasPropertyS G n}\n\n/-- The cyclic tournament on three vertices, `a → a + 1`, has property $S_1$, so\n$f(1) \\leq 3$. -/\n@[category test, AMS 5]\ntheorem f_one_le : f 1 ≤ 3 := by\n  refine Nat.sInf_le ⟨by norm_num, ⟨fun a b => b = a + 1⟩, ⟨by decide, by decide⟩, ?_⟩\n  intro E hE\n  obtain ⟨a, rfl⟩ := Finset.card_eq_one.1 hE\n  have key : ∀ a : Fin 3, a + 2 ≠ a ∧ a = a + 2 + 1 := by decide\n  refine ⟨a + 2, by simp [(key a).1], fun e he => ?_⟩\n  rw [Finset.mem_singleton.1 he]\n  exact (key a).2\n\n/-- Erdős's tournament on seven vertices [Er63c], with `a → a + 1, a + 2, a + 4` modulo $7$,\nhas property $S_2$, so $f(2) \\leq 7$. -/\n@[category test, AMS 5]\ntheorem f_two_le : f 2 ≤ 7 := by\n  refine Nat.sInf_le ⟨by norm_num, ⟨fun a b => b - a ∈ ({1, 2, 4} : Finset (Fin 7))⟩,\n    ⟨by decide, by decide⟩, ?_⟩\n  intro E hE\n  obtain ⟨a, b, hab, rfl⟩ := Finset.card_eq_two.1 hE\n  have key : ∀ a b : Fin 7, a ≠ b → ∃ x, x ≠ a ∧ x ≠ b ∧\n      a - x ∈ ({1, 2, 4} : Finset (Fin 7)) ∧ b - x ∈ ({1, 2, 4} : Finset (Fin 7)) := by\n    decide\n  obtain ⟨x, hxa, hxb, ha, hb⟩ := key a b hab\n  refine ⟨x, by simp [hxa, hxb], fun e he => ?_⟩\n  rcases Finset.mem_insert.1 he with rfl | he\n  · exact ha\n  · rw [Finset.mem_singleton.1 he]\n    exact hb\n\ndef erdos_902.answer : ℕ → ℝ := sorry\n\n/--\nLet $f(n)$ be minimal such that there is a tournament (a complete directed graph) on $f(n)$\nvertices such that every set of $n$ vertices is dominated by at least one other vertex.\nEstimate $f(n)$.\n-/\n@[category research open, question value, AMS 5]\ntheorem erdos_902 : (fun n ↦ (f n : ℝ)) =Θ[atTop] erdos_902.answer := by\n  sorry\n\n/--\nIt is easy to check that $f(1)=3$ and $f(2)=7$.\n\nThis is the statement for $f(1)$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_902.variants.f_one : f 1 = 3 := by\n  refine le_antisymm f_one_le (le_csInf ⟨3, ?_⟩ ?_)\n  · refine ⟨by norm_num, ⟨fun a b => b = a + 1⟩, ⟨by decide, by decide⟩, ?_⟩\n    intro E hE\n    obtain ⟨a, rfl⟩ := Finset.card_eq_one.1 hE\n    have key : ∀ a : Fin 3, a + 2 ≠ a ∧ a = a + 2 + 1 := by decide\n    refine ⟨a + 2, by simp [(key a).1], fun e he => ?_⟩\n    rw [Finset.mem_singleton.1 he]\n    exact (key a).2\n  · rintro m ⟨hm, G, hG, hS⟩\n    by_contra! hm3\n    interval_cases m\n    · obtain ⟨x, hx, -⟩ := hS {0} rfl\n      exact hx (by simp [Subsingleton.elim x 0])\n    · have h01 := hG.2 0 1 (by decide)\n      by_cases h : G.Adj 0 1\n      · obtain ⟨x, hx, hx0⟩ := hS {0} rfl\n        have hx1 : x = 1 := by fin_cases x <;> simp_all\n        subst hx1\n        exact h01.1 h (hx0 0 (by simp))\n      · obtain ⟨x, hx, hx1⟩ := hS {1} rfl\n        have hx0 : x = 0 := by fin_cases x <;> simp_all\n        subst hx0\n        exact h (hx1 1 (by simp))\n\n/--\nIt is easy to check that $f(1)=3$ and $f(2)=7$.\n\nThis is the statement for $f(2)$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_902.variants.f_two : f 2 = 7 := by\n  sorry\n\n/--\nErdős [Er63c] proved\n$$2^{n+1}-1 \\leq f(n) \\ll n^22^n.$$\n\nThis is the lower bound.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_902.variants.erdos_lower (n : ℕ) : 2 ^ (n + 1) - 1 ≤ f n := by\n  sorry\n\n/--\nErdős [Er63c] proved\n$$2^{n+1}-1 \\leq f(n) \\ll n^22^n.$$\n\nThis is the upper bound, in the form proved in [Er63c, (2)]:\n$\\limsup_n f(n)2^{-n}n^{-2} \\leq \\log 2$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_902.variants.erdos_upper :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, (f n : ℝ) ≤ (Real.log 2 + ε) * n ^ 2 * 2 ^ n := by\n  sorry\n\n/--\nSzekeres and Szekeres [SzSz65] proved that $f(3)=19$ and\n$$n2^n \\ll f(n).$$\n\nThis is the statement for $f(3)$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_902.variants.szekeres_f_three : f 3 = 19 := by\n  sorry\n\n/--\nSzekeres and Szekeres [SzSz65] proved that $f(3)=19$ and\n$$n2^n \\ll f(n).$$\n\nThis is the lower bound.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_902.variants.szekeres_lower :\n    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop, c * n * 2 ^ n ≤ (f n : ℝ) := by\n  sorry\n\nend Erdos902\n",
  "statement_hash": "28d16aaaec2a87aacdb5ba8b554ac799b3b6e168a1a1ff9a80431058fcb757e8",
  "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."
}