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 40 · variants.implies_erdos_28

Source:Erdős Problems · erdosproblems.com/40
Textbook result A standard result, good for practice. First verified proof: +3 points.
Statement:reviewed
Statement:

Establishing the property in Erdős Problem 40 for any one function g(N)→∞g(N) → \infty implies the Erdős-Turán conjecture, see Erdős Problem 28.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.02006 [math.NT] · NS.02006v1 for this version
Declaration:Erdos40.erdos_40.variants.implies_erdos_28
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 3; accepted critique: up to 100
Statement hash:5629e447989ea59e95f42c31d3b95785be4ec2c4407c9a31eacaeef610251ce8
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/40.lean

Formal statement

theorem erdos_40.variants.implies_erdos_28 (g : ℕ → ℝ) (hg : Tendsto g atTop atTop)
    (h_erdos_40 : Erdos40For g) : type_of% Erdos28.erdos_28
Show the full Challenge.lean (124 lines) — definitions included
module

public import FormalConjecturesUtil
public import FormalConjectures.ErdosProblems.«28»

/-!
# Erdős Problem 40

*Reference:* [erdosproblems.com/40](https://www.erdosproblems.com/40)
-/

@[expose] public section

open AdditiveCombinatorics Filter Real Set
open scoped Pointwise

namespace Erdos40

/--
The predicate for a function $g\colon\mathbb{N} → \mathbb{R})$ that
$$\lvert A\cap \{1,\ldots,N\}\rvert \gg \frac{N^{1/2}}{g(N)}$$
implies $\limsup 1_A\ast 1_A(n)=\infty$.
-/
def Erdos40For (g : ℕ → ℝ) : Prop :=
  ∀ A : Set ℕ,
    (fun N : ℕ ↦ √N / g N) =O[atTop] (fun N ↦ ((A ∩ .Icc 1 N).ncard : ℝ)) →
    limsup (fun N ↦ (sumRep A N : ℕ∞)) atTop = ⊤

def erdos_40.answer : Set (ℕ → ℝ) := sorry

/--
For what functions $g(N) → \infty$ is it true that
$$\lvert A\cap \{1,\ldots,N\}\rvert \gg \frac{N^{1/2}}{g(N)}$$
implies $\limsup 1_A\ast 1_A(n)=\infty$?
-/
@[category research open, question value, AMS 11]
theorem erdos_40 :
    {g : ℕ → ℝ | Tendsto g atTop atTop ∧ Erdos40For g} = erdos_40.answer := by
  sorry

/--
Is there any function $g(N) → \infty$ such that
$$\lvert A\cap \{1,\ldots,N\}\rvert \gg \frac{N^{1/2}}{g(N)}$$
implies $\limsup 1_A\ast 1_A(n)=\infty$?

This is a weaker form of Erdős Problem 40, which asks for all such $g$. Establishing
the implication for even one $g(N) → \infty$ already answers Erdős Problem 28
positively, because a basis of order $2$ satisfies
$\lvert A\cap \{1,\ldots,N\}\rvert \gg N^{1/2}$.
-/
@[category research open, question, AMS 11]
theorem erdos_40.variants.weaker :
    ∃ g : ℕ → ℝ, Tendsto g atTop atTop ∧ Erdos40For g := by
  sorry

/--
Establishing the property in Erdős Problem 40 for any one function $g(N) → \infty$
implies the Erdős-Turán conjecture, see Erdős Problem 28.
-/
@[category textbook, AMS 11]
theorem erdos_40.variants.implies_erdos_28 (g : ℕ → ℝ) (hg : Tendsto g atTop atTop)
    (h_erdos_40 : Erdos40For g) : type_of% Erdos28.erdos_28 := by
  classical
  intro A hA
  apply h_erdos_40 A
  obtain ⟨n, hn⟩ := hA.exists_le
  apply Asymptotics.IsBigO.of_bound 4
  filter_upwards [eventually_ge_atTop (2 * n + 2), hg.eventually_ge_atTop 1] with N hN hgN
  let k := (A ∩ Icc 1 N).ncard
  let B := insert 0 (A ∩ Icc 1 N)
  have hB : B.Finite := ((finite_Icc 1 N).inter_of_right A).insert 0
  have hmem : ∀ a ∈ A, a ≤ N → a ∈ B := by
    intro a ha haN
    by_cases ha0 : a = 0
    · exact Or.inl ha0
    · exact Or.inr ⟨ha, by omega, haN⟩
  have hsub : Icc (n + 1) N ⊆ B + B := by
    intro m ⟨hmlo, hmhi⟩
    have hmA : m ∈ A + A := by
      by_contra hmA
      have := hn m hmA
      omega
    obtain ⟨a, ha, b, hb, hab⟩ := hmA
    simp only at hab
    exact ⟨a, hmem a ha (by omega), b, hmem b hb (by omega), hab⟩
  have hcard : N - n ≤ (k + 1) ^ 2 := calc
    N - n = (Icc (n + 1) N).ncard := by simp
    _ ≤ (B + B).ncard := ncard_le_ncard hsub (hB.add hB)
    _ ≤ B.ncard ^ 2 := by
      simpa only [Nat.card_coe_set_eq, pow_two] using (Set.natCard_add_le (s := B) (t := B))
    _ ≤ (k + 1) ^ 2 := by
      gcongr
      exact ncard_insert_le 0 (A ∩ Icc 1 N)
  have hcard' : N ≤ n + (k + 1) ^ 2 := by omega
  have hk : 1 ≤ k := by nlinarith
  have hcardR : (N : ℝ) ≤ n + ((k : ℝ) + 1) ^ 2 := by exact_mod_cast hcard'
  have hNR : 2 * (n : ℝ) + 2 ≤ (N : ℝ) := by exact_mod_cast hN
  have hkR : 1 ≤ (k : ℝ) := by exact_mod_cast hk
  have hsqrt : √(N : ℝ) ≤ 4 * (k : ℝ) := by
    apply sqrt_le_iff.2
    constructor
    · positivity
    · nlinarith [sq_nonneg ((k : ℝ) - 1)]
  rw [Real.norm_of_nonneg (div_nonneg (sqrt_nonneg _) (le_trans zero_le_one hgN)),
    Real.norm_natCast]
  exact (div_le_self (sqrt_nonneg _) hgN).trans hsqrt

end Erdos40

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

nosorry desk erdos-40--erdos-40-variants-implies-erdos-28      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-40--erdos-40-variants-implies-erdos-28
nosorry submit erdos-40--erdos-40-variants-implies-erdos-28 nosorry/erdos-40--erdos-40-variants-implies-erdos-28/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.