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 781

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(k)f(k) be the minimal nn such that any 22-colouring of {1,…,n}\{1,\ldots,n\} contains a monochromatic kk-term descending wave: a sequence x1<⋯<xkx_1<\cdots <x_k such that, for 1<j<k1<j<k, xj≥xj+1+xj−12.x_j \geq \frac{x_{j+1}+x_{j-1}}{2}. Estimate f(k)f(k).

Brown, Erdős, and Freedman [BEF90] proved k2−k+1≤f(k)≤k3−4k+93k^2-k+1\leq f(k) \leq \frac{k^3-4k+9}{3}. Resolved by Alon and Spencer [AlSp89] who proved that in fact f(k)≫k3f(k) \gg k^3, so that f(k)≍k3f(k)\asymp k^3.

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Tags:formal_proof
Cite as:NS.03171 [math.CO] · NS.03171v1 for this version
Declaration:Erdos781.erdos_781.parts.i
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:80e1342566670299b1e9f13d08de08c6df3cbebe82350a46e40b1bafa0a2a23c
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/781.lean

Formal statement

theorem erdos_781.parts.i : (fun k ↦ (f k : ℝ)) =Θ[atTop] fun k ↦ (k : ℝ) ^ 3
Show the full Challenge.lean (82 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 781

*References:*
- [erdosproblems.com/781](https://www.erdosproblems.com/781)
- [BEF90] Brown, T. C. and Erdős, P. and Freedman, A. R., _Quasi-progressions and descending
  waves_. J. Combin. Theory Ser. A (1990), 81-95.
- [AlSp89] Alon, N. and Spencer, Joel, _Ascending waves_. J. Combin. Theory Ser. A (1989),
  275-287.
-/

@[expose] public section

open Filter Asymptotics

namespace Erdos781

/-- A $k$-term *descending wave* is a sequence $x_1<\cdots <x_k$ such that, for $1<j<k$,
$x_j \geq \frac{x_{j+1}+x_{j-1}}{2}$. -/
def IsDescendingWave {k : ℕ} (x : Fin k → ℕ) : Prop :=
  StrictMono x ∧
    ∀ i j l : Fin k, (i : ℕ) + 1 = j → (j : ℕ) + 1 = l → x i + x l ≤ 2 * x j

/-- `f k` is the minimal `n` such that any $2$-colouring of $\{1,\ldots,n\}$ (identified with
`Fin n`) contains a monochromatic $k$-term descending wave. -/
noncomputable def f (k : ℕ) : ℕ :=
  sInf {n | ∀ c : Fin n → Fin 2, ∃ x : Fin k → Fin n,
    IsDescendingWave (fun i ↦ (x i : ℕ)) ∧ ∃ γ, ∀ i, c (x i) = γ}

set_option linter.style.formal_proof_palomar false in
/--
Let $f(k)$ be the minimal $n$ such that any $2$-colouring of $\{1,\ldots,n\}$ contains a
monochromatic $k$-term descending wave: a sequence $x_1<\cdots <x_k$ such that, for $1<j<k$,
$$x_j \geq \frac{x_{j+1}+x_{j-1}}{2}.$$
Estimate $f(k)$.

Brown, Erdős, and Freedman [BEF90] proved $k^2-k+1\leq f(k) \leq \frac{k^3-4k+9}{3}$. Resolved by
Alon and Spencer [AlSp89] who proved that in fact $f(k) \gg k^3$, so that $f(k)\asymp k^3$.
-/
@[category research solved, AMS 5 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos781.lean#L3202"]
theorem erdos_781.parts.i : (fun k ↦ (f k : ℝ)) =Θ[atTop] fun k ↦ (k : ℝ) ^ 3 := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Is it true that $f(k)=k^2-k+1$ for all $k$?

The answer is no, since $f(k)\gg k^3$ by Alon and Spencer [AlSp89].
-/
@[category research solved, question, AMS 5 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos781.lean#L3202"]
theorem erdos_781.parts.ii : ¬ ∀ k ≥ 1, f k = k ^ 2 - k + 1 := by
  sorry

/-- Brown, Erdős, and Freedman [BEF90] proved $k^2-k+1\leq f(k) \leq \frac{k^3-4k+9}{3}$. -/
@[category research solved, AMS 5 11]
theorem erdos_781.variants.brown_erdos_freedman (k : ℕ) (hk : 1 ≤ k) :
    k ^ 2 - k + 1 ≤ f k ∧ (f k : ℚ) ≤ (k ^ 3 - 4 * k + 9) / 3 := by
  sorry

end Erdos781

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

nosorry fetch erdos-781
nosorry submit erdos-781 nosorry/erdos-781/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.