{
  "id": "2773",
  "ident": "NS.02773",
  "slug": "erdos-664",
  "title": "Erdős Problem 664",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $c<1$ be some constant and $A_1,\\ldots,A_m\\subseteq \\{1,\\ldots,n\\}$ be such that\n$\\lvert A_i\\rvert >c\\sqrt{n}$ for all $i$ and $\\lvert A_i\\cap A_j\\rvert\\leq 1$ for all $i\\neq j$.\n\nMust there exist some set $B$ such that $B\\cap A_i\\neq \\emptyset$ and\n$\\lvert B\\cap A_i\\rvert \\ll_c 1$ for all $i$?\n\nThe answer is no, proved by Alon: if $q$ is a large prime power and $n=m=q^2+q+1$ then there\nexist $A_1,\\ldots,A_m\\subseteq \\{1,\\ldots,n\\}$ such that\n$\\lvert A_i\\rvert \\geq \\tfrac{2}{5}\\sqrt{n}$ for all $i$ and $\\lvert A_i\\cap A_j\\rvert\\leq 1$ for\nall $i\\neq j$, and yet if $B$ has non-empty intersection with all $A_i$ then there exists $A_j$\nsuch that $\\lvert B\\cap A_j\\rvert \\gg \\log n$.",
  "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": "Erdos664.erdos_664",
  "statement_lean": "theorem erdos_664 :\n    ¬ ∀ c : ℝ, 0 < c → c < 1 → ∃ K : ℕ, ∀ (n m : ℕ) (A : Fin m → Finset (Fin n)),\n      (∀ i, c * √n < (A i).card) → (∀ i j, i ≠ j → (A i ∩ A j).card ≤ 1) →\n        ∃ B : Finset (Fin n), (∀ i, (B ∩ A i).Nonempty) ∧\n          ∀ i, (B ∩ A i).card ≤ K",
  "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 664\n\n*References:*\n- [erdosproblems.com/664](https://www.erdosproblems.com/664)\n- [Er81] Erdős, P., _On the combinatorial problems which I would most like to see solved_.\n  Combinatorica (1981), 25-42.\n- [Er97f] Erdős, Paul, _Some unsolved problems_. Combinatorics, geometry and probability\n  (Cambridge, 1993) (1997), 1-10.\n-/\n\n@[expose] public section\n\nopen Filter Real Finset\n\nnamespace Erdos664\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $c<1$ be some constant and $A_1,\\ldots,A_m\\subseteq \\{1,\\ldots,n\\}$ be such that\n$\\lvert A_i\\rvert >c\\sqrt{n}$ for all $i$ and $\\lvert A_i\\cap A_j\\rvert\\leq 1$ for all $i\\neq j$.\n\nMust there exist some set $B$ such that $B\\cap A_i\\neq \\emptyset$ and\n$\\lvert B\\cap A_i\\rvert \\ll_c 1$ for all $i$?\n\nThe answer is no, proved by Alon: if $q$ is a large prime power and $n=m=q^2+q+1$ then there\nexist $A_1,\\ldots,A_m\\subseteq \\{1,\\ldots,n\\}$ such that\n$\\lvert A_i\\rvert \\geq \\tfrac{2}{5}\\sqrt{n}$ for all $i$ and $\\lvert A_i\\cap A_j\\rvert\\leq 1$ for\nall $i\\neq j$, and yet if $B$ has non-empty intersection with all $A_i$ then there exists $A_j$\nsuch that $\\lvert B\\cap A_j\\rvert \\gg \\log n$.\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/Erdos664.lean#L214\"]\ntheorem erdos_664 :\n    ¬ ∀ c : ℝ, 0 < c → c < 1 → ∃ K : ℕ, ∀ (n m : ℕ) (A : Fin m → Finset (Fin n)),\n      (∀ i, c * √n < (A i).card) → (∀ i j, i ≠ j → (A i ∩ A j).card ≤ 1) →\n        ∃ B : Finset (Fin n), (∀ i, (B ∩ A i).Nonempty) ∧\n          ∀ i, (B ∩ A i).card ≤ K := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Alon's counterexample already works for $c=2/5$. -/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos664.lean#L214\"]\ntheorem erdos_664.variants.two_fifths :\n    ¬ ∃ K : ℕ, ∀ (n m : ℕ) (A : Fin m → Finset (Fin n)),\n      (∀ i, 2 / 5 * √n < (A i).card) → (∀ i j, i ≠ j → (A i ∩ A j).card ≤ 1) →\n        ∃ B : Finset (Fin n), (∀ i, (B ∩ A i).Nonempty) ∧\n          ∀ i, (B ∩ A i).card ≤ K := by\n  sorry\n\n/--\nIn [Er81] the condition $\\lvert A_i\\cap A_j\\rvert\\leq 1$ for all $i\\neq j$ is replaced by every\ntwo points in $\\{1,\\ldots,n\\}$ being contained in exactly one $A_i$, that is,\n$A_1,\\ldots,A_m$ is a pairwise balanced block design. The bound $\\lvert A_i\\rvert>c\\sqrt{n}$ is\nkept, only the condition $c<1$ is omitted. This weaker version remains open, although Alon\nconjectures the answer there to also be no.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_664.variants.block_design :\n    ∀ c : ℝ, 0 < c → ∃ K : ℕ, ∀ (n m : ℕ) (A : Fin m → Finset (Fin n)),\n      (∀ i, c * √n < (A i).card) → (∀ x y : Fin n, x ≠ y → ∃! i, x ∈ A i ∧ y ∈ A i) →\n        ∃ B : Finset (Fin n), (∀ i, (B ∩ A i).Nonempty) ∧\n          ∀ i, (B ∩ A i).card ≤ K := by\n  sorry\n\nend Erdos664\n",
  "statement_hash": "890aab58616915ceac17b34fc5e7392907b7a3e5fbe3a3b37650fe62a2071a44",
  "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."
}