Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(Lib/Weil/Periods/DescentVanishing): generalize compact-image factorization
alkor200055812f117aae
diff --git a/src/Lib/Weil/Periods/DescentVanishing.lean b/src/Lib/Weil/Periods/DescentVanishing.leanindex 4ee0d9f6f13..3f46d121bea 100644--- a/src/Lib/Weil/Periods/DescentVanishing.lean+++ b/src/Lib/Weil/Periods/DescentVanishing.lean@@ -10,6 +10,7 @@ import Mathlib.Topology.UniformSpace.Uniformizableimport TauCeti.NumberTheory.NumberField.Countableimport TauCeti.Topology.Algebra.Group.Unitsimport TauCeti.Topology.Instances.Matrix+public import Mathlib.Topology.TietzeExtensionpublic import Lib.Adelic.QuotientMeasure.UnfoldingInStagespublic import Lib.SiegelWeil.SingularForms.UnimodularCoefficientspublic import Lib.Weil.DualPair.ThetaIntegrals@@ -375,12 +376,15 @@ namespace New.SiegelWeilopen Matrix MeasureTheory Measure WeilData Space Gf Exchange G Splitting SubgroupContinuousMap AddChar-/-- A continuous function `f` on a compact space that depends only on the image under a continuous-map `p` to a normal Hausdorff space is a continuous function of `p`. -/-lemma exists_continuousMap_comp_eq {K X : Type*} [TopologicalSpace K] [CompactSpace K]- [TopologicalSpace X] [T4Space X] (p : C(K, X)) (f : C(K, ℂ))+universe uX uY++/-- A continuous map from a compact space into a Tietze extension space descends through a+continuous map `p` to a normal Hausdorff space if it is constant on the fibres of `p`. -/+lemma exists_continuousMap_comp_eq {K : Type*} {X : Type uX} {Y : Type uY}+ [TopologicalSpace K] [CompactSpace K] [TopologicalSpace X] [T4Space X]+ [TopologicalSpace Y] [TietzeExtension.{uX, uY} Y] (p : C(K, X)) (f : C(K, Y))(h_fibre : ∀ a b : K, p a = p b → f a = f b) :- ∃ χ : C(X, ℂ), ∀ a : K, χ (p a) = f a := by+ ∃ χ : C(X, Y), ∀ a : K, χ (p a) = f a := by-- `f` descends to the compact image of `p`, and Tietze's theorem extends it to `X`.let q : C(K, Set.range p) := ⟨Set.rangeFactorization p, p.continuous.subtype_mk _⟩have hq : Topology.IsQuotientMap q :=