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 c into dense_toLp_span_char
Rohan Arunc722d6350a9c
diff --git a/src/Lib/General/Analysis/FourierTransforms.lean b/src/Lib/General/Analysis/FourierTransforms.leanindex c6a79d25e7d..81fd77be4bf 100644--- a/src/Lib/General/Analysis/FourierTransforms.lean+++ b/src/Lib/General/Analysis/FourierTransforms.lean@@ -178,43 +178,24 @@ lemma mul_quotMean_translate [hχ : IsDualFamily B₀ χ] (hF : IsContPeriodic Bsimp 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 [hχ : IsDualFamily B₀ χ] :- ⊤ ≤ (span ℂ (range (fun i : I ↦- toLp 2 (Measure.addHaarMeasure ⊤) ℂ- (star ⟨fun q : B ⧸ B₀ ↦ χ i q.out,- (hχ.periodic i).continuous_out⟩)))).topologicalClosure := by+of the `L²` images of `c` is dense in `Lp ℂ 2 (.addHaarMeasure ⊤)`. -/+private lemma dense_toLp_span_char [hχ : IsDualFamily B₀ χ]+ (c : AddChar I C(B ⧸ B₀, ℂ)) (c_apply : ∀ i q, c i q = χ (-i) q.out) :+ ⊤ ≤ (span ℂ (range (toLp 2 (Measure.addHaarMeasure ⊤) ℂ ∘ c))).topologicalClosure := byclassical- let c : AddChar I C(B ⧸ B₀, ℂ) :=- { toFun i := star ⟨fun q ↦ χ i q.out, (hχ.periodic i).continuous_out⟩- 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 toL2 : C(B ⧸ B₀, ℂ) →L[ℂ] Lp ℂ 2 μ := toLp 2 μ ℂhave h_dense : Dense (span ℂ (range c) : Set C(B ⧸ B₀, ℂ)) := byhave star_c (i : I) : c (-i) = star (c i) := by simp [ext_iff, c_apply, hχ.conj_apply]have h_separates (p q : B ⧸ B₀) (hpq : ∀ i : I, c i p = c i q) : p = q :=hχ.eq_of_forall_apply_out_eq fun i ↦ by simpa [c_apply] using hpq (-i)- have h_sw := stone_weierstrass_span (MonoidHom.mrange c.toMonoidHom)- (by simpa using fun i ↦ ⟨-i, star_c i⟩) (by simpa using h_separates)- convert h_sw using 3; ext f; simp- rw [top_le_iff, ← dense_iff_topologicalClosure_eq_top]- convert (toLp_denseRange ℂ μ ℂ (by simp)).dense_image toL2.continuous h_dense using 2- ext y; rw [Set.mem_image, SetLike.mem_coe]; constructor- · intro hy; induction hy using Submodule.span_induction with- | mem g hg => rcases hg with ⟨i, rfl⟩; exact ⟨c i, subset_span ⟨i, rfl⟩, rfl⟩- | zero => exact ⟨0, zero_mem _, by simp [toL2]⟩- | add u v _ _ hu hv =>- rcases hu with ⟨fu, hfu, rfl⟩; rcases hv with ⟨fv, hfv, rfl⟩- exact ⟨fu + fv, add_mem hfu hfv, by simp [toL2]⟩- | smul r u _ hu =>- rcases hu with ⟨fu, hfu, rfl⟩; exact ⟨r • fu, smul_mem _ r hfu, by simp [toL2]⟩- · rintro ⟨f, hf, rfl⟩; induction hf using Submodule.span_induction with- | mem g hg => rcases hg with ⟨i, rfl⟩; exact subset_span ⟨i, rfl⟩- | zero => simp [toL2, zero_mem]- | add u v _ _ hu hv => simpa [toL2] using add_mem hu hv- | smul r u _ hu => simpa [toL2] using smul_mem _ r hu+ simpa [Subalgebra.top_eq, ← Submodule.top_eq, ← dense_iff_topologicalClosure_eq_top] using+ stone_weierstrass_span (MonoidHom.mrange c.toMonoidHom)+ (by simpa using fun i ↦ ⟨-i, star_c i⟩) (by simpa using h_separates)+ let μ : Measure (B ⧸ B₀) := .addHaarMeasure ⊤+ let toL2 : C(B ⧸ B₀, ℂ) →L[ℂ] Lp ℂ 2 μ := toLp 2 μ ℂ+ -- The span of the image of `c` is the image of its dense span.+ rw [top_le_iff, ← dense_iff_topologicalClosure_eq_top, range_comp, ← toL2.coe_coe,+ span_image, map_coe]+ exact (toLp_denseRange ℂ μ ℂ (by simp)).dense_image toL2.continuous h_dense/-- Fourier inversion for a dual family `χ` of characters of `B` modulo `B₀` (characters `χ i`trivial on `B₀`, with `i ↦ χ i` an injective homomorphism, separating `B ⧸ B₀`): if `F` is@@ -243,7 +224,7 @@ lemma fourier_inversion [hχ : IsDualFamily B₀ χ] (hF : IsContPeriodic B₀ Fsimpa [inner_c, c_apply, quotMean, hχ.add_left, μ, add_neg_eq_zero] usingquotMean_eq_ite (B₀ := B₀) (i + -j)have h_dense_L2 : ⊤ ≤ (span ℂ (range (toL2 ∘ c))).topologicalClosure :=- dense_toLp_span_char+ dense_toLp_span_char c c_apply-- `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 :=