Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

doc(Lib/SiegelWeil/SingularForms): add docstrings in CentreCoefficients

sangxsh98b1164c74bc
diff --git a/src/Lib/SiegelWeil/SingularForms/CentreCoefficients.lean b/src/Lib/SiegelWeil/SingularForms/CentreCoefficients.lean
index 92338673011..0376f3adc26 100644
--- a/src/Lib/SiegelWeil/SingularForms/CentreCoefficients.lean
+++ b/src/Lib/SiegelWeil/SingularForms/CentreCoefficients.lean
@@ -64,6 +64,9 @@ namespace New.Space.Splitting
open Matrix Exchange MeasureTheory QuotientAddGroup IsDualFamily
+/-- If `F x` is periodic and continuous for the subgroup `B₀` for every `x`, and `F` is jointly
+continuous, then the mean `quotMean B₀ (F x)` over the compact quotient `B ⧸ B₀` is continuous
+in `x`. -/
private lemma continuous_quotMean {X B : Type*} [TopologicalSpace X] [LocallyCompactSpace X]
[FirstCountableTopology X] [AddCommGroup B] [TopologicalSpace B] [IsTopologicalAddGroup B]
{B₀ : AddSubgroup B} [CompactSpace (B ⧸ B₀)] {F : X → B → ℂ}
@@ -342,15 +345,21 @@ def frameStabilizer (D : W.Splitting W₁ p) (e : 𝔸 E) : Subgroup (G E s) whe
rw [← hg, ← Matrix.mul_assoc, ← G.adeleMatrix_mul, inv_mul_cancel, G.adeleMatrix_one,
Matrix.one_mul, hg]
+/-- A point `g` lies in `D.frameStabilizer e` if and only if `g e·k = e·k` in adelic
+coordinates, where k is the frame of `D`. -/
lemma mem_frameStabilizer {D : W.Splitting W₁ p} {e : 𝔸 E} {g : G E s} :
g ∈ D.frameStabilizer e ↔ g.adeleMatrix * e • D.kAdelic = e • D.kAdelic :=
Iff.rfl
+/-- If `g` acts on the frame of `D` by the matrix `a` and `h` acts by `b`, then `g * h` acts by
+`a * b`. -/
lemma ActsOnFrame.mul {D : W.Splitting W₁ p} {g h : G E s} {a b : Matrix p p (𝔸 E)}
(hg : D.ActsOnFrame g a) (hh : D.ActsOnFrame h b) : D.ActsOnFrame (g * h) (a * b) := by
rw [ActsOnFrame, G.adeleMatrix_mul, Matrix.mul_assoc, hh, ← Matrix.mul_assoc, hg,
Matrix.mul_assoc]
+/-- If `g` fixes the frame of `D`, that is, acts on it by the identity matrix, then `g` lies in
+`D.frameStabilizer e` for every adele `e`. -/
lemma ActsOnFrame.mem_frameStabilizer {D : W.Splitting W₁ p} {g : G E s}
(hg : D.ActsOnFrame g 1) (e : 𝔸 E) : g ∈ D.frameStabilizer e := by
rw [Splitting.mem_frameStabilizer, Matrix.mul_smul, hg, Matrix.mul_one]
@@ -363,25 +372,32 @@ of B. Here a is an adelic row. It is a central element of the radical for the sp
noncomputable def lineShift (a : Matrix Unit p (𝔸 E)) : G E s :=
(A.symm.comp B).radicalCenter (fromBlocks 0 a 0 0)
+/-- The shifts n₊(a) are additive: n₊(a + b) = n₊(a) n₊(b) for adelic rows a and b. -/
lemma lineShift_add (a b : Matrix Unit p (𝔸 E)) :
A.lineShift B (a + b) = A.lineShift B a * A.lineShift B b := by
simp [lineShift, ← AddChar.map_add_eq_mul, fromBlocks_add]
+/-- The shift n₊(0) is the identity. -/
lemma lineShift_zero : A.lineShift B 0 = 1 := by simp [lineShift]
+/-- The shift n₊(a) = `A.lineShift B a` is continuous in the adelic row a. -/
@[fun_prop]
lemma continuous_lineShift : Continuous (A.lineShift B) := by
unfold lineShift
fun_prop
+/-- For a rational row a, the shift n₊(a) lies in the group `W.Γ` of rational points. -/
lemma lineShift_mem {a : Matrix Unit p (𝔸 E)} (ha : a ∈ ratMatrices E Unit p) :
A.lineShift B a ∈ W.Γ := by
obtain ⟨a₀, rfl⟩ := ha
simp [lineShift, mem_ratMatrices, ratAdeles]
+/-- The matrix `lineShiftTerm a`, so that n₊(a) has adelic matrix `1 + lineShiftTerm a`; see
+`adeleMatrix_lineShift`. -/
private noncomputable abbrev lineShiftTerm (a : Matrix Unit p (𝔸 E)) : Matrix n n (𝔸 E) :=
A.lAdelic * a * (B.lCoord * A.iCoord) - A.iAdelic * B.kAdelic * aᴴ * A.kCoord
+/-- The adelic matrix of the shift n₊(a) is `1` plus the term `lineShiftTerm`. -/
private lemma adeleMatrix_lineShift (a : Matrix Unit p (𝔸 E)) :
(A.lineShift B a).adeleMatrix =
1 + (A.lAdelic * a * (B.lCoord * A.iCoord) - A.iAdelic * B.kAdelic * aᴴ * A.kCoord) := by
@@ -422,6 +438,7 @@ n₊(a) = `A.lineShift B a`. The function for `A.symm` is φ⁻_g. -/
noncomputable def shiftedMean (g : G E s) (a : Matrix Unit p (𝔸 E)) : ℂ :=
A.partialMean B D T f (A.lineShift B a * g)
+/-- At `a = 0`, the function φ⁺_g is the partial mean f⁺ at `g`. -/
lemma shiftedMean_apply_zero (g : G E s) :
A.shiftedMean B D T f g 0 = A.partialMean B D T f g := by
rw [shiftedMean, lineShift_zero, one_mul]
@@ -451,6 +468,8 @@ lemma actsOnFrame_lineShift_one (hD : D.kAdelic = A.iAdelic * B.kAdelic)
Matrix.mul_zero, Matrix.mul_one, sub_zero, add_zero]
omit [WeilData E] in
+/-- The product of the terms of n₊(a) and n₋(b) is `-(k aᴴ b l)`, where k is the image in W of
+the frame of B and l = `B.lCoord * A.iCoord` is its coordinate map. -/
private lemma lineShiftTerm_mul_symm (a b : Matrix Unit p (𝔸 E)) :
A.lineShiftTerm B a * A.symm.lineShiftTerm B b =
-(A.iAdelic * B.kAdelic * (aᴴ * b) * (B.lCoord * A.iCoord)) := by
@@ -461,6 +480,9 @@ private lemma lineShiftTerm_mul_symm (a b : Matrix Unit p (𝔸 E)) :
A.kCoord_mul_kAdelic_mul, A.kCoord_mul_iAdelic_mul, Matrix.mul_zero, sub_zero, zero_sub]
omit [WeilData E] in
+/-- If the frame of `D` is the image of the frame of `B`, then for every `p × p` matrix `M` the
+product `k M l` of the frame k of `D`, `M` and the coordinate map l of `D` with the term
+`lineShiftTerm a` of n₊(a) is zero. -/
private lemma radicalTerm_mul_lineShiftTerm (hD : D.kAdelic = A.iAdelic * B.kAdelic)
(M : Matrix p p (𝔸 E)) (a : Matrix Unit p (𝔸 E)) :
D.kAdelic * M * D.lCoord * A.lineShiftTerm B a = 0 := by