Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | import TauCeti.Topology.Algebra.Group.Units |
| 4 | import TauCeti.Topology.Instances.Matrix |
| 5 | public import Lib.Adelic.Witt.IwasawaDecomposition |
| 6 | public import Lib.ClassField.HeckeCharacter.SplitTameCharacters |
| 7 | import Lib.Adelic.Unitary.WeakApproximation |
| 8 | import Lib.DiscreteSeries.Haar.TotalMass |
| 9 | import Lib.Weil.MixedModel.ZeroTerm |
| 10 | |
| 11 | /-! |
| 12 | # Fourier coefficients along the centre of a unipotent radical and their partial means |
| 13 | |
| 14 | This file studies the Fourier coefficients `New.Space.Splitting.centerCoeff` of a continuous |
| 15 | function f on the adelic unitary group of W that is left invariant under the rational points. The |
| 16 | coefficients are taken along the centre of the unipotent radical of the stabiliser of an isotropic |
| 17 | frame. The splitting `A` splits off a hyperbolic plane with isotropic vectors u, u', `B` splits off |
| 18 | a frame of p vectors from its complement, and `D` splits off the image k of that frame in W. The |
| 19 | shifts n₊(a), n₋(b) move u and u' along k. The file studies the partial mean f⁺ of the coefficient |
| 20 | along `D` at a p×p matrix T over the shifts n₋(b), and the function φ⁺_g(a) = f⁺(n₊(a) g). |
| 21 | Exchanging u and u' gives f⁻ and φ⁻_g; the functions φ⁺_g and φ⁻_g behave like a function and its |
| 22 | Fourier transform. The file also defines equivariant lifts of local data and representability at the |
| 23 | infinite places for comparing theta integrals. |
| 24 | |
| 25 | ## Main definitions and results |
| 26 | |
| 27 | * `New.Exchange.IsEquivariantLift`: a linear map from local data at `𝔠.ramifiedPlaces` to functions |
| 28 | on the unitary group of `X`, sending a given submodule of Schwartz–Bruhat functions to automorphic |
| 29 | functions. |
| 30 | * `New.Space.Splitting.lineShift`, `New.Space.Splitting.partialMean`, |
| 31 | `New.Space.Splitting.shiftedMean`: the shifts n₊(a), the partial mean f⁺ and the function φ⁺_g. |
| 32 | * `New.Space.Splitting.centreCoeff_eq_mul_of_shiftedMean_eq_smul`, |
| 33 | `New.Space.Splitting.shiftedMean_symm_eq_smul`: for det T ≠ 0, a relation φ⁺_{g'} = c φ⁺_g passes |
| 34 | to the coefficients along `D` at the points n₋(b) n₊(a) g and to φ⁻. |
| 35 | * `New.Space.Splitting.partialMean_radicalElement_mul`: singularity. Let f⁺ be invariant under the |
| 36 | shears at a nonempty set of finite places (`New.Space.Splitting.ShearInvariant`) at all points |
| 37 | that fix e·k for an adele e (`New.Space.Splitting.frameStabilizer`). Then f⁺(h g) = f⁺(g) for h in |
| 38 | the adelic radical of the stabiliser of the line of u, whenever g and h g fix e·k. The proof |
| 39 | compares f⁺ with `New.Space.Splitting.borderedCentreCoeff`. |
| 40 | |
| 41 | Notions from other files: |
| 42 | * `New.Space`: A hermitian space with a point: a matrix J over E and x in GL_n(𝔸) with xᴴJx equal to |
| 43 | diag(s) at the infinite places and 1 at the finite places; `W.Γ` is the group of rational points |
| 44 | x⁻¹ U(J)(E) x in the adelic unitary group `New.G`. |
| 45 | * `New.Space.Splitting`: a decomposition W = (lE^p ⊕ kE^p) ⊥ iW₀ with dual isotropic frames l, k. |
| 46 | * `New.Space.Splitting.radicalCenter`: z(M) = 1 + k(M − M*)k*ε (ε the standard form), an element of |
| 47 | the centre of the unipotent radical of the stabiliser of the frame k. |
| 48 | * `New.Exchange.SplitTameChar`: a character of [U(1)] of a given weight, positive at every infinite |
| 49 | place, with tame part non-trivial exactly on a non-empty finite set S of places disjoint from its |
| 50 | conjugate. |
| 51 | * `New.Space.Splitting.comp`: From splittings of V over V₀ (rank p) and V₀ over V₁ (rank q), the |
| 52 | splitting of V over V₁ with frames (k, ik'), (l, il') and embedding ii'. |
| 53 | -/ |
| 54 | |
| 55 | @[expose] public section |
| 56 | |
| 57 | /-! |
| 58 | ## Laws of the Fourier coefficients along the centre of the radical |
| 59 | |
| 60 | In this section `H` is the splitting and `D` the function. |
| 61 | -/ |
| 62 | |
| 63 | namespace New.Space.Splitting |
| 64 | |
| 65 | open Matrix Exchange MeasureTheory QuotientAddGroup IsDualFamily |
| 66 | |
| 67 | /-- If `F x` is periodic and continuous for the subgroup `B₀` for every `x`, and `F` is jointly |
| 68 | continuous, then the mean `quotMean B₀ (F x)` over the compact quotient `B ⧸ B₀` is continuous |
| 69 | in `x`. -/ |
| 70 | private lemma continuous_quotMean {X B : Type*} [TopologicalSpace X] [LocallyCompactSpace X] |
| 71 | [FirstCountableTopology X] [AddCommGroup B] [TopologicalSpace B] [IsTopologicalAddGroup B] |
| 72 | {B₀ : AddSubgroup B} [CompactSpace (B ⧸ B₀)] {F : X → B → ℂ} |
| 73 | (hF : ∀ x, IsContPeriodic B₀ (F x)) (hcont : Continuous (Function.uncurry F)) : |
| 74 | Continuous fun x ↦ quotMean B₀ (F x) := by |
| 75 | -- The mean is an integral over a compact quotient, so it is enough that the integrand is jointly |
| 76 | -- continuous; this can be tested before passing to the quotient. |
| 77 | unfold quotMean |
| 78 | refine (continuous_parametric_integral_of_continuous |
| 79 | ((isQuotientMap_mk B₀).continuous_lift_prod_right ?_) isCompact_univ).congr |
| 80 | fun _ ↦ setIntegral_univ |
| 81 | -- by periodicity the choice of coset representatives does not matter |
| 82 | simp only [Function.uncurry_apply_pair, (hF _).apply_out_mk] |
| 83 | exact hcont |
| 84 | |
| 85 | private lemma quotMean_sub_const_mul {B : Type*} [AddCommGroup B] [TopologicalSpace B] |
| 86 | [IsTopologicalAddGroup B] {B₀ : AddSubgroup B} [CompactSpace (B ⧸ B₀)] {F G : B → ℂ} |
| 87 | (hF : IsContPeriodic B₀ F) (hG : IsContPeriodic B₀ G) (c : ℂ) : |
| 88 | quotMean B₀ (fun x ↦ F x - c * G x) = quotMean B₀ F - c * quotMean B₀ G := by |
| 89 | rw [← quotMean_const_mul] |
| 90 | exact integral_sub hF.integrable_out (hG.integrable_out.const_mul c) |
| 91 | |
| 92 | variable {E : Type*} [Field E] [CMType E] [WeilData E] |
| 93 | {n p n₀ : Type*} [Fintype n] [DecidableEq n] [Fintype p] [DecidableEq p] [Fintype n₀] |
| 94 | [DecidableEq n₀] {s : n → ℤˣ} |
| 95 | |
| 96 | /-- D is a continuous function on the adelic unitary group of W that is left invariant under the |
| 97 | rational points. -/ |
| 98 | def _root_.New.Exchange.IsAutFunction (W : Space E n s) (D : G E s → ℂ) : Prop := |
| 99 | Continuous D ∧ W.Γ.FixesLeft D |
| 100 | |
| 101 | variable {W : Space E n s} {D : G E s → ℂ} {s₀ : n₀ → ℤˣ} {W₀ : Space E n₀ s₀} |
| 102 | (H : W.Splitting W₀ p) |
| 103 | |
| 104 | /-- If D is continuous and left invariant under the rational points, then M ↦ D (z(M) g) is |
| 105 | continuous and periodic under rational matrices, z(M) being the element `H.radicalCenter M` of the |
| 106 | centre of the radical. -/ |
| 107 | lemma isContPeriodic_radicalCentre (hD : IsAutFunction W D) (g : G E s) : |
| 108 | IsContPeriodic (ratMatrices E p p) fun M : Matrix p p (𝔸 E) ↦ D (H.radicalCenter M * g) := by |
| 109 | refine ⟨hD.1.comp (by fun_prop), fun γ hγ M ↦ ?_⟩ |
| 110 | simp [AddChar.map_add_eq_mul, mul_assoc, hD.2 (H.radicalCenter γ) (by simp [hγ])] |
| 111 | |
| 112 | /-- Let D and D' be continuous and left invariant under the rational points. The coefficient at T |
| 113 | of D(· Y) − c D' at the point g is that of D at g Y minus c times that of D' at g. -/ |
| 114 | lemma centreCoeff_mul_right_sub_smul {D' : G E s → ℂ} (hD : IsAutFunction W D) |
| 115 | (hD' : IsAutFunction W D') (c : ℂ) (Y : G E s) (T : Matrix p p E) (g : G E s) : |
| 116 | H.centerCoeff T ((fun x : G E s ↦ D (x * Y)) - c • D') g = |
| 117 | H.centerCoeff T D (g * Y) - c * H.centerCoeff T D' g := by |
| 118 | -- the mean is linear, both integrands being periodic and continuous, hence integrable |
| 119 | simpa only [centerCoeff, Pi.sub_apply, mul_assoc, Pi.smul_apply, smul_eq_mul, mul_sub, |
| 120 | mul_left_comm _ c] using quotMean_sub_const_mul |
| 121 | (isContPeriodic_mul (H.isContPeriodic_radicalCentre hD (g * Y)) T) |
| 122 | (isContPeriodic_mul (H.isContPeriodic_radicalCentre hD' g) T) c |
| 123 | |
| 124 | /-- The coefficient at T is additive on functions that are continuous and left invariant under the |
| 125 | rational points. -/ |
| 126 | lemma centreCoeff_add {D' : G E s → ℂ} (hD : IsAutFunction W D) (hD' : IsAutFunction W D') |
| 127 | (T : Matrix p p E) (g : G E s) : |
| 128 | H.centerCoeff T (D + D') g = H.centerCoeff T D g + H.centerCoeff T D' g := by |
| 129 | simpa using H.centreCoeff_mul_right_sub_smul hD hD' (-1) 1 T g |
| 130 | |
| 131 | variable (hD : IsAutFunction W D) {T : Matrix p p E} |
| 132 | include hD |
| 133 | |
| 134 | /-- For D continuous and left invariant under the rational points, its Fourier coefficient at T |
| 135 | along the centre of the radical, the mean of ψ(tr TM) D(z(M) g) over M modulo rational matrices, is |
| 136 | a continuous function of g. -/ |
| 137 | @[fun_prop] |
| 138 | lemma continuous_centreCoeff : Continuous (H.centerCoeff T D) := |
| 139 | continuous_quotMean (fun g ↦ isContPeriodic_mul (H.isContPeriodic_radicalCentre hD g) T) |
| 140 | ((continuous_stdAddChar.subtypeVal.comp (by fun_prop)).mul (hD.1.comp (by fun_prop))) |
| 141 | |
| 142 | /-- For D continuous and left invariant under the rational points, left translation by |
| 143 | z(M) = `H.radicalCenter M` divides the coefficient at T by ψ(tr TM), ψ the standard additive |
| 144 | character. -/ |
| 145 | lemma centreCoeff_radicalCentre_mul (M : Matrix p p (𝔸 E)) (g : G E s) : |
| 146 | stdAddChar E (T.map toAdele * M).trace * H.centerCoeff T D (H.radicalCenter M * g) = |
| 147 | H.centerCoeff T D g := by |
| 148 | have h_translate : H.centerCoeff T D (H.radicalCenter M * g) = |
| 149 | quotMean (ratMatrices E p p) fun N : Matrix p p (𝔸 E) ↦ |
| 150 | stdAddChar E (T.map toAdele * N).trace * D (H.radicalCenter (N + M) * g) := by |
| 151 | simp [centerCoeff, AddChar.map_add_eq_mul, mul_assoc] |
| 152 | rw [h_translate] |
| 153 | exact mul_quotMean_translate (H.isContPeriodic_radicalCentre hD g) T M |
| 154 | |
| 155 | /-- For D continuous and left invariant under the rational points, a rational point γ that acts on |
| 156 | the isotropic frame k of H through the rational matrix c (γ k = k c) carries the coefficient at T to |
| 157 | the coefficient at cᴴ T c. -/ |
| 158 | lemma centreCoeff_rat_mul (T : Matrix p p E) {γ : G E s} (hγ : γ ∈ W.Γ) (c : Matrix p p E) |
| 159 | (h_frame : H.ActsOnFrame γ (c.map toAdele)) (g : G E s) : |
| 160 | H.centerCoeff T D (γ * g) = H.centerCoeff (cᴴ * T * c) D g := by |
| 161 | obtain ⟨a, ha⟩ : IsUnit (c.map toAdele) := h_frame.isUnit |
| 162 | -- The substitution M ↦ a M aᴴ is onto and keeps rational matrices, so it keeps the mean. |
| 163 | let φ : Matrix p p (𝔸 E) →+ Matrix p p (𝔸 E) := .comp (.mulLeft ↑a) (.mulRight aᴴ) |
| 164 | have hrat : ∀ M ∈ ratMatrices E p p, φ M ∈ ratMatrices E p p := by |
| 165 | rintro M ⟨N, rfl⟩ |
| 166 | exact ⟨c * (N * cᴴ), by simp [φ, ha, Matrix.map_mul]⟩ |
| 167 | have hsurj : Function.Surjective φ := fun M ↦ ⟨(a⁻¹).val * M * aᴴ⁻¹, by simp [φ, mul_assoc]⟩ |
| 168 | -- Move γ to the left (z(a M aᴴ) γ = γ z(M)), absorb it in D, and cycle the trace. |
| 169 | have h_move (M : Matrix p p (𝔸 E)) : |
| 170 | D (H.radicalCenter (φ M) * (γ * g)) = D (H.radicalCenter M * g) := by |
| 171 | have hφ : φ M = c.map toAdele * M * (c.map toAdele)ᴴ := by |
| 172 | rw [← ha]; exact (Matrix.mul_assoc _ _ _).symm |
| 173 | rw [hφ, ← mul_assoc, ← H.mul_radicalCenter h_frame, mul_assoc, hD.2 γ hγ] |
| 174 | have h_trace (M : Matrix p p (𝔸 E)) : |
| 175 | (T.map toAdele * φ M).trace = ((cᴴ * T * c).map toAdele * M).trace := by |
| 176 | simp [φ, ha, Matrix.map_mul, Matrix.mul_assoc, (cᴴ.map toAdele).trace_mul_comm] |
| 177 | rw [centerCoeff, ← quotMean_comp _ φ |
| 178 | (isContPeriodic_mul (H.isContPeriodic_radicalCentre hD (γ * g)) T) hrat hsurj |
| 179 | ((continuous_const_mul _).comp (continuous_mul_const _))] |
| 180 | simp only [centerCoeff, h_move, h_trace] |
| 181 | |
| 182 | /-- For D continuous and left invariant under the rational points, a rational point that fixes the |
| 183 | isotropic frame of H does not change the coefficient at T. -/ |
| 184 | lemma centreCoeff_rat_mul_of_actsOnFrame_one {γ : G E s} (hγ : γ ∈ W.Γ) |
| 185 | (h_frame : H.ActsOnFrame γ 1) (g : G E s) : |
| 186 | H.centerCoeff T D (γ * g) = H.centerCoeff T D g := by |
| 187 | simpa using H.centreCoeff_rat_mul hD T hγ 1 (by simpa using h_frame) g |
| 188 | |
| 189 | end New.Space.Splitting |
| 190 | |
| 191 | /-! |
| 192 | ## Equivariant lifts of local data and forms represented at infinite places |
| 193 | Definitions for the comparison of theta integrals attached to a tamely ramified character `𝔠`, with |
| 194 | set of ramified places `𝔠.ramifiedPlaces`; `New.LocProd P` is the product of the completions of E at |
| 195 | the finite places in P. |
| 196 | -/ |
| 197 | |
| 198 | namespace New.Exchange |
| 199 | |
| 200 | open Matrix NumberField |
| 201 | |
| 202 | variable {E : Type} [Field E] [CMType E] [WeilData E] |
| 203 | {n b m : Type} [Fintype n] [DecidableEq n] [Fintype b] [DecidableEq b] [Fintype m] [DecidableEq m] |
| 204 | {s : n → ℤˣ} {r : m → ℤˣ} {μ : InfinitePlace E → ℤ} (𝔠 : SplitTameChar E μ) (x : Matrix n b (𝔸 E)) |
| 205 | |
| 206 | /-- The ring map sending an adele to its components at the ramified places S of 𝔠. -/ |
| 207 | noncomputable def componentsAt : (InfinitePlace E → ℂ) × 𝔸f E →+* LocProd 𝔠.ramifiedPlaces := |
| 208 | (evalPlaces 𝔠.ramifiedPlaces).comp (RingHom.snd (InfinitePlace E → ℂ) (𝔸f E) : 𝔸 E →+* 𝔸f E) |
| 209 | |
| 210 | /-- The homomorphism G_f → GL_n(∏_{w∈P} E_w) sending an element to its components at P. -/ |
| 211 | noncomputable def _root_.New.atPlaces {E : Type} [Field E] [NumberField E] [IsCMField E] |
| 212 | (P : Finset (FinPlace E)) : Gf E n →* GL n (LocProd P) := |
| 213 | (GeneralLinearGroup.map (evalPlaces P)).comp (U 1).subtype |
| 214 | |
| 215 | /-- Let X be a hermitian space with index type m, let S = `𝔠.ramifiedPlaces` be the ramified places |
| 216 | of the character 𝔠, and let M be a space of functions of m × b matrices over the completions at S. A |
| 217 | linear map 𝒟 from such functions to functions on U(X) is an equivariant lift on M if M consists of |
| 218 | locally constant functions with compact support in the left invertible matrices, and on M the map 𝒟 |
| 219 | has automorphic values, is equivariant at S up to a character of the determinant, and has values |
| 220 | right invariant under the elements of `stdLevel` with component 1 at S. -/ |
| 221 | structure IsEquivariantLift (X : Space E m r) |
| 222 | (M : Submodule ℂ (Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ)) |
| 223 | (𝒟 : (Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ) →ₗ[ℂ] G E r → ℂ) : Prop where |
| 224 | /-- The data in `M` are locally constant, with compact support in the left invertible matrices. -/ |
| 225 | le_schwartzBruhat : M ≤ schwartzBruhat {x | HasLeftInv x} |
| 226 | /-- `𝒟 Ψ` is continuous and left invariant under the rational points of `U(X)`. -/ |
| 227 | isAutFunction {Ψ : Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ} (hΨ : Ψ ∈ M) : IsAutFunction X (𝒟 Ψ) |
| 228 | /-- For `g` supported on `S ∪ S̄`, the translate `Φ y = Ψ (g_S y)` lies in `M`, and `𝒟 Φ`, |
| 229 | translated on the right by `g`, is `𝒟 Ψ` divided by `(υ |·|^(1/2)) (det g_S) ^ card b`. -/ |
| 230 | map_translate {Ψ : Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ} (hΨ : Ψ ∈ M) (g : Gf E m) |
| 231 | (hg : g ∈ Gf.supportedOn m 𝔠.ramifiedPlaces) : |
| 232 | let Φ (y : Matrix m b (LocProd 𝔠.ramifiedPlaces)) : ℂ := |
| 233 | Ψ ((atPlaces 𝔠.ramifiedPlaces g).val * y) |
| 234 | Φ ∈ M ∧ ∀ x : G E r, 𝒟 Φ (x * (1, g)) = |
| 235 | 𝒟 Ψ x / localChar 𝔠.ramifiedPlaces WeilData.υ 1 (atPlaces 𝔠.ramifiedPlaces g).val.det ^ |
| 236 | Fintype.card b |
| 237 | /-- `𝒟 Ψ` is right invariant under the elements of `stdLevel` that are `1` at `S`. -/ |
| 238 | invariant_off (Ψ : Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ) (hΨ : Ψ ∈ M) (k : Gf E m) |
| 239 | (hk : k ∈ stdLevel E m ⊓ Gf.trivialOn m 𝔠.ramifiedPlaces) (x : G E r) : |
| 240 | 𝒟 Ψ (x * (1, k)) = 𝒟 Ψ x |
| 241 | |
| 242 | section |
| 243 | |
| 244 | variable {E : Type} [Field E] [NumberField E] (x : Matrix n b (𝔸 E)) |
| 245 | |
| 246 | /-- The complex matrix of components of the adelic matrix x at the infinite place v. -/ |
| 247 | abbrev atRealPlace (v : InfinitePlace E) : Matrix n b ℂ := x.map fun a ↦ a.1 v |
| 248 | |
| 249 | /-- An adelic b × b matrix T is represented by the signs t if at every infinite place its component |
| 250 | has the form cᴴ diag(t) c for some complex matrix c. -/ |
| 251 | def RepresentedBy (t : b → ℤˣ) (T : Matrix b b (𝔸 E)) : Prop := |
| 252 | ∀ v : InfinitePlace E, ∃ c : Matrix b b ℂ, cᴴ * signMatrix t * c = atRealPlace T v |
| 253 | |
| 254 | end |
| 255 | |
| 256 | omit [WeilData E] [Fintype b] [DecidableEq b] in |
| 257 | /-- For an adelic matrix x and an infinite place v with component x_v (`atRealPlace x v`), the Gram |
| 258 | matrix x_vᴴ diag(s) x_v is the component at v of xᴴ ε x, where ε = `stdForm E s` is the standard |
| 259 | form with signs s. -/ |
| 260 | lemma gram_atRealPlace (v : InfinitePlace E) : |
| 261 | (atRealPlace x v)ᴴ * signMatrix s * atRealPlace x v = atRealPlace (xᴴ * stdForm E s * x) v := by |
| 262 | have h_form : (stdForm E s).map (evalInf v) = signMatrix s := by |
| 263 | simp [stdForm, signMatrix] |
| 264 | have h_eval := map_conjTranspose_mul_mul (evalInf v) (fun _ ↦ rfl) x (stdForm E s) |
| 265 | rw [h_form] at h_eval |
| 266 | exact h_eval.symm |
| 267 | |
| 268 | end New.Exchange |
| 269 | |
| 270 | namespace New.Space.Splitting |
| 271 | |
| 272 | /-! |
| 273 | ## Coordinates of opposite and composite splittings |
| 274 | |
| 275 | A splitting `H : W.Splitting W₂ p` consists of dual isotropic frames `k`, `l` of p vectors and an |
| 276 | embedding of the orthogonal complement `W₂`. Below, `A : W.Splitting W₀ Unit` splits off one line, |
| 277 | `B : W₀.Splitting W₂ p` splits `W₀`, and `A.comp B` is the splitting of `W` whose frame is the line |
| 278 | of `A` followed by the frame of `B`. |
| 279 | -/ |
| 280 | |
| 281 | section CompositeSplitting |
| 282 | |
| 283 | open Matrix |
| 284 | |
| 285 | variable {E n n₂ p : Type*} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 286 | [Fintype n₂] [DecidableEq n₂] [Fintype p] [DecidableEq p] {s : n → ℤˣ} {s₂ : n₂ → ℤˣ} |
| 287 | {W : Space E n s} {W₂ : Space E n₂ s₂} {W₀ : Space E ((p ⊕ p) ⊕ n₂) (hyperbolicSigns p ⊕ᵥ s₂)} |
| 288 | (A : W.Splitting W₀ Unit) (B : W₀.Splitting W₂ p) |
| 289 | |
| 290 | @[simp] |
| 291 | lemma symm_kAdelic (H : W.Splitting W₂ p) : H.symm.kAdelic = H.lAdelic := rfl |
| 292 | |
| 293 | @[simp] |
| 294 | lemma symm_iAdelic (H : W.Splitting W₂ p) : H.symm.iAdelic = H.iAdelic := rfl |
| 295 | |
| 296 | @[simp] |
| 297 | lemma symm_lCoord (H : W.Splitting W₂ p) : H.symm.lCoord = H.kCoord := rfl |
| 298 | |
| 299 | @[simp] |
| 300 | lemma symm_iCoord (H : W.Splitting W₂ p) : H.symm.iCoord = H.iCoord := rfl |
| 301 | |
| 302 | @[simp] |
| 303 | lemma symm_symm (H : W.Splitting W₂ p) : H.symm.symm = H := rfl |
| 304 | |
| 305 | @[simp] private lemma symm_lAdelic (H : W.Splitting W₂ p) : H.symm.lAdelic = H.kAdelic := rfl |
| 306 | @[simp] private lemma symm_kCoord (H : W.Splitting W₂ p) : H.symm.kCoord = H.lCoord := rfl |
| 307 | |
| 308 | /-- For the composite of the splittings A of W and B of the complement W₀, the coordinate |
| 309 | `lCoord` (which reads off the coefficients of the dual frame l) has the block rows of A and of B, |
| 310 | the latter after the projection `A.iCoord` to W₀. -/ |
| 311 | @[simp] |
| 312 | lemma comp_lCoord : (A.comp B).lCoord = fromRows A.lCoord (B.lCoord * A.iCoord) := by |
| 313 | simp [lCoord, iCoord, comp_kAdelic, conjTranspose_fromCols_eq_fromRows_conjTranspose, |
| 314 | Matrix.mul_assoc] |
| 315 | |
| 316 | end CompositeSplitting |
| 317 | |
| 318 | /-! |
| 319 | ## Shifts of an isotropic line and partial means |
| 320 | |
| 321 | The splitting `A` splits off a hyperbolic plane with isotropic vectors u (its frame) and u' (the |
| 322 | frame of `A.symm`), and the frame k of `D` is the image in W of the frame of `B`. The shifts |
| 323 | n₊(a) = `A.lineShift B a` and n₋(b) = `A.symm.lineShift B b` move u and u' along k. Each statement |
| 324 | about `A` has a second form for `A.symm`, with the two signs exchanged. |
| 325 | -/ |
| 326 | |
| 327 | section PartialMeans |
| 328 | |
| 329 | open Matrix Exchange WeilData IsDualFamily |
| 330 | |
| 331 | variable {E n n₁ n₂ p : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 332 | [Fintype n₁] [DecidableEq n₁] [Fintype n₂] [DecidableEq n₂] [Fintype p] [DecidableEq p] |
| 333 | {s : n → ℤˣ} {s₁ : n₁ → ℤˣ} {s₂ : n₂ → ℤˣ} {W : Space E n s} |
| 334 | {W₀ : Space E ((p ⊕ p) ⊕ n₂) (hyperbolicSigns p ⊕ᵥ s₂)} {W₁ : Space E n₁ s₁} {W₂ : Space E n₂ s₂} |
| 335 | |
| 336 | /-- For an adele e, the group of the points g that fix e·k, where k is the frame of D. If e is an |
| 337 | idempotent, these are the points that fix the frame at the places where e is 1. -/ |
| 338 | def frameStabilizer (D : W.Splitting W₁ p) (e : 𝔸 E) : Subgroup (G E s) where |
| 339 | carrier := {g : G E s | g.adeleMatrix * e • D.kAdelic = e • D.kAdelic} |
| 340 | mul_mem' {g h : G E s} hg hh := by |
| 341 | change (g * h).adeleMatrix * e • D.kAdelic = e • D.kAdelic |
| 342 | rw [G.adeleMatrix_mul, Matrix.mul_assoc, hh, hg] |
| 343 | one_mem' := by |
| 344 | change (1 : G E s).adeleMatrix * e • D.kAdelic = e • D.kAdelic |
| 345 | rw [G.adeleMatrix_one, Matrix.one_mul] |
| 346 | inv_mem' {g : G E s} hg := by |
| 347 | change g⁻¹.adeleMatrix * e • D.kAdelic = e • D.kAdelic |
| 348 | rw [← hg, ← Matrix.mul_assoc, ← G.adeleMatrix_mul, inv_mul_cancel, G.adeleMatrix_one, |
| 349 | Matrix.one_mul, hg] |
| 350 | |
| 351 | /-- A point `g` lies in `D.frameStabilizer e` if and only if `g e·k = e·k` in adelic |
| 352 | coordinates, where k is the frame of `D`. -/ |
| 353 | lemma mem_frameStabilizer {D : W.Splitting W₁ p} {e : 𝔸 E} {g : G E s} : |
| 354 | g ∈ D.frameStabilizer e ↔ g.adeleMatrix * e • D.kAdelic = e • D.kAdelic := |
| 355 | Iff.rfl |
| 356 | |
| 357 | /-- If `g` acts on the frame of `D` by the matrix `a` and `h` acts by `b`, then `g * h` acts by |
| 358 | `a * b`. -/ |
| 359 | lemma ActsOnFrame.mul {D : W.Splitting W₁ p} {g h : G E s} {a b : Matrix p p (𝔸 E)} |
| 360 | (hg : D.ActsOnFrame g a) (hh : D.ActsOnFrame h b) : D.ActsOnFrame (g * h) (a * b) := by |
| 361 | rw [ActsOnFrame, G.adeleMatrix_mul, Matrix.mul_assoc, hh, ← Matrix.mul_assoc, hg, |
| 362 | Matrix.mul_assoc] |
| 363 | |
| 364 | /-- If `g` fixes the frame of `D`, that is, acts on it by the identity matrix, then `g` lies in |
| 365 | `D.frameStabilizer e` for every adele `e`. -/ |
| 366 | lemma ActsOnFrame.mem_frameStabilizer {D : W.Splitting W₁ p} {g : G E s} |
| 367 | (hg : D.ActsOnFrame g 1) (e : 𝔸 E) : g ∈ D.frameStabilizer e := by |
| 368 | rw [Splitting.mem_frameStabilizer, Matrix.mul_smul, hg, Matrix.mul_one] |
| 369 | |
| 370 | variable [WeilData E] (A : W.Splitting W₀ Unit) (B : W₀.Splitting W₂ p) |
| 371 | |
| 372 | /-- The shift n₊(a) : u ↦ u − k aᴴ of the isotropic vector u of A by the image k in W of the frame |
| 373 | of B. Here a is an adelic row. It is a central element of the radical for the splitting |
| 374 | `A.symm.comp B`. -/ |
| 375 | noncomputable def lineShift (a : Matrix Unit p (𝔸 E)) : G E s := |
| 376 | (A.symm.comp B).radicalCenter (fromBlocks 0 a 0 0) |
| 377 | |
| 378 | /-- The shifts n₊(a) are additive: n₊(a + b) = n₊(a) n₊(b) for adelic rows a and b. -/ |
| 379 | lemma lineShift_add (a b : Matrix Unit p (𝔸 E)) : |
| 380 | A.lineShift B (a + b) = A.lineShift B a * A.lineShift B b := by |
| 381 | simp [lineShift, ← AddChar.map_add_eq_mul, fromBlocks_add] |
| 382 | |
| 383 | /-- The shift n₊(0) is the identity. -/ |
| 384 | lemma lineShift_zero : A.lineShift B 0 = 1 := by simp [lineShift] |
| 385 | /-- The shift n₊(a) = `A.lineShift B a` is continuous in the adelic row a. -/ |
| 386 | @[fun_prop] |
| 387 | lemma continuous_lineShift : Continuous (A.lineShift B) := by |
| 388 | unfold lineShift |
| 389 | fun_prop |
| 390 | |
| 391 | /-- For a rational row a, the shift n₊(a) lies in the group `W.Γ` of rational points. -/ |
| 392 | lemma lineShift_mem {a : Matrix Unit p (𝔸 E)} (ha : a ∈ ratMatrices E Unit p) : |
| 393 | A.lineShift B a ∈ W.Γ := by |
| 394 | obtain ⟨a₀, rfl⟩ := ha |
| 395 | simp [lineShift, mem_ratMatrices, ratAdeles] |
| 396 | |
| 397 | /-- The matrix `lineShiftTerm a`, so that n₊(a) has adelic matrix `1 + lineShiftTerm a`; see |
| 398 | `adeleMatrix_lineShift`. -/ |
| 399 | private noncomputable abbrev lineShiftTerm (a : Matrix Unit p (𝔸 E)) : Matrix n n (𝔸 E) := |
| 400 | A.lAdelic * a * (B.lCoord * A.iCoord) - A.iAdelic * B.kAdelic * aᴴ * A.kCoord |
| 401 | |
| 402 | /-- The adelic matrix of the shift n₊(a) is `1` plus the term `lineShiftTerm`. -/ |
| 403 | private lemma adeleMatrix_lineShift (a : Matrix Unit p (𝔸 E)) : |
| 404 | (A.lineShift B a).adeleMatrix = |
| 405 | 1 + (A.lAdelic * a * (B.lCoord * A.iCoord) - A.iAdelic * B.kAdelic * aᴴ * A.kCoord) := by |
| 406 | rw [lineShift, adeleMatrix_radicalCenter, comp_kAdelic, comp_lCoord, symm_kAdelic, |
| 407 | symm_iAdelic, symm_lCoord, symm_iCoord, fromBlocks_conjTranspose, sub_eq_add_neg, |
| 408 | fromBlocks_neg, fromBlocks_add] |
| 409 | simp only [conjTranspose_zero, neg_zero, zero_add, add_zero] |
| 410 | rw [fromCols_mul_fromBlocks] |
| 411 | simp only [Matrix.mul_zero, zero_add, add_zero] |
| 412 | rw [fromCols_mul_fromRows, Matrix.mul_neg, Matrix.neg_mul, neg_add_eq_sub, Matrix.mul_assoc] |
| 413 | |
| 414 | /-- The shift `n₊(a)` fixes the image of the frame of `B` in `W`. -/ |
| 415 | private lemma lineShift_mul_embeddedFrame (a : Matrix Unit p (𝔸 E)) : |
| 416 | (A.lineShift B a).adeleMatrix * (A.iAdelic * B.kAdelic) = A.iAdelic * B.kAdelic := by |
| 417 | rw [adeleMatrix_lineShift] |
| 418 | simp only [Matrix.add_mul, Matrix.one_mul, Matrix.sub_mul, Matrix.mul_assoc, |
| 419 | A.iCoord_mul_iAdelic_mul, B.lCoord_mul_kAdelic, A.kCoord_mul_iAdelic_mul, |
| 420 | Matrix.mul_zero, sub_zero, add_zero] |
| 421 | |
| 422 | /-- The shift n₊(a) carries the frame (u, k) of the composite of A and B, k the image in W of the |
| 423 | frame of B, to (u − k aᴴ, k). -/ |
| 424 | lemma actsOnFrame_lineShift (a : Matrix Unit p (𝔸 E)) : |
| 425 | (A.comp B).ActsOnFrame (A.lineShift B a) (fromBlocks 1 0 (-aᴴ) 1) := by |
| 426 | -- compare the two sides on the column of `u` and on those of the frame of B |
| 427 | rw [ActsOnFrame, comp_kAdelic, Matrix.mul_fromCols, fromCols_mul_fromBlocks] |
| 428 | congr 1 |
| 429 | · rw [adeleMatrix_lineShift] |
| 430 | simp only [Matrix.add_mul, Matrix.one_mul, Matrix.mul_assoc, |
| 431 | A.iCoord_mul_kAdelic, A.kCoord_mul_kAdelic, Matrix.mul_zero, Matrix.mul_one, |
| 432 | Matrix.mul_neg, Matrix.neg_mul, zero_add, sub_eq_add_neg] |
| 433 | · simp only [lineShift_mul_embeddedFrame, Matrix.mul_zero, Matrix.mul_one, zero_add] |
| 434 | |
| 435 | variable (D : W.Splitting W₁ p) (T : Matrix p p E) (f : G E s → ℂ) |
| 436 | |
| 437 | /-- The partial mean f⁺(g): the mean, over the adelic rows b modulo the rational rows, of the |
| 438 | coefficient of f along D at T at the point n₋(b) g, where n₋(b) = `A.symm.lineShift B b`. The |
| 439 | partial mean for `A.symm` is f⁻. -/ |
| 440 | noncomputable def partialMean (g : G E s) : ℂ := |
| 441 | quotMean (ratMatrices E Unit p) fun b : Matrix Unit p (𝔸 E) ↦ |
| 442 | D.centerCoeff T f (A.symm.lineShift B b * g) |
| 443 | |
| 444 | /-- The function φ⁺_g(a) = f⁺(n₊(a) g) of an adelic row a, where f⁺ is the partial mean and |
| 445 | n₊(a) = `A.lineShift B a`. The function for `A.symm` is φ⁻_g. -/ |
| 446 | noncomputable def shiftedMean (g : G E s) (a : Matrix Unit p (𝔸 E)) : ℂ := |
| 447 | A.partialMean B D T f (A.lineShift B a * g) |
| 448 | |
| 449 | /-- At `a = 0`, the function φ⁺_g is the partial mean f⁺ at `g`. -/ |
| 450 | lemma shiftedMean_apply_zero (g : G E s) : |
| 451 | A.shiftedMean B D T f g 0 = A.partialMean B D T f g := by |
| 452 | rw [shiftedMean, lineShift_zero, one_mul] |
| 453 | |
| 454 | variable {A B D T f} |
| 455 | |
| 456 | /-- If the partial mean f⁺ is not zero at g, then the coefficient of f along D at T is not zero at |
| 457 | some point n₋(b) g. -/ |
| 458 | lemma exists_centreCoeff_ne_zero {g : G E s} (h_ne : A.partialMean B D T f g ≠ 0) : |
| 459 | ∃ b : Matrix Unit p (𝔸 E), D.centerCoeff T f (A.symm.lineShift B b * g) ≠ 0 := by |
| 460 | by_contra! h_zero |
| 461 | simp [partialMean, h_zero] at h_ne |
| 462 | |
| 463 | omit [WeilData E] in |
| 464 | /-- If the frame of D is the image of the frame of B, the coordinate `D.lCoord` is that of B after |
| 465 | the projection to the complement W₀. -/ |
| 466 | lemma lCoord_eq_lCoord_mul_iCoord (hD : D.kAdelic = A.iAdelic * B.kAdelic) : |
| 467 | D.lCoord = B.lCoord * A.iCoord := by |
| 468 | simp [lCoord, iCoord, hD, Matrix.mul_assoc] |
| 469 | |
| 470 | /-- If the frame of D is the image of the frame of B, the shifts n₊(a) fix it. -/ |
| 471 | lemma actsOnFrame_lineShift_one (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 472 | (a : Matrix Unit p (𝔸 E)) : D.ActsOnFrame (A.lineShift B a) 1 := by |
| 473 | rw [ActsOnFrame, hD, lineShift_mul_embeddedFrame, Matrix.mul_one] |
| 474 | |
| 475 | omit [WeilData E] in |
| 476 | /-- The product of the terms of n₊(a) and n₋(b) is `-(k aᴴ b l)`, where k is the image in W of |
| 477 | the frame of B and l = `B.lCoord * A.iCoord` is its coordinate map. -/ |
| 478 | private lemma lineShiftTerm_mul_symm (a b : Matrix Unit p (𝔸 E)) : |
| 479 | A.lineShiftTerm B a * A.symm.lineShiftTerm B b = |
| 480 | -(A.iAdelic * B.kAdelic * (aᴴ * b) * (B.lCoord * A.iCoord)) := by |
| 481 | unfold lineShiftTerm |
| 482 | rw [Matrix.sub_mul, Matrix.mul_sub, Matrix.mul_sub] |
| 483 | simp only [Matrix.mul_assoc, symm_iAdelic, symm_iCoord, symm_lAdelic, symm_kCoord, |
| 484 | A.iCoord_mul_kAdelic_mul, A.iCoord_mul_iAdelic_mul, B.lCoord_mul_kAdelic_mul, |
| 485 | A.kCoord_mul_kAdelic_mul, A.kCoord_mul_iAdelic_mul, Matrix.mul_zero, sub_zero, zero_sub] |
| 486 | |
| 487 | omit [WeilData E] in |
| 488 | /-- If the frame of `D` is the image of the frame of `B`, then for every `p × p` matrix `M` the |
| 489 | product `k M l` of the frame k of `D`, `M` and the coordinate map l of `D` with the term |
| 490 | `lineShiftTerm a` of n₊(a) is zero. -/ |
| 491 | private lemma radicalTerm_mul_lineShiftTerm (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 492 | (M : Matrix p p (𝔸 E)) (a : Matrix Unit p (𝔸 E)) : |
| 493 | D.kAdelic * M * D.lCoord * A.lineShiftTerm B a = 0 := by |
| 494 | rw [lineShiftTerm, lCoord_eq_lCoord_mul_iCoord hD, Matrix.mul_sub] |
| 495 | simp only [Matrix.mul_assoc, A.iCoord_mul_lAdelic_mul, A.iCoord_mul_iAdelic_mul, |
| 496 | B.lCoord_mul_kAdelic_mul, Matrix.mul_zero, sub_self] |
| 497 | |
| 498 | /-- Let the frame of `D` be the image under `A` of the frame of `B` (`hD`), and for adelic rows a, b |
| 499 | let n₊(a) = `A.lineShift B a` and n₋(b) = `A.symm.lineShift B b` be the shifts of the two isotropic |
| 500 | vectors of `A` by the frame of `D`: n₊(a) is u ↦ u − k aᴴ on the vector u, and n₋(b) does the same |
| 501 | for the other vector. Then n₊(a) n₋(b) = z(−aᴴ b) n₋(b) n₊(a), where z = `D.radicalCenter` |
| 502 | parametrises the centre of the unipotent radical of the stabiliser of the frame of `D`. -/ |
| 503 | lemma lineShift_mul_lineShift_symm (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 504 | (a b : Matrix Unit p (𝔸 E)) : |
| 505 | A.lineShift B a * A.symm.lineShift B b = |
| 506 | D.radicalCenter (-(aᴴ * b)) * (A.symm.lineShift B b * A.lineShift B a) := by |
| 507 | refine G.ext_adeleMatrix ?_ |
| 508 | -- Both shifts are 1 plus terms of square zero; the cross terms differ by k (bᴴ a − aᴴ b) k*ε. |
| 509 | have hDl : D.lCoord = B.lCoord * A.iCoord := lCoord_eq_lCoord_mul_iCoord hD |
| 510 | let X := A.lineShiftTerm B a |
| 511 | let Y := A.symm.lineShiftTerm B b |
| 512 | set Z : Matrix n n (𝔸 E) := D.kAdelic * (-(aᴴ * b) - (-(aᴴ * b))ᴴ) * D.lCoord |
| 513 | have h_prod (P Q : Matrix n n (𝔸 E)) : (1 + P) * (1 + Q) = 1 + (P + Q + P * Q) := by |
| 514 | simp only [Matrix.add_mul, Matrix.mul_add, Matrix.one_mul, Matrix.mul_one] |
| 515 | abel |
| 516 | have hXY := lineShiftTerm_mul_symm (A := A) (B := B) a b |
| 517 | have hYX := lineShiftTerm_mul_symm (A := A.symm) (B := B) b a |
| 518 | simp only [symm_symm, symm_iAdelic, symm_iCoord] at hYX |
| 519 | have hZX : Z * X = 0 := radicalTerm_mul_lineShiftTerm hD _ a |
| 520 | have hZY : Z * Y = 0 := radicalTerm_mul_lineShiftTerm (A := A.symm) hD _ b |
| 521 | have hZ : Z = A.iAdelic * B.kAdelic * (bᴴ * a) * (B.lCoord * A.iCoord) - |
| 522 | A.iAdelic * B.kAdelic * (aᴴ * b) * (B.lCoord * A.iCoord) := by |
| 523 | dsimp only [Z] |
| 524 | rw [hD, hDl, conjTranspose_neg, conjTranspose_mul, conjTranspose_conjTranspose, |
| 525 | sub_neg_eq_add, neg_add_eq_sub, Matrix.mul_sub, Matrix.sub_mul, Matrix.mul_assoc, |
| 526 | Matrix.mul_assoc] |
| 527 | rw [G.adeleMatrix_mul, G.adeleMatrix_mul, G.adeleMatrix_mul, adeleMatrix_radicalCenter, |
| 528 | adeleMatrix_lineShift, adeleMatrix_lineShift, symm_lAdelic, symm_iAdelic, symm_kCoord, |
| 529 | symm_iCoord] |
| 530 | change (1 + X) * (1 + Y) = (1 + Z) * ((1 + Y) * (1 + X)) |
| 531 | rw [h_prod X Y, h_prod Y X, h_prod Z (Y + X + Y * X)] |
| 532 | have hZ_all : Z * (Y + X + Y * X) = 0 := by |
| 533 | rw [Matrix.mul_add, Matrix.mul_add, hZY, hZX, ← Matrix.mul_assoc, hZY, Matrix.zero_mul, |
| 534 | add_zero, add_zero] |
| 535 | rw [hZ_all, add_zero, hXY, hYX, hZ] |
| 536 | abel |
| 537 | |
| 538 | /-- Let the frame of D be the image of the frame of B and let f be automorphic. The coefficient |
| 539 | along D at T at the point n₋(b) n₊(a) g is ψ(−tr T aᴴ b) times that at n₊(a) n₋(b) g. -/ |
| 540 | lemma centreCoeff_lineShift_symm_mul_lineShift (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 541 | (hf : IsAutFunction W f) (a b : Matrix Unit p (𝔸 E)) (g : G E s) : |
| 542 | D.centerCoeff T f (A.symm.lineShift B b * (A.lineShift B a * g)) = |
| 543 | stdAddChar E (T.map toAdele * -(aᴴ * b)).trace * |
| 544 | D.centerCoeff T f (A.lineShift B a * (A.symm.lineShift B b * g)) := by |
| 545 | rw [← mul_assoc (A.lineShift B a), lineShift_mul_lineShift_symm hD, mul_assoc, mul_assoc, |
| 546 | D.centreCoeff_radicalCentre_mul hf] |
| 547 | |
| 548 | /-- If the frame of D is the image of the frame of B and f is automorphic, then the coefficient of f |
| 549 | along D at T at the point n₊(a) g is a continuous function of a, periodic under rational rows. -/ |
| 550 | lemma isContPeriodic_centreCoeff_lineShift (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 551 | (hf : IsAutFunction W f) (g : G E s) : |
| 552 | IsContPeriodic (ratMatrices E Unit p) |
| 553 | fun a : Matrix Unit p (𝔸 E) ↦ D.centerCoeff T f (A.lineShift B a * g) := by |
| 554 | refine ⟨by fun_prop (disch := exact hf), fun γ hγ a ↦ ?_⟩ |
| 555 | simp only [lineShift_add, mul_assoc] |
| 556 | exact D.centreCoeff_rat_mul_of_actsOnFrame_one hf (A.lineShift_mem B hγ) |
| 557 | (actsOnFrame_lineShift_one hD γ) _ |
| 558 | |
| 559 | /-- If the frame of D is the image of the frame of B and f is automorphic, the partial mean f⁺ is |
| 560 | continuous. -/ |
| 561 | lemma continuous_partialMean (hD : D.kAdelic = A.iAdelic * B.kAdelic) (hf : IsAutFunction W f) : |
| 562 | Continuous (A.partialMean B D T f) := |
| 563 | continuous_quotMean (isContPeriodic_centreCoeff_lineShift (A := A.symm) hD hf) |
| 564 | ((D.continuous_centreCoeff hf).comp (by fun_prop)) |
| 565 | |
| 566 | /-- If the frame of D is the image of the frame of B, the partial mean is additive on automorphic |
| 567 | functions. -/ |
| 568 | lemma partialMean_add (hD : D.kAdelic = A.iAdelic * B.kAdelic) (hf : IsAutFunction W f) |
| 569 | {f' : G E s → ℂ} (hf' : IsAutFunction W f') (g : G E s) : |
| 570 | A.partialMean B D T (f + f') g = A.partialMean B D T f g + A.partialMean B D T f' g := by |
| 571 | simp only [partialMean, D.centreCoeff_add hf hf'] |
| 572 | exact MeasureTheory.integral_add |
| 573 | (isContPeriodic_centreCoeff_lineShift (A := A.symm) hD hf g).integrable_out |
| 574 | (isContPeriodic_centreCoeff_lineShift (A := A.symm) hD hf' g).integrable_out |
| 575 | |
| 576 | /-- If the frame of D is the image of the frame of B and f is automorphic, the partial mean f⁺ is |
| 577 | left invariant under all shifts n₋(b). -/ |
| 578 | lemma partialMean_lineShift_symm_mul (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 579 | (hf : IsAutFunction W f) (b : Matrix Unit p (𝔸 E)) (g : G E s) : |
| 580 | A.partialMean B D T f (A.symm.lineShift B b * g) = A.partialMean B D T f g := by |
| 581 | simpa only [partialMean, lineShift_add, mul_assoc] using |
| 582 | quotMean_translate (isContPeriodic_centreCoeff_lineShift (A := A.symm) hD hf g) b |
| 583 | |
| 584 | /-- Let the frame of D be the image of the frame of B and let f be automorphic. Left translation by |
| 585 | the element z(M) of the centre of the radical for D divides the partial mean f⁺ by ψ(tr TM). -/ |
| 586 | lemma partialMean_radicalCentre_mul (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 587 | (hf : IsAutFunction W f) (M : Matrix p p (𝔸 E)) (g : G E s) : |
| 588 | stdAddChar E (T.map toAdele * M).trace * A.partialMean B D T f (D.radicalCenter M * g) = |
| 589 | A.partialMean B D T f g := by |
| 590 | have h_comm (b : Matrix Unit p (𝔸 E)) : |
| 591 | A.symm.lineShift B b * D.radicalCenter M = D.radicalCenter M * A.symm.lineShift B b := by |
| 592 | simpa using D.mul_radicalCenter (actsOnFrame_lineShift_one (A := A.symm) hD b) M |
| 593 | simp only [partialMean, ← quotMean_const_mul, ← mul_assoc (A.symm.lineShift B _), h_comm] |
| 594 | simp only [mul_assoc, D.centreCoeff_radicalCentre_mul hf] |
| 595 | |
| 596 | /-- Replacing g by n₊(a) g translates φ⁺_g by a. -/ |
| 597 | lemma shiftedMean_lineShift_mul (a x : Matrix Unit p (𝔸 E)) (g : G E s) : |
| 598 | A.shiftedMean B D T f (A.lineShift B a * g) x = A.shiftedMean B D T f g (x + a) := by |
| 599 | rw [shiftedMean, shiftedMean, lineShift_add, mul_assoc] |
| 600 | |
| 601 | /-- Replacing g by n₊(a) g multiplies φ⁻_g(b) by ψ(−tr T aᴴ b), for f automorphic and the frame of D |
| 602 | the image of the frame of B. -/ |
| 603 | lemma shiftedMean_symm_lineShift_mul (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 604 | (hf : IsAutFunction W f) (a b : Matrix Unit p (𝔸 E)) (g : G E s) : |
| 605 | A.symm.shiftedMean B D T f (A.lineShift B a * g) b = |
| 606 | stdAddChar E (T.map toAdele * -(aᴴ * b)).trace * A.symm.shiftedMean B D T f g b := by |
| 607 | -- Move n₊(a) to the left, where it fixes f⁻. |
| 608 | have h_fix : A.symm.partialMean B D T f (A.lineShift B a * (A.symm.lineShift B b * g)) = |
| 609 | A.symm.partialMean B D T f (A.symm.lineShift B b * g) := |
| 610 | partialMean_lineShift_symm_mul (A := A.symm) hD hf a _ |
| 611 | rw [shiftedMean, shiftedMean, ← h_fix, ← mul_assoc (A.lineShift B a), |
| 612 | lineShift_mul_lineShift_symm hD, mul_assoc, mul_assoc, |
| 613 | partialMean_radicalCentre_mul (A := A.symm) hD hf] |
| 614 | |
| 615 | /-- Let the frame of D be the image of the frame of B and let f be automorphic. For a rational row |
| 616 | a₀, the value φ⁺_g(a₀ + a) is the Fourier coefficient at −T a₀ᴴ of the function that sends b to the |
| 617 | coefficient of f along D at T at the point n₋(b) n₊(a) g. -/ |
| 618 | lemma shiftedMean_rat_add (hD : D.kAdelic = A.iAdelic * B.kAdelic) (hf : IsAutFunction W f) |
| 619 | (a₀ : Matrix Unit p E) (a : Matrix Unit p (𝔸 E)) (g : G E s) : |
| 620 | A.shiftedMean B D T f g (a₀.map toAdele + a) = |
| 621 | quotMean (ratMatrices E Unit p) fun b : Matrix Unit p (𝔸 E) ↦ |
| 622 | stdAddChar E ((-(T * a₀ᴴ)).map toAdele * b).trace * |
| 623 | D.centerCoeff T f (A.symm.lineShift B b * (A.lineShift B a * g)) := by |
| 624 | -- Move n₊(a₀) to the left, where it fixes the coefficient along D. |
| 625 | have h_rat (x : G E s) : |
| 626 | D.centerCoeff T f (A.lineShift B (a₀.map toAdele) * x) = D.centerCoeff T f x := |
| 627 | D.centreCoeff_rat_mul_of_actsOnFrame_one hf (A.lineShift_mem B ⟨a₀, rfl⟩) |
| 628 | (actsOnFrame_lineShift_one hD _) x |
| 629 | have h_index (b : Matrix Unit p (𝔸 E)) : |
| 630 | T.map toAdele * -((a₀.map toAdele)ᴴ * b) = (-(T * a₀ᴴ)).map toAdele * b := by |
| 631 | rw [Matrix.map_neg _ (map_neg toAdele), Matrix.map_mul, ← conjTranspose_map_toAdele, |
| 632 | Matrix.neg_mul, Matrix.mul_neg, Matrix.mul_assoc] |
| 633 | simp only [shiftedMean, partialMean, lineShift_add, mul_assoc, |
| 634 | centreCoeff_lineShift_symm_mul_lineShift hD hf (a₀.map toAdele), h_rat, h_index] |
| 635 | |
| 636 | /-- Let the frame of D be the image of the frame of B, f automorphic and det T ≠ 0. If |
| 637 | φ⁺_{g'} = c φ⁺_g, then the coefficient of f along D at T at each point n₋(b) n₊(a) g' is c times |
| 638 | that at n₋(b) n₊(a) g. -/ |
| 639 | lemma centreCoeff_eq_mul_of_shiftedMean_eq_smul (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 640 | (hf : IsAutFunction W f) (hT : T.det ≠ 0) {g g' : G E s} {c : ℂ} |
| 641 | (h_eq : A.shiftedMean B D T f g' = c • A.shiftedMean B D T f g) (a b : Matrix Unit p (𝔸 E)) : |
| 642 | D.centerCoeff T f (A.symm.lineShift B b * (A.lineShift B a * g')) = |
| 643 | c * D.centerCoeff T f (A.symm.lineShift B b * (A.lineShift B a * g)) := by |
| 644 | -- As T is invertible, the values φ⁺(a₀ + a) are all the Fourier coefficients in b. |
| 645 | let F (x : G E s) (b : Matrix Unit p (𝔸 E)) : ℂ := |
| 646 | D.centerCoeff T f (A.symm.lineShift B b * (A.lineShift B a * x)) |
| 647 | have hF (x : G E s) : IsContPeriodic (ratMatrices E Unit p) (F x) := |
| 648 | isContPeriodic_centreCoeff_lineShift (A := A.symm) hD hf _ |
| 649 | have h_sub : IsContPeriodic (ratMatrices E Unit p) fun b ↦ F g' b - c * F g b := |
| 650 | ⟨(hF g').1.sub ((hF g).1.const_mul c), fun γ hγ b ↦ by simp [(hF g').2 γ hγ, (hF g).2 γ hγ]⟩ |
| 651 | refine sub_eq_zero.1 (eq_zero_of_quotMean_mul_eq_zero h_sub (fun (R : Matrix p Unit E) _ ↦ ?_) b) |
| 652 | obtain ⟨a₀, rfl⟩ : ∃ a₀ : Matrix Unit p E, -(T * a₀ᴴ) = R := ⟨-(T⁻¹ * R)ᴴ, by simp [hT]⟩ |
| 653 | let χ (b : Matrix Unit p (𝔸 E)) : ℂ := stdAddChar E ((-(T * a₀ᴴ)).map toAdele * b).trace |
| 654 | calc quotMean (ratMatrices E Unit p) (fun b ↦ χ b * (F g' b - c * F g b)) |
| 655 | _ = quotMean (ratMatrices E Unit p) (fun b ↦ χ b * F g' b) - |
| 656 | c * quotMean (ratMatrices E Unit p) fun b ↦ χ b * F g b := by |
| 657 | simpa only [mul_sub, mul_left_comm _ c] using |
| 658 | quotMean_sub_const_mul (isContPeriodic_mul (hF g') _) (isContPeriodic_mul (hF g) _) c |
| 659 | _ = A.shiftedMean B D T f g' (a₀.map toAdele + a) - |
| 660 | c * A.shiftedMean B D T f g (a₀.map toAdele + a) := by |
| 661 | rw [shiftedMean_rat_add hD hf, shiftedMean_rat_add hD hf] |
| 662 | _ = 0 := by simp [h_eq] |
| 663 | |
| 664 | /-- Let the frame of D be the image of the frame of B, f automorphic and det T ≠ 0. If |
| 665 | φ⁺_{g'} = c φ⁺_g, then φ⁻_{g'} = c φ⁻_g. -/ |
| 666 | lemma shiftedMean_symm_eq_smul (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 667 | (hf : IsAutFunction W f) (hT : T.det ≠ 0) {g g' : G E s} {c : ℂ} |
| 668 | (h_eq : A.shiftedMean B D T f g' = c • A.shiftedMean B D T f g) : |
| 669 | A.symm.shiftedMean B D T f g' = c • A.symm.shiftedMean B D T f g := by |
| 670 | -- The order of the two shifts matters only by a character that does not depend on the point. |
| 671 | funext b |
| 672 | have h_point (a : Matrix Unit p (𝔸 E)) : |
| 673 | D.centerCoeff T f (A.lineShift B a * (A.symm.lineShift B b * g')) = |
| 674 | c * D.centerCoeff T f (A.lineShift B a * (A.symm.lineShift B b * g)) := by |
| 675 | have h_swap (x : G E s) : D.centerCoeff T f (A.lineShift B a * (A.symm.lineShift B b * x)) = |
| 676 | stdAddChar E (T.map toAdele * -(bᴴ * a)).trace * |
| 677 | D.centerCoeff T f (A.symm.lineShift B b * (A.lineShift B a * x)) := |
| 678 | centreCoeff_lineShift_symm_mul_lineShift (A := A.symm) hD hf b a x |
| 679 | rw [h_swap, h_swap, centreCoeff_eq_mul_of_shiftedMean_eq_smul hD hf hT h_eq, mul_left_comm] |
| 680 | simp [shiftedMean, partialMean, h_point] |
| 681 | |
| 682 | /-- Let the frame of D be the image of the frame of B, f automorphic and det T ≠ 0. If φ⁺_g is zero, |
| 683 | then the coefficient of f along D at T is zero at g. -/ |
| 684 | lemma centreCoeff_eq_zero_of_shiftedMean_eq_zero (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 685 | (hf : IsAutFunction W f) (hT : T.det ≠ 0) {g : G E s} |
| 686 | (h_zero : A.shiftedMean B D T f g = 0) : D.centerCoeff T f g = 0 := by |
| 687 | simpa [lineShift_zero] using |
| 688 | centreCoeff_eq_mul_of_shiftedMean_eq_smul (c := 0) (g := g) hD hf hT (by simp [h_zero]) 0 0 |
| 689 | |
| 690 | /-- Let the frame of D be the image of the frame of B, f automorphic and det T ≠ 0. If φ⁺_g is zero, |
| 691 | then so is φ⁻_g. -/ |
| 692 | lemma shiftedMean_symm_eq_zero (hD : D.kAdelic = A.iAdelic * B.kAdelic) (hf : IsAutFunction W f) |
| 693 | (hT : T.det ≠ 0) {g : G E s} (h_zero : A.shiftedMean B D T f g = 0) : |
| 694 | A.symm.shiftedMean B D T f g = 0 := by |
| 695 | simpa using shiftedMean_symm_eq_smul (c := 0) (g := g) hD hf hT (by simp [h_zero]) |
| 696 | |
| 697 | end PartialMeans |
| 698 | |
| 699 | /-! |
| 700 | ## Singularity of the partial mean |
| 701 | |
| 702 | Invariance under the shears at a nonempty set of places spreads, by strong approximation for the |
| 703 | additive group, first to the centre of the radical for `A` and then to the whole radical. |
| 704 | -/ |
| 705 | |
| 706 | section Singularity |
| 707 | |
| 708 | open Matrix Exchange WeilData |
| 709 | |
| 710 | variable {E n n₁ n₂ p : Type} [Field E] [CMType E] [WeilData E] [Fintype n] [DecidableEq n] |
| 711 | [Fintype n₁] [DecidableEq n₁] [Fintype n₂] [DecidableEq n₂] [Fintype p] [DecidableEq p] |
| 712 | {s : n → ℤˣ} {s₁ : n₁ → ℤˣ} {s₂ : n₂ → ℤˣ} {W : Space E n s} |
| 713 | {W₀ : Space E ((p ⊕ p) ⊕ n₂) (hyperbolicSigns p ⊕ᵥ s₂)} {W₁ : Space E n₁ s₁} {W₂ : Space E n₂ s₂} |
| 714 | |
| 715 | /-- For an adele e and a point g, the condition that the partial mean f⁺ takes the same value at g |
| 716 | and ν g for every shear ν, that is, every ν with matrix 1 + ē·uc − e·a. Here u = `A.kAdelic` is the |
| 717 | isotropic vector of A, c is a row with cu = 0, and a is arbitrary. If e is the idempotent of a set |
| 718 | of places U disjoint from its conjugate, such a ν is 1 + uc on Ū and 1 outside U ∪ Ū. -/ |
| 719 | def ShearInvariant (A : W.Splitting W₀ Unit) (B : W₀.Splitting W₂ p) (D : W.Splitting W₁ p) |
| 720 | (T : Matrix p p E) (f : G E s → ℂ) (e : 𝔸 E) (g : G E s) : Prop := |
| 721 | ∀ ⦃ν : G E s⦄ (c : Matrix Unit n (𝔸 E)) (a : Matrix n n (𝔸 E)), |
| 722 | c * A.kAdelic = 0 → |
| 723 | ν.adeleMatrix = 1 + (star e • (A.kAdelic * c :) - e • a) → |
| 724 | A.partialMean B D T f (ν * g) = A.partialMean B D T f g |
| 725 | |
| 726 | /-- The Fourier coefficient of f along the composite of the splittings A (one line) and B, at the |
| 727 | block diagonal matrix 0 ⊕ T. -/ |
| 728 | noncomputable abbrev borderedCentreCoeff (A : W.Splitting W₀ Unit) (B : W₀.Splitting W₂ p) |
| 729 | (T : Matrix p p E) (f : G E s → ℂ) : G E s → ℂ := |
| 730 | (A.comp B).centerCoeff (fromBlocks 0 0 0 T) f |
| 731 | |
| 732 | variable {A : W.Splitting W₀ Unit} {B : W₀.Splitting W₂ p} {D : W.Splitting W₁ p} |
| 733 | |
| 734 | /-- If the frame of D is the image of the frame of B, the central element for the composite of A and |
| 735 | B with blocks z, b, c, N is the product of the central element for D at N, the shift n₋(b − cᴴ) and |
| 736 | the central element for A at z. -/ |
| 737 | lemma radicalCentre_comp_fromBlocks (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 738 | (z : Matrix Unit Unit (𝔸 E)) (b : Matrix Unit p (𝔸 E)) (c : Matrix p Unit (𝔸 E)) |
| 739 | (N : Matrix p p (𝔸 E)) : |
| 740 | (A.comp B).radicalCenter (fromBlocks z b c N) = |
| 741 | D.radicalCenter N * (A.symm.lineShift B (b - cᴴ) * A.radicalCenter z) := by |
| 742 | refine G.ext_adeleMatrix ?_ |
| 743 | have hDl : D.lCoord = B.lCoord * A.iCoord := lCoord_eq_lCoord_mul_iCoord hD |
| 744 | set U : Matrix n n (𝔸 E) := D.kAdelic * (N - Nᴴ) * D.lCoord |
| 745 | set V : Matrix n n (𝔸 E) := |
| 746 | A.kAdelic * (b - cᴴ) * (B.lCoord * A.iCoord) - A.iAdelic * B.kAdelic * (b - cᴴ)ᴴ * A.lCoord |
| 747 | set Z : Matrix n n (𝔸 E) := A.kAdelic * (z - zᴴ) * A.lCoord |
| 748 | have hVZ : V * Z = 0 := by |
| 749 | dsimp only [V, Z] |
| 750 | rw [Matrix.sub_mul] |
| 751 | simp only [Matrix.mul_assoc, A.iCoord_mul_kAdelic_mul, A.lCoord_mul_kAdelic_mul, |
| 752 | Matrix.mul_zero, sub_self] |
| 753 | have hUV : U * V = 0 := radicalTerm_mul_lineShiftTerm (A := A.symm) hD _ _ |
| 754 | have hUZ : U * Z = 0 := by |
| 755 | dsimp only [U, Z] |
| 756 | rw [hDl] |
| 757 | simp only [Matrix.mul_assoc, A.iCoord_mul_kAdelic_mul, Matrix.mul_zero] |
| 758 | have h_rhs : (1 + U) * ((1 + V) * (1 + Z)) = 1 + U + V + Z := by |
| 759 | simp only [Matrix.add_mul, Matrix.mul_add, Matrix.one_mul, Matrix.mul_one, hVZ, hUV, hUZ, |
| 760 | add_zero] |
| 761 | rw [G.adeleMatrix_mul, G.adeleMatrix_mul, adeleMatrix_radicalCenter, adeleMatrix_radicalCenter, |
| 762 | adeleMatrix_radicalCenter, adeleMatrix_lineShift, symm_lAdelic, symm_iAdelic, symm_kCoord, |
| 763 | symm_iCoord] |
| 764 | change 1 + (A.comp B).kAdelic * (fromBlocks z b c N - (fromBlocks z b c N)ᴴ) * |
| 765 | (A.comp B).lCoord = (1 + U) * ((1 + V) * (1 + Z)) |
| 766 | rw [h_rhs, comp_kAdelic, comp_lCoord, fromBlocks_conjTranspose, |
| 767 | sub_eq_add_neg (fromBlocks z b c N), fromBlocks_neg, fromBlocks_add, |
| 768 | fromCols_mul_fromBlocks, fromCols_mul_fromRows] |
| 769 | dsimp only [U, V, Z] |
| 770 | rw [hD, hDl] |
| 771 | simp only [Matrix.add_mul, Matrix.mul_add, Matrix.sub_mul, Matrix.mul_sub, conjTranspose_sub, |
| 772 | conjTranspose_conjTranspose, Matrix.mul_neg, Matrix.neg_mul, Matrix.mul_assoc] |
| 773 | abel |
| 774 | |
| 775 | /-- Let `A` split one hyperbolic plane off `W` over `W₀`, `B` split `p` planes off `W₀` over `W₂`, |
| 776 | and `D` split `p` planes off `W` over `W₁`. Let the frame of `D` be the image under `A` of the frame |
| 777 | of `B` (`hD`), and let `f` be automorphic. Then the coefficient of `f` along the composite of `A` |
| 778 | and `B` at `0 ⊕ T` is the mean, over the centre of the radical for `A`, of the partial mean f⁺. Here |
| 779 | f⁺(g) is the mean over adelic rows `b` modulo rational rows of the coefficient of `f` along `D` at |
| 780 | `T` at `n₋(b) g`. -/ |
| 781 | lemma borderedCentreCoeff_eq_quotMean (hD : D.kAdelic = A.iAdelic * B.kAdelic) {f : G E s → ℂ} |
| 782 | (hf : IsAutFunction W f) (T : Matrix p p E) (g : G E s) : |
| 783 | A.borderedCentreCoeff B T f g = |
| 784 | quotMean (ratMatrices E Unit Unit) fun z : Matrix Unit Unit (𝔸 E) ↦ |
| 785 | A.partialMean B D T f (A.radicalCenter z * g) := by |
| 786 | -- The integrand `Φ M` depends only on M₁₁, on M₁₂ − M₂₁ᴴ and on M₂₂. Take the mean over M₂₂, then |
| 787 | -- over M₁₂ and M₂₁, then over M₁₁. |
| 788 | let Φ (M : Matrix (Unit ⊕ p) (Unit ⊕ p) (𝔸 E)) : ℂ := |
| 789 | stdAddChar E ((fromBlocks 0 0 0 T).map toAdele * M).trace * f ((A.comp B).radicalCenter M * g) |
| 790 | have hΦ : IsContPeriodic (ratMatrices E (Unit ⊕ p) (Unit ⊕ p)) Φ := |
| 791 | isDualFamily_ratMatrices.isContPeriodic_mul (isContPeriodic_radicalCentre _ hf g) _ |
| 792 | have hΦ_eq (z : Matrix Unit Unit (𝔸 E)) (b : Matrix Unit p (𝔸 E)) (c : Matrix p Unit (𝔸 E)) |
| 793 | (N : Matrix p p (𝔸 E)) : |
| 794 | Φ (fromBlocks z b c N) = stdAddChar E (T.map toAdele * N).trace * |
| 795 | f (D.radicalCenter N * (A.symm.lineShift B (b - cᴴ) * (A.radicalCenter z * g))) := by |
| 796 | dsimp only [Φ] |
| 797 | rw [radicalCentre_comp_fromBlocks hD, mul_assoc, mul_assoc] |
| 798 | simp only [fromBlocks_map, Matrix.map_zero _ (map_zero toAdele), fromBlocks_multiply, |
| 799 | Matrix.zero_mul, zero_add, add_zero, trace_fromBlocks, trace_zero] |
| 800 | let φ₁ : Matrix Unit Unit (𝔸 E) × Matrix (Unit ⊕ p) (Unit ⊕ p) (𝔸 E) →+ |
| 801 | Matrix (Unit ⊕ p) (Unit ⊕ p) (𝔸 E) := |
| 802 | .mk' (fun (z, M) ↦ fromBlocks z M.toBlocks₁₂ M.toBlocks₂₁ M.toBlocks₂₂) |
| 803 | fun _ _ ↦ by rw [fromBlocks_add]; rfl |
| 804 | let φ₂ : Matrix (Unit ⊕ p) (Unit ⊕ p) (𝔸 E) × Matrix p p (𝔸 E) →+ |
| 805 | Matrix (Unit ⊕ p) (Unit ⊕ p) (𝔸 E) := |
| 806 | .mk' (fun (M, N) ↦ fromBlocks M.toBlocks₁₁ M.toBlocks₁₂ M.toBlocks₂₁ N) |
| 807 | fun _ _ ↦ by rw [fromBlocks_add]; rfl |
| 808 | let π : Matrix (Unit ⊕ p) (Unit ⊕ p) (𝔸 E) →+ Matrix Unit p (𝔸 E) := |
| 809 | .mk' (fun M ↦ M.toBlocks₁₂ - M.toBlocks₂₁ᴴ) |
| 810 | fun _ _ ↦ by ext1; simp [toBlocks₁₂, toBlocks₂₁, add_sub_add_comm] |
| 811 | obtain ⟨hφ₁, hφ₂, hπ⟩ : Continuous φ₁ ∧ Continuous φ₂ ∧ Continuous π := by |
| 812 | simp only [φ₁, φ₂, π, AddMonoidHom.mk'_apply, toBlocks₁₁, toBlocks₁₂, toBlocks₂₁, toBlocks₂₂] |
| 813 | refine ⟨?_, ?_, ?_⟩ <;> fun_prop |
| 814 | have hφ₁_rat : ∀ z ∈ ratMatrices E Unit Unit, ∀ M ∈ ratMatrices E (Unit ⊕ p) (Unit ⊕ p), |
| 815 | φ₁ (z, M) ∈ ratMatrices E (Unit ⊕ p) (Unit ⊕ p) := by |
| 816 | rintro _ ⟨z, rfl⟩ _ ⟨M, rfl⟩ |
| 817 | refine ⟨fromBlocks z M.toBlocks₁₂ M.toBlocks₂₁ M.toBlocks₂₂, ?_⟩ |
| 818 | refine Matrix.ext fun i j ↦ ?_ |
| 819 | rcases i with i | i <;> rcases j with j | j <;> rfl |
| 820 | have hφ₂_rat : ∀ M ∈ ratMatrices E (Unit ⊕ p) (Unit ⊕ p), ∀ N ∈ ratMatrices E p p, |
| 821 | φ₂ (M, N) ∈ ratMatrices E (Unit ⊕ p) (Unit ⊕ p) := by |
| 822 | rintro _ ⟨M, rfl⟩ _ ⟨N, rfl⟩ |
| 823 | refine ⟨fromBlocks M.toBlocks₁₁ M.toBlocks₁₂ M.toBlocks₂₁ N, ?_⟩ |
| 824 | refine Matrix.ext fun i j ↦ ?_ |
| 825 | rcases i with i | i <;> rcases j with j | j <;> rfl |
| 826 | have h_inner (z : Matrix Unit Unit (𝔸 E)) : |
| 827 | (quotMean (ratMatrices E (Unit ⊕ p) (Unit ⊕ p)) fun M ↦ Φ (φ₁ (z, M))) = |
| 828 | A.partialMean B D T f (A.radicalCenter z * g) := by |
| 829 | have hΦz : IsContPeriodic (ratMatrices E (Unit ⊕ p) (Unit ⊕ p)) fun M ↦ Φ (φ₁ (z, M)) := |
| 830 | ⟨hΦ.1.comp (hφ₁.comp (continuous_const.prodMk continuous_id)), fun γ hγ M ↦ by |
| 831 | have h := hΦ.2 _ (hφ₁_rat 0 (zero_mem _) γ hγ) (φ₁ (z, M)) |
| 832 | rwa [← map_add, Prod.mk_add_mk, zero_add] at h⟩ |
| 833 | have hφ₁₂ (M : Matrix (Unit ⊕ p) (Unit ⊕ p) (𝔸 E)) (N : Matrix p p (𝔸 E)) : |
| 834 | φ₁ (z, φ₂ (M, N)) = fromBlocks z M.toBlocks₁₂ M.toBlocks₂₁ N := by |
| 835 | refine Matrix.ext fun i j ↦ ?_ |
| 836 | rcases i with i | i <;> rcases j with j | j <;> rfl |
| 837 | calc (quotMean (ratMatrices E (Unit ⊕ p) (Unit ⊕ p)) fun M ↦ Φ (φ₁ (z, M))) |
| 838 | _ = quotMean (ratMatrices E (Unit ⊕ p) (Unit ⊕ p)) fun M ↦ |
| 839 | quotMean (ratMatrices E p p) fun N ↦ Φ (φ₁ (z, φ₂ (M, N))) := |
| 840 | (quotMean_quotMean _ hΦz _ φ₂ hφ₂ hφ₂_rat |
| 841 | fun M ↦ ⟨(M, M.toBlocks₂₂), M.fromBlocks_toBlocks⟩).symm |
| 842 | _ = quotMean (ratMatrices E (Unit ⊕ p) (Unit ⊕ p)) fun M ↦ |
| 843 | D.centerCoeff T f (A.symm.lineShift B (π M) * (A.radicalCenter z * g)) := by |
| 844 | simp only [hφ₁₂, hΦ_eq, centerCoeff, π, AddMonoidHom.mk'_apply] |
| 845 | _ = A.partialMean B D T f (A.radicalCenter z * g) := by |
| 846 | refine quotMean_comp _ π (isContPeriodic_centreCoeff_lineShift (A := A.symm) hD hf _) ?_ |
| 847 | (fun b ↦ ⟨fromBlocks 0 b 0 0, by simp [π]⟩) hπ |
| 848 | rintro _ ⟨M, rfl⟩ |
| 849 | exact ⟨M.toBlocks₁₂ - M.toBlocks₂₁ᴴ, by ext1; simp [π, toBlocks₁₂, toBlocks₂₁]⟩ |
| 850 | simp only [← h_inner] |
| 851 | exact (quotMean_quotMean _ hΦ _ φ₁ hφ₁ hφ₁_rat |
| 852 | fun M ↦ ⟨(M.toBlocks₁₁, M), M.fromBlocks_toBlocks⟩).symm |
| 853 | |
| 854 | /-- If the frame of D is the image of the frame of B, the centre of the radical for A fixes it. -/ |
| 855 | lemma actsOnFrame_radicalCentre_one (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 856 | (z : Matrix Unit Unit (𝔸 E)) : D.ActsOnFrame (A.radicalCenter z) 1 := by |
| 857 | simp [hD, Matrix.add_mul, Matrix.mul_assoc] |
| 858 | |
| 859 | /-- Let the frame of `D` be the image under `A` of the frame of `B` (`hD`), let `f` be automorphic, |
| 860 | `T` a p×p matrix over E and `U` a nonempty set of finite places, and let f⁺(x) be the mean, over |
| 861 | adelic rows b modulo rational rows, of the Fourier coefficient of `f` along `D` at `T` at |
| 862 | `A.symm.lineShift B b * x`. If f⁺ takes the same value at `g` and at νg for every shear |
| 863 | ν = 1 + ē·uc − e·a (e the idempotent adele of `U`, u = `A.kAdelic`, cu = 0), then |
| 864 | f⁺(`A.radicalCenter z * g`) = f⁺(g) for every adelic 1×1 matrix `z`. -/ |
| 865 | lemma ShearInvariant.partialMean_radicalCentre_mul (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 866 | {f : G E s → ℂ} (hf : IsAutFunction W f) {T : Matrix p p E} {U : Set (FinPlace E)} |
| 867 | (hU : U.Nonempty) {g : G E s} (h_shear : A.ShearInvariant B D T f (idemAdele U) g) : |
| 868 | ∀ z : Matrix Unit Unit (𝔸 E), |
| 869 | A.partialMean B D T f (A.radicalCenter z * g) = A.partialMean B D T f g := by |
| 870 | -- The function of z is continuous and invariant under rational z and under z supported on U; the |
| 871 | -- sums of these are dense. |
| 872 | let e : 𝔸 E := idemAdele U |
| 873 | suffices h_dense : ∀ (Y : Matrix Unit Unit E) (y : Matrix Unit Unit (𝔸 E)), |
| 874 | A.partialMean B D T f (A.radicalCenter (Y.map toAdele + e • y) * g) = |
| 875 | A.partialMean B D T f g from |
| 876 | (denseRange_rat_matrix_add hU 1).eq |
| 877 | (fun ⟨Y, y⟩ ↦ by |
| 878 | dsimp only [Function.comp_apply] |
| 879 | rw [inv_one, Units.val_one, Matrix.one_mul] |
| 880 | exact h_dense Y y) |
| 881 | ((continuous_partialMean hD hf).comp (A.continuous_radicalCenter.mul continuous_const)) |
| 882 | intro Y y |
| 883 | -- A rational point of the centre commutes with the shifts n₋(b) and fixes the frame of D. |
| 884 | have h_rat (x : G E s) : |
| 885 | A.partialMean B D T f (A.radicalCenter (Y.map toAdele) * x) = A.partialMean B D T f x := by |
| 886 | have h_comm (b : Matrix Unit p (𝔸 E)) : |
| 887 | A.symm.lineShift B b * A.radicalCenter (Y.map toAdele) = |
| 888 | A.radicalCenter (Y.map toAdele) * A.symm.lineShift B b := by |
| 889 | have h_frame : A.ActsOnFrame (A.symm.lineShift B b) 1 := by |
| 890 | rw [ActsOnFrame, adeleMatrix_lineShift, symm_lAdelic, symm_iAdelic, symm_kCoord, |
| 891 | symm_iCoord] |
| 892 | simp only [Matrix.add_mul, Matrix.one_mul, Matrix.sub_mul, Matrix.mul_assoc, |
| 893 | A.iCoord_mul_kAdelic, A.lCoord_mul_kAdelic, Matrix.mul_zero, Matrix.mul_one, |
| 894 | sub_zero, add_zero] |
| 895 | have h := A.mul_radicalCenter h_frame (Y.map toAdele) |
| 896 | rwa [Matrix.one_mul, conjTranspose_one, Matrix.mul_one] at h |
| 897 | simp only [partialMean, ← mul_assoc (A.symm.lineShift B _), h_comm] |
| 898 | have h_mem : A.radicalCenter (Y.map toAdele) ∈ W.Γ := A.radicalCenter_mem ⟨Y, rfl⟩ |
| 899 | simp only [mul_assoc, D.centreCoeff_rat_mul_of_actsOnFrame_one hf h_mem |
| 900 | (actsOnFrame_radicalCentre_one hD _)] |
| 901 | -- A point of the centre supported on U ∪ Ū is a shear. |
| 902 | have h_mat : (A.radicalCenter (e • y)).adeleMatrix = |
| 903 | 1 + (star e • (A.kAdelic * -(yᴴ * A.lCoord) :) - e • -(A.kAdelic * y * A.lCoord)) := by |
| 904 | rw [adeleMatrix_radicalCenter, conjTranspose_smul, Matrix.mul_sub, Matrix.sub_mul, |
| 905 | Matrix.mul_smul, Matrix.smul_mul, Matrix.mul_smul, Matrix.smul_mul, |
| 906 | Matrix.mul_neg, smul_neg, smul_neg, Matrix.mul_assoc, Matrix.mul_assoc] |
| 907 | abel |
| 908 | rw [AddChar.map_add_eq_mul, mul_assoc, h_rat, h_shear _ _ (by simp [Matrix.mul_assoc]) h_mat] |
| 909 | |
| 910 | /-- Let the frame of D be the image of the frame of B, let f be automorphic and U a nonempty set of |
| 911 | finite places. If the partial mean f⁺ is invariant at g under the shears for U, then f⁺(g) is the |
| 912 | coefficient of f along the composite of A and B at 0 ⊕ T. -/ |
| 913 | lemma ShearInvariant.borderedCentreCoeff_eq (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 914 | {f : G E s → ℂ} (hf : IsAutFunction W f) {T : Matrix p p E} {U : Set (FinPlace E)} |
| 915 | (hU : U.Nonempty) {g : G E s} (h_shear : A.ShearInvariant B D T f (idemAdele U) g) : |
| 916 | A.borderedCentreCoeff B T f g = A.partialMean B D T f g := by |
| 917 | simp [borderedCentreCoeff_eq_quotMean hD hf, h_shear.partialMean_radicalCentre_mul hD hf hU] |
| 918 | |
| 919 | /-- Let `W` be a Hermitian space over `E` of signature `s`, let `A` split `W` as a line plus `W₀`, |
| 920 | let `B` split `W₀` over `W₂` of isotropic rank `p`, let `f` be automorphic on `W`, and let `T` be |
| 921 | a `p × p` matrix over `E`. For any rational column vector `Y` on `W₀` and any `g' : G E s`, the |
| 922 | rational radical element `A.radicalElement (W₀.x⁻¹ Y) 0` leaves `A.borderedCentreCoeff B T f` |
| 923 | invariant on the left at `g'`. -/ |
| 924 | private lemma borderedCentreCoeff_radicalElement_rat_mul {f : G E s → ℂ} (hf : IsAutFunction W f) |
| 925 | (T : Matrix p p E) (Y : Matrix ((p ⊕ p) ⊕ n₂) Unit E) (g' : G E s) : |
| 926 | A.borderedCentreCoeff B T f (A.radicalElement (W₀.x⁻¹.val * Y.map toAdele) 0 * g') = |
| 927 | A.borderedCentreCoeff B T f g' := by |
| 928 | -- The rational point `A.radicalElement (W₀.x⁻¹ Y) 0` acts on the frame of `A.comp B` by a |
| 929 | -- unipotent matrix `u` with `uᴴ (0 ⊕ T) u = 0 ⊕ T`. |
| 930 | let Y₀ : Matrix ((p ⊕ p) ⊕ n₂) Unit (𝔸 E) := W₀.x⁻¹.val * Y.map toAdele |
| 931 | let u : Matrix (Unit ⊕ p) (Unit ⊕ p) E := fromBlocks 1 (Yᴴ * W₀.J * B.k) 0 1 |
| 932 | have h_frame : (A.comp B).ActsOnFrame (A.radicalElement Y₀ 0) (u.map toAdele) := by |
| 933 | rw [ActsOnFrame, comp_kAdelic, Matrix.mul_fromCols] |
| 934 | simp only [u, fromBlocks_map, Matrix.map_one _ (map_zero toAdele) (map_one toAdele), |
| 935 | Matrix.map_zero _ (map_zero toAdele), fromCols_mul_fromBlocks, |
| 936 | Matrix.mul_one, Matrix.mul_zero, add_zero] |
| 937 | congr 1 |
| 938 | · exact (A.actsOnFrame_radicalElement Y₀ 0).trans (Matrix.mul_one _) |
| 939 | · rw [← Matrix.mul_assoc, A.radicalElement_mul_iAdelic, Matrix.add_mul, add_comm] |
| 940 | congr 1 |
| 941 | have hB : B.kAdelic = W₀.x⁻¹.val * B.k.map toAdele := rfl |
| 942 | rw [Matrix.mul_assoc, Matrix.mul_assoc] |
| 943 | congr 1 |
| 944 | dsimp only [Y₀] |
| 945 | rw [hB, Matrix.map_mul, Matrix.map_mul, ← conjTranspose_map_toAdele, W₀.map_J, |
| 946 | conjTranspose_mul] |
| 947 | simp only [Matrix.mul_assoc] |
| 948 | rw [borderedCentreCoeff, |
| 949 | centreCoeff_rat_mul _ hf _ (A.radicalElement_mem_Gamma Y (by simp)) u h_frame] |
| 950 | simp only [u, fromBlocks_conjTranspose, conjTranspose_one, conjTranspose_zero, |
| 951 | fromBlocks_multiply, Matrix.mul_zero, Matrix.zero_mul, Matrix.one_mul, Matrix.mul_one, |
| 952 | add_zero, zero_add] |
| 953 | |
| 954 | /-- Let the frame of D be the image of the frame of B, let f be automorphic, T a p×p matrix over E |
| 955 | and U a nonempty set of finite places. Let f⁺(g) be the mean over adelic rows b, modulo rational |
| 956 | ones, of the coefficient of f along D at T at n₋(b) g. Suppose f⁺ is invariant at all points z g, |
| 957 | for z in the adelic centre of the radical for A, under the shears for U: the ν with matrix |
| 958 | 1 + ē·uc − e·a, where e is the idempotent of U, u the isotropic vector of A and cu = 0. Then the |
| 959 | coefficient of f along the composite of A and B at 0 ⊕ T is invariant at g under the elements |
| 960 | `A.radicalElement c z` of the adelic radical for A. -/ |
| 961 | lemma borderedCentreCoeff_radicalElement_mul (hD : D.kAdelic = A.iAdelic * B.kAdelic) |
| 962 | {f : G E s → ℂ} |
| 963 | (hf : IsAutFunction W f) {T : Matrix p p E} {U : Set (FinPlace E)} (hU : U.Nonempty) |
| 964 | {g : G E s} (h_shear : ∀ z : Matrix Unit Unit (𝔸 E), |
| 965 | A.ShearInvariant B D T f (idemAdele U) (A.radicalCenter z * g)) |
| 966 | (z : Matrix Unit Unit (𝔸 E)) : |
| 967 | ∀ c : Matrix ((p ⊕ p) ⊕ n₂) Unit (𝔸 E), |
| 968 | A.borderedCentreCoeff B T f (A.radicalElement c z * g) = A.borderedCentreCoeff B T f g := by |
| 969 | let e : 𝔸 E := idemAdele U |
| 970 | -- By strong approximation it suffices to take `c = W₀.x⁻¹ Y + e • y` with `Y` rational. |
| 971 | refine (denseRange_rat_matrix_add hU W₀.x).eq fun ⟨Y, y⟩ ↦ ?_ |
| 972 | let Y₀ : Matrix ((p ⊕ p) ⊕ n₂) Unit (𝔸 E) := W₀.x⁻¹.val * Y.map toAdele |
| 973 | have h_rat (g' : G E s) : |
| 974 | A.borderedCentreCoeff B T f (A.radicalElement Y₀ 0 * g') = |
| 975 | A.borderedCentreCoeff B T f g' := |
| 976 | borderedCentreCoeff_radicalElement_rat_mul hf T Y g' |
| 977 | -- The centre of the radical for `A` pairs trivially with `0 ⊕ T`. |
| 978 | have h_centre (M : Matrix Unit Unit (𝔸 E)) (g' : G E s) : |
| 979 | A.borderedCentreCoeff B T f (A.radicalCenter M * g') = A.borderedCentreCoeff B T f g' := by |
| 980 | have h := centreCoeff_radicalCentre_mul (A.comp B) hf (T := fromBlocks 0 0 0 T) |
| 981 | (fromBlocks M 0 0 0) g' |
| 982 | rw [radicalCentre_comp_fromBlocks hD] at h |
| 983 | simp only [conjTranspose_zero, sub_self, lineShift_zero, one_mul, AddChar.map_zero_eq_one, |
| 984 | fromBlocks_map, Matrix.map_zero _ (map_zero toAdele), fromBlocks_multiply, Matrix.zero_mul, |
| 985 | Matrix.mul_zero, add_zero, trace_fromBlocks, trace_zero, Circle.coe_one] at h |
| 986 | exact h |
| 987 | -- The element `ν` of the radical is a shear, and it commutes with the centre. |
| 988 | let ν : G E s := A.radicalElement (e • y) 0 |
| 989 | have h_local : A.borderedCentreCoeff B T f (ν * g) = A.borderedCentreCoeff B T f g := by |
| 990 | let c₁ : Matrix Unit n (𝔸 E) := yᴴ * stdForm E (hyperbolicSigns p ⊕ᵥ s₂) * |
| 991 | (A.iCoord - toAdele (2⁻¹ : E) • e • y * A.lCoord) |
| 992 | have h_mat : ν.adeleMatrix = 1 + (star e • (A.kAdelic * c₁ :) - e • |
| 993 | (A.iAdelic * y * A.lCoord)) := by |
| 994 | dsimp only [ν, Splitting.radicalElement] |
| 995 | rw [G.adeleMatrix_ofMatrix] |
| 996 | simp only [c₁, conjTranspose_zero, add_zero, smul_zero, zero_add, conjTranspose_smul, |
| 997 | Matrix.smul_mul, Matrix.mul_smul, Matrix.mul_sub, smul_sub, Matrix.mul_assoc] |
| 998 | have h_sc : toAdele (2⁻¹ : E) • e • star e • |
| 999 | (A.kAdelic * (yᴴ * (stdForm E (hyperbolicSigns p ⊕ᵥ s₂) * (y * A.lCoord)))) = |
| 1000 | star e • toAdele (2⁻¹ : E) • e • |
| 1001 | (A.kAdelic * (yᴴ * (stdForm E (hyperbolicSigns p ⊕ᵥ s₂) * (y * A.lCoord)))) := by |
| 1002 | simp only [smul_smul] |
| 1003 | congr 1 |
| 1004 | rw [mul_comm e, ← mul_assoc, mul_comm _ (star e), mul_assoc] |
| 1005 | rw [h_sc] |
| 1006 | abel |
| 1007 | have h_comm (w : Matrix Unit Unit (𝔸 E)) : |
| 1008 | A.radicalCenter w * (ν * g) = ν * (A.radicalCenter w * g) := by |
| 1009 | rw [← mul_assoc ν, A.mul_radicalCenter (A.actsOnFrame_radicalElement _ _), mul_assoc] |
| 1010 | simp [ν] |
| 1011 | simp only [borderedCentreCoeff_eq_quotMean hD hf, h_comm, |
| 1012 | h_shear _ c₁ _ (by simp [c₁, sub_eq_add_neg, Matrix.mul_assoc, Matrix.add_mul]) h_mat] |
| 1013 | -- The element is a product of a rational point, a point of the centre and the shear. |
| 1014 | let z' : Matrix Unit Unit (𝔸 E) := |
| 1015 | z - toAdele (j : E) • Y₀ᴴ * stdForm E (hyperbolicSigns p ⊕ᵥ s₂) * (e • y) |
| 1016 | have h_central : A.radicalCenter (-toAdele (j * 2 : E)⁻¹ • z') = A.radicalElement 0 z' := by |
| 1017 | change A.radicalElement 0 (-toAdele (j * 2 : E) • -toAdele (j * 2 : E)⁻¹ • z') = _ |
| 1018 | rw [smul_smul, neg_mul_neg, ← map_mul, mul_inv_cancel₀ (by simp [j_ne_zero]), map_one, one_smul] |
| 1019 | have h_split : A.radicalElement (Y₀ + e • y) z = |
| 1020 | A.radicalElement Y₀ 0 * (A.radicalElement 0 z' * ν) := by |
| 1021 | simp [ν, z', radicalElement_mul] |
| 1022 | rw [h_split, mul_assoc, mul_assoc, h_rat, ← h_central, h_centre, h_local] |
| 1023 | |
| 1024 | /-- Singularity. Let the frame of D be the image of the frame of B, let f be automorphic, T a p×p |
| 1025 | matrix over E, U a nonempty set of finite places and e an adele. Let f⁺(g) be the mean over adelic |
| 1026 | rows b, modulo rational ones, of the coefficient of f along D at T at n₋(b) g. Suppose f⁺ is |
| 1027 | invariant under the shears 1 + 1̄_U·uc − 1_U·a for U (1_U the idempotent of U, u the isotropic |
| 1028 | vector of A, cu = 0) at all points that fix e·k, k the frame of D. If g and h g fix e·k, for |
| 1029 | h = `A.radicalElement c z` in the adelic radical of the stabiliser of the line of A, then |
| 1030 | f⁺(h g) = f⁺(g). -/ |
| 1031 | lemma partialMean_radicalElement_mul (hD : D.kAdelic = A.iAdelic * B.kAdelic) {f : G E s → ℂ} |
| 1032 | (hf : IsAutFunction W f) {T : Matrix p p E} {U : Set (FinPlace E)} (hU : U.Nonempty) {e : 𝔸 E} |
| 1033 | (h_shear : ∀ g ∈ D.frameStabilizer e, A.ShearInvariant B D T f (idemAdele U) g) {g : G E s} |
| 1034 | {c : Matrix ((p ⊕ p) ⊕ n₂) Unit (𝔸 E)} {z : Matrix Unit Unit (𝔸 E)} |
| 1035 | (hg : g ∈ D.frameStabilizer e) (h_mem : A.radicalElement c z * g ∈ D.frameStabilizer e) : |
| 1036 | A.partialMean B D T f (A.radicalElement c z * g) = A.partialMean B D T f g := by |
| 1037 | calc A.partialMean B D T f (A.radicalElement c z * g) |
| 1038 | _ = A.borderedCentreCoeff B T f (A.radicalElement c z * g) := |
| 1039 | ((h_shear _ h_mem).borderedCentreCoeff_eq hD hf hU).symm |
| 1040 | _ = A.borderedCentreCoeff B T f g := borderedCentreCoeff_radicalElement_mul hD hf hU |
| 1041 | (fun w ↦ h_shear _ (mul_mem ((actsOnFrame_radicalCentre_one hD w).mem_frameStabilizer e) hg)) |
| 1042 | z c |
| 1043 | _ = A.partialMean B D T f g := (h_shear g hg).borderedCentreCoeff_eq hD hf hU |
| 1044 | |
| 1045 | end Singularity |
| 1046 | |
| 1047 | end New.Space.Splitting |