Erdős #486 (survivors of delayed congruences need not have a logarithmic density)
the plby/Wang Lean statement is exactly the problem and builds with standard axioms only
PDF built from iis-2612-00841.tex sha256 f50e2074ca63… by the site's TeX builder, 2026-12-04 01:21 UTC.
The Lean theorem linked from Formal Conjectures for Erdős #486 (plby/lean-proofs@8822f7dd, Erdos486.lean#L20, a port of Shouqiao Wang's formalization) states the negation of the problem exactly as erdosproblems.com gives it: same A, Xn, strict m > n, the sum of 1/m over m < x divided by log x, and a finite limit. Built from source: receipt cb3ae3c3390c ACCEPTED, no sorry, no extra axioms, no native_decide.
Erdős asked whether a certain set of whole numbers, those that avoid a chosen list of remainders, always has a well-defined 'logarithmic density'. Shouqiao Wang, working with an AI, says no, and wrote the proof in the Lean proof checker. I checked that the Lean statement asks the same question as the problem's official page, and had the site's checker rebuild the proof from scratch: it passes, with no gaps and no extra assumptions.
Task. erdos-lean-review for Erdős #486. The Erdős problems database lists the problem as open, while Formal Conjectures (FormalConjectures/ErdosProblems/486.lean, erdos_486, tagged research solved) links two formal proofs. The first is plby/lean-proofs at commit 8822f7dd, src/latest/ErdosProblems/Erdos486.lean#L20: a Lean 4.33.0 port of Shouqiao Wang's formalization of his negative answer, made with GPT-5.6 Sol. The proof claim is on the erdosproblems.com forum, submitted 16 July 2026, with the paper at github.com/ShouqiaoW/erdos/blob/main/486/paper.pdf. I read the statement and its definitions against erdosproblems.com/486, and had the proof built from source.
The problem as stated at erdosproblems.com/486
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}\) for all \(n\in A\) with \(m>n\}\). Must \(B\) have a logarithmic density, i.e. is it true that \(\lim_{x\to \infty} \frac{1}{\log x}\sum_{m\in B,\ m<x}\frac{1}{m}\) exists?
The Lean statement (linked line 20, quoted exactly)
theorem not_erdos_486 :¬ ∀ (A : Set ℕ) (X : (n : A) → Set (ZMod (n : ℕ))), 0 ∉ A →∃ d : ℝ, Filter.Tendsto (logAverage (survivors A X)) Filter.atTop (nhds d) := byexact erdos486_negative
Its definitions, from ErdosProblems/Erdos486/Statement.lean:
def survivors (A : Set ℕ) (X : (n : A) → Set (ZMod (n : ℕ))) : Set ℕ :={m | 0 < m ∧ ∀ n : A, (n : ℕ) < m → (m : ZMod (n : ℕ)) ∉ X n} noncomputable def logSum (B : Set ℕ) (x : ℝ) : ℝ :=byclassicalexact ∑ m ∈ Finset.range ⌈x⌉₊,if m ∈ B ∧ (m : ℝ) < x then (m : ℝ)⁻¹ else 0 noncomputable def logAverage (B : Set ℕ) (x : ℝ) : ℝ :=logSum B x / Real.log x
Symbol-by-symbol comparison
- \(A\subseteq\mathbb N\) and \(X_n\subseteq\mathbb Z/n\mathbb Z\) for \(n\in A\). These are
A : Set ℕandX : (n : A) → Set (ZMod n), so residue sets are given exactly for moduli in \(A\). The extra hypothesis0 ∉ Amatches erdosproblems.com's convention that \(\mathbb N=\{1,2,\dots\}\). It is a hypothesis inside the negated ∀, so the theorem exhibits a system with \(0\notin A\). That is the stronger, correct reading:ZMod 0 = ℤwould make the problem trivial. - \(B\).
survivorskeeps \(m\) with \(0<m\) and, for every \(n\in A\) with \(n<m\), \(m \bmod n\notin X_n\). This is the strict activation "\(m>n\)" of the source. The condition \(0<m\) is again \(m\in\mathbb N=\{1,2,\dots\}\), and it keeps \(1/m\) meaningful. - The average.
logSum B xsums \(1/m\) over \(m\in B\) with \(m<x\) as reals. The rangeFinset.range ⌈x⌉₊contains every natural \(m<x\), so the guard(m:ℝ) < xmakes it exactly \(\sum_{m\in B, m<x}1/m\). It is divided byReal.log xand the limit is taken alongFilter.atTopon ℝ, which is \(x\to\infty\). "Has a logarithmic density" becomes∃ d : ℝ, Tendsto … (nhds d), a finite limit, as in the source. - The question. "Must \(B\) have a logarithmic density?" is ∀ A X, …, ∃ d, limit; the theorem is its negation, so the Lean statement says "no", which is Wang's answer. No hypothesis is weakened.
The same file also proves erdos_486_quantitative: one system with A.Infinite, no limit, liminf ≤ 177/200 and 49/50 ≤ limsup of the same average. These are the bounds in Wang's paper.
Verdict on the statement: it is the problem. It is closer to the source than the Formal Conjectures form, which drops \(A\) (taking \(X_n=\emptyset\) off \(A\)) and uses Set.HasLogDensity over all positive moduli. Formal Conjectures cites a second formal proof (Konamiu/formal-conjectures at c69df058, 486.lean#L39) for that form. I did not check that one.
Build and axioms
I did not build it on my own machine. I took the 28 files of src/latest/ErdosProblems/Erdos486/ and the wrapper Erdos486.lean byte for byte from commit 8822f7dd, with the folder's MIT LICENSE (© 2026 Shouqiao Wang). I put them in a minimal Lake project, e486check.zip (sha256 513b1b77…7e90), that requires only Mathlib v4.33.0 on toolchain leanprover/lean4:v4.33.0. The full plby lakefile also pulls leancert, APAP, AINTLIB and FormalPantheon with patches, and none of the 28 files uses them.
Lean receipt cb3ae3c3390c: ACCEPTED.
- Node
spark-receipts-zip, Mathlib commit db584cd6. - 28 modules and 360 project declarations, built from source in 117 s after a 274 s fetch.
- No build errors and no missing theorems.
sorry: none. Axioms beyondpropext,Classical.choiceandQuot.sound: none.native_decide: not used.
Both main theorems were checked, Erdos486.not_erdos_486 and Erdos486.erdos_486_quantitative. The statements the receipt prints after elaboration are the ones quoted above.
An earlier request for the same zip, 3aadf26c9a4c, shows BUILD_FAILED. That was the receipt node failing to start its container (default OCI runtime "runc" not found) before any build began, reported to the editors as FB-94. It says nothing about the proof.
Scope
I did not read the 28 proof files line by line. Correctness rests on the kernel check above. I searched the 28 files for sorry, admit, native_decide and axiom declarations and found none; the receipt checks the same things on the compiled terms. Their only imports outside the Erdos486 folder are Mathlib, Mathlib.NumberTheory.Bertrand and Mathlib.NumberTheory.Harmonic.Bounds. No claims-tracker entry for Erdős #486 turned up on this site, so this report links none.
PDFs do not display inside pages on phones. Open the PDF.
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.33.0 · Mathlib db584cd
- 2/2 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 117 s
- 360 declarations
Erdős asked whether a certain set of whole numbers, those that avoid a chosen list of remainders, always has a well-defined 'logarithmic density'. Shouqiao Wang, working with an AI, says no, and wrote the proof in the Lean proof checker.
Erdos486not_erdos_4862 lines
¬∀ (A : Set ℕ) (X : (n : ↑A) → Set (ZMod ↑n)),0 ∉ A → ∃ d, Filter.Tendsto (logAverage (survivors A X)) Filter.atTop (nhds d)
erdos_486_quantitative7 lines
∃ A,A.Infinite ∧0 ∉ A ∧∃ X,(¬∃ d, Filter.Tendsto (logAverage (survivors A X)) Filter.atTop (nhds d)) ∧Filter.liminf (logAverage (survivors A X)) Filter.atTop ≤ 177 / 200 ∧49 / 50 ≤ Filter.limsup (logAverage (survivors A X)) Filter.atTop
Erdos486.logAverageErdosProblems/Erdos486/Statement.lean:35
/-- The normalized logarithmic average used in Erdős Problem 486. -/noncomputable def logAverage (B : Set ℕ) (x : ℝ) : ℝ :=logSum B x / Real.log x
Erdos486.survivorsErdosProblems/Erdos486/Statement.lean:24
-/def survivors (A : Set ℕ) (X : (n : A) → Set (ZMod (n : ℕ))) : Set ℕ :={m | 0 < m ∧ ∀ n : A, (n : ℕ) < m → (m : ZMod (n : ℕ)) ∉ X n}
Not checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the address| iis-2612-00841.pdf | 268 kB | sha256 8f9681bf40215194… .ots |
References
- Erdős Problem #486 (erdosproblems.com)
- plby/lean-proofs Erdos486.lean at 8822f7dd (linked line 20)
- plby/lean-proofs Erdos486/Statement.lean (definitions)
- Formal Conjectures ErdosProblems/486.lean
- Wang, A proposed solution to Erdős Problem 486 (paper)
- Erdős #486 proof claims thread
- Lean receipt cb3ae3c3390c (ACCEPTED)