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

Title:Erdős Problem 33

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

Let A ⊆ ℕ be a set such that every integer can be written as n^2 + a for some a in A and n ≥ 0. What is the smallest possible value of lim sup n → ∞ |A ∩ {1, …, N}| / N^(1/2)?

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

Formal statement

theorem erdos_33 : ⨅ A : {A : Set ℕ | AdditiveBasisCondition A}, Filter.atTop.limsup (fun N =>
    (A.1 ∩ Icc 1 N).ncard / (√N : EReal)) = erdos_33.answer
Show the full Challenge.lean (78 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 33

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

@[expose] public section
variable {α : Type} [AddCommMonoid α]
open Set
open scoped goldenRatio

namespace Erdos33

/-- Let `A ⊆ ℕ` be a set such that every integer can be written as `n^2 + a` for some `a` in `A`
and `n ≥ 0`. -/
-- Formalisation note: Changed 'every large integer' to 'every integer' as for the statement these
-- conditions are equivalent. Also, this was the formulation in the original paper `by Erdos.
def AdditiveBasisCondition (A : Set ℕ) : Prop :=
  ∀ (k : ℕ), ∃ (n : ℕ) (a : ℕ), a ∈ A ∧ k = a + n^2

def erdos_33.answer : EReal := sorry

/-- Let `A ⊆ ℕ` be a set such that every integer can be written as `n^2 + a`
for some `a` in `A` and `n ≥ 0`. What is the smallest possible value of
`lim sup n → ∞ |A ∩ {1, …, N}| / N^(1/2)`?
-/
@[category research open, question value, AMS 11]
theorem erdos_33 : ⨅ A : {A : Set ℕ | AdditiveBasisCondition A}, Filter.atTop.limsup (fun N =>
    (A.1 ∩ Icc 1 N).ncard / (√N : EReal)) = erdos_33.answer := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Erdos observed that this value is finite and > 1. This records the lower bound `> 1`,
i.e. that `1` is a strict lower bound for every admissible `A`; the finiteness is
`erdos_33.variants.vanDoorn`.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/linrock/math-proofs/blob/8c9a8ab727c1f06935b48a5ab4db145572cab9e9/erdos-33/Solution.lean#L70"]
theorem erdos_33.variants.one_mem_lowerBounds :
    1 < ⨅ A : {A : Set ℕ | AdditiveBasisCondition A}, Filter.atTop.limsup (fun N =>
      (A.1 ∩ Icc 1 N).ncard / (√N : EReal)) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The smallest possible value of `lim sup n → ∞ |A ∩ {1, …, N}| / N^(1/2)`
is at most `2φ^(5/2) ≈ 6.66`, with `φ` equal to the golden ratio. Proven by
Wouter van Doorn.
-/
@[category research solved, AMS 11, formal_proof using lean4 at
  "https://github.com/linrock/math-proofs/blob/8c9a8ab727c1f06935b48a5ab4db145572cab9e9/erdos-33/Solution.lean#L75"]
theorem erdos_33.variants.vanDoorn :
    ⨅ A : {A : Set ℕ | AdditiveBasisCondition A}, Filter.atTop.limsup (fun N =>
    (A.1 ∩ Icc 1 N).ncard / (√N : EReal)) ≤ ↑(2 * (φ ^ ((5 : ℝ) / 2))) := by
  sorry

end Erdos33

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

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