Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 72

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:

Is there a set A⊂NA\subset \mathbb{N} of density 00 and a constant c>0c>0 such that every graph on sufficiently many vertices with average degree ≥c\geq c contains a cycle whose length is in AA?

Bollobás [Bo77] proved that such a cc does exist if AA is an infinite arithmetic progression containing even numbers (see 71).

Erdős was 'almost certain' that if AA is the set of powers of 22 then no such cc exists (although he conjectured that nn vertices and average degree ≫(log⁡n)C\gg (\log n)^{C} suffices for some C=O(1)C=O(1)). If AA is the set of squares (or the set of p±1p\pm 1 for pp prime) then he had no guess.

Solved by Verstraëte [Ve05], who gave a non-constructive proof that such a set AA exists.

Liu and Montgomery [LiMo20] proved that in fact this is true when AA is the set of powers of 22 (more generally any set of even numbers which doesn't grow too quickly) - in particular this contradicts the previous belief of Erdős.

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

Formal statement

theorem erdos_72 : ∃ A : Set ℕ, A.HasDensity 0 ∧ ∃ c : ℚ, 0 < c ∧
    ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n), c ≤ G.averageDegree →
      ∃ (v : Fin n) (w : G.Walk v v), w.IsCycle ∧ w.length ∈ A
Show the full Challenge.lean (88 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 72

*References:*
- [erdosproblems.com/72](https://www.erdosproblems.com/72)
- [Er94b] Erdős, Paul, *Some problems in number theory, combinatorics and combinatorial geometry*.
  Math. Pannon. (1994), 261-269.
- [Er95] Erdős, Paul, *Some of my favourite problems in number theory, combinatorics, and
  geometry*. Resenhas (1995), 165-186.
- [Er97b] Erdős, Paul, *Some old and new problems in various branches of combinatorics*. Discrete
  Math. (1997), 227-231.
- [Er97c] Erdős, Paul, *Some of my favorite problems and results*. The mathematics of Paul
  Erdős, I (1997), 47-67.
- [Bo77] Bollobás, Béla, *Cycles modulo $k$*. Bull. London Math. Soc. (1977), 97-98.
- [Ve05] Verstraete, Jacques, *Unavoidable cycle lengths in graphs*. J. Graph Theory (2005),
  151-167.
- [LiMo20] Liu, Hong and Montgomery, Richard, *A solution to Erdős and Hajnal's odd cycle
  problem*. arXiv:2010.15802 (2020).
-/

@[expose] public section

open Filter SimpleGraph

namespace Erdos72

open scoped Classical in
set_option linter.style.formal_proof_palomar false in
/--
Is there a set $A\subset \mathbb{N}$ of density $0$ and a constant $c>0$ such that every graph on
sufficiently many vertices with average degree $\geq c$ contains a cycle whose length is in $A$?

Bollobás [Bo77] proved that such a $c$ does exist if $A$ is an infinite arithmetic progression
containing even numbers (see [71](https://www.erdosproblems.com/71)).

Erdős was 'almost certain' that if $A$ is the set of powers of $2$ then no such $c$ exists
(although he conjectured that $n$ vertices and average degree $\gg (\log n)^{C}$ suffices for
some $C=O(1)$). If $A$ is the set of squares (or the set of $p\pm 1$ for $p$ prime) then he had
no guess.

Solved by Verstraëte [Ve05], who gave a non-constructive proof that such a set $A$ exists.

Liu and Montgomery [LiMo20] proved that in fact this is true when $A$ is the set of powers of $2$
(more generally any set of even numbers which doesn't grow too quickly) - in particular this
contradicts the previous belief of Erdős.
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos72.lean#L184"]
theorem erdos_72 : ∃ A : Set ℕ, A.HasDensity 0 ∧ ∃ c : ℚ, 0 < c ∧
    ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n), c ≤ G.averageDegree →
      ∃ (v : Fin n) (w : G.Walk v v), w.IsCycle ∧ w.length ∈ A := by
  sorry

open scoped Classical in
set_option linter.style.formal_proof_palomar false in
/--
Liu and Montgomery [LiMo20] proved that there is a constant $c > 0$ such that every graph on
sufficiently many vertices with average degree $\geq c$ contains a cycle whose length is a power
of $2$.
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos72.lean#L157"]
theorem erdos_72.variants.powers_of_two : ∃ c : ℚ, 0 < c ∧
    ∀ᶠ n : ℕ in atTop, ∀ G : SimpleGraph (Fin n), c ≤ G.averageDegree →
      ∃ (v : Fin n) (w : G.Walk v v), w.IsCycle ∧ ∃ k : ℕ, w.length = 2 ^ k := by
  sorry

end Erdos72

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

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