{
  "id": "1304",
  "ident": "NS.01304",
  "slug": "erdos-21",
  "title": "Erdős Problem 21",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be minimal such that there is an intersecting family $\\mathcal{F}$ of sets of size $n$\n(so $A\\cap B\\neq\\emptyset$ for all $A,B\\in \\mathcal{F}$) with $\\lvert \\mathcal{F}\\rvert=f(n)$\nsuch that any set $S$ with $\\lvert S\\rvert \\leq n-1$ is disjoint from at least one\n$A\\in \\mathcal{F}$.\n\nIs it true that\n$$f(n) \\ll n?$$\n\nConjectured by Erdős and Lovász [ErLo75], who proved that\n$$\\frac{8}{3}n-3\\leq f(n) \\ll n^{3/2}\\log n$$\nfor all $n$. The upper bound was improved by Kahn [Ka92b] to $f(n) \\ll n\\log n$. (The upper\nbound constructions in both cases are formed by taking a random set of lines from a projective\nplane of order $n-1$, assuming $n-1$ is a prime power.)\n\nThis problem was solved by Kahn [Ka94] who proved the upper bound $f(n) \\ll n$. The Erdős-Lovász\nlower bound of $\\frac{8}{3}n-O(1)$ has not been improved, and it has been speculated (see e.g.\n[Ka94]) that the correct answer is $3n+O(1)$.\n\nIt is trivial that $f(1)=1$ and $f(2)=3$. The values $f(3)=6$ and $f(4)=9$ were established by\nTripathi [Tr14]. Barát and Wanless [BaWa21] proved that $f(5)=13$, and that $13\\leq f(6)\\leq 18$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos21.erdos_21",
  "statement_lean": "theorem erdos_21 : ∃ C : ℕ, ∀ᶠ n : ℕ in atTop, f n ≤ C * n",
  "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 21\n\n*References:*\n- [erdosproblems.com/21](https://www.erdosproblems.com/21)\n- [Er81] Erdős, P., *On the combinatorial problems which I would most like to see solved*.\n  Combinatorica (1981), 25-42.\n- [Er90] Erdős, Paul, *Some of my favourite unsolved problems*. A tribute to Paul Erdős (1990),\n  467-478.\n- [Er92b] Erdős, Paul, *Some of my favourite problems in various branches of combinatorics*.\n  Matematiche (Catania) (1992), 231-240.\n- [Er97f] Erdős, Paul, *Some unsolved problems*. Combinatorics, geometry and probability\n  (Cambridge, 1993) (1997), 1-10.\n- [ErLo75] Erdős, P. and Lovász, L., *Problems and results on $3$-chromatic hypergraphs and some\n  related questions*. (1975), 609--627.\n- [Ka92b] Kahn, Jeff, *On a problem of Erdős and Lovász: random lines in a projective plane*.\n  Combinatorica (1992), 417-423.\n- [Ka94] Kahn, Jeff, *On a problem of Erdős and Lovász. II. $n(r)=O(r)$*. J. Amer. Math. Soc.\n  (1994), 125-143.\n- [Tr14] A. Tripathi, *A result on intersecting families with maximum transversal size*.\n  arXiv:1409.4610 (2014).\n- [BaWa21] J. Barát and I. M. Wanless, *Intersecting and 2-intersecting hypergraphs with maximal\n  covering number: the Erdős-Lovász theme revisited*. J. Combin. Des. (2021), 260-286.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos21\n\n/-- An Erdős–Lovász family of order `n`: an intersecting family of `n`-sets such that every set\nof size at most `n - 1` is disjoint from some member. -/\ndef IsErdosLovaszFamily (n : ℕ) (F : Finset (Finset ℕ)) : Prop :=\n  (∀ A ∈ F, A.card = n) ∧ (∀ A ∈ F, ∀ B ∈ F, (A ∩ B).Nonempty) ∧\n    ∀ S : Finset ℕ, S.card ≤ n - 1 → ∃ A ∈ F, Disjoint S A\n\n/-- `f n` is the minimal size of an Erdős–Lovász family of order `n`. -/\nnoncomputable def f (n : ℕ) : ℕ :=\n  sInf {m : ℕ | ∃ F : Finset (Finset ℕ), IsErdosLovaszFamily n F ∧ F.card = m}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f(n)$ be minimal such that there is an intersecting family $\\mathcal{F}$ of sets of size $n$\n(so $A\\cap B\\neq\\emptyset$ for all $A,B\\in \\mathcal{F}$) with $\\lvert \\mathcal{F}\\rvert=f(n)$\nsuch that any set $S$ with $\\lvert S\\rvert \\leq n-1$ is disjoint from at least one\n$A\\in \\mathcal{F}$.\n\nIs it true that\n$$f(n) \\ll n?$$\n\nConjectured by Erdős and Lovász [ErLo75], who proved that\n$$\\frac{8}{3}n-3\\leq f(n) \\ll n^{3/2}\\log n$$\nfor all $n$. The upper bound was improved by Kahn [Ka92b] to $f(n) \\ll n\\log n$. (The upper\nbound constructions in both cases are formed by taking a random set of lines from a projective\nplane of order $n-1$, assuming $n-1$ is a prime power.)\n\nThis problem was solved by Kahn [Ka94] who proved the upper bound $f(n) \\ll n$. The Erdős-Lovász\nlower bound of $\\frac{8}{3}n-O(1)$ has not been improved, and it has been speculated (see e.g.\n[Ka94]) that the correct answer is $3n+O(1)$.\n\nIt is trivial that $f(1)=1$ and $f(2)=3$. The values $f(3)=6$ and $f(4)=9$ were established by\nTripathi [Tr14]. Barát and Wanless [BaWa21] proved that $f(5)=13$, and that $13\\leq f(6)\\leq 18$.\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos21.lean#L13036\"]\ntheorem erdos_21 : ∃ C : ℕ, ∀ᶠ n : ℕ in atTop, f n ≤ C * n := by\n  sorry\n\n/-- Erdős and Lovász [ErLo75] proved that $\\frac{8}{3}n-3\\leq f(n)$ for all $n$. -/\n@[category research solved, AMS 5]\ntheorem erdos_21.variants.lower (n : ℕ) : (8 / 3 : ℝ) * n - 3 ≤ f n := by\n  sorry\n\n/-- It has been speculated (see e.g. [Ka94]) that the correct answer is $3n+O(1)$. -/\n@[category research open, question, AMS 5]\ntheorem erdos_21.variants.three_n : ∃ C : ℕ, ∀ᶠ n : ℕ in atTop,\n    f n ≤ 3 * n + C ∧ 3 * n ≤ f n + C := by\n  sorry\n\n/-- $f(1)=1$, $f(2)=3$, $f(3)=6$ [Tr14], $f(4)=9$ [Tr14] and $f(5)=13$ [BaWa21]. -/\n@[category research solved, AMS 5]\ntheorem erdos_21.variants.small_values : f 1 = 1 ∧ f 2 = 3 ∧ f 3 = 6 ∧ f 4 = 9 ∧ f 5 = 13 := by\n  sorry\n\nend Erdos21\n",
  "statement_hash": "5661074cac624f6f084ef74bdfd5372d6fba25e328beff25b7d2dd07f3ab16e9",
  "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."
}