{
  "id": "1063",
  "ident": "NS.01063",
  "slug": "erdos-127",
  "title": "Erdős Problem 127",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(m)$ be maximal such that every graph with $m$ edges must contain a bipartite graph with\n$$\\geq \\frac{m}{2}+\\frac{\\sqrt{8m+1}-1}{8}+f(m)$$\nedges. Is there an infinite sequence of $m_i$ such that $f(m_i)\\to \\infty$?\n\nConjectured by Erdős, Kohayakava, and Gyárfás [Er97b]. Edwards [Ed73] proved that $f(m)\\geq 0$\nalways. Note that $f(\\binom{n}{2})= 0$, taking $K_n$. Solved by Alon [Al96], who showed\n$f(n^2/2)\\gg n^{1/2}$, and also showed that $f(m)\\ll m^{1/4}$ for all $m$. The best possible\nconstant in $f(m)\\leq Cm^{1/4}$ is unknown.",
  "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": "Erdos127.erdos_127",
  "statement_lean": "theorem erdos_127 : ∃ m : ℕ → ℕ, Tendsto m atTop atTop ∧\n    Tendsto (fun i => f (m i)) atTop atTop",
  "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 127\n\n*References:*\n- [erdosproblems.com/127](https://www.erdosproblems.com/127)\n- [Er97b] Erdős, Paul, *Some old and new problems in various branches of combinatorics*. Discrete\n  Math. (1997), 227-231.\n- [Ed73] Edwards, C. S., *Some extremal properties of bipartite subgraphs*. Canadian J. Math.\n  (1973), 475-485.\n- [Al96] Alon, Noga, *Bipartite subgraphs*. Combinatorica (1996), 301-311.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics SimpleGraph\n\nnamespace Erdos127\n\n/-- `f m` is the largest `k` such that every graph with `m` edges contains a bipartite subgraph\nwith at least $\\frac{m}{2}+\\frac{\\sqrt{8m+1}-1}{8}+k$ edges. -/\nnoncomputable def f (m : ℕ) : ℕ :=\n  sSup {k : ℕ | ∀ (V : Type) [Fintype V] (G : SimpleGraph V), G.edgeSet.ncard = m →\n    ∃ H : SimpleGraph V, H ≤ G ∧ H.IsBipartite ∧\n      (m : ℝ) / 2 + (√(8 * m + 1) - 1) / 8 + k ≤ H.edgeSet.ncard}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f(m)$ be maximal such that every graph with $m$ edges must contain a bipartite graph with\n$$\\geq \\frac{m}{2}+\\frac{\\sqrt{8m+1}-1}{8}+f(m)$$\nedges. Is there an infinite sequence of $m_i$ such that $f(m_i)\\to \\infty$?\n\nConjectured by Erdős, Kohayakava, and Gyárfás [Er97b]. Edwards [Ed73] proved that $f(m)\\geq 0$\nalways. Note that $f(\\binom{n}{2})= 0$, taking $K_n$. Solved by Alon [Al96], who showed\n$f(n^2/2)\\gg n^{1/2}$, and also showed that $f(m)\\ll m^{1/4}$ for all $m$. The best possible\nconstant in $f(m)\\leq Cm^{1/4}$ is unknown.\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/Erdos127.lean#L585\"]\ntheorem erdos_127 : ∃ m : ℕ → ℕ, Tendsto m atTop atTop ∧\n    Tendsto (fun i => f (m i)) atTop atTop := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- Edwards [Ed73] proved that every graph with $m$ edges contains a bipartite subgraph with at\nleast $\\frac{m}{2}+\\frac{\\sqrt{8m+1}-1}{8}$ edges. -/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos127.lean#L89\"]\ntheorem erdos_127.variants.edwards {V : Type*} [Finite V] (G : SimpleGraph V) :\n    ∃ H : SimpleGraph V, H ≤ G ∧ H.IsBipartite ∧\n      (G.edgeSet.ncard : ℝ) / 2 + (√(8 * G.edgeSet.ncard + 1) - 1) / 8 ≤ H.edgeSet.ncard := by\n  sorry\n\n/-- Alon [Al96] showed that $f(m)\\ll m^{1/4}$ for all $m$. -/\n@[category research solved, AMS 5]\ntheorem erdos_127.variants.alon_upper : ∃ C : ℝ, ∀ m : ℕ, (f m : ℝ) ≤ C * (m : ℝ) ^ (1 / 4 : ℝ) := by\n  sorry\n\nend Erdos127\n",
  "statement_hash": "27225250f20eea7ffa79640bebd4fc0553a81a477be43eabb338299fa8f041f2",
  "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."
}