Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(Lib/Adelic/TraceFormula): use Tau Ceti's idempotent intertwiner
alkor200008a536914e71
diff --git a/src/Lib/Adelic/TraceFormula/CoprimeFactors.lean b/src/Lib/Adelic/TraceFormula/CoprimeFactors.leanindex 92cc1cca414..94e718988dc 100644--- a/src/Lib/Adelic/TraceFormula/CoprimeFactors.lean+++ b/src/Lib/Adelic/TraceFormula/CoprimeFactors.lean@@ -7,6 +7,7 @@ import Mathlib.Topology.LocallyConstant.Algebraimport Mathlib.Topology.MetricSpace.Ultra.TotallySeparatedimport Mathlib.Topology.Separation.CompletelyRegularimport TauCeti.LinearAlgebra.Trace.Idempotent+import TauCeti.Algebra.Ring.Idempotent.Pairimport TauCeti.Topology.Algebra.Group.Unitsimport TauCeti.Topology.Instances.Matrixpublic import Lib.Adelic.TraceFormula.FibreIntegral@@ -416,16 +417,17 @@ lemma eventually_exists_semiconjBy_of_isIdempotentElem [CompleteSpace F] {Y : Ty(h_idem₀ : IsIdempotentElem e₀) (h_idem : ∀ᶠ y : Y in l, IsIdempotentElem (e y)){O : Set (GL n F)} (hO : O ∈ 𝓝 (1 : GL n F)) :∀ᶠ y : Y in l, ∃ g ∈ O, SemiconjBy g.val e₀ (e y) := by- -- The matrix `e e₀ + (1 - e) (1 - e₀)` intertwines `e₀` and `e`, and tends to `1` as `e → e₀`.- have h_tendsto : Tendsto (fun y : Y ↦ e y * e₀ + (1 - e y) * (1 - e₀)) l (𝓝 (1 : GL n F).1) := by- simpa [h_idem₀.eq, h_idem₀.one_sub.eq] using- (h_lim.mul_const e₀).add ((h_lim.const_sub 1).mul_const (1 - e₀))+ -- The intertwiner tends to `1`, so it eventually belongs to the prescribed neighbourhood.+ have h_cont : Continuous (fun q ↦ TauCeti.intertwiner e₀ q) := by+ simp only [TauCeti.intertwiner_def]+ fun_prop+ have h_tendsto : Tendsto (fun y : Y ↦ TauCeti.intertwiner e₀ (e y)) l (𝓝 (1 : GL n F).1) := by+ simpa only [Function.comp_def, h_idem₀.intertwiner_self, Units.val_one] using+ (h_cont.tendsto e₀).comp h_limfilter_upwards [h_idem, h_tendsto.eventually(isOpenEmbedding_coe_generalLinearGroup.image_mem_nhds.2 hO)] with y hy ⟨g, hg, hg_val⟩refine ⟨g, hg, ?_⟩- calc g.val * e₀ = e y * e₀ := by- simp [hg_val, add_mul, mul_assoc, h_idem₀.eq, h_idem₀.one_sub_mul_self]- _ = e y * g.val := by simp [hg_val, mul_add, ← mul_assoc, hy.eq, hy.mul_one_sub_self]+ simpa only [SemiconjBy, hg_val] using h_idem₀.intertwiner_mul hyend Topology