{
  "id": "2374",
  "ident": "NS.02374",
  "slug": "erdos-520",
  "title": "Erdős Problem 520",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f$ be a Rademacher multiplicative function.\nDoes there exist some constant $c > 0$ such that, almost surely,\n$$\n  \\limsup_{N \\to \\infty} \\frac{\\sum_{m \\leq N} f(m)}{\\sqrt{N \\log \\log N}} = c?\n$$\n\nThe answer is no: Høystad [Hø26] (with GPT-5.6 Pro and Claude) proved, following the\nHalász–Lau–Tenenbaum–Wu–Caich martingale approach with Harper's low-moment estimates [Ha13],\nthat almost surely $\\sum_{m \\le N} f(m) \\ll \\sqrt{N} (\\log \\log N)^{1/4 + \\eta}$ for every\n$\\eta > 0$, so the $\\limsup$ is $0$ almost surely. The linked formal\nproof works with the concrete model `ℕ → Bool` with the product of fair coins, whose\nsquarefree-supported Rademacher function is `IsRademacherMultiplicative`; this refutes the\nstatement below.",
  "subjects": [
    "math.NT",
    "math.PR",
    "msc:11",
    "msc:60"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos520.erdos_520",
  "statement_lean": "theorem erdos_520 :\n    ¬ ∃ c > 0, ∀ (Ω : Type) [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)]\n      (f : ℕ → Ω → ℝ), IsRademacherMultiplicative f →\n      ∀ᵐ ω, limsup (fun N ↦ ∑ m ≤ N, f m ω / sqrt (N * log (log N))) atTop = c",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 520\n\n*References:*\n- [erdosproblems.com/520](https://www.erdosproblems.com/520)\n- [Hø26] Høystad, S. W. R., *A self-contained Lean 4 proof that Erdős Problem #520 has a\n  negative answer* (2026), https://github.com/saasom/Erdos520/blob/v1.1.0/paper/erdos520_note.pdf\n- [Ha13] Harper, A. J., *Bounds on the suprema of Gaussian processes, and omega results for the\n  sum of a random multiplicative function*. Ann. Appl. Probab. 23 (2013), 584–616.\n-/\n\n@[expose] public section\n\nopen MeasureTheory ProbabilityTheory Nat Real Filter\n\nnamespace Erdos520\n\nvariable {Ω : Type*} [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)]\n\n/--\nA random function $f$ is Rademacher multiplicative if $f(1) = 1$,\nfor each prime $p$, we independently choose $f(p) \\in \\{-1, 1\\}$ uniformly at random (so each\n$f(p)$ is a measurable function of the sample point),\nfor each square-free integer $n = p_1 \\cdots p_r$, $f(n) = f(p_1) \\cdots f(p_r)$, and\nfor each non-squarefree integer $n$, $f(n) = 0$.\n-/\nstructure IsRademacherMultiplicative (f : ℕ → Ω → ℝ) : Prop where\n  /-- Prime entries are random variables. -/\n  measurable_of_prime p : p.Prime → Measurable (f p)\n  /-- Prime entries are independent. -/\n  iIndepFun_primes : iIndepFun (fun p : Primes ↦ f p) ℙ\n  /-- Primes entries are uniformly distributed on `{-1, 1}`. -/\n  prob_of_prime p : p.Prime → ℙ {ω | f p ω = 1} = 1 / 2 ∧ ℙ {ω | f p ω = -1} = 1 / 2\n  map_one ω : f 1 ω = 1\n  map_mul_of_coprime a b ω : a.Coprime b → f (a * b) ω = f a ω * f b ω\n  map_of_not_squarefree n ω : ¬ Squarefree n → f n ω = 0\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f$ be a Rademacher multiplicative function.\nDoes there exist some constant $c > 0$ such that, almost surely,\n$$\n  \\limsup_{N \\to \\infty} \\frac{\\sum_{m \\leq N} f(m)}{\\sqrt{N \\log \\log N}} = c?\n$$\n\nThe answer is no: Høystad [Hø26] (with GPT-5.6 Pro and Claude) proved, following the\nHalász–Lau–Tenenbaum–Wu–Caich martingale approach with Harper's low-moment estimates [Ha13],\nthat almost surely $\\sum_{m \\le N} f(m) \\ll \\sqrt{N} (\\log \\log N)^{1/4 + \\eta}$ for every\n$\\eta > 0$, so the $\\limsup$ is $0$ almost surely. The linked formal\nproof works with the concrete model `ℕ → Bool` with the product of fair coins, whose\nsquarefree-supported Rademacher function is `IsRademacherMultiplicative`; this refutes the\nstatement below.\n-/\n@[category research solved, question, AMS 11 60, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos520.lean#L24\"]\ntheorem erdos_520 :\n    ¬ ∃ c > 0, ∀ (Ω : Type) [MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)]\n      (f : ℕ → Ω → ℝ), IsRademacherMultiplicative f →\n      ∀ᵐ ω, limsup (fun N ↦ ∑ m ≤ N, f m ω / sqrt (N * log (log N))) atTop = c := by\n  sorry\n\nend Erdos520\n",
  "statement_hash": "0fd2f91761d0141b22d829773ad3a6430bbd6831259b4894ee3b8603ad1ec152",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}