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

Title:Erdős Problem 25: Logarithmic density of size-dependent congruences

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

Let n1<n2<…n_1 < n_2 < \dots be an arbitrary sequence of integers, each with an associated residue class ai(modni)a_i \pmod{n_i}. Let AA be the set of integers nn such that for every ii either n<nin < n_i or n≢ai(modni)n \not\equiv a_i \pmod{n_i}. Must the logarithmic density of AA exist?

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

Formal statement

theorem erdos_25 :
    ∀ (seq_n : ℕ → ℕ) (seq_a : ℕ → ℤ), (∀ i, 0 < seq_n i) → StrictMono seq_n →
      ∃ d, Set.HasLogDensity
        { x : ℕ | ∀ i, (x : ℤ) < seq_n i ∨ ¬((x : ℤ) ≡ seq_a i [ZMOD seq_n i]) } d
Show the full Challenge.lean (46 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 25: Logarithmic density of size-dependent congruences

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

@[expose] public section

open Filter Finset Real Nat Set
open scoped Topology

namespace Erdos25

/--
Let $n_1 < n_2 < \dots$ be an arbitrary sequence of integers, each with an associated residue class
$a_i \pmod{n_i}$. Let $A$ be the set of integers $n$ such that for every $i$ either $n < n_i$ or
$n \not\equiv a_i \pmod{n_i}$. Must the logarithmic density of $A$ exist?
-/
@[category research open, question, AMS 11]
theorem erdos_25 :
    ∀ (seq_n : ℕ → ℕ) (seq_a : ℕ → ℤ), (∀ i, 0 < seq_n i) → StrictMono seq_n →
      ∃ d, Set.HasLogDensity
        { x : ℕ | ∀ i, (x : ℤ) < seq_n i ∨ ¬((x : ℤ) ≡ seq_a i [ZMOD seq_n i]) } d := by
  sorry

end Erdos25

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

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