{
  "id": "3338",
  "ident": "NS.03338",
  "slug": "erdos-83",
  "title": "Erdős Problem 83",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Suppose that we have a family $\\mathcal{F}$ of subsets of $[4n]$ such that $\\lvert A\\rvert=2n$\nfor all $A\\in\\mathcal{F}$ and for every $A,B\\in \\mathcal{F}$ we have\n$\\lvert A\\cap B\\rvert \\geq 2$. Then\n$$\\lvert \\mathcal{F}\\rvert \\leq \\frac{1}{2}\\left(\\binom{4n}{2n}-\\binom{2n}{n}^2\\right).$$\n\nConjectured by Erdős, Ko, and Rado [ErKoRa61]. This inequality would be best possible, as shown\nby taking $\\mathcal{F}$ to be the collection of all subsets of $[4n]$ of size $2n$ containing at\nleast $n+1$ elements from $[2n]$.\n\nProved by Ahlswede and Khachatrian [AhKh97], who more generally showed the following. Let\n$2\\leq t\\leq k\\leq m$ and let $r\\geq 0$ be such that\n$$\\frac{1}{r+1}\\leq \\frac{m-2k+2t-2}{(t-1)(k-t+1)}< \\frac{1}{r}.$$\nThe largest possible family of subsets of $[m]$ of size $k$, such that the pairwise\nintersections have size at least $t$, is the family of all subsets of $[m]$ of size $k$ which\ncontain at least $t+r$ elements from $\\{1,\\ldots,t+2r\\}$.\n\nThe number $\\binom{4n}{2n}-\\binom{2n}{n}^2$ is even, so the bound is an integer.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos83.erdos_83",
  "statement_lean": "theorem erdos_83 (n : ℕ) (F : Finset (Finset (Fin (4 * n)))) (hF : ∀ A ∈ F, A.card = 2 * n)\n    (hinter : ∀ A ∈ F, ∀ B ∈ F, 2 ≤ (A ∩ B).card) :\n    F.card ≤ ((4 * n).choose (2 * n) - (2 * n).choose n ^ 2) / 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# Erdős Problem 83\n\n*References:*\n- [erdosproblems.com/83](https://www.erdosproblems.com/83)\n- [Er71] Erdős, P., *Some unsolved problems in graph theory and combinatorial analysis*.\n  Combinatorial Mathematics and its Applications (Proc. Conf., Oxford, 1969) (1971), 97-109.\n- [Er90] Erdős, Paul, *Some of my favourite unsolved problems*. A tribute to Paul Erdős (1990),\n  467-478.\n- [Er92e] Erdős, Pál, *Some Unsolved problems in Geometry, Number Theory and Combinatorics*.\n  Eureka (1992), 44-48.\n- [Er95] Erdős, Paul, *Some of my favourite problems in number theory, combinatorics, and\n  geometry*. Resenhas (1995), 165-186.\n- [ErKoRa61] Erdős, P. and Ko, Chao and Rado, R., *Intersection theorems for systems of finite\n  sets*. Quart. J. Math. Oxford Ser. (2) (1961), 313-320.\n- [AhKh97] Ahlswede, Rudolf and Khachatrian, Levon H., *The complete intersection theorem for\n  systems of finite sets*. European J. Combin. (1997), 125-136.\n-/\n\n@[expose] public section\n\nnamespace Erdos83\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSuppose that we have a family $\\mathcal{F}$ of subsets of $[4n]$ such that $\\lvert A\\rvert=2n$\nfor all $A\\in\\mathcal{F}$ and for every $A,B\\in \\mathcal{F}$ we have\n$\\lvert A\\cap B\\rvert \\geq 2$. Then\n$$\\lvert \\mathcal{F}\\rvert \\leq \\frac{1}{2}\\left(\\binom{4n}{2n}-\\binom{2n}{n}^2\\right).$$\n\nConjectured by Erdős, Ko, and Rado [ErKoRa61]. This inequality would be best possible, as shown\nby taking $\\mathcal{F}$ to be the collection of all subsets of $[4n]$ of size $2n$ containing at\nleast $n+1$ elements from $[2n]$.\n\nProved by Ahlswede and Khachatrian [AhKh97], who more generally showed the following. Let\n$2\\leq t\\leq k\\leq m$ and let $r\\geq 0$ be such that\n$$\\frac{1}{r+1}\\leq \\frac{m-2k+2t-2}{(t-1)(k-t+1)}< \\frac{1}{r}.$$\nThe largest possible family of subsets of $[m]$ of size $k$, such that the pairwise\nintersections have size at least $t$, is the family of all subsets of $[m]$ of size $k$ which\ncontain at least $t+r$ elements from $\\{1,\\ldots,t+2r\\}$.\n\nThe number $\\binom{4n}{2n}-\\binom{2n}{n}^2$ is even, so the bound is an integer.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos83.lean#L36\"]\ntheorem erdos_83 (n : ℕ) (F : Finset (Finset (Fin (4 * n)))) (hF : ∀ A ∈ F, A.card = 2 * n)\n    (hinter : ∀ A ∈ F, ∀ B ∈ F, 2 ≤ (A ∩ B).card) :\n    F.card ≤ ((4 * n).choose (2 * n) - (2 * n).choose n ^ 2) / 2 := by\n  sorry\n\n/--\nThe bound in [erdős_83](https://www.erdosproblems.com/83) is attained by the family of all\nsubsets of $[4n]$ of size $2n$ containing at least $n+1$ elements from $[2n]$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_83.variants.extremal (n : ℕ) :\n    ∃ F : Finset (Finset (Fin (4 * n))), (∀ A ∈ F, A.card = 2 * n) ∧\n      (∀ A ∈ F, ∀ B ∈ F, 2 ≤ (A ∩ B).card) ∧\n      F.card = ((4 * n).choose (2 * n) - (2 * n).choose n ^ 2) / 2 := by\n  sorry\n\n/--\nThe complete intersection theorem of Ahlswede and Khachatrian [AhKh97]: for $2\\leq t\\leq k\\leq m$,\nevery family of $k$-subsets of $[m]$ with pairwise intersections of size at least $t$ is at most\nas large as one of the families of all $k$-subsets of $[m]$ containing at least $t+r$ elements of\n$\\{1,\\ldots,t+2r\\}$, $r \\geq 0$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_83.variants.ahlswede_khachatrian (m k t : ℕ) (ht : 2 ≤ t) (htk : t ≤ k)\n    (hkm : k ≤ m) (F : Finset (Finset (Fin m))) (hF : ∀ A ∈ F, A.card = k)\n    (hinter : ∀ A ∈ F, ∀ B ∈ F, t ≤ (A ∩ B).card) :\n    ∃ r : ℕ, F.card ≤ ({A : Finset (Fin m) | A.card = k ∧\n      t + r ≤ (A.filter fun i : Fin m => (i : ℕ) < t + 2 * r).card} : Finset _).card := by\n  sorry\n\nend Erdos83\n",
  "statement_hash": "ccc93e97f26ffc3fe63a80dda4f871ce6707f5adee09f37b1636e905d54a48c5",
  "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."
}