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 281

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

Let n1<n2<⋯n_1<n_2<\cdots be an infinite sequence such that, for any choice of congruence classes ai(modni)a_i\pmod{n_i}, the set of integers not satisfying any of the congruences ai(modni)a_i\pmod{n_i} has density 00. Is it true that for every ϵ>0\epsilon>0 there exists some kk such that, for every choice of congruence classes aia_i, the density of integers not satisfying any of the congruences ai(modni)a_i\pmod{n_i} for 1≤i≤k1\leq i\leq k is less than ϵ\epsilon?

The answer is yes; the linked Lean proof formalizes Somani's argument.

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

Formal statement

theorem erdos_281 :
    ∀ (n : ℕ → ℕ), StrictMono n → (∀ i, 0 < n i) →
      (∀ a : ResidueChoice n, Set.HasIntDensity (avoidAll n a) 0) →
        ∀ ε : ℝ, 0 < ε →
          ∃ k : ℕ, ∀ a : ResidueChoice n,
            ∃ d : ℝ, Set.HasIntDensity (avoidPrefix n a k) d ∧ d < ε
Show the full Challenge.lean (69 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 281

*References:*
- [erdosproblems.com/281](https://www.erdosproblems.com/281)
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory*. Monographies de L'Enseignement Mathematique (1980).
- [DaEr36] Davenport, H. and Erdős, P., *On sequences of positive integers*. Acta
  Arithmetica (1936), 147-151.
- [HaRo66] Halberstam, H. and Roth, K. F., *Sequences. Vol. I*. (1966), xx+291.
-/

@[expose] public section

open Filter Topology

namespace Erdos281

/-- Choices of congruence classes $a_i \pmod{n_i}$. -/
def ResidueChoice (n : ℕ → ℕ) := ∀ i : ℕ, ZMod (n i)

/-- The integers avoiding all congruences $a_i \pmod{n_i}$. -/
def avoidAll (n : ℕ → ℕ) (a : ResidueChoice n) : Set ℤ :=
  {m | ∀ i : ℕ, (m : ZMod (n i)) ≠ a i}

/-- The integers avoiding the first $k$ congruences $a_i \pmod{n_i}$. -/
def avoidPrefix (n : ℕ → ℕ) (a : ResidueChoice n) (k : ℕ) : Set ℤ :=
  {m | ∀ i : ℕ, i < k → (m : ZMod (n i)) ≠ a i}

set_option linter.style.formal_proof_palomar false in
/--
Let $n_1<n_2<\cdots$ be an infinite sequence such that, for any choice of congruence classes
$a_i\pmod{n_i}$, the set of integers not satisfying any of the congruences $a_i\pmod{n_i}$ has
density $0$. Is it true that for every $\epsilon>0$ there exists some $k$ such that, for every
choice of congruence classes $a_i$, the density of integers not satisfying any of the congruences
$a_i\pmod{n_i}$ for $1\leq i\leq k$ is less than $\epsilon$?

The answer is yes; the linked Lean proof formalizes Somani's argument.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos281.lean"]
theorem erdos_281 :
    ∀ (n : ℕ → ℕ), StrictMono n → (∀ i, 0 < n i) →
      (∀ a : ResidueChoice n, Set.HasIntDensity (avoidAll n a) 0) →
        ∀ ε : ℝ, 0 < ε →
          ∃ k : ℕ, ∀ a : ResidueChoice n,
            ∃ d : ℝ, Set.HasIntDensity (avoidPrefix n a k) d ∧ d < ε := by
  sorry

end Erdos281

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

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