Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(Lib/General/Measure): remove the unused Gaussian inverse-power integral
√2ee458daceab0
diff --git a/src/Lib/General/Measure/HaarNormalisation.lean b/src/Lib/General/Measure/HaarNormalisation.leanindex 2d9f3d4bf4a..bc81e5201a8 100644--- a/src/Lib/General/Measure/HaarNormalisation.lean+++ b/src/Lib/General/Measure/HaarNormalisation.lean@@ -25,8 +25,6 @@ to finite sums. A normalisation of volumes by Gaussian integrals is defined. Itsubgroup `L` integrates to `ν (L ∩ M)` times a finite sum over `M ⧸ (L ∩ M)`.* `New.HasGaussianIntegral`: the Gaussian normalisation of a volume.* `New.HasGaussianIntegral.pi`: the normalisation on a finite power.-* `New.lintegral_inv_add_rpow`: the integral of `(c + q x) ^ (-s)`, computed through the Gamma- function.-/@[expose] public section@@ -139,23 +137,6 @@ namespace Newopen MeasureTheory Real GaussianFourier Finset Fintype-/-- If `f` is nonnegative almost everywhere and its Bochner integral is `v ≠ 0`, then its lower-Lebesgue integral is `v`. No integrability is assumed: it follows from `v ≠ 0`. -/-lemma lintegral_ofReal_eq_of_integral_eq {β : Type*} [MeasurableSpace β] {ν : Measure β}- {f : β → ℝ} {v : ℝ} (hv : ∫ x : β, f x ∂ν = v) (hv_ne : v ≠ 0) (hf : 0 ≤ᵐ[ν] f) :- ∫⁻ x : β, ENNReal.ofReal (f x) ∂ν = ENNReal.ofReal v := by- rw [← ofReal_integral_eq_lintegral_ofReal (.of_integral_ne_zero (hv.trans_ne hv_ne)) hf, hv]--/-- The Gamma integral as a lower integral: for positive `b`, `r` and `K`, the integral of-`K t ^ (b - 1) exp (-r t)` over `t > 0` is `K r ^ (-b) Γ(b)`. -/-lemma lintegral_const_mul_rpow_mul_exp_neg_mul_Ioi {b r K : ℝ} (hb : 0 < b) (hr : 0 < r)- (hK : 0 < K) :- ∫⁻ t : ℝ in Set.Ioi 0, ENNReal.ofReal (K * (t ^ (b - 1) * rexp (-(r * t)))) =- ENNReal.ofReal (K * ((1 / r) ^ b * Gamma b)) := by- refine lintegral_ofReal_eq_of_integral_eq ?_ (by positivity)- (ae_restrict_of_forall_mem measurableSet_Ioi fun t (ht : 0 < t) ↦ by positivity)- rw [integral_const_mul, integral_rpow_mul_exp_neg_mul_Ioi hb hr]-variable {V : Type} {W : Type} [MeasureSpace V] [MeasureSpace W]{q : V → ℝ} {q' : W → ℝ} {a b : ℝ} {ι : Type} [Fintype ι][SigmaFinite (volume : Measure V)] [SFinite (volume : Measure W)]@@ -166,34 +147,6 @@ class HasGaussianIntegral (a : outParam ℝ) (q : outParam (V → ℝ)) : Prop w/-- For `t > 0`, the integral of `exp (-t * q x)` over `V` is `(π / t) ^ a`. -/integral_exp_eq {t : ℝ} : 0 < t → ∫ x : V, exp (-t * q x) = (π / t) ^ a-/-- Let the volume on `V` be σ-finite with `∫ exp (-t q) = (π / t) ^ a` for all `t > 0`, and let-`q ≥ 0` be measurable. For `c > 0`, `s > 0` and `a < s`, the lower integral of `(c + q) ^ (-s)` is-`π ^ a c ^ (a - s) Γ(s - a) / Γ(s)`. -/-lemma lintegral_inv_add_rpow [h : HasGaussianIntegral a q] {s c : ℝ} (hc : 0 < c) (ha : a < s)- (hq_nonneg : ∀ x : V, 0 ≤ q x) (hs : 0 < s) (hq : Measurable q := by fun_prop) :- ∫⁻ x : V, ENNReal.ofReal ((c + q x)⁻¹ ^ s) =- ENNReal.ofReal (π ^ a / Gamma s * ((1 / c) ^ (s - a) * Gamma (s - a))) := by- -- Write `(c + q x)⁻¹ ^ s` as the Gamma integral `Γ(s)⁻¹ ∫ t ^ (s - 1) exp (-(c + q x) t) dt`,- -- swap the integrals, integrate in `x` by `HasGaussianIntegral.integral_exp_eq`, and read the- -- result as a Gamma integral.- let F (x : V) (t : ℝ) : ℝ := (Gamma s)⁻¹ * (t ^ (s - 1) * rexp (-((c + q x) * t)))- rw [← lintegral_const_mul_rpow_mul_exp_neg_mul_Ioi (sub_pos.2 ha) hc (by positivity),- lintegral_congr (g := fun x ↦ ∫⁻ t in Set.Ioi 0, ENNReal.ofReal (F x t)) fun x ↦ by- rw [lintegral_const_mul_rpow_mul_exp_neg_mul_Ioi hs- (add_pos_of_pos_of_nonneg hc (hq_nonneg x)) (by positivity)]- exact congrArg ENNReal.ofReal (by field_simp),- lintegral_lintegral_swap (by fun_prop)]- refine setLIntegral_congr_fun measurableSet_Ioi fun t (ht : 0 < t) ↦- lintegral_ofReal_eq_of_integral_eq ?_ (by positivity)- (.of_forall fun x ↦ show 0 ≤ F x t by positivity)- have h_split (x : V) :- F x t = (Gamma s)⁻¹ * t ^ (s - 1) * rexp (-(c * t)) * rexp (-t * q x) := by- simp only [F, mul_assoc, ← exp_add]- ring_nf- simp only [h_split, integral_const_mul, h.integral_exp_eq ht]- rw [div_rpow pi_pos.le ht.le, sub_right_comm, rpow_sub ht (s - 1) a]- ring-/-- The Gaussian integral on `ℝ`: the integral of `exp (-t x²)` is `(π / t) ^ (1 / 2)`. -/instance : HasGaussianIntegral (1 / 2) fun x : ℝ ↦ x ^ 2 whereintegral_exp_eq {t} _ := by rw [integral_gaussian t, sqrt_eq_rpow]