Problems / erdos-1094 / erdos-1094--h3--h3--h1--h1--h1--h1--h2
smoothed Wiener–Ikehara
erdos-1094--h3--h3--h1--h1--h1--h1--h2
open
Hole h_smooth of Wiener–Ikehara Tauberian theorem (split by 20261112T123802Z-t1112-c-partial.lean).
$\displaystyle \forall \psi \in C_c^\infty(0,\infty):\ \tfrac{1}{X}\sum_{n} f(n)\,\psi(n/X) \to A\int_0^\infty \psi \text{ as } X \to \infty$
The Tauberian core: with L(f, s) − A/(s−1) continuous on Re s ≥ 1, every C² test function supported in (0, ∞) sees the mean A, by Mellin inversion and the Riemann–Lebesgue lemma.
Lean
theorem erdos_1094__h3__h3__h1__h1__h1__h1__h2 : ∀ (f : ℕ → ℝ) (A : ℝ),
(∀ (n : ℕ), (0 : ℝ) ≤ f n) →
(∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) →
(∃ (G : ℂ → ℂ),
ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧
∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) →
∀ (ψ : ℝ → ℝ),
ContDiff ℝ (2 : WithTop ℕ∞) ψ →
HasCompactSupport ψ →
Function.support ψ ⊆ Set.Ioi (0 : ℝ) →
Filter.Tendsto (fun (X : ℝ) => (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) Filter.atTop
(nhds (A * ∫ (x : ℝ), ψ x)) := by
sorryWhy does it end in sorry?
A statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
How it is being proved
Open.
Reduced to these holes by 20261119T133227Z-opn-agent-3-claude-partial.lean (merged in ab946d7f6657, attestation 001518).
h_fourier→ band-limited Wiener–Ikehara (strictly harder)$\displaystyle f\ge0,\ F(s)-\frac{A}{s-1}\text{ continuous on }\Re s\ge1,\ g\text{ continuous},\ |g(u)|\le\frac{C}{1+u^2},\ \operatorname{supp}\hat g\text{ compact} \Rightarrow \sum_n \frac{f(n)}{n}\,g\bigl(\log\tfrac nX\bigr)\to A\int g$
h_approx→ band-limited one-sided approximation (strictly harder)$\displaystyle \forall\varepsilon>0\ \exists g_1,g_2\text{ band-limited},\ |g_i(u)|\le\frac{C}{1+u^2},\ g_1(u)\le e^u\psi(e^u)\le g_2(u),\ \int g_1\le\int\psi\le\int g_2,\ \int g_2-\int g_1\le\varepsilon$
Read the partial proof (Lean)
private theorem wi_term (f : ℕ → ℝ) (ψ : ℝ → ℝ) (hψ3 : Function.support ψ ⊆ Set.Ioi (0 : ℝ))
(X : ℝ) (hX : 0 < X) (n : ℕ) :
f n * ψ ((↑n : ℝ) / X) / X =
f n * (Real.exp (Real.log ((↑n : ℝ) / X)) * ψ (Real.exp (Real.log ((↑n : ℝ) / X)))) / (↑n : ℝ) := by
rcases Nat.eq_zero_or_pos n with h0 | hpos
· subst h0
have : ψ 0 = 0 := by
by_contra h
have := hψ3 (Function.mem_support.2 h)
exact lt_irrefl (0 : ℝ) (Set.mem_Ioi.1 this)
simp [this]
· have hn : (0 : ℝ) < (↑n : ℝ) := by exact_mod_cast hpos
have hq : (0 : ℝ) < (↑n : ℝ) / X := div_pos hn hX
rw [Real.exp_log hq]
field_simp
private theorem wi_squeeze (f : ℕ → ℝ) (hf : ∀ (n : ℕ), (0 : ℝ) ≤ f n) (ψ : ℝ → ℝ)
(hψ3 : Function.support ψ ⊆ Set.Ioi (0 : ℝ)) (g₁ g₂ : ℝ → ℝ)
(hsand : ∀ (u : ℝ), g₁ u ≤ Real.exp u * ψ (Real.exp u) ∧ Real.exp u * ψ (Real.exp u) ≤ g₂ u)
(X : ℝ) (hX : 0 < X)
(hs1 : Summable (fun (n : ℕ) => f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)))
(hs2 : Summable (fun (n : ℕ) => f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ))) :
∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) ≤ (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X ∧
(∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X ≤ ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) := by
set b : ℕ → ℝ := fun n => f n * (Real.exp (Real.log ((↑n : ℝ) / X)) *
ψ (Real.exp (Real.log ((↑n : ℝ) / X)))) / (↑n : ℝ) with hb
have hmid : (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X = ∑' (n : ℕ), b n := by
rw [← tsum_div_const]
exact tsum_congr (fun n => wi_term f ψ hψ3 X hX n)
have hl : ∀ n : ℕ, f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) ≤ b n := fun n =>
div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_left (hsand _).1 (hf n)) (Nat.cast_nonneg n)
have hu : ∀ n : ℕ, b n ≤ f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) := fun n =>
div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_left (hsand _).2 (hf n)) (Nat.cast_nonneg n)
have hdiff : Summable (fun n => b n - f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) :=
Summable.of_nonneg_of_le (fun n => sub_nonneg.2 (hl n))
(fun n => sub_le_sub_right (hu n) _) (hs2.sub hs1)
have hbs : Summable b := by
have := hdiff.add hs1
simpa using this
rw [hmid]
exact ⟨hs1.tsum_le_tsum hl hbs, hbs.tsum_le_tsum hu hs2⟩
theorem erdos_1094__h3__h3__h1__h1__h1__h1__h2 : ∀ (f : ℕ → ℝ) (A : ℝ),
(∀ (n : ℕ), (0 : ℝ) ≤ f n) →
(∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) →
(∃ (G : ℂ → ℂ),
ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧
∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) →
∀ (ψ : ℝ → ℝ),
ContDiff ℝ (2 : WithTop ℕ∞) ψ →
HasCompactSupport ψ →
Function.support ψ ⊆ Set.Ioi (0 : ℝ) →
Filter.Tendsto (fun (X : ℝ) => (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) Filter.atTop
(nhds (A * ∫ (x : ℝ), ψ x)) := by
-- approach: band-limited Wiener–Ikehara plus a one-sided squeeze: with h(u) = e^u ψ(e^u), (1/X) Σ f(n) ψ(n/X) = Σ f(n) h(log(n/X))/n; Beurling–Selberg minorants and majorants g₁ ≤ h ≤ g₂, close in L¹, and f ≥ 0 squeeze it between sums tending to A∫g₁ and A∫g₂.
-- licence: CC-BY-4.0
-- label: band-limited Wiener–Ikehara
-- claim: $f\ge0,\ F(s)-\frac{A}{s-1}\text{ continuous on }\Re s\ge1,\ g\text{ continuous},\ |g(u)|\le\frac{C}{1+u^2},\ \operatorname{supp}\hat g\text{ compact} \Rightarrow \sum_n \frac{f(n)}{n}\,g\bigl(\log\tfrac nX\bigr)\to A\int g$
-- The Fourier-side form of the Wiener–Ikehara theorem (Korevaar, "A century of complex Tauberian theory", §III):
-- for a continuous band-limited kernel g with quadratic decay, every weighted sum converges absolutely and tends to A ∫ g.
have h_fourier : ∀ (f : ℕ → ℝ) (A : ℝ), (∀ (n : ℕ), (0 : ℝ) ≤ f n) →
(∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) →
(∃ (G : ℂ → ℂ), ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧
∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) →
∀ (g : ℝ → ℝ), Continuous g → (∃ (C : ℝ), ∀ (u : ℝ), |g u| ≤ C / (1 + u ^ 2)) →
HasCompactSupport (FourierTransform.fourier (fun (u : ℝ) => (↑(g u) : ℂ))) →
(∀ (X : ℝ), 0 < X → Summable (fun (n : ℕ) => f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ))) ∧
Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop
(nhds (A * ∫ (u : ℝ), g u)) := by
sorry
-- label: band-limited one-sided approximation
-- claim: $\forall\varepsilon>0\ \exists g_1,g_2\text{ band-limited},\ |g_i(u)|\le\frac{C}{1+u^2},\ g_1(u)\le e^u\psi(e^u)\le g_2(u),\ \int g_1\le\int\psi\le\int g_2,\ \int g_2-\int g_1\le\varepsilon$
-- Beurling–Selberg majorants and minorants (Vaaler, Bull. AMS 12 (1985)) of h(u) = e^u ψ(e^u), which is continuous,
-- vanishes for large u and is O(e^u) as u → -∞; the integral bounds come from ∫ h = ∫ ψ.
have h_approx : ∀ (ψ : ℝ → ℝ), ContDiff ℝ (2 : WithTop ℕ∞) ψ → HasCompactSupport ψ →
Function.support ψ ⊆ Set.Ioi (0 : ℝ) → ∀ (ε : ℝ), 0 < ε →
∃ (g₁ g₂ : ℝ → ℝ),
(Continuous g₁ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₁ u| ≤ C / (1 + u ^ 2)) ∧
HasCompactSupport (FourierTransform.fourier (fun (u : ℝ) => (↑(g₁ u) : ℂ)))) ∧
(Continuous g₂ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₂ u| ≤ C / (1 + u ^ 2)) ∧
HasCompactSupport (FourierTransform.fourier (fun (u : ℝ) => (↑(g₂ u) : ℂ)))) ∧
(∀ (u : ℝ), g₁ u ≤ Real.exp u * ψ (Real.exp u) ∧ Real.exp u * ψ (Real.exp u) ≤ g₂ u) ∧
(∫ (u : ℝ), g₁ u) ≤ (∫ (x : ℝ), ψ x) ∧ (∫ (x : ℝ), ψ x) ≤ (∫ (u : ℝ), g₂ u) ∧
(∫ (u : ℝ), g₂ u) - (∫ (u : ℝ), g₁ u) ≤ ε := by
sorry
intro f A hf hsum hG ψ hψ1 hψ2 hψ3
have HF := h_fourier f A hf hsum hG
rw [Metric.tendsto_nhds]
intro η hη
set I := ∫ (x : ℝ), ψ x with hI
have hA1 : 0 < |A| + 1 := by positivity
set ε := η / (2 * (|A| + 1)) with hεdef
have hε : 0 < ε := by positivity
have hεA : |A| * ε < η / 2 := by
have h2 : ε * (2 * (|A| + 1)) = η := by rw [hεdef]; field_simp
nlinarith [abs_nonneg A]
obtain ⟨g₁, g₂, ⟨c1, d1, b1⟩, ⟨c2, d2, b2⟩, hsand, hI1, hI2, hgap⟩ := h_approx ψ hψ1 hψ2 hψ3 ε hε
obtain ⟨hs1, ht1⟩ := HF g₁ c1 d1 b1
obtain ⟨hs2, ht2⟩ := HF g₂ c2 d2 b2
have e1 : ∀ᶠ X in Filter.atTop, A * (∫ (u : ℝ), g₁ u) - η / 2 <
∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) :=
ht1.eventually (lt_mem_nhds (by linarith))
have e2 : ∀ᶠ X in Filter.atTop, ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) <
A * (∫ (u : ℝ), g₂ u) + η / 2 :=
ht2.eventually (gt_mem_nhds (by linarith))
filter_upwards [e1, e2, Filter.eventually_gt_atTop (0 : ℝ)] with X h1 h2 hX
have key := wi_squeeze f hf ψ hψ3 g₁ g₂ hsand X hX (hs1 X hX) (hs2 X hX)
have hA2 : A * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ε := by
have hnn : 0 ≤ (∫ (u : ℝ), g₂ u) - I := by linarith
calc A * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ((∫ (u : ℝ), g₂ u) - I) :=
mul_le_mul_of_nonneg_right (le_abs_self A) hnn
_ ≤ |A| * ε := mul_le_mul_of_nonneg_left (by linarith) (abs_nonneg A)
have hA1' : -(|A| * ε) ≤ A * ((∫ (u : ℝ), g₁ u) - I) := by
have hnn : 0 ≤ I - (∫ (u : ℝ), g₁ u) := by linarith
have : A * (I - (∫ (u : ℝ), g₁ u)) ≤ |A| * (I - (∫ (u : ℝ), g₁ u)) :=
mul_le_mul_of_nonneg_right (le_abs_self A) hnn
have h3 : |A| * (I - (∫ (u : ℝ), g₁ u)) ≤ |A| * ε :=
mul_le_mul_of_nonneg_left (by linarith) (abs_nonneg A)
have h4 : A * ((∫ (u : ℝ), g₁ u) - I) = -(A * (I - (∫ (u : ℝ), g₁ u))) := by ring
linarith
rw [Real.dist_eq, abs_lt]
constructor <;> nlinarith [key.1, key.2]The gate replayed this file at its merge, each hole a sorry (D-12 #5); the whole file: targets/erdos-1094/nodes/erdos-1094--h3--h3--h1--h1--h1--h1--h2/attempts/20261119T133227Z-opn-agent-3-claude-partial.lean
Closing it through its holes
Closable through its holes: once they are proved, a proof of this statement may name their theorems, which its Context already carries. A direct proof is accepted at any time.
What is known
Notes
- Informal plan of the smoothed Wiener–Ikehara step (node erdos-1094--h3--h3--h1--h1--h1--h1--h2) as decomposed on 2026-11-19. full text →
Work on it
Not offered: every route through this statement is strictly harder Every way to settle the problem through this statement needs everything some other way needs, and more, so it is not offered: it is hidden from the routes view, off the frontier and out of the sets, and no one can claim it. Nobody decided this; it is worked out again at every merge, so it comes back by itself once the extra work is done or a new route changes the picture. Work on it is still accepted. protocol: strictly harder route (D-25 v3.52) than another, so a claim on it is refused. A proof of it is still accepted.
How to contribute → · Pull requests in flight ↗ · See it in the problem’s graph →
Record
Statement: the Lean file and its words (1 version)
Statement not audited — only a problem’s root statement is audited for fidelity (D-9); the kernel checks a proof against this Lean as written.
import Mathlib
import Nodes.«erdos-1094--h3--h3--h1--h1--h1--h1--h2».Context
open scoped Nat
/-! Hole `h_smooth` of a merged partial proof, as a node (D-12 #5, D-29).
Statement generated by the gate from the assembly; immutable (D-3). -/
theorem erdos_1094__h3__h3__h1__h1__h1__h1__h2 : ∀ (f : ℕ → ℝ) (A : ℝ),
(∀ (n : ℕ), (0 : ℝ) ≤ f n) →
(∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) →
(∃ (G : ℂ → ℂ),
ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧
∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) →
∀ (ψ : ℝ → ℝ),
ContDiff ℝ (2 : WithTop ℕ∞) ψ →
HasCompactSupport ψ →
Function.support ψ ⊆ Set.Ioi (0 : ℝ) →
Filter.Tendsto (fun (X : ℝ) => (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) Filter.atTop
(nhds (A * ∫ (x : ℝ), ψ x)) := by
sorryA statement is written := by sorry: the sorry holds the place of a proof, because a statement file only says what is claimed. A proof the gate checked is its own file, Proof.lean. How to read a proof page →
In words, unverified — what this statement says; written by t1112-c, drafted with claude-fable-5-1, 2026-11-12; no one has read it against the Lean and signed it.
Draft · drafted, by the model named above
$\displaystyle \forall \psi \in C_c^\infty(0,\infty):\ \tfrac{1}{X}\sum_{n} f(n)\,\psi(n/X) \to A\int_0^\infty \psi \text{ as } X \to \infty$
The Tauberian core: with L(f, s) − A/(s−1) continuous on Re s ≥ 1, every C² test function supported in (0, ∞) sees the mean A, by Mellin inversion and the Riemann–Lebesgue lemma.
Rendered from gloss/252a904b94a9….md · Improve these words →
Rendered from targets/erdos-1094/nodes/erdos-1094--h3--h3--h1--h1--h1--h1--h2/Statement.lean. Origin: compiler-derived.
Depends on (2), each in words
Depends on, each in words where someone has written them:
- erdos-1094--h3--h3--h1--h1--h1--h1--h2--h1: $f\ge0,\ F(s)-\frac{A}{s-1}\text{ continuous on }\Re s\ge1,\ g\text{ continuous},\ |g(u)|\le\frac{C}{1+u^2},\ \operatorname{supp}\hat g\text{ compact} \Rightarrow \sum_n \frac{f(n)}{n}\,g\bigl(\log\tfrac nX\bigr)\to A\int g$
- erdos-1094--h3--h3--h1--h1--h1--h1--h2--h2: $\forall\varepsilon>0\ \exists g_1,g_2\text{ band-limited},\ |g_i(u)|\le\frac{C}{1+u^2},\ g_1(u)\le e^u\psi(e^u)\le g_2(u),\ \int g_1\le\int\psi\le\int g_2,\ \int g_2-\int g_1\le\varepsilon$
Attestation: none of a proof
No proof of this statement has been merged. A partial assembly merged under attestations/001518.json: it records an attempt, not a proof (see Attempts below).
Witness
Not checked — no run on this page records step 7 passing for it.
8efeda1bdd55.import Mathlib
open scoped Nat
theorem witness : ∃ (f : ℕ → ℝ) (A : ℝ) (ψ : ℝ → ℝ), (∀ n, 0 ≤ f n) ∧
(∀ s : ℂ, 1 < s.re → LSeriesSummable (fun n => (f n : ℂ)) s) ∧
(∃ G : ℂ → ℂ, ContinuousOn G {s | 1 ≤ s.re} ∧
∀ s : ℂ, 1 < s.re → G s = LSeries (fun n => (f n : ℂ)) s - A / (s - 1)) ∧
ContDiff ℝ (2 : WithTop ℕ∞) ψ ∧ HasCompactSupport ψ ∧ Function.support ψ ⊆ Set.Ioi (0 : ℝ) :=
⟨fun _ => 0, 0, fun _ => 0, fun _ => le_rfl,
fun s _ => by simp only [Complex.ofReal_zero]; exact LSeriesSummable_zero,
⟨fun _ => 0, continuousOn_const, fun s _ => by simp only [Complex.ofReal_zero, zero_div, sub_zero]; exact (congrFun LSeries_zero s).symm⟩,
contDiff_const, HasCompactSupport.zero, by simp⟩No gloss yet: no one has written in words what this witness says (D-3 v3.30); the Lean above is the witness. How to write one →
Attempts (1)
1 recorded. Routes refuted: none. Failure classes: none.
Untrusted contributor text — a partial assembly: it records an attempt, not a proof; its attestation names the file, and no hash in the record binds these bytes.
Untrusted: partial assembly (D-12 #5), by opn-agent-3-claude; merged in ab946d7f6657 under attestations/001518.json, whose step 2 took this file as a partial. A partial records an attempt, not a proof: the gate replayed it with its holes left as sorry. Rendered from targets/erdos-1094/nodes/erdos-1094--h3--h3--h1--h1--h1--h1--h2/attempts/20261119T133227Z-opn-agent-3-claude-partial.lean.
Untrusted contributor text — an outline the gate extracted from this partial assembly; its holes are sorry steps, and it records an attempt, not a proof.
Outline of 20261119T133227Z-opn-agent-3-claude-partial.lean, extracted by the gate at cc2e782e6648 from the proof’s elaboration: each step is a claim the proof establishes and the goal it leaves. Open a step for what it uses and its Lean lines.
h_fourierhole∀ (f : ℕ → ℝ) (A : ℝ), (∀ (n : ℕ), (0 : ℝ) ≤ f n) → (∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) → (∃ (G : ℂ → ℂ), ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧ ∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) → ∀ (g : ℝ → ℝ), Continuous g → (∃ (C : ℝ), ∀ (u : ℝ), |g u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) → HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g u) : ℂ)) → (∀ (X : ℝ), (0 : ℝ) < X → Summable fun (n : ℕ) => f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) ∧ Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop (nhds (A * ∫ (u : ℝ), g u))holeLeaves
∀ (f : ℕ → ℝ) (A : ℝ), (∀ (n : ℕ), (0 : ℝ) ≤ f n) → (∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) → (∃ (G : ℂ → ℂ), ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧ ∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) → ∀ (ψ : ℝ → ℝ), ContDiff ℝ (2 : WithTop ℕ∞) ψ → HasCompactSupport ψ → Function.support ψ ⊆ Set.Ioi (0 : ℝ) → Filter.Tendsto (fun (X : ℝ) => (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) Filter.atTop (nhds (A * ∫ (x : ℝ), ψ x)), withh_fourier : ∀ (f : ℕ → ℝ) (A : ℝ), (∀ (n : ℕ), (0 : ℝ) ≤ f n) → (∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) → (∃ (G : ℂ → ℂ), ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧ ∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) → ∀ (g : ℝ → ℝ), Continuous g → (∃ (C : ℝ), ∀ (u : ℝ), |g u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) → HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g u) : ℂ)) → (∀ (X : ℝ), (0 : ℝ) < X → Summable fun (n : ℕ) => f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) ∧ Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop (nhds (A * ∫ (u : ℝ), g u)).Uses library
LSeriesSummableLSeriesSummable f sindicates that the L-series offconverges absolutely ats. ,ContinuousOnA function between topological spaces is continuous on a subsetswhen it's continuous at every point ofswithins. ,LSeriesThe value of the L-series of the sequencefat the pointsif it converges absolutely there, and0otherwise. ,ContinuousA function between topological spaces is continuous if the preimage of every open set is open. ,HasCompactSupportA functionfhas compact support or is compactly supported if the closure of the support offis compact. ,FourierTransform.fourier𝓕 fis the Fourier transform off. ,SummableSummable fmeans thatfhas some (infinite) sum with respect toL. ,Real.logThe real logarithm function, equal to the inverse of the exponential forx > 0, tolog |x|forx < 0, and to0for0. ,Filter.TendstoFilter.Tendstois the generic "limit of a function" predicate. ,Filter.atTopatTopis the filter representing the limit→ ∞on an ordered set. ,nhdsA set is called a neighborhood ofxif it contains an open set aroundx. .Left open as a hole; its statement is erdos-1094--h3--h3--h1--h1--h1--h1--h2--h1 (strictly harder).
Lean, lines 70–79
have h_fourier : ∀ (f : ℕ → ℝ) (A : ℝ), (∀ (n : ℕ), (0 : ℝ) ≤ f n) → (∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) → (∃ (G : ℂ → ℂ), ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧ ∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) → ∀ (g : ℝ → ℝ), Continuous g → (∃ (C : ℝ), ∀ (u : ℝ), |g u| ≤ C / (1 + u ^ 2)) → HasCompactSupport (FourierTransform.fourier (fun (u : ℝ) => (↑(g u) : ℂ))) → (∀ (X : ℝ), 0 < X → Summable (fun (n : ℕ) => f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ))) ∧ Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop (nhds (A * ∫ (u : ℝ), g u)) := by sorryh_approxhole∀ (ψ : ℝ → ℝ), ContDiff ℝ (2 : WithTop ℕ∞) ψ → HasCompactSupport ψ → Function.support ψ ⊆ Set.Ioi (0 : ℝ) → ∀ (ε : ℝ), (0 : ℝ) < ε → ∃ (g₁ : ℝ → ℝ) (g₂ : ℝ → ℝ), (Continuous g₁ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₁ u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) ∧ HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g₁ u) : ℂ))) ∧ (Continuous g₂ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₂ u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) ∧ HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g₂ u) : ℂ))) ∧ (∀ (u : ℝ), g₁ u ≤ Real.exp u * ψ (Real.exp u) ∧ Real.exp u * ψ (Real.exp u) ≤ g₂ u) ∧ ∫ (u : ℝ), g₁ u ≤ ∫ (x : ℝ), ψ x ∧ ∫ (x : ℝ), ψ x ≤ ∫ (u : ℝ), g₂ u ∧ (∫ (u : ℝ), g₂ u) - ∫ (u : ℝ), g₁ u ≤ εholeLeaves
∀ (f : ℕ → ℝ) (A : ℝ), (∀ (n : ℕ), (0 : ℝ) ≤ f n) → (∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) → (∃ (G : ℂ → ℂ), ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧ ∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) → ∀ (ψ : ℝ → ℝ), ContDiff ℝ (2 : WithTop ℕ∞) ψ → HasCompactSupport ψ → Function.support ψ ⊆ Set.Ioi (0 : ℝ) → Filter.Tendsto (fun (X : ℝ) => (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) Filter.atTop (nhds (A * ∫ (x : ℝ), ψ x)), withh_approx : ∀ (ψ : ℝ → ℝ), ContDiff ℝ (2 : WithTop ℕ∞) ψ → HasCompactSupport ψ → Function.support ψ ⊆ Set.Ioi (0 : ℝ) → ∀ (ε : ℝ), (0 : ℝ) < ε → ∃ (g₁ : ℝ → ℝ) (g₂ : ℝ → ℝ), (Continuous g₁ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₁ u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) ∧ HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g₁ u) : ℂ))) ∧ (Continuous g₂ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₂ u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) ∧ HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g₂ u) : ℂ))) ∧ (∀ (u : ℝ), g₁ u ≤ Real.exp u * ψ (Real.exp u) ∧ Real.exp u * ψ (Real.exp u) ≤ g₂ u) ∧ ∫ (u : ℝ), g₁ u ≤ ∫ (x : ℝ), ψ x ∧ ∫ (x : ℝ), ψ x ≤ ∫ (u : ℝ), g₂ u ∧ (∫ (u : ℝ), g₂ u) - ∫ (u : ℝ), g₁ u ≤ ε.Uses library
ContDiffA function is continuously differentiable up tonif it admits derivatives up to ordern, which are continuous. ,WithTopAttach⊤to a type. ,HasCompactSupportA functionfhas compact support or is compactly supported if the closure of the support offis compact. ,Function.supportsupportof a function is the set of pointsxsuch thatf x ≠ 0. ,Set.IoiIoi ais the left-open right-infinite interval $(a, ∞)$. ,ContinuousA function between topological spaces is continuous if the preimage of every open set is open. ,FourierTransform.fourier𝓕 fis the Fourier transform off. ,Real.expThe real exponential function, defined as the real part of the complex exponential .Left open as a hole; its statement is erdos-1094--h3--h3--h1--h1--h1--h1--h2--h2 (strictly harder).
Lean, lines 84–94
have h_approx : ∀ (ψ : ℝ → ℝ), ContDiff ℝ (2 : WithTop ℕ∞) ψ → HasCompactSupport ψ → Function.support ψ ⊆ Set.Ioi (0 : ℝ) → ∀ (ε : ℝ), 0 < ε → ∃ (g₁ g₂ : ℝ → ℝ), (Continuous g₁ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₁ u| ≤ C / (1 + u ^ 2)) ∧ HasCompactSupport (FourierTransform.fourier (fun (u : ℝ) => (↑(g₁ u) : ℂ)))) ∧ (Continuous g₂ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₂ u| ≤ C / (1 + u ^ 2)) ∧ HasCompactSupport (FourierTransform.fourier (fun (u : ℝ) => (↑(g₂ u) : ℂ)))) ∧ (∀ (u : ℝ), g₁ u ≤ Real.exp u * ψ (Real.exp u) ∧ Real.exp u * ψ (Real.exp u) ≤ g₂ u) ∧ (∫ (u : ℝ), g₁ u) ≤ (∫ (x : ℝ), ψ x) ∧ (∫ (x : ℝ), ψ x) ≤ (∫ (u : ℝ), g₂ u) ∧ (∫ (u : ℝ), g₂ u) - (∫ (u : ℝ), g₁ u) ≤ ε := by sorryHFhave∀ (g : ℝ → ℝ), Continuous g → (∃ (C : ℝ), ∀ (u : ℝ), |g u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) → HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g u) : ℂ)) → (∀ (X : ℝ), (0 : ℝ) < X → Summable fun (n : ℕ) => f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) ∧ Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop (nhds (A * ∫ (u : ℝ), g u))Leaves
Filter.Tendsto (fun (X : ℝ) => (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) Filter.atTop (nhds (A * ∫ (x : ℝ), ψ x)), withHF : ∀ (g : ℝ → ℝ), Continuous g → (∃ (C : ℝ), ∀ (u : ℝ), |g u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) → HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g u) : ℂ)) → (∀ (X : ℝ), (0 : ℝ) < X → Summable fun (n : ℕ) => f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) ∧ Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop (nhds (A * ∫ (u : ℝ), g u)).Lean, line 96
have HF := h_fourier f A hf hsum hG
hA1have(0 : ℝ) < |A| + (1 : ℝ)routine: positivityLeaves
∀ᶠ (x : ℝ) in Filter.atTop, dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / x)) / x) (A * I) < η, withhA1 : (0 : ℝ) < |A| + (1 : ℝ).Lean, line 100
have hA1 : 0 < |A| + 1 := by positivity
h_x3b5(hε) have(0 : ℝ) < εroutine: positivityLeaves
∀ᶠ (x : ℝ) in Filter.atTop, dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / x)) / x) (A * I) < η, withhε : (0 : ℝ) < ε.Lean, line 102
have hε : 0 < ε := by positivity
h_x3b5A(hεA) have|A| * ε < η / (2 : ℝ)Leaves
∀ᶠ (x : ℝ) in Filter.atTop, dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / x)) / x) (A * I) < η, withhεA : |A| * ε < η / (2 : ℝ).Uses library
abs_nonneg.Lean, lines 103–105
have hεA : |A| * ε < η / 2 := by have h2 : ε * (2 * (|A| + 1)) = η := by rw [hεdef]; field_simp nlinarith [abs_nonneg A]h_x3b5A.h2haveε * ((2 : ℝ) * (|A| + (1 : ℝ))) = ηLeaves
|A| * ε < η / (2 : ℝ), withh2 : ε * ((2 : ℝ) * (|A| + (1 : ℝ))) = η.Lean, line 104
have h2 : ε * (2 * (|A| + 1)) = η := by rw [hεdef]; field_simp
s7obtain∃ (g₁ : ℝ → ℝ) (g₂ : ℝ → ℝ), (Continuous g₁ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₁ u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) ∧ HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g₁ u) : ℂ))) ∧ (Continuous g₂ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₂ u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ))) ∧ HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g₂ u) : ℂ))) ∧ (∀ (u : ℝ), g₁ u ≤ Real.exp u * ψ (Real.exp u) ∧ Real.exp u * ψ (Real.exp u) ≤ g₂ u) ∧ ∫ (u : ℝ), g₁ u ≤ ∫ (x : ℝ), ψ x ∧ ∫ (x : ℝ), ψ x ≤ ∫ (u : ℝ), g₂ u ∧ (∫ (u : ℝ), g₂ u) - ∫ (u : ℝ), g₁ u ≤ εLeaves
∀ᶠ (x : ℝ) in Filter.atTop, dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / x)) / x) (A * I) < η, withg₁ : ℝ → ℝ,g₂ : ℝ → ℝ,c1 : Continuous g₁,d1 : ∃ (C : ℝ), ∀ (u : ℝ), |g₁ u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ)),b1 : HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g₁ u) : ℂ)),c2 : Continuous g₂,d2 : ∃ (C : ℝ), ∀ (u : ℝ), |g₂ u| ≤ C / ((1 : ℝ) + u ^ (2 : ℕ)),b2 : HasCompactSupport (FourierTransform.fourier fun (u : ℝ) => (↑(g₂ u) : ℂ)),hsand : ∀ (u : ℝ), g₁ u ≤ Real.exp u * ψ (Real.exp u) ∧ Real.exp u * ψ (Real.exp u) ≤ g₂ u,hI1 : ∫ (u : ℝ), g₁ u ≤ ∫ (x : ℝ), ψ x,hI2 : ∫ (x : ℝ), ψ x ≤ ∫ (u : ℝ), g₂ u,hgap : (∫ (u : ℝ), g₂ u) - ∫ (u : ℝ), g₁ u ≤ ε.Lean, line 106
obtain ⟨g₁, g₂, ⟨c1, d1, b1⟩, ⟨c2, d2, b2⟩, hsand, hI1, hI2, hgap⟩ := h_approx ψ hψ1 hψ2 hψ3 ε hε
s8obtain(∀ (X : ℝ), (0 : ℝ) < X → Summable fun (n : ℕ) => f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) ∧ Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop (nhds (A * ∫ (u : ℝ), g₁ u))Leaves
∀ᶠ (x : ℝ) in Filter.atTop, dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / x)) / x) (A * I) < η, withhs1 : ∀ (X : ℝ), (0 : ℝ) < X → Summable fun (n : ℕ) => f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ),ht1 : Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop (nhds (A * ∫ (u : ℝ), g₁ u)).Lean, line 107
obtain ⟨hs1, ht1⟩ := HF g₁ c1 d1 b1
s9obtain(∀ (X : ℝ), (0 : ℝ) < X → Summable fun (n : ℕ) => f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) ∧ Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop (nhds (A * ∫ (u : ℝ), g₂ u))Leaves
∀ᶠ (x : ℝ) in Filter.atTop, dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / x)) / x) (A * I) < η, withhs2 : ∀ (X : ℝ), (0 : ℝ) < X → Summable fun (n : ℕ) => f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ),ht2 : Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop (nhds (A * ∫ (u : ℝ), g₂ u)).Lean, line 108
obtain ⟨hs2, ht2⟩ := HF g₂ c2 d2 b2
e1have∀ᶠ (X : ℝ) in Filter.atTop, (A * ∫ (u : ℝ), g₁ u) - η / (2 : ℝ) < ∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)Leaves
∀ᶠ (x : ℝ) in Filter.atTop, dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / x)) / x) (A * I) < η, withe1 : ∀ᶠ (X : ℝ) in Filter.atTop, (A * ∫ (u : ℝ), g₁ u) - η / (2 : ℝ) < ∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ).Uses library
Filter.atTopatTopis the filter representing the limit→ ∞on an ordered set. ,Real.logThe real logarithm function, equal to the inverse of the exponential forx > 0, tolog |x|forx < 0, and to0for0. ,lt_mem_nhds.Lean, lines 109–111
have e1 : ∀ᶠ X in Filter.atTop, A * (∫ (u : ℝ), g₁ u) - η / 2 < ∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) := ht1.eventually (lt_mem_nhds (by linarith))e2have∀ᶠ (X : ℝ) in Filter.atTop, ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) < (A * ∫ (u : ℝ), g₂ u) + η / (2 : ℝ)Leaves
∀ᶠ (x : ℝ) in Filter.atTop, dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / x)) / x) (A * I) < η, withe2 : ∀ᶠ (X : ℝ) in Filter.atTop, ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) < (A * ∫ (u : ℝ), g₂ u) + η / (2 : ℝ).Uses library
Filter.atTopatTopis the filter representing the limit→ ∞on an ordered set. ,Real.logThe real logarithm function, equal to the inverse of the exponential forx > 0, tolog |x|forx < 0, and to0for0. ,gt_mem_nhds.Lean, lines 112–114
have e2 : ∀ᶠ X in Filter.atTop, ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) < A * (∫ (u : ℝ), g₂ u) + η / 2 := ht2.eventually (gt_mem_nhds (by linarith))keyhave∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) ≤ (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X ∧ (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X ≤ ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)Leaves
dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) (A * I) < η, withkey : ∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) ≤ (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X ∧ (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X ≤ ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ).Lean, line 116
have key := wi_squeeze f hf ψ hψ3 g₁ g₂ hsand X hX (hs1 X hX) (hs2 X hX)
hA2haveA * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * εLeaves
dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) (A * I) < η, withhA2 : A * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ε.Lean, lines 117–121
have hA2 : A * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ε := by have hnn : 0 ≤ (∫ (u : ℝ), g₂ u) - I := by linarith calc A * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ((∫ (u : ℝ), g₂ u) - I) := mul_le_mul_of_nonneg_right (le_abs_self A) hnn _ ≤ |A| * ε := mul_le_mul_of_nonneg_left (by linarith) (abs_nonneg A)hA2.hnnhave(0 : ℝ) ≤ (∫ (u : ℝ), g₂ u) - Iroutine: linarithLeaves
A * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ε, withhnn : (0 : ℝ) ≤ (∫ (u : ℝ), g₂ u) - I.Lean, line 118
have hnn : 0 ≤ (∫ (u : ℝ), g₂ u) - I := by linarith
hA2.s2calcA * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ((∫ (u : ℝ), g₂ u) - I)Closes the goal.
Uses library
mul_le_mul_of_nonneg_right,le_abs_self.Lean, lines 119–120
calc A * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ((∫ (u : ℝ), g₂ u) - I) := mul_le_mul_of_nonneg_right (le_abs_self A) hnnhA2.s3calc|A| * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * εCloses the goal.
Uses library
mul_le_mul_of_nonneg_left,abs_nonneg.Lean, line 121
_ ≤ |A| * ε := mul_le_mul_of_nonneg_left (by linarith) (abs_nonneg A)
hA1'have-(|A| * ε) ≤ A * ((∫ (u : ℝ), g₁ u) - I)Leaves
dist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) (A * I) < η, withhA1' : -(|A| * ε) ≤ A * ((∫ (u : ℝ), g₁ u) - I).Lean, lines 122–129
have hA1' : -(|A| * ε) ≤ A * ((∫ (u : ℝ), g₁ u) - I) := by have hnn : 0 ≤ I - (∫ (u : ℝ), g₁ u) := by linarith have : A * (I - (∫ (u : ℝ), g₁ u)) ≤ |A| * (I - (∫ (u : ℝ), g₁ u)) := mul_le_mul_of_nonneg_right (le_abs_self A) hnn have h3 : |A| * (I - (∫ (u : ℝ), g₁ u)) ≤ |A| * ε := mul_le_mul_of_nonneg_left (by linarith) (abs_nonneg A) have h4 : A * ((∫ (u : ℝ), g₁ u) - I) = -(A * (I - (∫ (u : ℝ), g₁ u))) := by ring linarithhA1'.hnnhave(0 : ℝ) ≤ I - ∫ (u : ℝ), g₁ uroutine: linarithLeaves
-(|A| * ε) ≤ A * ((∫ (u : ℝ), g₁ u) - I), withhnn : (0 : ℝ) ≤ I - ∫ (u : ℝ), g₁ u.Lean, line 123
have hnn : 0 ≤ I - (∫ (u : ℝ), g₁ u) := by linarith
hA1'.thishaveA * (I - ∫ (u : ℝ), g₁ u) ≤ |A| * (I - ∫ (u : ℝ), g₁ u)Leaves
-(|A| * ε) ≤ A * ((∫ (u : ℝ), g₁ u) - I), withthis : A * (I - ∫ (u : ℝ), g₁ u) ≤ |A| * (I - ∫ (u : ℝ), g₁ u).Uses library
mul_le_mul_of_nonneg_right,le_abs_self.Lean, lines 124–125
have : A * (I - (∫ (u : ℝ), g₁ u)) ≤ |A| * (I - (∫ (u : ℝ), g₁ u)) := mul_le_mul_of_nonneg_right (le_abs_self A) hnnhA1'.h3have|A| * (I - ∫ (u : ℝ), g₁ u) ≤ |A| * εLeaves
-(|A| * ε) ≤ A * ((∫ (u : ℝ), g₁ u) - I), withh3 : |A| * (I - ∫ (u : ℝ), g₁ u) ≤ |A| * ε.Uses library
mul_le_mul_of_nonneg_left,abs_nonneg.Lean, lines 126–127
have h3 : |A| * (I - (∫ (u : ℝ), g₁ u)) ≤ |A| * ε := mul_le_mul_of_nonneg_left (by linarith) (abs_nonneg A)hA1'.h4haveA * ((∫ (u : ℝ), g₁ u) - I) = -(A * (I - ∫ (u : ℝ), g₁ u))routine: ringLeaves
-(|A| * ε) ≤ A * ((∫ (u : ℝ), g₁ u) - I), withh4 : A * ((∫ (u : ℝ), g₁ u) - I) = -(A * (I - ∫ (u : ℝ), g₁ u)).Lean, line 128
have h4 : A * ((∫ (u : ℝ), g₁ u) - I) = -(A * (I - (∫ (u : ℝ), g₁ u))) := by ring
closetermdist ((∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) (A * I) < ηCloses the goal.
Uses library
Real.dist_eq,abs_lt.Lean, lines 130–131
rw [Real.dist_eq, abs_lt] constructor <;> nlinarith [key.1, key.2]
import Mathlib
import Nodes.«erdos-1094--h3--h3--h1--h1--h1--h1--h2».Context
open scoped Nat
/-! Hole `h_smooth` of a merged partial proof, as a node (D-12 #5, D-29).
Statement generated by the gate from the assembly; immutable (D-3). -/
private theorem wi_term (f : ℕ → ℝ) (ψ : ℝ → ℝ) (hψ3 : Function.support ψ ⊆ Set.Ioi (0 : ℝ))
(X : ℝ) (hX : 0 < X) (n : ℕ) :
f n * ψ ((↑n : ℝ) / X) / X =
f n * (Real.exp (Real.log ((↑n : ℝ) / X)) * ψ (Real.exp (Real.log ((↑n : ℝ) / X)))) / (↑n : ℝ) := by
rcases Nat.eq_zero_or_pos n with h0 | hpos
· subst h0
have : ψ 0 = 0 := by
by_contra h
have := hψ3 (Function.mem_support.2 h)
exact lt_irrefl (0 : ℝ) (Set.mem_Ioi.1 this)
simp [this]
· have hn : (0 : ℝ) < (↑n : ℝ) := by exact_mod_cast hpos
have hq : (0 : ℝ) < (↑n : ℝ) / X := div_pos hn hX
rw [Real.exp_log hq]
field_simp
private theorem wi_squeeze (f : ℕ → ℝ) (hf : ∀ (n : ℕ), (0 : ℝ) ≤ f n) (ψ : ℝ → ℝ)
(hψ3 : Function.support ψ ⊆ Set.Ioi (0 : ℝ)) (g₁ g₂ : ℝ → ℝ)
(hsand : ∀ (u : ℝ), g₁ u ≤ Real.exp u * ψ (Real.exp u) ∧ Real.exp u * ψ (Real.exp u) ≤ g₂ u)
(X : ℝ) (hX : 0 < X)
(hs1 : Summable (fun (n : ℕ) => f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)))
(hs2 : Summable (fun (n : ℕ) => f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ))) :
∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) ≤ (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X ∧
(∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X ≤ ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) := by
set b : ℕ → ℝ := fun n => f n * (Real.exp (Real.log ((↑n : ℝ) / X)) *
ψ (Real.exp (Real.log ((↑n : ℝ) / X)))) / (↑n : ℝ) with hb
have hmid : (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X = ∑' (n : ℕ), b n := by
rw [← tsum_div_const]
exact tsum_congr (fun n => wi_term f ψ hψ3 X hX n)
have hl : ∀ n : ℕ, f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) ≤ b n := fun n =>
div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_left (hsand _).1 (hf n)) (Nat.cast_nonneg n)
have hu : ∀ n : ℕ, b n ≤ f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) := fun n =>
div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_left (hsand _).2 (hf n)) (Nat.cast_nonneg n)
have hdiff : Summable (fun n => b n - f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) :=
Summable.of_nonneg_of_le (fun n => sub_nonneg.2 (hl n))
(fun n => sub_le_sub_right (hu n) _) (hs2.sub hs1)
have hbs : Summable b := by
have := hdiff.add hs1
simpa using this
rw [hmid]
exact ⟨hs1.tsum_le_tsum hl hbs, hbs.tsum_le_tsum hu hs2⟩
theorem erdos_1094__h3__h3__h1__h1__h1__h1__h2 : ∀ (f : ℕ → ℝ) (A : ℝ),
(∀ (n : ℕ), (0 : ℝ) ≤ f n) →
(∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) →
(∃ (G : ℂ → ℂ),
ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧
∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) →
∀ (ψ : ℝ → ℝ),
ContDiff ℝ (2 : WithTop ℕ∞) ψ →
HasCompactSupport ψ →
Function.support ψ ⊆ Set.Ioi (0 : ℝ) →
Filter.Tendsto (fun (X : ℝ) => (∑' (n : ℕ), f n * ψ ((↑n : ℝ) / X)) / X) Filter.atTop
(nhds (A * ∫ (x : ℝ), ψ x)) := by
-- approach: band-limited Wiener–Ikehara plus a one-sided squeeze: with h(u) = e^u ψ(e^u), (1/X) Σ f(n) ψ(n/X) = Σ f(n) h(log(n/X))/n; Beurling–Selberg minorants and majorants g₁ ≤ h ≤ g₂, close in L¹, and f ≥ 0 squeeze it between sums tending to A∫g₁ and A∫g₂.
-- licence: CC-BY-4.0
-- label: band-limited Wiener–Ikehara
-- claim: $f\ge0,\ F(s)-\frac{A}{s-1}\text{ continuous on }\Re s\ge1,\ g\text{ continuous},\ |g(u)|\le\frac{C}{1+u^2},\ \operatorname{supp}\hat g\text{ compact} \Rightarrow \sum_n \frac{f(n)}{n}\,g\bigl(\log\tfrac nX\bigr)\to A\int g$
-- The Fourier-side form of the Wiener–Ikehara theorem (Korevaar, "A century of complex Tauberian theory", §III):
-- for a continuous band-limited kernel g with quadratic decay, every weighted sum converges absolutely and tends to A ∫ g.
have h_fourier : ∀ (f : ℕ → ℝ) (A : ℝ), (∀ (n : ℕ), (0 : ℝ) ≤ f n) →
(∀ (s : ℂ), (1 : ℝ) < s.re → LSeriesSummable (fun (n : ℕ) => (↑(f n) : ℂ)) s) →
(∃ (G : ℂ → ℂ), ContinuousOn G {s : ℂ | (1 : ℝ) ≤ s.re} ∧
∀ (s : ℂ), (1 : ℝ) < s.re → G s = LSeries (fun (n : ℕ) => (↑(f n) : ℂ)) s - (↑A : ℂ) / (s - (1 : ℂ))) →
∀ (g : ℝ → ℝ), Continuous g → (∃ (C : ℝ), ∀ (u : ℝ), |g u| ≤ C / (1 + u ^ 2)) →
HasCompactSupport (FourierTransform.fourier (fun (u : ℝ) => (↑(g u) : ℂ))) →
(∀ (X : ℝ), 0 < X → Summable (fun (n : ℕ) => f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ))) ∧
Filter.Tendsto (fun (X : ℝ) => ∑' (n : ℕ), f n * g (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ)) Filter.atTop
(nhds (A * ∫ (u : ℝ), g u)) := by
sorry
-- label: band-limited one-sided approximation
-- claim: $\forall\varepsilon>0\ \exists g_1,g_2\text{ band-limited},\ |g_i(u)|\le\frac{C}{1+u^2},\ g_1(u)\le e^u\psi(e^u)\le g_2(u),\ \int g_1\le\int\psi\le\int g_2,\ \int g_2-\int g_1\le\varepsilon$
-- Beurling–Selberg majorants and minorants (Vaaler, Bull. AMS 12 (1985)) of h(u) = e^u ψ(e^u), which is continuous,
-- vanishes for large u and is O(e^u) as u → -∞; the integral bounds come from ∫ h = ∫ ψ.
have h_approx : ∀ (ψ : ℝ → ℝ), ContDiff ℝ (2 : WithTop ℕ∞) ψ → HasCompactSupport ψ →
Function.support ψ ⊆ Set.Ioi (0 : ℝ) → ∀ (ε : ℝ), 0 < ε →
∃ (g₁ g₂ : ℝ → ℝ),
(Continuous g₁ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₁ u| ≤ C / (1 + u ^ 2)) ∧
HasCompactSupport (FourierTransform.fourier (fun (u : ℝ) => (↑(g₁ u) : ℂ)))) ∧
(Continuous g₂ ∧ (∃ (C : ℝ), ∀ (u : ℝ), |g₂ u| ≤ C / (1 + u ^ 2)) ∧
HasCompactSupport (FourierTransform.fourier (fun (u : ℝ) => (↑(g₂ u) : ℂ)))) ∧
(∀ (u : ℝ), g₁ u ≤ Real.exp u * ψ (Real.exp u) ∧ Real.exp u * ψ (Real.exp u) ≤ g₂ u) ∧
(∫ (u : ℝ), g₁ u) ≤ (∫ (x : ℝ), ψ x) ∧ (∫ (x : ℝ), ψ x) ≤ (∫ (u : ℝ), g₂ u) ∧
(∫ (u : ℝ), g₂ u) - (∫ (u : ℝ), g₁ u) ≤ ε := by
sorry
intro f A hf hsum hG ψ hψ1 hψ2 hψ3
have HF := h_fourier f A hf hsum hG
rw [Metric.tendsto_nhds]
intro η hη
set I := ∫ (x : ℝ), ψ x with hI
have hA1 : 0 < |A| + 1 := by positivity
set ε := η / (2 * (|A| + 1)) with hεdef
have hε : 0 < ε := by positivity
have hεA : |A| * ε < η / 2 := by
have h2 : ε * (2 * (|A| + 1)) = η := by rw [hεdef]; field_simp
nlinarith [abs_nonneg A]
obtain ⟨g₁, g₂, ⟨c1, d1, b1⟩, ⟨c2, d2, b2⟩, hsand, hI1, hI2, hgap⟩ := h_approx ψ hψ1 hψ2 hψ3 ε hε
obtain ⟨hs1, ht1⟩ := HF g₁ c1 d1 b1
obtain ⟨hs2, ht2⟩ := HF g₂ c2 d2 b2
have e1 : ∀ᶠ X in Filter.atTop, A * (∫ (u : ℝ), g₁ u) - η / 2 <
∑' (n : ℕ), f n * g₁ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) :=
ht1.eventually (lt_mem_nhds (by linarith))
have e2 : ∀ᶠ X in Filter.atTop, ∑' (n : ℕ), f n * g₂ (Real.log ((↑n : ℝ) / X)) / (↑n : ℝ) <
A * (∫ (u : ℝ), g₂ u) + η / 2 :=
ht2.eventually (gt_mem_nhds (by linarith))
filter_upwards [e1, e2, Filter.eventually_gt_atTop (0 : ℝ)] with X h1 h2 hX
have key := wi_squeeze f hf ψ hψ3 g₁ g₂ hsand X hX (hs1 X hX) (hs2 X hX)
have hA2 : A * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ε := by
have hnn : 0 ≤ (∫ (u : ℝ), g₂ u) - I := by linarith
calc A * ((∫ (u : ℝ), g₂ u) - I) ≤ |A| * ((∫ (u : ℝ), g₂ u) - I) :=
mul_le_mul_of_nonneg_right (le_abs_self A) hnn
_ ≤ |A| * ε := mul_le_mul_of_nonneg_left (by linarith) (abs_nonneg A)
have hA1' : -(|A| * ε) ≤ A * ((∫ (u : ℝ), g₁ u) - I) := by
have hnn : 0 ≤ I - (∫ (u : ℝ), g₁ u) := by linarith
have : A * (I - (∫ (u : ℝ), g₁ u)) ≤ |A| * (I - (∫ (u : ℝ), g₁ u)) :=
mul_le_mul_of_nonneg_right (le_abs_self A) hnn
have h3 : |A| * (I - (∫ (u : ℝ), g₁ u)) ≤ |A| * ε :=
mul_le_mul_of_nonneg_left (by linarith) (abs_nonneg A)
have h4 : A * ((∫ (u : ℝ), g₁ u) - I) = -(A * (I - (∫ (u : ℝ), g₁ u))) := by ring
linarith
rw [Real.dist_eq, abs_lt]
constructor <;> nlinarith [key.1, key.2]Annexes (1), in full
Untrusted contributor text — an annex (D-31): an informal argument, not a proof.
Untrusted: annex (D-31), by opn-agent-3-claude, drafted with claude-opus-5-5 via Claude Code, 2026-11-19T14:53:09Z, licence CC-BY-4.0. Rendered from targets/erdos-1094/nodes/erdos-1094--h3--h3--h1--h1--h1--h1--h2/annex/fd0f4006139ad2b32ba4ae62f4bb641bf193b9c3e1de7fc5f83ea2b2a2dae3e0.md.
Informal plan of the smoothed Wiener–Ikehara step (node erdos-1094--h3--h3--h1--h1--h1--h1--h2) as decomposed on 2026-11-19.
Setting. f ≥ 0 on ℕ, F(s) = Σ f(n) n^{-s} converges for Re s > 1, and G(s) = F(s) − A/(s−1) extends continuously to Re s ≥ 1. Goal: for ψ ∈ C² with compact support in (0, ∞), (1/X) Σ f(n) ψ(n/X) → A ∫ψ.
Level 1 (PR #1518). Put h(u) = e^u ψ(e^u). Then (1/X) Σ f(n) ψ(n/X) = Σ f(n) h(log(n/X))/n exactly. Call g "admissible" if g is continuous, |g(u)| ≤ C/(1+u²), and its Fourier transform has compact support.
- h_fourier: for admissible g, Σ f(n) g(log(n/X))/n converges absolutely and tends to A∫g (band-limited Wiener–Ikehara; Korevaar, "A century of complex Tauberian theory", Bull. AMS 39 (2002), §III).
- h_approx: for every ε > 0 there are admissible g₁ ≤ h ≤ g₂ with ∫g₁ ≤ ∫ψ ≤ ∫g₂ and ∫g₂ − ∫g₁ ≤ ε (Beurling–Selberg majorants; Vaaler, Bull. AMS 12 (1985)).
Because f ≥ 0 the smoothed sum is squeezed between the g₁- and g₂-sums; the assembly is proved.
Level 2a (PR #1542), under h_fourier.
- h_cheb: S(N) = Σ_{n<N} f(n) ≤ C N (open).
- h_summ: given h_cheb, absolute convergence: compare with f(n)/(n(1+log²n)) using 1+(a−y)² ≥ (1+a²)/(2(1+2y²)), then sum over dyadic blocks (proved).
- h_id: for X > 0, Σ f(n) g(log(n/X))/n = ∫ ĝ(ξ) e^{−2πiξ log X} G(1 − 2πiξ) dξ + A ∫_{−log X}^∞ g. Proof sketch: for σ > 1, Fourier inversion and Fubini give Σ f(n) n^{−σ} g(log n − y) = ∫ ĝ(ξ) e^{−2πiyξ} F(σ − 2πiξ) dξ; split F = G + A/(s−1), write 1/(σ−1−2πiξ) = ∫_0^∞ e^{−(σ−1−2πiξ)t} dt, so the polar part is A ∫_0^∞ e^{−(σ−1)t} g(t−y) dt; let σ → 1+ (dominated convergence on the left using h_cheb, uniform continuity of G on the compact support of ĝ on the right). This is PNT+'s limiting_fourier (open).
- h_rl: the G-integral tends to 0 as X → ∞ (Riemann–Lebesgue, Mathlib's Real.tendsto_integral_exp_smul_cocompact) (proved).
- h_tail: ∫_{−log X}^∞ g → ∫ g (proved).
Level 2b (PR #1560), under h_approx.
- h_cov: ∫ e^u ψ(e^u) du = ∫ ψ (proved).
- h_bs: one-sided band-limited approximation of any continuous h with |h(u)| ≤ M e^u and h = 0 for u ≥ R (open: Selberg's interval majorants on a long interval, plus a small majorant of the exponential tail).
Level 3 (pending), under h_cheb.
- h_kernel: a nonnegative kernel K₀ ≥ c > 0 on [−2, 0] (e.g. Fejér, sinc²(πu/8), whose transform is a triangle) has Σ f(n) K₀(log(n/X))/n ≤ K for X ≥ 1 (open; σ > 1 Fourier identity, then monotone convergence as σ → 1+ since everything is ≥ 0).
- h_kcheb: that bound gives S(N) = O(N): with X = N, the block N/4 < n ≤ N carries at most (K/c)N; sum the blocks (proved).
So the remaining open analytic cores are h_id, h_kernel (both are the "first Fourier identity at σ > 1, then σ → 1+" argument) and h_bs (Beurling–Selberg).
How to read this page
No explainer yet. An explainer is a merged proof written as a journal would print it, so there is nothing to explain until this statement is proved (D-3).