{
  "id": "2486",
  "ident": "NS.02486",
  "slug": "erdos-563",
  "title": "Erdős Problem 563",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $F(n,\\alpha)$ denote the smallest $m$ such that there exists a $2$-colouring of the edges of\n$K_n$ so that every $X\\subseteq [n]$ with $\\lvert X\\rvert\\geq m$ contains more than\n$\\alpha \\binom{\\lvert X\\rvert}{2}$ many edges of each colour.\n\nProve that, for every $0\\leq \\alpha < 1/2$,\n$$F(n,\\alpha)\\sim c_\\alpha\\log n$$\nfor some constant $c_\\alpha$ depending only on $\\alpha$.\n\nThis problem is #39 in Ramsey Theory in the graphs problem collection.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos563.erdos_563",
  "statement_lean": "theorem erdos_563 :\n    ∀ (α : ℝ), 0 ≤ α → α < 1 / 2 →\n      ∃ (c : ℝ), 0 < c ∧\n        Tendsto (fun n : ℕ => (F n α : ℝ) / Real.log n) atTop (nhds c)",
  "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 563\n\n*References:*\n- [erdosproblems.com/563](https://www.erdosproblems.com/563)\n- [Er90b] Erdős, Paul, Problems and results on graphs and hypergraphs: similarities and differences.\n  Mathematics of Ramsey theory (1990), 12-28.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos563\n\nopen scoped Classical in\n/--\nA 2-coloring of $K_n$ (represented by graph $G$ on $\\mathrm{Fin}\\; n$) is balanced on subsets\nof size at least $m$ with parameter $\\alpha$ if every $X \\subseteq [n]$ with $|X| \\geq m$\ncontains more than $\\alpha \\binom{|X|}{2}$ edges of each color.\n-/\ndef HasBalancedSubsets (n : ℕ) (m : ℕ) (α : ℝ) (G : SimpleGraph (Fin n)) : Prop :=\n  ∀ (X : Finset (Fin n)), m ≤ X.card →\n    α * (X.card.choose 2 : ℝ) < ((G.induce (X : Set (Fin n))).edgeFinset.card : ℝ) ∧\n    ((G.induce (X : Set (Fin n))).edgeFinset.card : ℝ) < (1 - α) * (X.card.choose 2 : ℝ)\n\nopen scoped Classical in\n/--\n$F(n,\\alpha)$ is the smallest $m$ such that there exists a 2-coloring of the edges of $K_n$\nso that every $X\\subseteq [n]$ with $|X|\\geq m$ contains more than $\\alpha\\binom{|X|}{2}$\nedges of each color.\n-/\nnoncomputable def F (n : ℕ) (α : ℝ) : ℕ :=\n  sInf {m | ∃ (G : SimpleGraph (Fin n)), HasBalancedSubsets n m α G}\n\n/--\nLet $F(n,\\alpha)$ denote the smallest $m$ such that there exists a $2$-colouring of the edges of\n$K_n$ so that every $X\\subseteq [n]$ with $\\lvert X\\rvert\\geq m$ contains more than\n$\\alpha \\binom{\\lvert X\\rvert}{2}$ many edges of each colour.\n\nProve that, for every $0\\leq \\alpha < 1/2$,\n$$F(n,\\alpha)\\sim c_\\alpha\\log n$$\nfor some constant $c_\\alpha$ depending only on $\\alpha$.\n\nThis problem is #39 in Ramsey Theory in the graphs problem collection.\n-/\n@[category research open, AMS 5]\ntheorem erdos_563 :\n    ∀ (α : ℝ), 0 ≤ α → α < 1 / 2 →\n      ∃ (c : ℝ), 0 < c ∧\n        Tendsto (fun n : ℕ => (F n α : ℝ) / Real.log n) atTop (nhds c) := by\n  sorry\n\n-- TODO: Add variants of the problem.\n\nend Erdos563\n",
  "statement_hash": "55c7079ddffc9d5349aa5aa2d9d73ae2890422fd8ad79aee4e6b0ad9f3d028e3",
  "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."
}