Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

fix(Lib/General/Analysis/FourierTransforms): pass .univ and deduplicate class binders

Rohan Arundabc6313671d
diff --git a/src/Lib/General/Analysis/FourierTransforms.lean b/src/Lib/General/Analysis/FourierTransforms.lean
index b59b66f5012..93d39883cc5 100644
--- a/src/Lib/General/Analysis/FourierTransforms.lean
+++ b/src/Lib/General/Analysis/FourierTransforms.lean
@@ -178,11 +178,10 @@ lemma mul_quotMean_translate [hχ : IsDualFamily B₀ χ] (hF : IsContPeriodic B
simp only [hχ.add_right, mul_assoc, mul_left_comm (χ i a)]
/-- For a dual family `χ` of characters of `B` modulo `B₀` on a compact quotient, the span
-of the `L²` images of `i ↦ star (χ i · out)` is dense in `Lp ℂ 2 (.addHaarMeasure ⊤)`. -/
-private lemma dense_toLp_span_char [IsTopologicalAddGroup B] [CompactSpace (B ⧸ B₀)]
- [hχ : IsDualFamily B₀ χ] :
+of the `L²` images of `i ↦ star (χ i · out)` is dense in `Lp ℂ 2 (.addHaarMeasure .univ)`. -/
+private lemma dense_toLp_span_char [hχ : IsDualFamily B₀ χ] :
⊤ ≤ (span ℂ (range (fun i : I ↦
- toLp 2 (Measure.addHaarMeasure (⊤ : Set (B ⧸ B₀))) ℂ
+ toLp 2 (Measure.addHaarMeasure .univ) ℂ
(star ⟨fun q : B ⧸ B₀ ↦ χ i q.out, (hχ.periodic i).continuous_out⟩)))).topologicalClosure := by
classical
let c : AddChar I C(B ⧸ B₀, ℂ) :=
@@ -190,7 +189,7 @@ private lemma dense_toLp_span_char [IsTopologicalAddGroup B] [CompactSpace (B
map_zero_eq_one' := by simp [ext_iff, hχ.zero_apply]
map_add_eq_mul' i j := by simp [ext_iff, hχ.add_left] }
have c_apply (i : I) (q : B ⧸ B₀) : c i q = χ (-i) q.out := hχ.conj_apply i q.out
- let μ : Measure (B ⧸ B₀) := .addHaarMeasure ⊤
+ let μ : Measure (B ⧸ B₀) := .addHaarMeasure .univ
let toL2 : C(B ⧸ B₀, ℂ) →L[ℂ] Lp ℂ 2 μ := toLp 2 μ ℂ
have h_dense : Dense (span ℂ (range c) : Set C(B ⧸ B₀, ℂ)) := by
have star_c (i : I) : c (-i) = star (c i) := by simp [ext_iff, c_apply, hχ.conj_apply]
@@ -229,7 +228,7 @@ lemma fourier_inversion [hχ : IsDualFamily B₀ χ] (hF : IsContPeriodic B₀ F
simpa [inner_c, c_apply, quotMean, hχ.add_left, μ, add_neg_eq_zero] using
quotMean_eq_ite (B₀ := B₀) (i + -j)
have h_dense_L2 : ⊤ ≤ (span ℂ (range (toL2 ∘ c))).topologicalClosure :=
- dense_toLp_span_char (B := B) (B₀ := B₀) (χ := χ)
+ dense_toLp_span_char
-- `F` as a function on the quotient; the terms of its Fourier series are `a i • c i`.
let F' : C(B ⧸ B₀, ℂ) := ⟨fun q ↦ F q.out, hF.continuous_out⟩
have h_summable : Summable fun i ↦ a i • c i :=