Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(Lib/SiegelWeil/OneVector/FinitePlaceDensity): reuse the additive shear lemma
alkor2000aeaeec278bb5
diff --git a/src/Lib/SiegelWeil/OneVector/FinitePlaceDensity.lean b/src/Lib/SiegelWeil/OneVector/FinitePlaceDensity.leanindex 2ca41d7af97..da065614831 100644--- a/src/Lib/SiegelWeil/OneVector/FinitePlaceDensity.lean+++ b/src/Lib/SiegelWeil/OneVector/FinitePlaceDensity.lean@@ -2,6 +2,7 @@ moduleimport Mathlib.Algebra.Order.Star.Realimport TauCeti.Analysis.Matrix.IndefiniteUnitaryGroup+import TauCeti.MeasureTheory.Group.Prodimport TauCeti.Topology.Algebra.Group.Unitspublic import Lib.DiscreteSeries.Bruhat.FloorMeasurespublic import Lib.SiegelWeil.Mass@@ -727,12 +728,10 @@ lemma integral_eq_mul_of_section {X Y : Type*} [AddCommGroup X] [AddCommGroup Y]right_inv _ := by simp [h_sub]measurable_toFun := by dsimp; fun_propmeasurable_invFun := by dsimp; fun_prop }- have shear₁ : MeasurePreserving (fun q : X × Y ↦ (q.1, q.2 - p q.1)) (μ.prod ν) (μ.prod ν) :=- (MeasurePreserving.id μ).skew_product (g := fun x y ↦ y - p x) (by fun_prop)- (.of_forall fun x ↦ map_sub_right_eq_self ν (p x))- have shear₂ : MeasurePreserving (fun q : Y × X ↦ (q.1, ι q.1 + q.2)) (ν.prod μ) (ν.prod μ) :=- (MeasurePreserving.id ν).skew_product (g := fun y x ↦ ι y + x) (by fun_prop)- (.of_forall fun y ↦ map_add_left_eq_self μ (ι y))+ have shear₁ : MeasurePreserving (fun q : X × Y ↦ (q.1, q.2 - p q.1)) (μ.prod ν) (μ.prod ν) := by+ simpa [sub_eq_add_neg] using TauCeti.measurePreserving_skew_add_right μ ν (0 : X) hp.neg+ have shear₂ : MeasurePreserving (fun q : Y × X ↦ (q.1, ι q.1 + q.2)) (ν.prod μ) (ν.prod μ) := by+ simpa [add_comm] using TauCeti.measurePreserving_skew_add_right ν μ (0 : Y) hιhave shear₃ : MeasurePreserving (fun q : X × Y ↦ (q.1, p q.1 - q.2)) (μ.prod ν) (μ.prod ν) :=(MeasurePreserving.id μ).skew_product (g := fun x y ↦ p x - y) (by fun_prop)(.of_forall fun x ↦ ν.map_sub_left_eq_self (p x))