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 239

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 f:N→{−1,1}f:\mathbb{N}\to \{-1,1\} be a multiplicative function. Is it true that lim⁡N→∞1N∑n≤Nf(n) \lim_{N\to \infty}\frac{1}{N}\sum_{n\leq N}f(n) always exists?

The answer is yes, as proved by Wirsing [Wi67], and generalised by Halász [Ha68].

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

Formal statement

theorem erdos_239 :
    ∀ f : ℕ → ℝ,
    (∀ n ≥ 1, f n = 1 ∨ f n = -1) ∧
    (∀ m n, m.Coprime n → f (m * n) = f m * f n) ∧
    f 1 = 1 →
    ∃ L, Tendsto (fun N ↦ (∑ n ∈ Finset.Icc 1 N, f n) / N) atTop (𝓝 L)
Show the full Challenge.lean (54 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 239

*References:*
- [erdosproblems.com/239](https://www.erdosproblems.com/239)
- [Ha68] Halász, G., Über die Mittelwerte multiplikativer zahlentheoretischer
  Funktionen. Acta Math. Acad. Sci. Hungar. (1968), 365-403.
- [Wi67] Wirsing, E., Das asymptotische Verhalten von Summen über multiplikative Funk­tionen.
  Acta Math. Acad. Sei. Hung. (1967), 411-467.
-/

@[expose] public section

open Filter
open scoped Topology

namespace Erdos239

/--
Let $f:\mathbb{N}\to \{-1,1\}$ be a multiplicative function. Is it true that
$$ \lim_{N\to \infty}\frac{1}{N}\sum_{n\leq N}f(n)$$ always exists?

The answer is yes, as proved by Wirsing [Wi67], and generalised by Halász [Ha68].
-/
@[category research solved, question, AMS 11]
theorem erdos_239 :
    ∀ f : ℕ → ℝ,
    (∀ n ≥ 1, f n = 1 ∨ f n = -1) ∧
    (∀ m n, m.Coprime n → f (m * n) = f m * f n) ∧
    f 1 = 1 →
    ∃ L, Tendsto (fun N ↦ (∑ n ∈ Finset.Icc 1 N, f n) / N) atTop (𝓝 L) := by
  sorry

end Erdos239

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

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