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 486: Logarithmic density for sets avoiding modular subsets

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 A⊆NA \subseteq \mathbb{N}, and for each n∈An \in A choose some Xn⊆Z/nZX_n \subseteq \mathbb{Z}/n\mathbb{Z}. Let B={m∈N:m∉Xn(modn) for all n∈A with m>n}B = \{m \in \mathbb{N} : m \not\in X_n \pmod{n} \text{ for all } n \in A \text{ with } m > n\}. Must BB have a logarithmic density?

The set AA is encoded by taking Xn=∅X_n = \emptyset for n∉An \notin A. Only positive moduli nn are considered, since Z/0Z=Z\mathbb{Z}/0\mathbb{Z} = \mathbb{Z} would allow BB to be an arbitrary set.

The answer is no: Wang [Wa26] (with GPT-5.6) constructed a congruence system whose survivor set BB has lower logarithmic density at most 177/200177/200 and upper logarithmic density at least 49/5049/50. The first linked formal proof establishes this for the real-cutoff normalisation 1log⁡x∑m<x,m∈B1m\frac{1}{\log x}\sum_{m < x, m \in B} \frac{1}{m} with the moduli restricted to AA; the second derives the statement below (Set.HasLogDensity, all moduli) from it.

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

Formal statement

theorem erdos_486 :
    ¬ ∀ X : (n : ℕ) → Set (ZMod n),
      ∃ d, {m : ℕ | ∀ n, 0 < n → n < m → (m : ZMod n) ∉ X n}.HasLogDensity d
Show the full Challenge.lean (61 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 486: Logarithmic density for sets avoiding modular subsets

*References:*
* [erdosproblems.com/486](https://www.erdosproblems.com/486)
* [Wa26] Wang, S., *A proposed solution to Erdős Problem 486* (2026),
  https://github.com/ShouqiaoW/erdos/blob/main/486/paper.pdf
-/

@[expose] public section

namespace Erdos486

set_option linter.style.formal_proof_palomar false in
/--
Let $A \subseteq \mathbb{N}$, and for each $n \in A$ choose some
$X_n \subseteq \mathbb{Z}/n\mathbb{Z}$. Let
$B = \{m \in \mathbb{N} : m \not\in X_n \pmod{n} \text{ for all } n \in A \text{ with } m > n\}$.
Must $B$ have a logarithmic density?

The set $A$ is encoded by taking $X_n = \emptyset$ for $n \notin A$. Only positive moduli
$n$ are considered, since $\mathbb{Z}/0\mathbb{Z} = \mathbb{Z}$ would allow $B$ to be an
arbitrary set.

The answer is no: Wang [Wa26] (with GPT-5.6) constructed a congruence system whose survivor set
$B$ has lower logarithmic density at most $177/200$ and upper logarithmic density at least
$49/50$. The first linked formal proof establishes this for the real-cutoff normalisation
$\frac{1}{\log x}\sum_{m < x, m \in B} \frac{1}{m}$ with the moduli restricted to $A$; the
second derives the statement below (`Set.HasLogDensity`, all moduli) from it.
-/
@[category research solved, question, AMS 11,
  formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos486.lean#L20",
  formal_proof using formal_conjectures at
  "https://github.com/Konamiu/formal-conjectures/blob/c69df0584ca9767090f5a68c8f09f1ff3c93ab80/FormalConjectures/ErdosProblems/486.lean#L39"]
theorem erdos_486 :
    ¬ ∀ X : (n : ℕ) → Set (ZMod n),
      ∃ d, {m : ℕ | ∀ n, 0 < n → n < m → (m : ZMod n) ∉ X n}.HasLogDensity d := by
  sorry

end Erdos486

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

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