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): rewrite span range to mrange in helper

Rohan Arunad284408695f
diff --git a/src/Lib/General/Analysis/FourierTransforms.lean b/src/Lib/General/Analysis/FourierTransforms.lean
index 81fd77be4bf..4fde5e6ca46 100644
--- a/src/Lib/General/Analysis/FourierTransforms.lean
+++ b/src/Lib/General/Analysis/FourierTransforms.lean
@@ -187,9 +187,12 @@ private lemma dense_toLp_span_char [hχ : IsDualFamily B₀ χ]
have 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)
- 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)
+ have h_span_eq : (span ℂ (range ⇑c) : Set C(B ⧸ B₀, ℂ)) =
+ span ℂ (MonoidHom.mrange c.toMonoidHom : Set C(B ⧸ B₀, ℂ)) := by
+ congr 2
+ rw [h_span_eq]
+ exact 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.