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): use addHaarMeasure ⊤ and span_induction
Rohan Arunde8628cb175a
diff --git a/src/Lib/General/Analysis/FourierTransforms.lean b/src/Lib/General/Analysis/FourierTransforms.leanindex 93d39883cc5..c6a79d25e7d 100644--- a/src/Lib/General/Analysis/FourierTransforms.lean+++ b/src/Lib/General/Analysis/FourierTransforms.lean@@ -178,28 +178,43 @@ 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 .univ)`. -/+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 .univ) ℂ- (star ⟨fun q : B ⧸ B₀ ↦ χ i q.out, (hχ.periodic i).continuous_out⟩)))).topologicalClosure := by+ toLp 2 (Measure.addHaarMeasure ⊤) ℂ+ (star ⟨fun q : B ⧸ B₀ ↦ χ i q.out,+ (hχ.periodic i).continuous_out⟩)))).topologicalClosure := byclassicallet 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 .univ+ 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)- exact stone_weierstrass_span (MonoidHom.mrange c.toMonoidHom)+ have h_sw := stone_weierstrass_span (MonoidHom.mrange c.toMonoidHom)(by simpa using fun i ↦ ⟨-i, star_c i⟩) (by simpa using h_separates)- 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+ 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/-- 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