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 883

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 A⊆{1,…,n}A\subseteq \{1,\ldots,n\} let G(A)G(A) be the graph with vertex set AA, where two integers are joined by an edge if they are coprime.

Is it true that if ∣A∣>⌊n/2⌋+⌊n/3⌋−⌊n/6⌋|A| > \lfloor n/2 \rfloor + \lfloor n/3 \rfloor - \lfloor n/6 \rfloor then G(A)G(A) contains all odd cycles of length ≤n/3+1\leq n/3 + 1?

A problem of Erdős and Sárközy [ErSa97].

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

Formal statement

theorem erdos_883.parts.i :
    ∀ (n : ℕ) (A : Finset ℕ),
      A ⊆ Finset.Icc 1 n →
      n / 2 + n / 3 - n / 6 < A.card →
      ∀ l : ℕ, Odd l → 3 ≤ l → l ≤ n / 3 + 1 →
        l ∈ (coprimeGraph.induce (A : Set ℕ)).oddCycleLengths
Show the full Challenge.lean (81 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 883

*References:*
- [erdosproblems.com/883](https://www.erdosproblems.com/883)
- [ErSa97] Erdős, P. and Sárközy, G. N., On cycles in the coprime graph of integers.
  Electron. J. Combin. (1997), Research Paper 8.
- [Sa99] Sárközy, G. N., Complete tripartite subgraphs in the coprime graph of integers.
  Discrete Math. (1999), 227-238.
-/

@[expose] public section

open Filter

namespace Erdos883

/--
The coprime graph on $\mathbb{N}$: two integers are joined by an edge if they are coprime.
-/
def coprimeGraph : SimpleGraph ℕ :=
  SimpleGraph.fromRel Nat.Coprime

/--
For $A\subseteq \{1,\ldots,n\}$ let $G(A)$ be the graph with vertex set $A$, where two
integers are joined by an edge if they are coprime.

Is it true that if
$$|A| > \lfloor n/2 \rfloor + \lfloor n/3 \rfloor - \lfloor n/6 \rfloor$$
then $G(A)$ contains all odd cycles of length $\leq n/3 + 1$?

A problem of Erdős and Sárközy [ErSa97].
-/
@[category research open, question, AMS 5 11]
theorem erdos_883.parts.i :
    ∀ (n : ℕ) (A : Finset ℕ),
      A ⊆ Finset.Icc 1 n →
      n / 2 + n / 3 - n / 6 < A.card →
      ∀ l : ℕ, Odd l → 3 ≤ l → l ≤ n / 3 + 1 →
        l ∈ (coprimeGraph.induce (A : Set ℕ)).oddCycleLengths := by
  sorry

open scoped Classical in
/--
Is it true that, for every $\ell\geq 1$, if $n$ is sufficiently large and
$$|A| > \lfloor n/2\rfloor + \lfloor n/3\rfloor - \lfloor n/6\rfloor$$
then $G(A)$ must contain a complete $(1,\ell,\ell)$ tripartite graph on $2\ell+1$ vertices?

The second question was solved by Sárközy [Sa99], who proved this with
$\ell \gg \log n/\log\log n$.
-/
@[category research solved, question, AMS 5 11]
theorem erdos_883.parts.ii :
    ∀ l : ℕ, 1 ≤ l → ∀ᶠ n : ℕ in atTop, ∀ A : Finset ℕ,
      A ⊆ Finset.Icc 1 n →
      n / 2 + n / 3 - n / 6 < A.card →
      (SimpleGraph.completeMultipartiteGraph (fun i : Fin 3 ↦ Fin (![1, l, l] i))).IsContained
        (coprimeGraph.induce (A : Set ℕ)) := by
  sorry

end Erdos883

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