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 191

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 C>0C>0 be arbitrary. Is it true that, if nn is sufficiently large depending on CC, then in any 22-colouring of ({2,…,n}2)\binom{\{2,\ldots,n\}}{2} there exists some X⊆{2,…,n}X\subseteq \{2,\ldots,n\} such that (X2)\binom{X}{2} is monochromatic and ∑x∈X1log⁡x≥C?\sum_{x\in X}\frac{1}{\log x}\geq C?

The answer is yes, which was proved by Rödl [Ro03]. In the same article Rödl also proved a lower bound for this problem, constructing, for all nn, a 22-colouring of ({2,…,n}2)\binom{\{2,\ldots,n\}}{2} such that if X⊆{2,…,n}X\subseteq \{2,\ldots,n\} is such that (X2)\binom{X}{2} is monochromatic then ∑x∈X1log⁡x≪log⁡log⁡log⁡n.\sum_{x\in X}\frac{1}{\log x}\ll \log\log\log n. In the same paper Rödl proves that the answer to the main problem is negative if we consider 33-colourings.

This bound is best possible, as proved by Conlon, Fox, and Sudakov [CFS13], who proved that, if nn is sufficiently large, then in any 22-colouring of ({2,…,n}2)\binom{\{2,\ldots,n\}}{2} there exists some X⊆{2,…,n}X\subseteq \{2,\ldots,n\} such that (X2)\binom{X}{2} is monochromatic and ∑x∈X1log⁡x≥2−8log⁡log⁡log⁡n.\sum_{x\in X}\frac{1}{\log x}\geq 2^{-8}\log\log\log n.

A 22-colouring of the pairs of {2,…,n}\{2,\ldots,n\} is a graph G on this vertex set; a monochromatic set is a clique or an independent set of G.

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

Formal statement

theorem erdos_191 : ∀ C : ℝ, 0 < C → ∀ᶠ n : ℕ in atTop,
    ∀ G : SimpleGraph (Finset.Icc 2 n), ∃ X : Finset (Finset.Icc 2 n),
      (G.IsClique X ∨ G.IsIndepSet X) ∧ C ≤ ∑ x ∈ X, 1 / Real.log (x : ℕ)
Show the full Challenge.lean (113 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 191

*References:*
- [erdosproblems.com/191](https://www.erdosproblems.com/191)
- [ErGr79] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory: van der Waerden's theorem and related topics*. Enseign. Math. (1979), 325-344.
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory*. Monographies de L'Enseignement Mathematique (1980).
- [Er81] Erdős, P., *On the combinatorial problems which I would most like to see solved*.
  Combinatorica (1981), 25-42.
- [Er82e] Erdős, Paul, *Some of my favourite problems which recently have been solved*. (1982),
  59--79.
- [Ro03] Rödl, Vojtěch, *On homogeneous sets of positive integers*. J. Combin. Theory Ser. A
  (2003), 229-240.
- [CFS13] Conlon, David and Fox, Jacob and Sudakov, Benny, *Two extensions of Ramsey's theorem*.
  Duke Math. J. (2013), 2903-2927.
-/

@[expose] public section

open Filter

namespace Erdos191

set_option linter.style.formal_proof_palomar false in
/--
Let $C>0$ be arbitrary. Is it true that, if $n$ is sufficiently large depending on $C$, then in
any $2$-colouring of $\binom{\{2,\ldots,n\}}{2}$ there exists some $X\subseteq \{2,\ldots,n\}$
such that $\binom{X}{2}$ is monochromatic and
$$\sum_{x\in X}\frac{1}{\log x}\geq C?$$

The answer is yes, which was proved by Rödl [Ro03]. In the same article Rödl also proved a lower
bound for this problem, constructing, for all $n$, a $2$-colouring of $\binom{\{2,\ldots,n\}}{2}$
such that if $X\subseteq \{2,\ldots,n\}$ is such that $\binom{X}{2}$ is monochromatic then
$$\sum_{x\in X}\frac{1}{\log x}\ll \log\log\log n.$$
In the same paper Rödl proves that the answer to the main problem is negative if we consider
$3$-colourings.

This bound is best possible, as proved by Conlon, Fox, and Sudakov [CFS13], who proved that, if
$n$ is sufficiently large, then in any $2$-colouring of $\binom{\{2,\ldots,n\}}{2}$ there exists
some $X\subseteq \{2,\ldots,n\}$ such that $\binom{X}{2}$ is monochromatic and
$$\sum_{x\in X}\frac{1}{\log x}\geq 2^{-8}\log\log\log n.$$

A $2$-colouring of the pairs of $\{2,\ldots,n\}$ is a graph `G` on this vertex set; a
monochromatic set is a clique or an independent set of `G`.
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos191.lean#L1272"]
theorem erdos_191 : ∀ C : ℝ, 0 < C → ∀ᶠ n : ℕ in atTop,
    ∀ G : SimpleGraph (Finset.Icc 2 n), ∃ X : Finset (Finset.Icc 2 n),
      (G.IsClique X ∨ G.IsIndepSet X) ∧ C ≤ ∑ x ∈ X, 1 / Real.log (x : ℕ) := by
  sorry

/--
Conlon, Fox, and Sudakov [CFS13] proved that, if $n$ is sufficiently large, then in any
$2$-colouring of $\binom{\{2,\ldots,n\}}{2}$ there exists some $X\subseteq \{2,\ldots,n\}$ such
that $\binom{X}{2}$ is monochromatic and
$$\sum_{x\in X}\frac{1}{\log x}\geq 2^{-8}\log\log\log n.$$
-/
@[category research solved, AMS 5]
theorem erdos_191.variants.conlon_fox_sudakov : ∀ᶠ n : ℕ in atTop,
    ∀ G : SimpleGraph (Finset.Icc 2 n), ∃ X : Finset (Finset.Icc 2 n),
      (G.IsClique X ∨ G.IsIndepSet X) ∧
        2 ^ (-8 : ℤ) * Real.log (Real.log (Real.log n)) ≤ ∑ x ∈ X, 1 / Real.log (x : ℕ) := by
  sorry

/--
Rödl [Ro03] constructed, for all $n$, a $2$-colouring of $\binom{\{2,\ldots,n\}}{2}$ such that
if $X\subseteq \{2,\ldots,n\}$ is such that $\binom{X}{2}$ is monochromatic then
$$\sum_{x\in X}\frac{1}{\log x}\ll \log\log\log n.$$
-/
@[category research solved, AMS 5]
theorem erdos_191.variants.rodl_upper : ∃ c : ℝ, ∀ᶠ n : ℕ in atTop,
    ∃ G : SimpleGraph (Finset.Icc 2 n), ∀ X : Finset (Finset.Icc 2 n),
      G.IsClique X ∨ G.IsIndepSet X →
        ∑ x ∈ X, 1 / Real.log (x : ℕ) ≤ c * Real.log (Real.log (Real.log n)) := by
  sorry

/--
Rödl [Ro03] proved that the answer to [erdős_191](https://www.erdosproblems.com/191) is negative
if we consider $3$-colourings: there is a constant $C$ such that for every $n$ some $3$-colouring
of $\binom{\{2,\ldots,n\}}{2}$ has $\sum_{x\in X}\frac{1}{\log x} < C$ for every monochromatic
$X$.
-/
@[category research solved, AMS 5]
theorem erdos_191.variants.three_colours : ∃ C : ℝ, ∀ n : ℕ,
    ∃ c : Sym2 (Finset.Icc 2 n) → Fin 3, ∀ X : Finset (Finset.Icc 2 n),
      (∃ i : Fin 3, ∀ x ∈ X, ∀ y ∈ X, x ≠ y → c s(x, y) = i) →
        ∑ x ∈ X, 1 / Real.log (x : ℕ) < C := by
  sorry

end Erdos191

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

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