Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
keep the stated steps; prove the measurability side goals by fun_prop
sangxsh6a304a56e33d
diff --git a/src/New/Spanning/Bessel/LargeFunction.lean b/src/New/Spanning/Bessel/LargeFunction.leanindex dfe4debd7e1..e0291ebc8ae 100644--- a/src/New/Spanning/Bessel/LargeFunction.lean+++ b/src/New/Spanning/Bessel/LargeFunction.lean@@ -157,13 +157,36 @@ lemma lintegral_unfold_besselGraphMeasure {x : 𝔰.G₁} (f : 𝔰.G₁ → ENN-- Write `s = k * u` with `k` in `H` and `u` in `𝖴`. The integrals over `u` and `y` unfold to one-- over the whole group, where left invariance removes `x * k`; and `H` has total mass `1`.have : ContinuousMul 𝔰.G₁ := continuousMul_G₁- have : MeasurableSMul₂ (𝔰.middleGram (1 : ℂ)).besselU 𝔰.G₁ :=- ⟨((continuous_subtypeVal.comp continuous_fst).fun_mul continuous_snd).measurable⟩+ have : MeasurableSMul₂ (𝔰.middleGram (1 : ℂ)).besselU 𝔰.G₁ := ⟨by fun_prop⟩have : SMulInvariantMeasure (𝔰.middleGram (1 : ℂ)).besselU 𝔰.G₁ volume :=⟨fun c s _ ↦ measure_preimage_mul volume c.val s⟩- simp (disch := fun_prop) [lintegral_map, lintegral_prod, Shape.besselGraphMeasure, mul_assoc]- erw [lintegral_orbitMeasure_lintegral (f := fun g ↦ ∫⁻ k, f (x * (embedH k * g))),- lintegral_lintegral_swap] <;> simp [← mul_assoc, lintegral_mul_left_eq_self] <;> fun_prop+ have hf_kg : Measurable fun p : 𝔰.G₁ × U (1 : Matrix 𝔰.κ 𝔰.κ ℂ) ↦+ f (x * (embedH p.2 * p.1)) := by fun_prop+ have h_orbit :+ ∫⁻ y : 𝔰.G₁, ∫⁻ u : (𝔰.middleGram (1 : ℂ)).besselU, ∫⁻ k : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ),+ f (x * (embedH k * (u.val * y))) ∂volume ∂𝔰.besselHaar ∂besselQuotMeasure =+ ∫⁻ g : 𝔰.G₁, ∫⁻ k : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ), f (x * (embedH k * g)) :=+ lintegral_orbitMeasure_lintegral+ (f := fun g : 𝔰.G₁ ↦ ∫⁻ k, f (x * (embedH k * g))) hf_kg.lintegral_prod_right'+ have h_inner (y : 𝔰.G₁) : ∫⁻ s : 𝔰.besselGraph, f (x * (s.val.fst * y)) ∂𝔰.besselGraphMeasure =+ ∫⁻ u : (𝔰.middleGram (1 : ℂ)).besselU, ∫⁻ k : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ),+ f (x * (embedH k * (u.val * y))) ∂volume ∂𝔰.besselHaar := by+ have hf_s : Measurable fun s : 𝔰.besselGraph ↦ f (x * (s.val.fst * y)) := by fun_prop+ rw [Shape.besselGraphMeasure, lintegral_map hf_s 𝔰.besselGraphChart.measurable]+ simp only [Shape.besselGraphChart_apply_coe]+ rw [lintegral_prod+ (fun p : (𝔰.middleGram (1 : ℂ)).besselU × U (1 : Matrix 𝔰.κ 𝔰.κ ℂ) ↦+ f (x * (embedH p.2 * p.1.val * y)))+ (hf_s.comp 𝔰.besselGraphChart.measurable).aemeasurable]+ simp only [mul_assoc]+ simp_rw [h_inner]+ rw [h_orbit, lintegral_lintegral_swap hf_kg.aemeasurable]+ have h_const (k : U (1 : Matrix 𝔰.κ 𝔰.κ ℂ)) :+ ∫⁻ g : 𝔰.G₁, f (x * (embedH k * g)) = ∫⁻ g : 𝔰.G₁, f g := by+ simp only [← mul_assoc]+ exact lintegral_mul_left_eq_self f (x * embedH k)+ simp_rw [h_const]+ rw [lintegral_const, measure_univ, mul_one]/-- For `s` in `besselGraph` (the group `R`), its first component `s.val.fst` lowers the flag of theframe `e₁, …, e_ϱ, z`: `(s.val.fst - 1) * frameCols = isotropicCols * N` for some strictly