Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 127

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let f(m)f(m) be maximal such that every graph with mm edges must contain a bipartite graph with ≥m2+8m+1−18+f(m)\geq \frac{m}{2}+\frac{\sqrt{8m+1}-1}{8}+f(m) edges. Is there an infinite sequence of mim_i such that f(mi)→∞f(m_i)\to \infty?

Conjectured by Erdős, Kohayakava, and Gyárfás [Er97b]. Edwards [Ed73] proved that f(m)≥0f(m)\geq 0 always. Note that f((n2))=0f(\binom{n}{2})= 0, taking KnK_n. Solved by Alon [Al96], who showed f(n2/2)≫n1/2f(n^2/2)\gg n^{1/2}, and also showed that f(m)≪m1/4f(m)\ll m^{1/4} for all mm. The best possible constant in f(m)≤Cm1/4f(m)\leq Cm^{1/4} is unknown.

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:question, formal_proof
Cite as:NS.01063 [math.CO] · NS.01063v1 for this version
Declaration:Erdos127.erdos_127
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:27225250f20eea7ffa79640bebd4fc0553a81a477be43eabb338299fa8f041f2
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/127.lean

Formal statement

theorem erdos_127 : ∃ m : ℕ → ℕ, Tendsto m atTop atTop ∧
    Tendsto (fun i => f (m i)) atTop atTop
Show the full Challenge.lean (78 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 127

*References:*
- [erdosproblems.com/127](https://www.erdosproblems.com/127)
- [Er97b] Erdős, Paul, *Some old and new problems in various branches of combinatorics*. Discrete
  Math. (1997), 227-231.
- [Ed73] Edwards, C. S., *Some extremal properties of bipartite subgraphs*. Canadian J. Math.
  (1973), 475-485.
- [Al96] Alon, Noga, *Bipartite subgraphs*. Combinatorica (1996), 301-311.
-/

@[expose] public section

open Filter Asymptotics SimpleGraph

namespace Erdos127

/-- `f m` is the largest `k` such that every graph with `m` edges contains a bipartite subgraph
with at least $\frac{m}{2}+\frac{\sqrt{8m+1}-1}{8}+k$ edges. -/
noncomputable def f (m : ℕ) : ℕ :=
  sSup {k : ℕ | ∀ (V : Type) [Fintype V] (G : SimpleGraph V), G.edgeSet.ncard = m →
    ∃ H : SimpleGraph V, H ≤ G ∧ H.IsBipartite ∧
      (m : ℝ) / 2 + (√(8 * m + 1) - 1) / 8 + k ≤ H.edgeSet.ncard}

set_option linter.style.formal_proof_palomar false in
/--
Let $f(m)$ be maximal such that every graph with $m$ edges must contain a bipartite graph with
$$\geq \frac{m}{2}+\frac{\sqrt{8m+1}-1}{8}+f(m)$$
edges. Is there an infinite sequence of $m_i$ such that $f(m_i)\to \infty$?

Conjectured by Erdős, Kohayakava, and Gyárfás [Er97b]. Edwards [Ed73] proved that $f(m)\geq 0$
always. Note that $f(\binom{n}{2})= 0$, taking $K_n$. Solved by Alon [Al96], who showed
$f(n^2/2)\gg n^{1/2}$, and also showed that $f(m)\ll m^{1/4}$ for all $m$. The best possible
constant in $f(m)\leq Cm^{1/4}$ is unknown.
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos127.lean#L585"]
theorem erdos_127 : ∃ m : ℕ → ℕ, Tendsto m atTop atTop ∧
    Tendsto (fun i => f (m i)) atTop atTop := by
  sorry

set_option linter.style.formal_proof_palomar false in
/-- Edwards [Ed73] proved that every graph with $m$ edges contains a bipartite subgraph with at
least $\frac{m}{2}+\frac{\sqrt{8m+1}-1}{8}$ edges. -/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos127.lean#L89"]
theorem erdos_127.variants.edwards {V : Type*} [Finite V] (G : SimpleGraph V) :
    ∃ H : SimpleGraph V, H ≤ G ∧ H.IsBipartite ∧
      (G.edgeSet.ncard : ℝ) / 2 + (√(8 * G.edgeSet.ncard + 1) - 1) / 8 ≤ H.edgeSet.ncard := by
  sorry

/-- Alon [Al96] showed that $f(m)\ll m^{1/4}$ for all $m$. -/
@[category research solved, AMS 5]
theorem erdos_127.variants.alon_upper : ∃ C : ℝ, ∀ m : ℕ, (f m : ℝ) ≤ C * (m : ℝ) ^ (1 / 4 : ℝ) := by
  sorry

end Erdos127

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos127.erdos_127 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_127 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-127
nosorry submit erdos-127 nosorry/erdos-127/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.