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 125 · variants.zero_density

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

Case 1: Does A+BA + B have zero upper and lower density?

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.01057 [math.NT] · NS.01057v1 for this version
Declaration:Erdos125.erdos_125.variants.zero_density
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100; accepted critique: up to 100
Statement hash:f206abf27f07a99d596111acfc2e635c4692aff1d650ca194f29704dab7dfbb8
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/125.lean

Formal statement

theorem erdos_125.variants.zero_density :
    (A + B).upperDensity = 0 ∧ (A + B).lowerDensity = 0
Show the full Challenge.lean (126 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 125

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

There are four possibilities for the density of $A+B$:
1. $A+B$ has zero upper and lower density (and hence also zero density).
2. $A+B$ has zero lower density, but positive upper density (and hence no density).
3. $A+B$ has positive upper and lower density that are equal (and hence positive density).
4. $A+B$ has positive upper and lower density that are unequal (and hence no density).
-/

@[expose] public section

open Nat Pointwise

namespace Erdos125

set_option quotPrecheck false

/--
Let $A$ be the set of integers which have only the digits $0, 1$ when written base 3,
-/
local notation "A" => { x : ℕ | (digits 3 x).toFinset ⊆ {0, 1} }
/--
and $B$ be the set of integers which have only the digits $0, 1$ when written base 4.
-/
local notation "B" => { x : ℕ | (digits 4 x).toFinset ⊆ {0, 1} }


/-
There are four possibilities for the density of $A+B$:
1. $A+B$ has zero upper and lower density (and hence also zero density).
2. $A+B$ has zero lower density, but positive upper density (and hence no density).
3. $A+B$ has positive upper and lower density that are equal (and hence positive density).
4. $A+B$ has positive upper and lower density that are unequal (and hence no density).
-/

set_option linter.style.formal_proof_palomar false in
/--
Case 3:
Does $A + B$ have positive upper and lower density that are equal?
This is the literal interpretation of "positive density" which was falsified.
-/

@[category research solved, question, AMS 11,
formal_proof using formal_conjectures at "https://github.com/google-deepmind/formal-conjectures/blob/300bf771bdbef43d7b9aa2521e633a50fd54dd28/FormalConjectures/ErdosProblems/125.lean"]
theorem erdos_125 :
    ¬ (A + B).HasPosDensity := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Literature question:
Does $A + B$ have positive lower density?

This has been falsified.
-/
@[category research solved, question, AMS 11,
formal_proof using formal_conjectures at "https://github.com/mo271/formal-conjectures/blob/c27415379b5dbe34105d1fdd707994540c4c6fc7/FormalConjectures/ErdosProblems/125.lean#L468"]
theorem erdos_125.variants.positive_lower_density :
    ¬ 0 < (A + B).lowerDensity := by
  sorry


/--
Literature question:
Does $A + B$ have positive upper density?
-/
@[category research open, question, AMS 11]
theorem erdos_125.variants.positive_upper_density :
    0 < (A + B).upperDensity := by
  sorry

/--
Case 1:
Does $A + B$ have zero upper and lower density?
-/
@[category research open, question, AMS 11]
theorem erdos_125.variants.zero_density :
    (A + B).upperDensity = 0 ∧ (A + B).lowerDensity = 0 := by
  sorry

/--
Case 2:
Does $A + B$ have zero lower density, but positive upper density?
-/
@[category research open, question, AMS 11]
theorem erdos_125.variants.zero_lower_positive_upper_density :
    (A + B).lowerDensity = 0 ∧ 0 < (A + B).upperDensity := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Case 4:
Does $A + B$ have positive upper and lower density that are unequal?

This follows from the disproof `erdos_125.variants.positive_lower_density` above.
-/
@[category research solved, question, AMS 11, formal_proof using formal_conjectures at
"https://github.com/mo271/formal-conjectures/blob/0bc740d2351c53713e66d9340e83f7d2c1ddecab/FormalConjectures/ErdosProblems/125.lean#L860"]
theorem erdos_125.variants.positive_unequal_density :
    ¬ (0 < (A + B).lowerDensity ∧ (A + B).lowerDensity < (A + B).upperDensity) := by
  sorry

end Erdos125

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

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