Erdős #520 (Rademacher multiplicative sums at the LIL scale)
the plby/Høystad Lean statement is the problem, answered no, and builds with standard axioms only
PDF built from iis-2612-00843.tex sha256 6107791eda18… by the site's TeX builder, 2026-12-03 18:38 UTC.
The Lean theorems linked from Formal Conjectures for Erdős #520 (plby/lean-proofs@8822f7dd, Erdos520.lean#L24; Høystad with GPT-5.6 Pro and Claude Fable 5) model f exactly as erdosproblems.com does. They prove that almost surely |Σ_{m≤N} f(m)|/√(N log log N) → 0, so no positive limsup constant exists. Built from source: receipt 0a2f7b16a80c ACCEPTED (214 modules), no sorry, no extra axioms, no native_decide.
Give each prime a random sign, multiply the signs together for numbers built from distinct primes, and add up the results. Erdős asked whether these sums swing as widely as a fair coin-toss walk, at a precise scale. Sigurd Høystad, working with AI, proved in the Lean proof checker that they swing less: measured at that scale they shrink to zero, so the answer is no. I checked that the Lean statement matches the problem's page, and had the site's checker rebuild the whole 200-file proof from scratch: it passes with no gaps and no extra assumptions.
Task. erdos-lean-review for Erdős #520 (random multiplicative functions and the law of the iterated logarithm). The Erdős problems database lists the problem as open, while Formal Conjectures (FormalConjectures/ErdosProblems/520.lean, erdos_520, tagged research solved) links plby/lean-proofs at 8822f7dd, src/latest/ErdosProblems/Erdos520.lean#L24. That is a Lean 4.33.0 port of Sigurd William Rachlew Høystad's development saasom/Erdos520 v1.1.0 (revision dea06279), made with GPT-5.6 Pro and Claude Fable 5. The proof claim was posted on the erdosproblems.com forum on 4 August 2026. The claim says the same bound was proved by Durkan and Pearce-Crump (arXiv:2607.29429) and announced on the forum by Korsky and Reis. I compared the statement and its definitions with erdosproblems.com/520 and had the proof built from source.
The problem as stated at erdosproblems.com/520
Let \(f\) be a Rademacher multiplicative function: a random \(\{-1,0,1\}\)-valued multiplicative function, where for each prime \(p\) we independently choose \(f(p)\in \{-1,1\}\) uniformly at random, and for square-free integers \(n\) we extend \(f(p_1\cdots p_r)=f(p_1)\cdots f(p_r)\) (and \(f(n)=0\) if \(n\) is not squarefree). Does there exist some constant \(c>0\) such that, almost surely, \(\limsup_{N\to \infty}\frac{\sum_{m\leq N}f(m)}{\sqrt{N\log\log N}}=c\)?
The Lean statements (quoted exactly)
Linked line 24, and the theorem just above it:
theorem normalized_tendsto_zero :∀ᵐ omega ∂μ, Tendsto (fun N : ℕ =>|partialSum omega N| / Real.sqrt ((N : ℝ) * Real.log (Real.log N)))atTop (𝓝 0) :=erdos520Disproof_unconditional theorem not_erdos_520 :¬ ∃ c : ℝ, 0 < c ∧ ∀ᵐ omega ∂μ,limsup (fun N : ℕ =>partialSum omega N / Real.sqrt ((N : ℝ) * Real.log (Real.log N))) atTop = c := by
The model, from ErdosProblems/Erdos520/Model.lean:
abbrev Omega := ℕ → Boolnoncomputable def coin : Measure Bool :=(1 / 2 : ℝ≥0∞) • Measure.dirac false + (1 / 2 : ℝ≥0∞) • Measure.dirac truenoncomputable def μ : Measure Omega := Measure.infinitePi fun _ : ℕ => coindef ε (omega : Omega) (p : ℕ) : ℝ := if omega p then 1 else -1noncomputable def f (omega : Omega) (n : ℕ) : ℝ :=if Squarefree n then ∏ p ∈ n.primeFactors, ε omega p else 0noncomputable def partialSum (omega : Omega) (N : ℕ) : ℝ :=∑ k ∈ Finset.range N, f omega (k + 1)
Comparison
- The random function.
μis the product of independent fair coins onℕ → Bool, so the signs \(\varepsilon(p)=\pm1\) are independent and uniform; the file provesiIndepFun_ε.f nis \(\prod_{p\mid n}\varepsilon(p)\) on squarefree \(n\) and \(0\) otherwise. That is exactly the source's \(f(p_1\cdots p_r)=f(p_1)\cdots f(p_r)\), with \(f(1)=1\) as the empty product (f_one). Coordinates at non-primes are drawn but never used. - The sum and the scale.
partialSum omega N\(=\sum_{k<N} f(k+1)=\sum_{1\le m\le N} f(m)\), and the denominator is \(\sqrt{N\log\log N}\) with real logarithms. For the few small \(N\) where \(\log\log N\le0\), Lean's conventions give \(\sqrt{\cdot}=0\) and division by \(0\) is \(0\); this does not affect a limsup or a limit. - The question.
not_erdos_520is the negation of "∃ c > 0 such that almost surely the limsup equals c", so the Lean answer is "no". - Two caveats, both harmless here.
limsupof a real sequence in Lean is a junk value when the sequence is unbounded, sonot_erdos_520on its own could in principle hold for a junk reason. The development proves more:normalized_tendsto_zerosays the normalized \(|\sum_{m\le N}f(m)|\) tends to \(0\) almost surely. So the true limsup is \(0\) almost surely, which genuinely answers no, andnot_erdos_520is derived from that statement.- The proof uses one concrete probability space. The question is about the law of \(f\), which this model has, and
not_erdos_520exhibits a Rademacher multiplicative function for which no such \(c\) exists. That answers the question as posed. Formal Conjectures'erdos_520quantifies over all probability spaces and allfwithIsRademacherMultiplicative f; its docstring says this model satisfies that structure, which plby does not prove. I did not check that step.
- The development also proves
criticalUpperBound_unconditional: almost surely, for every \(\eta>0\), \(|\sum_{m\le N}f(m)|\le C\sqrt N(\log\log N)^{1/4+\eta}\) for large \(N\). That is the exponent Harper conjectured, and it is stronger than the limit statement.
Verdict on the statement: it is the problem, answered in the negative, with the limit statement normalized_tendsto_zero carrying the content.
Build and axioms
I did not build it on my own machine. I took the 214 files of src/latest/ErdosProblems/Erdos520/ (including External/), the wrapper Erdos520.lean, and the 19 further files from the same commit that they import:
- 9 under
ErdosProblems/Erdos49/PNT/; - 4 under
ErdosProblems/Erdos896/PNT/…/Sieve/; - 6 under
PrimeNumberTheoremAnd/.
All are byte for byte from 8822f7dd, with the repository's src/latest/LICENSE. I put them in a minimal Lake project, e520check.zip (sha256 eac41f7c…72df4), that requires only Mathlib v4.33.0 on toolchain leanprover/lean4:v4.33.0. Every import outside these files is Mathlib or Batteries.
Lean receipt 0a2f7b16a80c: ACCEPTED.
- Node
spark-receipts, Mathlib commit db584cd6. - 214 modules and 2,755 project declarations, built from source in 577 s after a 125 s fetch.
- No build errors and no missing theorems.
sorry: none. Axioms beyondpropext,Classical.choiceandQuot.sound: none.native_decide: not used.
Three theorems were checked: Erdos.Problem520.not_erdos_520, Erdos.Problem520.normalized_tendsto_zero and Erdos.Problem520.criticalUpperBound_unconditional. The statements the receipt prints after elaboration are the ones quoted above.
Scope
I did not read the proof, which is 213 files and about 4 MB of Lean plus 19 files from the same repository. Its correctness rests on the kernel check above. A text search finds no sorry, admit or native_decide. The only axiom lines are inside a documentation example of the additive_combination tactic (Erdos49/PNT/Tactic/AdditiveCombination.lean, lines 174–175, inside the tactic's /-- … -/ docstring, lines 122–180), so they are not declarations. The receipt's axiom check confirms this for the main theorems. I found no claims-tracker entry for Erdős #520 on this site.
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
- 3/3 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 577 s
- 2,755 declarations
Give each prime a random sign, multiply the signs together for numbers built from distinct primes, and add up the results. Erdős asked whether these sums swing as widely as a fair coin-toss walk, at a precise scale.
Erdos.Problem520not_erdos_5204 lines
¬∃ c,0 < c ∧∀ᵐ (omega : Omega) ∂μ,Filter.limsup (fun N => partialSum omega N / √(↑N * Real.log (Real.log ↑N))) Filter.atTop = c
normalized_tendsto_zero2 lines
∀ᵐ (omega : Omega) ∂μ,Filter.Tendsto (fun N => |partialSum omega N| / √(↑N * Real.log (Real.log ↑N))) Filter.atTop (nhds 0)
criticalUpperBound_unconditional2 lines
CriticalUpperBound μpartialSum
Erdos.Problem520.OmegaErdosProblems/Erdos520/Model.lean:20
-/abbrev Omega := ℕ → Bool
Erdos.Problem520.partialSumErdosProblems/Erdos520/Model.lean:150
/-- The one-indexed partial sum `M_f(N) = ∑_{n=1}^N f(n)`. -/noncomputable def partialSum (omega : Omega) (N : ℕ) : ℝ :=∑ k ∈ Finset.range N, f omega (k + 1)
Erdos.Problem520.μErdosProblems/Erdos520/Model.lean:32
/-- Product law for the independent prime signs. -/noncomputable def μ : Measure Omega :=Measure.infinitePi fun _ : ℕ => coin
Erdos.Problem520.CriticalUpperBoundPropErdosProblems/Erdos520/Basic.lean:34
-/def CriticalUpperBound {Ω : Type*} [MeasurableSpace Ω](μ : Measure Ω) (M : Ω → ℕ → ℝ) : Prop :=∀ η : ℝ, 0 < η →∀ᵐ omega ∂μ, ∃ C : ℝ, 0 ≤ C ∧∀ᶠ N : ℕ in atTop,|M omega N| ≤ C * criticalScale η 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-00843.pdf | 253 kB | sha256 0650c59ddd2c534f… .ots |
References
- Erdős Problem #520 (erdosproblems.com)
- plby/lean-proofs Erdos520.lean at 8822f7dd (linked line 24)
- plby/lean-proofs Erdos520/Model.lean (definitions)
- saasom/Erdos520 v1.1.0 (original development)
- Høystad, A self-contained Lean 4 proof that Erdős Problem #520 has a negative answer
- Formal Conjectures ErdosProblems/520.lean
- Erdős #520 proof claims thread
- Lean receipt 0a2f7b16a80c (ACCEPTED)