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 658

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 δ>0\delta>0 and NN be sufficiently large depending on δ\delta. Is it true that if A⊆{1,…,N}2A\subseteq \{1,\ldots,N\}^2 has ∣A∣≥δN2\lvert A\rvert \geq \delta N^2 then AA must contain the vertices of a square?

A problem of Graham, if the square is restricted to be axis-aligned. (It is unclear whether in [Er97e] had this restriction in mind.)

This qualitative statement follows from the density Hales-Jewett theorem proved by Furstenberg and Katznelson [FuKa91]. A quantitative proof (yet with very poor bounds) was given by Solymosi [So04].

The square is taken to be axis-aligned (Graham's version), which implies the version allowing arbitrary squares.

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

Formal statement

theorem erdos_658 : ∀ δ : ℝ, 0 < δ → ∀ᶠ N : ℕ in atTop,
    ∀ A : Finset (ℕ × ℕ), A ⊆ Finset.Icc 1 N ×ˢ Finset.Icc 1 N → δ * N ^ 2 ≤ A.card →
      ∃ a b d : ℕ, 0 < d ∧ (a, b) ∈ A ∧ (a + d, b) ∈ A ∧ (a, b + d) ∈ A ∧ (a + d, b + d) ∈ A
Show the full Challenge.lean (62 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 658

*References:*
- [erdosproblems.com/658](https://www.erdosproblems.com/658)
- [Er97e] Erdős, Paul, *Some of my favourite unsolved problems*. Math. Japon. (1997), 527-537.
- [FuKa91] Furstenberg, H. and Katznelson, Y., *A density version of the Hales-Jewett Theorem*.
  Journal d'Analyse Mathématique (1991), 64-119.
- [So04] Solymosi, J., *A Note on a Question of Erdős and Graham*. Combinatorics, Probability and
  Computing (2004), 263–267.
-/

@[expose] public section

open Filter

namespace Erdos658

set_option linter.style.formal_proof_palomar false in
/--
Let $\delta>0$ and $N$ be sufficiently large depending on $\delta$. Is it true that if
$A\subseteq \{1,\ldots,N\}^2$ has $\lvert A\rvert \geq \delta N^2$ then $A$ must contain the
vertices of a square?

A problem of Graham, if the square is restricted to be axis-aligned. (It is unclear whether in
[Er97e] had this restriction in mind.)

This qualitative statement follows from the density Hales-Jewett theorem proved by Furstenberg
and Katznelson [FuKa91]. A quantitative proof (yet with very poor bounds) was given by Solymosi
[So04].

The square is taken to be axis-aligned (Graham's version), which implies the version allowing
arbitrary squares.
-/
@[category research solved, question, AMS 5 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos658.lean#L1516"]
theorem erdos_658 : ∀ δ : ℝ, 0 < δ → ∀ᶠ N : ℕ in atTop,
    ∀ A : Finset (ℕ × ℕ), A ⊆ Finset.Icc 1 N ×ˢ Finset.Icc 1 N → δ * N ^ 2 ≤ A.card →
      ∃ a b d : ℕ, 0 < d ∧ (a, b) ∈ A ∧ (a + d, b) ∈ A ∧ (a, b + d) ∈ A ∧ (a + d, b + d) ∈ A := by
  sorry

end Erdos658

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

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

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.