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 330

Source:Erdős Problems · erdosproblems.com/330
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Does there exist a minimal basis A⊂NA \subset \mathbb{N} with positive density such that, for any n∈An \in A, the (upper) density of integers which cannot be represented without using nn is positive?

Neither set is asked to have a density, only to have positive upper density, so Set.upperDensity is used for both rather than Set.HasPosDensity. As with many of Erdős' questions "positive density" here most likely means positive upper density, and in [Er80] he considers either the lower or the upper density for the integers not representable without a fixed n. Requiring the density to exist would ask a strictly harder question than the one posed. See #3979.

Such a set exists, so the answer is yes. The linked proof gives one of order 2.

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

Formal statement

theorem erdos_330_statement :
    ∃ (A : Set ℕ), ∃ h, MinAsymptoticAddBasisOfOrder A h ∧
    0 < A.upperDensity ∧ ∀ n ∈ A, 0 < (UnrepWithout A n h).upperDensity
Show the full Challenge.lean (80 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 330

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

@[expose] public section

namespace Erdos330

open Set
open scoped BigOperators Pointwise

/-- `Rep A m h` means `m` is a sum of exactly `h` elements of `A`, which is `m ∈ h • A`.

Exactly `h` rather than at most `h`, for two reasons. It is the notion Erdős states the problem
with, via `f_2(m)`, the number of solutions of `m = a_i + a_j` [Er80]. And it is the notion
`IsAsymptoticAddBasisOfOrder` uses below, so the statement is not switching between two meanings
of "representable" partway through.

Allowing fewer than `h` summands also breaks the statement outright: taking one summand makes
every element of `A` count as represented, so `UnrepWithout A n h` would contain no element of
`A` besides possibly `n`. Those are exactly the integers the problem is about. If `a ∈ A` with
`a ≠ n` is only expressible as `a = n + b`, it cannot be represented without `n` and belongs in
the set, but the one-element sum `a` itself would have excluded it. -/
def Rep (A : Set ℕ) (m h : ℕ) : Prop := m ∈ h • A

/-- Integers **not** representable as a sum of exactly `h` elements of `A`
**while avoiding** `n`. -/
def UnrepWithout (A : Set ℕ) (n h : ℕ) : Set ℕ :=
  {m | ¬ Rep (A \ {n}) m h}

/-- An asymptotic additive basis of order `h` is minimal when one cannot obtain an asymptotic
additive basis by removing any element from it. -/
def MinAsymptoticAddBasisOfOrder (A : Set ℕ) (h : ℕ) : Prop :=
  IsAsymptoticAddBasisOfOrder A h ∧ ∀ n ∈ A, ¬ IsAsymptoticAddBasisOfOrder (A \ {n}) h

set_option linter.style.formal_proof_palomar false in
/--
Does there exist a minimal basis $A \subset \mathbb{N}$ with positive density
such that, for any $n \in A$, the (upper) density of integers which
cannot be represented without using $n$ is positive?

Neither set is asked to have a density, only to have positive upper density, so
`Set.upperDensity` is used for both rather than `Set.HasPosDensity`. As with many of Erdős'
questions "positive density" here most likely means positive upper density, and in [Er80] he
considers either the lower or the upper density for the integers not representable without a
fixed `n`. Requiring the density to exist would ask a strictly harder question than the one
posed. See #3979.

Such a set exists, so the answer is yes. The linked proof gives one of order `2`.
-/
@[category research solved, question, AMS 5 11, formal_proof using lean4 at
  "https://github.com/Jayyhk/erdos-lean/blob/a5ffc87b3d684fc00ea906b9e746c283740da900/problems/330/Erdos330.lean"]
theorem erdos_330_statement :
    ∃ (A : Set ℕ), ∃ h, MinAsymptoticAddBasisOfOrder A h ∧
    0 < A.upperDensity ∧ ∀ n ∈ A, 0 < (UnrepWithout A n h).upperDensity := by
  sorry

end Erdos330

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

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