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 805

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

For which functions g(n)g(n) with n>g(n)≥(log⁡n)2n>g(n)\geq (\log n)^2 is there a graph on nn vertices in which every induced subgraph on g(n)g(n) vertices contains a clique of size ≥log⁡n\geq \log n and an independent set of size ≥log⁡n\geq \log n?

In particular, is there such a graph for g(n)=(log⁡n)3g(n)=(\log n)^3?

This is the first part. A problem of Erdős and Hajnal [Er91]; see also erdosproblems.com/804. The inequalities on g are required for all large n, and a graph is required for all large n.

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

Formal statement

theorem erdos_805.parts.i :
    {g : ℕ → ℕ | (∀ᶠ n : ℕ in atTop, Real.log n ^ 2 ≤ g n ∧ g n < n) ∧ HasRamseyGraphs g} =
      erdos_805.parts.i.answer
Show the full Challenge.lean (134 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 805

*References:*
- [erdosproblems.com/805](https://www.erdosproblems.com/805)
- [Er91] Erdős, P., *Problems and results in combinatorial analysis and combinatorial number
  theory*. Graph theory, combinatorics, and applications, Vol. 1 (Kalamazoo, MI, 1988) (1991),
  397-406.
- [AlSu07] Alon, N. and Sudakov, B., *On graphs with subgraphs having large independence
  numbers*. J. Graph Theory 56 (2007), 149-157.
  [arXiv:0706.4099](https://arxiv.org/abs/0706.4099)
- [ABS21] Alon, N., Bucić, M. and Sudakov, B., *Large cliques and independent sets all over the
  place*. Proc. Amer. Math. Soc. 149 (2021), 3145-3157.
  [arXiv:2004.04718](https://arxiv.org/abs/2004.04718)
-/

@[expose] public section

open Filter

namespace Erdos805

/-- `IsLocallyRamsey G m k`: every set of `m` vertices of `G` contains a clique with at least `k`
vertices and an independent set with at least `k` vertices. -/
def IsLocallyRamsey {n : ℕ} (G : SimpleGraph (Fin n)) (m k : ℕ) : Prop :=
  ∀ S : Finset (Fin n), S.card = m →
    (∃ C ⊆ S, k ≤ C.card ∧ G.IsClique (C : Set (Fin n))) ∧
    (∃ I ⊆ S, k ≤ I.card ∧ G.IsIndepSet (I : Set (Fin n)))

/-- If every set of `m` vertices contains a clique and an independent set of size `k`, so does
every set of `m' ≥ m` vertices. Thus "every induced subgraph on exactly `m` vertices" and "every
set of at least `m` vertices" (the formulation of [ABS21]) agree. -/
@[category API, AMS 5]
theorem IsLocallyRamsey.mono {n m m' k : ℕ} {G : SimpleGraph (Fin n)}
    (h : IsLocallyRamsey G m k) (hm : m ≤ m') : IsLocallyRamsey G m' k := by
  intro S hS
  obtain ⟨T, hTS, hT⟩ := Finset.exists_subset_card_eq (show m ≤ S.card by omega)
  obtain ⟨⟨C, hCT, hCk, hC⟩, ⟨I, hIT, hIk, hI⟩⟩ := h T hT
  exact ⟨⟨C, hCT.trans hTS, hCk, hC⟩, ⟨I, hIT.trans hTS, hIk, hI⟩⟩

/-- `HasRamseyGraphs g`: for all sufficiently large `n` there is a graph on `n` vertices in
which every induced subgraph on `g n` vertices contains a clique and an independent set of size
at least $\log n$ (that is, of at least `⌈log n⌉` vertices; `log` is the natural logarithm). -/
def HasRamseyGraphs (g : ℕ → ℕ) : Prop :=
  ∀ᶠ n : ℕ in atTop, ∃ G : SimpleGraph (Fin n), IsLocallyRamsey G (g n) ⌈Real.log n⌉₊

/-- The answer: the set of functions `g` with $n>g(n)\geq(\log n)^2$ for which such graphs
exist. -/
def erdos_805.parts.i.answer : Set (ℕ → ℕ) := sorry

/--
For which functions $g(n)$ with $n>g(n)\geq (\log n)^2$ is there a graph on $n$ vertices in which
every induced subgraph on $g(n)$ vertices contains a clique of size $\geq \log n$ and an
independent set of size $\geq \log n$?

In particular, is there such a graph for $g(n)=(\log n)^3$?

This is the first part. A problem of Erdős and Hajnal [Er91]; see also
[erdosproblems.com/804](https://www.erdosproblems.com/804). The inequalities
on `g` are required for all large `n`, and a graph is required for all large `n`.
-/
@[category research open, question value, AMS 5]
theorem erdos_805.parts.i :
    {g : ℕ → ℕ | (∀ᶠ n : ℕ in atTop, Real.log n ^ 2 ≤ g n ∧ g n < n) ∧ HasRamseyGraphs g} =
      erdos_805.parts.i.answer := by
  sorry

/--
For which functions $g(n)$ with $n>g(n)\geq (\log n)^2$ is there a graph on $n$ vertices in which
every induced subgraph on $g(n)$ vertices contains a clique of size $\geq \log n$ and an
independent set of size $\geq \log n$?

In particular, is there such a graph for $g(n)=(\log n)^3$?

This is the second part. Erdős and Hajnal thought that there is no such graph for
$g(n)=(\log n)^3$ [AlSu07]; we state the positive proposition, with $g(n)=\lfloor(\log n)^3\rfloor$
and a graph required for all large $n$, as in the first part.
-/
@[category research open, question, AMS 5]
theorem erdos_805.parts.ii : HasRamseyGraphs (fun n ↦ ⌊Real.log n ^ 3⌋₊) := by
  sorry

/--
Alon and Sudakov [AlSu07] proved that there is no such graph with
$$g(n)=\frac{c}{\log\log n}(\log n)^3$$
for some constant $c>0$.

Here `log` is the natural logarithm, as in [AlSu07], and the statement is for all large `n`.
-/
@[category research solved, AMS 5]
theorem erdos_805.variants.alon_sudakov :
    ∃ c : ℝ, 0 < c ∧ ∀ᶠ n : ℕ in atTop, ¬ ∃ G : SimpleGraph (Fin n),
      IsLocallyRamsey G ⌊c * Real.log n ^ 3 / Real.log (Real.log n)⌋₊ ⌈Real.log n⌉₊ := by
  sorry

/--
Alon, Bucić, and Sudakov [ABS21] construct such a graph with
$$g(n)\leq 2^{2^{(\log\log n)^{1/2+o(1)}}}.$$

Here all logarithms are to base $2$, as in [ABS21], so the cliques and independent sets have at
least $\lceil\log_2 n\rceil$ vertices; this implies the natural-logarithm version of the problem.
The $o(1)$ is expressed as: for every $0<\varepsilon<1/2$ and all large $n$ there is such a graph
with $g(n)=\lceil 2^{2^{(\log_2\log_2 n)^{1/2+\varepsilon}}}\rceil$. This form, with the rounding,
follows from [ABS21, Theorem 2].
-/
@[category research solved, AMS 5]
theorem erdos_805.variants.alon_bucic_sudakov :
    ∀ ε : ℝ, 0 < ε → ε < 1 / 2 → ∀ᶠ n : ℕ in atTop, ∃ G : SimpleGraph (Fin n),
      IsLocallyRamsey G
        ⌈(2 : ℝ) ^ ((2 : ℝ) ^ (Real.logb 2 (Real.logb 2 n) ^ (1 / 2 + ε)))⌉₊
        ⌈Real.logb 2 n⌉₊ := by
  sorry

end Erdos805

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos805.erdos_805.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-805
nosorry submit erdos-805 nosorry/erdos-805/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.