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 Mathlib.Dynamics.Ergodic.Action.Regular |
| 4 | import Mathlib.LinearAlgebra.Matrix.CharP |
| 5 | import Mathlib.RingTheory.Etale.Weakly |
| 6 | import Mathlib.RingTheory.TotallySplit |
| 7 | import Mathlib.Topology.Compactness.Paracompact |
| 8 | import Mathlib.Topology.UniformSpace.Uniformizable |
| 9 | import TauCeti.NumberTheory.NumberField.Countable |
| 10 | import TauCeti.Topology.Algebra.Group.Units |
| 11 | import TauCeti.Topology.Instances.Matrix |
| 12 | public import Lib.SiegelWeil.SingularForms.UnimodularCoefficients |
| 13 | public import Lib.SiegelWeil.Tower.LineTerms |
| 14 | public import Lib.SiegelWeil.Tower.PrincipalIdeles |
| 15 | public import Lib.Weil.DualPair.ThetaIntegrals |
| 16 | import Lib.Adelic.QuotientMeasure.IwasawaUnfolding |
| 17 | import Lib.Adelic.Reduction.DefiniteClassSums |
| 18 | import Lib.Adelic.Unitary.RationalPoints |
| 19 | import Lib.Adelic.Unitary.WeakApproximation |
| 20 | import Lib.Adelic.Witt.WittTheorem |
| 21 | import Lib.Cohomology.Etale.Basic |
| 22 | import Lib.DiscreteSeries.Haar.TotalMass |
| 23 | import Lib.Weil.DualPair.WeilAction |
| 24 | |
| 25 | /-! |
| 26 | # The constant term of a theta integral, unfolded along isotropic lines |
| 27 | |
| 28 | The constant term, along an isotropic line of the source space `W'`, of the theta kernel and of the |
| 29 | theta integral over the unitary group of the target space. |
| 30 | |
| 31 | * `New.Exchange.constTermAt`: the term of a rational vector of the target; it is 0 unless the vector |
| 32 | is isotropic. |
| 33 | * `New.Exchange.hasSum_constTermAt`, `New.Exchange.integral_thetaIntegral_lineRadical`: the constant |
| 34 | term of the theta kernel is the sum of these, and, if the kernel is bounded on the target group |
| 35 | (`IsTargetBounded`), that of the theta integral is the integral of this sum over the target group. |
| 36 | * `New.Exchange.radicalSubgroup`, `New.Exchange.radicalHaar`: the radical of the stabiliser of a |
| 37 | line of the target space and its Haar measure; `New.Exchange.lintegral_radicalHaar_conj_lineLevi` |
| 38 | gives the module of conjugation by the Levi factor. |
| 39 | * `New.Exchange.exists_unfold_constant_term`: if the term of the zero vector vanishes and the |
| 40 | integrand is integrable, the sum unfolds along the isotropic lines (one orbit, by Witt's theorem) |
| 41 | to an integral in Iwasawa coordinates. |
| 42 | |
| 43 | Throughout, `A : W'.Splitting W Unit` writes the source space `W'` as a hyperbolic plane plus `W`. |
| 44 | Where the target space is `V'`, it is split in the same way by `X : V'.Splitting V Unit`, and |
| 45 | `splittingLine X` is the isotropic line spanned by the vector `X.k`. The bracket `[U(V)]` denotes |
| 46 | the quotient of the adelic unitary group `G E t` of `V` by its rational points. |
| 47 | |
| 48 | Notions from other files: |
| 49 | * `New.Space.Splitting`: A decomposition V = (lE^p ⊕ kE^p) ⊥ iV₀ over E: isotropic frames l, k with |
| 50 | l*Jk = 1, an isometry i from V₀ orthogonal to both, and rk V = rk V₀ + 2p. |
| 51 | * `New.Space.Splitting.radicalElement`, `New.Exchange.lineRadical`, `New.Exchange.lineLevi`: |
| 52 | elements of the unipotent radical and of the Levi factor of the stabiliser of the isotropic line. |
| 53 | * `New.Space.Splitting.homSlice`: The term f[x], a datum on Hom(W, V), of a datum f on Hom(W', V) |
| 54 | at the value x on k; θ(f) is the sum of the θ(f[x]) over rational x, and |
| 55 | `New.Space.Splitting.thetaTerm` is θ((ω(g, h) f)[x]), with ω the Weil representation |
| 56 | `New.pairWeil` of the pair. |
| 57 | * `New.pairTheta`, `New.Exchange.thetaIntegral`: the theta kernel θ(ω(g, h) f) and its integral |
| 58 | over h in [U(V)]. |
| 59 | * `New.Exchange.lineTerm`: for an adele ξ, the map `lineTerm A X true ξ` from data on Hom(W', V') to |
| 60 | data on Hom(W, V) sends f to the zero term (the mean along the line of `X`) of the term |
| 61 | f[ξ • X.k]; the model `false` does the same with the roles of the two lines exchanged. |
| 62 | |
| 63 | ## Relation to the literature |
| 64 | |
| 65 | Known; see `Lib.SiegelWeil.Tower.LargeSideConstantTerm` for sources. |
| 66 | -/ |
| 67 | |
| 68 | @[expose] public section |
| 69 | |
| 70 | noncomputable section |
| 71 | |
| 72 | namespace New.Exchange |
| 73 | |
| 74 | open Matrix MeasureTheory Measure Units MulAction Space Splitting Submodule Pointwise Function Equiv |
| 75 | WeilData |
| 76 | |
| 77 | variable {E : Type} [Field E] [CMType E] [WeilData E] {n n' r r' : Type} [Fintype n] [DecidableEq n] |
| 78 | [Fintype n'] [DecidableEq n'] [Fintype r] [DecidableEq r] [Fintype r'] [DecidableEq r'] |
| 79 | {s : n → ℤˣ} {s' : n' → ℤˣ} {t : r → ℤˣ} {t' : r' → ℤˣ} {W : Space E n s} {W' : Space E n' s'} |
| 80 | {V : Space E r t} {V' : Space E r' t'} (A : W'.Splitting W Unit) (X : V'.Splitting V Unit) |
| 81 | (a b : AutChar E) |
| 82 | |
| 83 | /-- The probability measure on the parameters of `lineRadical`: the product of the measures of |
| 84 | adelic matrices modulo rational matrices. Integration against it is the mean over the radical of |
| 85 | the stabiliser of the line modulo its rational points, that is, the constant term. -/ |
| 86 | abbrev radicalMeasure : Measure (Matrix n Unit (𝔸 E) × Matrix Unit Unit (𝔸 E)) := |
| 87 | (ratMatrices E n Unit).quotMeasure.prod (ratMatrices E Unit Unit).quotMeasure |
| 88 | |
| 89 | open scoped Classical in |
| 90 | /-- The term of the rational vector `x` of `V` in the constant term along the line of `A`: zero |
| 91 | unless `x` is isotropic, and then the mean of the term of `x` in the theta kernel of `f` over the |
| 92 | radical modulo its centre and its rational points. -/ |
| 93 | def constTermAt (x : Matrix r Unit E) (f : 𝒮 (W'.hom V)) : ℂ := |
| 94 | if xᴴ * V.J * x = 0 then |
| 95 | ⨍ y : Matrix n Unit (𝔸 E), A.thetaTerm V 1 1 f (lineRadical A (y, 0)) x 1 |
| 96 | ∂(ratMatrices E n Unit).quotMeasure |
| 97 | else 0 |
| 98 | |
| 99 | /-- The term of the rational vector `x` in the theta kernel at the point `lineRadical A q` of the |
| 100 | radical: the central coordinate `q.2` acts by the character `ψ (tr (xᴴ J x q.2))`, where `ψ` is the |
| 101 | standard additive character and `J` the Gram matrix of `V`, and `q.1` gives the point at which the |
| 102 | term `f[x] = A.homSlice V (V.x⁻¹ x) f` is evaluated. The matrices `V.x⁻¹` and `W.x⁻¹` pass to the |
| 103 | adelic coordinates in which the forms are the standard ones, `stdForm`; `matrixToVec` flattens a |
| 104 | matrix to a vector. The right side does not involve the characters `a`, `b`. -/ |
| 105 | lemma thetaTerm_lineRadical (x : Matrix r Unit E) (f : 𝒮 (W'.hom V)) |
| 106 | (q : Matrix n Unit (𝔸 E) × Matrix Unit Unit (𝔸 E)) : |
| 107 | A.thetaTerm V a b f (lineRadical A q) x 1 = |
| 108 | (stdAddChar E (q.2 * (xᴴ * V.J * x).map toAdele).trace : ℂ) * |
| 109 | A.homSlice V (V.x⁻¹.val * x.map toAdele) f |
| 110 | (matrixToVec (V.x⁻¹.val * x.map toAdele * (W.x⁻¹.val * q.1)ᴴ * stdForm E s)) := by |
| 111 | -- `θ` is evaluation at `0`, and the Heisenberg operator `ϱ` translates the argument. |
| 112 | rw [Splitting.thetaTerm, homSlice_radicalElement, gram_at_point_eq_map] |
| 113 | simp [← mul_assoc, ← map_mul, theta_apply, rho_apply, Heisenberg.beta_zero_left] |
| 114 | |
| 115 | /-- The term `constTermAt A x f` is the integral of the term of `x` in the theta kernel of `f` over |
| 116 | the whole radical modulo its rational points, for any automorphic characters `a` and `b`. -/ |
| 117 | lemma constTermAt_eq_integral (x : Matrix r Unit E) (f : 𝒮 (W'.hom V)) : |
| 118 | constTermAt A x f = ∫ q : Matrix n Unit (𝔸 E) × Matrix Unit Unit (𝔸 E), |
| 119 | A.thetaTerm V a b f (lineRadical A q) x 1 ∂radicalMeasure := by |
| 120 | classical |
| 121 | -- The indicator of `xᴴ * V.J * x = 0` is the mean of the character `ψ (tr (xᴴ * V.J * x * z))` |
| 122 | -- of `z`, so the left side is an integral over the product. |
| 123 | have h_indicator : (if xᴴ * V.J * x = 0 then 1 else 0 : ℂ) = |
| 124 | ∫ z : Matrix Unit Unit (𝔸 E), (stdAddChar E ((xᴴ * V.J * x).map toAdele * z).trace : ℂ) |
| 125 | ∂(ratMatrices E Unit Unit).quotMeasure := by |
| 126 | rw [← isDualFamily_ratMatrices.quotMean_eq_ite, ← average_quotMeasure_eq_quotMean _ volume |
| 127 | (isDualFamily_ratMatrices.periodic _), average_eq_integral] |
| 128 | rw [constTermAt, ← mul_boole, h_indicator, average_eq_integral, ← integral_prod_mul] |
| 129 | congr with q |
| 130 | simp [thetaTerm_lineRadical, trace_mul_comm q.2, mul_comm (stdAddChar E _ : ℂ)] |
| 131 | |
| 132 | /-- The terms `constTermAt` of all rational vectors of `V` sum to the constant term of the theta |
| 133 | kernel of `f`, that is, to its integral over the radical of the stabiliser of the line of `A` |
| 134 | modulo rational points. -/ |
| 135 | lemma hasSum_constTermAt {f : 𝒮 (W'.hom V)} : |
| 136 | HasSum (fun x : r → E ↦ constTermAt A (replicateCol Unit x) f) |
| 137 | (∫ q : Matrix n Unit (𝔸 E) × Matrix Unit Unit (𝔸 E), |
| 138 | pairTheta W' V a b f (lineRadical A q, 1) ∂radicalMeasure) := by |
| 139 | -- Integrate the expansion `hasSum_theta_homSlice` of the theta kernel term by term. |
| 140 | let bound (x : Matrix r Unit E) : ℝ := |
| 141 | ‖(W.hom V).θ‖ * ‖(A.homSource V).slice (toAdele ∘ uncurry x) f‖ |
| 142 | have h_summable : Summable bound := |
| 143 | (((A.homSource V).summable_norm_slice f).mul_left _).comp_injective uncurry_injective |
| 144 | -- Up to a scalar of norm one, each term is a value of the function `slice x f`. |
| 145 | have h_le (x : Matrix r Unit E) (q) : ‖A.thetaTerm V a b f (lineRadical A q) x 1‖ ≤ bound x := by |
| 146 | rw [thetaTerm_lineRadical, norm_mul, Circle.norm_coe, one_mul, homSlice_eq_slice] |
| 147 | exact norm_apply_le (W.hom V) _ _ |
| 148 | have h_expand (q) : HasSum (fun x : Matrix r Unit E ↦ A.thetaTerm V a b f (lineRadical A q) x 1) |
| 149 | (pairTheta W' V a b f (lineRadical A q, 1)) := |
| 150 | A.hasSum_theta_homSlice V (pairWeil W' V a b (lineRadical A q, 1) f) |
| 151 | let column : (r → E) ≃ Matrix r Unit E := piCongrRight fun _ ↦ (funUnique Unit E).symm |
| 152 | change HasSum ((fun x : Matrix r Unit E ↦ constTermAt A x f) ∘ column) _ |
| 153 | simp_rw [column.hasSum_iff, constTermAt_eq_integral A a b] |
| 154 | exact hasSum_integral_of_dominated_convergence (fun x _ ↦ bound x) |
| 155 | (fun x ↦ by fun_prop [Splitting.thetaTerm]) (fun x ↦ .of_forall (h_le x)) |
| 156 | (.of_forall fun _ ↦ h_summable) (by simp) (.of_forall h_expand) |
| 157 | |
| 158 | /-- The term of the zero vector is the theta functional of `Hom(W, V)` at the term of `f` at `0`. -/ |
| 159 | lemma constTermAt_zero (f : 𝒮 (W'.hom V)) : |
| 160 | constTermAt A 0 f = θ (W.hom V) (A.homSlice V 0 f) := by |
| 161 | simp [constTermAt, Splitting.thetaTerm, homSlice_radicalElement, matrixToVec_zero, |
| 162 | Heisenberg.Rep.rho_zero_apply, theta_apply] |
| 163 | |
| 164 | /-- For `ξ ≠ 0`, the term of the rational vector `ξ • X.k` on the isotropic line of `X` in the |
| 165 | constant term along the line of `A` (`constTermAt A`, defined as the mean of its theta term over the |
| 166 | radical) equals the theta functional of `Hom(W, V)` at `lineTerm A X true ξ f`. That is the |
| 167 | translate of `f` by `ξ • X.kAdelic * A.kCoord` (`X.kAdelic` is the adelic vector spanning the line |
| 168 | of `X`, `A.kCoord` the coordinate along the `k`-frame of `A`), followed by the zero terms along the |
| 169 | line of `A` and then of `X`. -/ |
| 170 | lemma constTermAt_smul_k {ξ : E} (hξ : ξ ≠ 0) {f : 𝒮 (W'.hom V')} : |
| 171 | constTermAt A (ξ • X.k) f = θ (W.hom V) (lineTerm A X true (toAdele ξ) f) := by |
| 172 | -- The right side is the mean of a periodic function `F` over `𝔸 ^ n` modulo `E ^ n`. |
| 173 | let F (y : Unit × n → 𝔸 E) : ℂ := A.homSlice V' (toAdele ξ • X.kAdelic) f |
| 174 | ((X.homTarget W).iAdelic *ᵥ 0 + (X.homTarget W).kAdelic *ᵥ y) |
| 175 | have hF : IsContPeriodic (ratVectors E (Unit × n)) F := |
| 176 | (X.homTarget W).isContPeriodic_along_k _ 0 |
| 177 | have h_mean : θ (W.hom V) (lineTerm A X true (toAdele ξ) f) = |
| 178 | quotMean (ratVectors E (Unit × n)) F := Splitting.zeroTerm_apply _ 0 |
| 179 | -- Substitute `y ↦ ξ • yᴴ`, which is onto as `ξ ≠ 0` and keeps rational points. |
| 180 | let φ : Matrix n Unit (𝔸 E) →+ (Unit × n → 𝔸 E) := |
| 181 | .mk' (fun y ↦ toAdele ξ • matrixToVec yᴴ) (by simp [matrixToVec_add]) |
| 182 | have h_cont : Continuous φ := show Continuous fun y : Matrix n Unit (𝔸 E) ↦ |
| 183 | toAdele ξ • matrixToVec yᴴ by fun_prop [matrixToVec] |
| 184 | have h_rat : ∀ y ∈ ratMatrices E n Unit, φ y ∈ ratVectors E (Unit × n) := by |
| 185 | rintro _ ⟨x, rfl⟩ |
| 186 | exact ⟨ξ • matrixToVec xᴴ, by aesop (add simp conjTranspose_map_toAdele)⟩ |
| 187 | have h_surj : Surjective φ := fun y ↦ ⟨(toAdele ξ⁻¹ • vecToMatrix y)ᴴ, by |
| 188 | simp [φ, smul_smul, ← map_mul, hξ, star_toAdele, matrixToVec_smul, matrixToVec_vecToMatrix]⟩ |
| 189 | have hFφ : IsContPeriodic (ratMatrices E n Unit) fun y ↦ F (φ y) := |
| 190 | ⟨hF.1.comp h_cont, fun γ hγ y ↦ by simp only [map_add, hF.2 _ (h_rat γ hγ)]⟩ |
| 191 | have h_iso : (ξ • X.k)ᴴ * V'.J * (ξ • X.k) = 0 := by simp |
| 192 | have h_integrand (y : Matrix n Unit (𝔸 E)) : |
| 193 | A.thetaTerm V' 1 1 f (lineRadical A (y, 0)) (ξ • X.k) 1 = F (φ y) := by |
| 194 | simp only [thetaTerm_lineRadical, F, homTarget_kAdelic] |
| 195 | simp [X.k.map_smulₛₗ _ toAdele, φ, kAdelic, kronecker_mulVec_eq_matrixToVec, dualFrame, |
| 196 | Matrix.mul_assoc, matrixToVec_smul, mulVec_smul, vecToMatrix_matrixToVec, -transpose_mul] |
| 197 | rw [h_mean, ← quotMean_comp _ φ hF h_rat h_surj h_cont, |
| 198 | ← average_quotMeasure_eq_quotMean _ volume hFφ] |
| 199 | simp only [constTermAt, ite_eq_left h_iso, h_integrand] |
| 200 | |
| 201 | /-- Suppose the theta kernel of `f` grows at most like a power of the height on the group of `W'`, |
| 202 | uniformly on the group of `V` (`IsTargetBounded`). Then the constant term at `g` along the line of |
| 203 | `A` of the theta integral of `f` (characters `a`, `b` of [U(1)]) equals the integral over `h` in |
| 204 | `[U(V)]` of the sum of `constTermAt` over the rational vectors `x` of `V` for |
| 205 | `pairWeil W' V a b (g, h) f`. That constant term is the mean over the radical `lineRadical` modulo |
| 206 | its rational points. A term `constTermAt` is zero unless `x` is isotropic, and otherwise the mean of |
| 207 | the term of `x` in the theta kernel over the radical modulo its centre and rational points. Here |
| 208 | `[U(V)]` is the adelic unitary group `G E t` of `V` modulo its rational points. -/ |
| 209 | lemma integral_thetaIntegral_lineRadical {f : 𝒮 (W'.hom V)} (hf : IsTargetBounded W' V f) |
| 210 | (g : G E s') : |
| 211 | ∫ q : Matrix n Unit (𝔸 E) × Matrix Unit Unit (𝔸 E), |
| 212 | thetaIntegral W' V a b f (lineRadical A q * g) ∂radicalMeasure = |
| 213 | ∫ h : G E t, ∑' x : r → E, constTermAt A (replicateCol Unit x) (pairWeil W' V a b (g, h) f) |
| 214 | ∂V.quotMeasure := by |
| 215 | obtain ⟨B, C, h_growth⟩ := hf |
| 216 | obtain ⟨K, hK, h_cover⟩ := exists_isCompact_rat_mul_radicalElement_mem A |
| 217 | -- The radical is compact modulo rational points, so the height, which is invariant under |
| 218 | -- them, is bounded on its translate by `g`. |
| 219 | obtain ⟨D, hD⟩ : ∃ D : ℝ, ∀ x : G E s', ∀ γ ∈ W'.Γ, |
| 220 | γ * x ∈ (fun y ↦ y * g) '' K → C * W'.height x ^ B ≤ D := |
| 221 | exists_mul_height_pow_le (hK.image_of_continuous _) C |
| 222 | have h_bound (q) (h : G E t) : ‖pairTheta W' V a b f (lineRadical A q * g, h)‖ ≤ D := by |
| 223 | obtain ⟨y, z, h_rat, h_mem⟩ := h_cover (W.x⁻¹.val * q.1) (toAdele (2 : E) • q.2) |
| 224 | exact (h_growth a b _ h).trans (hD _ (A.radicalElement y z) h_rat ⟨_, h_mem, mul_assoc _ _ g⟩) |
| 225 | -- Sum the terms by `hasSum_constTermAt`; what remains is Fubini for a bounded continuous kernel. |
| 226 | simp only [(hasSum_constTermAt A a b).tsum_eq, ← pairTheta_mul, Prod.mk_mul_mk, one_mul, |
| 227 | thetaIntegral] |
| 228 | exact integral_integral_swap (.of_bound (by fun_prop) D (.of_forall fun p ↦ h_bound p.1 p.2)) |
| 229 | |
| 230 | /-- Coordinates on the radical of the stabiliser of a line: a column and a hermitian scalar. -/ |
| 231 | abbrev RadicalCoord (E r : Type) [Field E] [CMType E] : Type := |
| 232 | Matrix r Unit (𝔸 E) × selfAdjoint (Matrix Unit Unit (𝔸 E)) |
| 233 | |
| 234 | /-- The hermitian part `(b + b*) / 2`. -/ |
| 235 | def hermitianPart (b : Matrix Unit Unit (𝔸 E)) : selfAdjoint (Matrix Unit Unit (𝔸 E)) := |
| 236 | ⟨_, .add_star_self (toAdele (2⁻¹ : E) • b)⟩ |
| 237 | |
| 238 | /-- The point of the radical of the stabiliser of the line of `X` with given coordinates. -/ |
| 239 | def radicalPoint (p : RadicalCoord E r) : G E t' := X.radicalElement p.1 p.2.val |
| 240 | |
| 241 | omit [WeilData E] in |
| 242 | lemma coe_hermitianPart (b : Matrix Unit Unit (𝔸 E)) : |
| 243 | (hermitianPart b).val = toAdele (2⁻¹ : E) • (b + bᴴ) := by |
| 244 | simp [hermitianPart, star_eq_conjTranspose, star_toAdele, smul_add] |
| 245 | |
| 246 | /-- The point `X.radicalElement c b` depends only on the hermitian part of `b`. -/ |
| 247 | lemma radicalPoint_hermitianPart (c : Matrix r Unit (𝔸 E)) (b : Matrix Unit Unit (𝔸 E)) : |
| 248 | radicalPoint X (c, hermitianPart b) = X.radicalElement c b := by |
| 249 | -- `b` enters the matrix only through `b + bᴴ`. |
| 250 | have h_sum : (hermitianPart b).val + (hermitianPart b).valᴴ = b + bᴴ := by |
| 251 | simp only [coe_hermitianPart, smul_add, conjTranspose_add, conjTranspose_smul, star_toAdele, |
| 252 | star_inv₀, star_ofNat, conjTranspose_conjTranspose] |
| 253 | match_scalars <;> grind |
| 254 | exact G.ext_adeleMatrix (by simp only [radicalPoint, radicalElement, G.adeleMatrix_ofMatrix, |
| 255 | h_sum]) |
| 256 | |
| 257 | /-- The coordinates `radicalPoint X` embed a column and a hermitian scalar as a closed subset of |
| 258 | the adelic unitary group of `V'`. -/ |
| 259 | lemma isClosedEmbedding_radicalPoint : Topology.IsClosedEmbedding (radicalPoint X) := by |
| 260 | -- Read off the coordinates from the matrix blocks via a continuous left inverse. |
| 261 | refine LeftInverse.isClosedEmbedding (f := fun g : G E t' => |
| 262 | (-X.iCoord * g.adeleMatrix * X.lAdelic, |
| 263 | hermitianPart (-toAdele (j : E) • X.kCoord * g.adeleMatrix * X.lAdelic))) |
| 264 | ?_ (by fun_prop [hermitianPart]) (by fun_prop [radicalPoint]) |
| 265 | rintro ⟨c, b, hb⟩ |
| 266 | refine Prod.ext (by simp [radicalPoint, radicalElement, Matrix.mul_assoc, Matrix.mul_add, |
| 267 | Matrix.add_mul, Matrix.mul_sub, G.adeleMatrix_ofMatrix]) (Subtype.ext ?_) |
| 268 | simp [radicalPoint, radicalElement, IsHermitian.eq hb, Matrix.mul_assoc, Matrix.mul_add, |
| 269 | Matrix.add_mul, Matrix.mul_sub, Matrix.sub_mul, G.adeleMatrix_ofMatrix] |
| 270 | -- The second summand is skew-hermitian, as `star j = -j`. |
| 271 | simp [coe_hermitianPart, IsHermitian.eq hb, Matrix.mul_assoc, star_toAdele, star_j, |
| 272 | conjTranspose_stdForm] |
| 273 | match_scalars <;> grind |
| 274 | |
| 275 | /-- The group law of the radical in coordinates: the columns add, and the hermitian scalars add |
| 276 | with a correction, the hermitian part of the product of `j` (the chosen element of `E` with |
| 277 | `star j = -j`) and the pairing of the two columns for the standard form. -/ |
| 278 | lemma radicalPoint_mul (x q : RadicalCoord E r) : |
| 279 | radicalPoint X x * radicalPoint X q = radicalPoint X |
| 280 | (x.1 + q.1, x.2 + hermitianPart (toAdele (j : E) • x.1ᴴ * stdForm E t * q.1) + q.2) := by |
| 281 | let z : Matrix Unit Unit (𝔸 E) := toAdele (j : E) • x.1ᴴ * stdForm E t * q.1 |
| 282 | have h_part : x.2 + hermitianPart z + q.2 = hermitianPart (x.2.val + z + q.2.val) := by |
| 283 | ext : 1 |
| 284 | simp only [AddSubgroup.coe_add, coe_hermitianPart, smul_add, conjTranspose_add, |
| 285 | IsHermitian.eq x.2.prop, IsHermitian.eq q.2.prop] |
| 286 | match_scalars <;> grind |
| 287 | rw [h_part, radicalPoint_hermitianPart, radicalPoint, radicalPoint, radicalElement_mul] |
| 288 | |
| 289 | /-- The radical of the stabiliser of the line of `X`, as a subgroup of the adelic unitary group of |
| 290 | `V'`: the range of the coordinates `radicalPoint X`. -/ |
| 291 | def radicalSubgroup : Subgroup (G E t') := |
| 292 | Subgroup.ofDiv (Set.range (radicalPoint X)) (Set.range_nonempty (radicalPoint X)) <| by |
| 293 | rintro _ ⟨p, rfl⟩ _ ⟨q, rfl⟩ |
| 294 | rw [radicalPoint, radicalPoint, radicalElement_inv, radicalElement_mul] |
| 295 | exact ⟨_, radicalPoint_hermitianPart X _ _⟩ |
| 296 | |
| 297 | /-- The radical consists of the elements `X.radicalElement c b`, with `b` not necessarily |
| 298 | hermitian. -/ |
| 299 | lemma mem_radicalSubgroup_iff (g : G E t') : |
| 300 | g ∈ radicalSubgroup X ↔ |
| 301 | ∃ (c : Matrix r Unit (𝔸 E)) (b : Matrix Unit Unit (𝔸 E)), X.radicalElement c b = g := |
| 302 | ⟨fun ⟨⟨c, b⟩, hg⟩ ↦ ⟨c, b, hg⟩, |
| 303 | fun ⟨c, b, hg⟩ ↦ ⟨(c, hermitianPart b), (radicalPoint_hermitianPart X c b).trans hg⟩⟩ |
| 304 | |
| 305 | lemma radicalElement_mem_radicalSubgroup (c : Matrix r Unit (𝔸 E)) (b : Matrix Unit Unit (𝔸 E)) : |
| 306 | X.radicalElement c b ∈ radicalSubgroup X := |
| 307 | (mem_radicalSubgroup_iff X _).2 ⟨c, b, rfl⟩ |
| 308 | |
| 309 | lemma isClosed_radicalSubgroup : IsClosed (radicalSubgroup X : Set (G E t')) := |
| 310 | (isClosedEmbedding_radicalPoint X).isClosed_range |
| 311 | |
| 312 | /-- The coordinates `radicalPoint X` as a homeomorphism onto the radical. -/ |
| 313 | def radicalHomeomorph : RadicalCoord E r ≃ₜ radicalSubgroup X := |
| 314 | (isClosedEmbedding_radicalPoint X).toHomeomorph |
| 315 | |
| 316 | /-- The measure on the radical that corresponds to the additive Haar measure on its coordinates. -/ |
| 317 | def radicalHaar : Measure (radicalSubgroup X) := |
| 318 | (volume.prod addHaar).map (radicalHomeomorph X) |
| 319 | |
| 320 | /-- The measure `radicalHaar X` is a left Haar measure on the radical. -/ |
| 321 | instance isHaarMeasure_radicalHaar : IsHaarMeasure (radicalHaar X) := by |
| 322 | let e := radicalHomeomorph X |
| 323 | -- In coordinates a left translation is a skew product of translations. |
| 324 | have h_inv : IsMulLeftInvariant (radicalHaar X) := by |
| 325 | refine ⟨fun ⟨_, x, rfl⟩ ↦ ?_⟩ |
| 326 | let T (q : RadicalCoord E r) : RadicalCoord E r := |
| 327 | (x.1 + q.1, x.2 + hermitianPart (toAdele (j : E) • x.1ᴴ * stdForm E t * q.1) + q.2) |
| 328 | have hT : MeasurePreserving T (volume.prod addHaar) (volume.prod addHaar) := |
| 329 | (measurePreserving_add_left _ x.1).skew_product (g := fun c b ↦ (T (c, b)).2) |
| 330 | (Continuous.measurable (by fun_prop [hermitianPart])) |
| 331 | (by simp [T, map_add_left_eq_self, Matrix.mul_assoc]) |
| 332 | refine ((e.measurable.measurePreserving _).of_semiconj hT (fun q ↦ ?_) (by fun_prop)).map_eq |
| 333 | exact Subtype.ext (radicalPoint_mul X x q).symm |
| 334 | exact { IsFiniteMeasureOnCompacts.map _ e, h_inv, |
| 335 | e.continuous.isOpenPosMeasure_map e.surjective with } |
| 336 | |
| 337 | /-- An integral over the radical, written in the coordinates `radicalPoint X`. -/ |
| 338 | lemma lintegral_radicalHaar (f : G E t' → ENNReal) : |
| 339 | ∫⁻ n : radicalSubgroup X, f n ∂radicalHaar X = |
| 340 | ∫⁻ q : RadicalCoord E r, f (radicalPoint X q) ∂volume.prod addHaar := |
| 341 | (radicalHomeomorph X).measurableEmbedding.lintegral_map _ |
| 342 | |
| 343 | /-- Conjugation by the Levi element `lineLevi X (u, h)`, for an idele `u` and a point `h` of the |
| 344 | adelic unitary group of `V`, multiplies integrals over the radical by `|u| ^ (rk V + 1)`, where |
| 345 | `|u| = ideleAbs u` is the module of `u`. -/ |
| 346 | lemma lintegral_radicalHaar_conj_lineLevi (p : (𝔸 E)ˣ × G E t) (f : G E t' → ENNReal) |
| 347 | (hf : Measurable f) : |
| 348 | ∫⁻ n : radicalSubgroup X, f (lineLevi X p * n * (lineLevi X p)⁻¹) ∂radicalHaar X = |
| 349 | ENNReal.ofReal (ideleAbs p.1 ^ (Fintype.card r + 1)) * |
| 350 | ∫⁻ n : radicalSubgroup X, f n ∂radicalHaar X := by |
| 351 | -- With `p = (u, h)` and `a = u⁻¹`, conjugation acts by `c ↦ h * c * aᴴ` and `b ↦ a * b * aᴴ`; |
| 352 | -- these maps scale the measures by `|u| ^ rk V` (as `|det h| = 1`) and by `|u|`. |
| 353 | let a : GL Unit (𝔸 E) := .scalar Unit p.1⁻¹ |
| 354 | let h : GL r (𝔸 E) := p.2.toUnitary |
| 355 | let C₁ (c : Matrix r Unit (𝔸 E)) : Matrix r Unit (𝔸 E) := h.val * c * (star a).val |
| 356 | let C₂ (b : selfAdjoint (Matrix Unit Unit (𝔸 E))) : selfAdjoint (Matrix Unit Unit (𝔸 E)) := |
| 357 | ⟨a.val * b.val * star a.val, .conjugate b.prop a.val⟩ |
| 358 | have h_conj (q : RadicalCoord E r) : |
| 359 | lineLevi X p * radicalPoint X q * (lineLevi X p)⁻¹ = radicalPoint X (Prod.map C₁ C₂ q) := |
| 360 | mul_inv_eq_of_eq_mul (X.levi_conj_radicalElement q.1 q.2 a p.2) |
| 361 | have hC₁ : MeasurePreserving C₁ volume |
| 362 | (ENNReal.ofReal (ideleAbs ((star a).det ^ Fintype.card r * h.det))⁻¹ • volume) := |
| 363 | ⟨Continuous.measurable (by fun_prop), volume_map_mul_mul_adele h (star a)⟩ |
| 364 | have hC₂ : MeasurePreserving C₂ addHaar (ENNReal.ofReal (ideleAbs a.det)⁻¹ • addHaar) := |
| 365 | ⟨by fun_prop, map_conjugate_selfAdjoint (a := a) addHaar⟩ |
| 366 | have h_det : ideleAbs h.det = 1 := ideleAbs_eq_one_of_mem_unitary p.2.det.prop |
| 367 | have hC : MeasurePreserving (Prod.map C₁ C₂) (volume.prod addHaar) |
| 368 | (ENNReal.ofReal (ideleAbs p.1 ^ (Fintype.card r + 1)) • volume.prod addHaar) := by |
| 369 | convert hC₁.prod hC₂ |
| 370 | simp [a, h_det, pow_succ', prod_smul_left, prod_smul_right, smul_smul, |
| 371 | ideleAbs_nonneg_and_ne_zero, det_star, ideleAbs_star] |
| 372 | rw [lintegral_radicalHaar X fun g ↦ f (lineLevi X p * g * (lineLevi X p)⁻¹), |
| 373 | lintegral_radicalHaar X f] |
| 374 | simp only [h_conj] |
| 375 | exact (hC.lintegral_comp (hf.comp (isClosedEmbedding_radicalPoint X).measurable)).trans |
| 376 | (lintegral_smul_measure _ _) |
| 377 | |
| 378 | /-- The Levi factor meets the radical only in the identity: if the Levi element `lineLevi X p` lies |
| 379 | in the radical, then `p = 1`. -/ |
| 380 | lemma eq_one_of_levi_mem_radical {p : (𝔸 E)ˣ × G E t} |
| 381 | (hp : lineLevi X p ∈ radicalSubgroup X) : p = 1 := by |
| 382 | obtain ⟨a, g⟩ := p |
| 383 | obtain ⟨c, b, h_eq⟩ := (mem_radicalSubgroup_iff X _).1 hp |
| 384 | -- Compare the two diagonal blocks that determine `a` and `g`. |
| 385 | have h_mat : (lineLevi X (a, g)).adeleMatrix = (X.radicalElement c b).adeleMatrix := by rw [h_eq] |
| 386 | have ha : a = 1 := by |
| 387 | simpa [lineLevi, Splitting.levi, radicalElement, ← ext_iff, Matrix.one_apply, Matrix.mul_assoc, |
| 388 | G.adeleMatrix_ofMatrix, Matrix.mul_add, coord_mul_frame_mul, coord_mul_frame, Matrix.add_mul, |
| 389 | Matrix.mul_sub, Matrix.sub_mul] using congrArg (X.kCoord * · * X.kAdelic) h_mat |
| 390 | have hg : g.adeleMatrix = 1 := by |
| 391 | simpa [lineLevi, Splitting.levi, radicalElement, Matrix.mul_assoc, G.adeleMatrix_ofMatrix, |
| 392 | Matrix.mul_add, |
| 393 | coord_mul_frame_mul, coord_mul_frame, Matrix.add_mul, Matrix.mul_sub, Matrix.sub_mul] |
| 394 | using congrArg (X.iCoord * · * X.iAdelic) h_mat |
| 395 | exact Prod.ext ha (G.ext_adeleMatrix (hg.trans G.adeleMatrix_one.symm)) |
| 396 | |
| 397 | section |
| 398 | |
| 399 | omit [WeilData E] |
| 400 | |
| 401 | /-- Unfolding on the product of the ideles and the adelic unitary group of `V`: the Haar integral |
| 402 | of a measurable `f` is the integral, against the product of the quotient measures, of the sum of |
| 403 | `f (d * m)` over the pairs `d` of a principal idele and a rational point of the group. -/ |
| 404 | lemma lintegral_levi_unfold (f : (𝔸 E)ˣ × G E t → ENNReal) (hf : Measurable f) : |
| 405 | ∫⁻ m : (𝔸 E)ˣ × G E t, f m ∂(haar.prod volume) = |
| 406 | ∫⁻ m : (𝔸 E)ˣ × G E t, ∑' d : principalAdeleUnits E × V.Γ, |
| 407 | f (Prod.map (principalAdeleUnits E).subtype V.Γ.subtype d * m) |
| 408 | ∂((principalAdeleUnits E).quotMeasure haar).prod V.quotMeasure := by |
| 409 | have h_unitary (u : (𝔸 E)ˣ) : |
| 410 | ∫⁻ h : G E t, f (u, h) = ∑' γ : V.Γ, ∫⁻ h : G E t, f (u, γ * h) ∂V.quotMeasure := by |
| 411 | rw [← lintegral_orbitMeasure_lintegral (ν := count (α := V.Γ)) (by fun_prop), |
| 412 | ← lintegral_tsum (by fun_prop)] |
| 413 | simp only [lintegral_count, Subgroup.smul_def, _root_.smul_eq_mul] |
| 414 | -- Unfold in the idele variable, then in the unitary one. |
| 415 | rw [lintegral_prod _ (by fun_prop), lintegral_prod _ (by fun_prop), |
| 416 | ← lintegral_orbitMeasure_lintegral (ν := count (α := principalAdeleUnits E)) (by fun_prop)] |
| 417 | refine lintegral_congr fun u ↦ ?_ |
| 418 | rw [lintegral_count, lintegral_tsum (by fun_prop), tsum_prod'] |
| 419 | simp [h_unitary, Subgroup.smul_def] |
| 420 | |
| 421 | /-- The rational isotropic line of the splitting `X`: the span of the vector `X.k`. -/ |
| 422 | def splittingLine : Submodule E (r' → E) := E ∙ X.k.col () |
| 423 | |
| 424 | /-- The rational points of the stabiliser of the isotropic line `splittingLine X`, as a subgroup of |
| 425 | the adelic unitary group of `V'`. -/ |
| 426 | def lineStabilizer : Subgroup (G E t') := |
| 427 | (stabilizer (U V'.J) (splittingLine X)).map V'.ratEmbed |
| 428 | |
| 429 | /-- The rational stabiliser of the isotropic line of `X` consists of the rational points (`V'.Γ`) |
| 430 | that multiply the vector `X.kAdelic` spanning the line by a unit of `E`. -/ |
| 431 | lemma mem_lineStabilizer_iff (g : G E t') : |
| 432 | g ∈ lineStabilizer X ↔ |
| 433 | g ∈ V'.Γ ∧ ∃ ξ : Eˣ, X.ActsOnFrame g (scalar Unit (toAdele ξ.val)) := by |
| 434 | -- A rational point `γ` fixes the span of `X.k` iff it multiplies `X.k` by a unit `ξ`; pass to |
| 435 | -- the adeles by the injective map `vecAtPoint`. |
| 436 | have h_rat (γ : U V'.J) : γ ∈ stabilizer (U V'.J) (splittingLine X) ↔ |
| 437 | ∃ ξ : Eˣ, X.ActsOnFrame (V'.ratEmbed γ) (scalar Unit (toAdele ξ.val)) := by |
| 438 | have h_frame (ξ : Eˣ) : X.ActsOnFrame (V'.ratEmbed γ) (scalar Unit (toAdele ξ.val)) ↔ |
| 439 | ∀ i : r', ((V'.ratEmbed γ).adeleMatrix *ᵥ V'.vecAtPoint (X.k.col ())) i = |
| 440 | V'.vecAtPoint (X.k.col ()) i * toAdele ξ.val := by |
| 441 | simp only [ActsOnFrame, ← ext_iff, Unique.forall_iff, scalar_apply, mul_diagonal] |
| 442 | rfl |
| 443 | have h_span : γ ∈ stabilizer (U V'.J) (splittingLine X) ↔ |
| 444 | ∃ ξ : Eˣ, ξ • X.k.col () = γ.val.val *ᵥ X.k.col () := by |
| 445 | rw [← span_singleton_eq_span_singleton, eq_comm] |
| 446 | simp [splittingLine, Subgroup.smul_def, Units.smul_def, smul_span] |
| 447 | simp only [h_span, h_frame, ← V'.vecAtPoint_injective.eq_iff, ← ratEmbed_mulVec_vecAtPoint] |
| 448 | simp only [Units.smul_def, LinearMap.map_smulₛₗ, funext_iff, Pi.smul_apply, smul_eq_mul] |
| 449 | exact exists_congr fun _ ↦ forall_congr' fun _ ↦ by rw [mul_comm, eq_comm] |
| 450 | simp only [lineStabilizer, Space.Γ, Subgroup.mem_map, MonoidHom.mem_range, h_rat] |
| 451 | grind |
| 452 | |
| 453 | /-- The rational stabiliser of the line is discrete, as a subset of the rational points. -/ |
| 454 | instance : DiscreteTopology (lineStabilizer X) := |
| 455 | DiscreteTopology.of_subset (inferInstance : DiscreteTopology V'.Γ) |
| 456 | fun g hg ↦ ((mem_lineStabilizer_iff X g).1 hg).1 |
| 457 | |
| 458 | /-- The embedding `lineLevi X` of the Levi factor is continuous. -/ |
| 459 | lemma continuous_lineLevi : Continuous (lineLevi X) := by |
| 460 | -- In block coordinates all three summands depend continuously on the Levi factor. |
| 461 | rw [G.continuous_iff] |
| 462 | change Continuous fun p : (𝔸 E)ˣ × G E t ↦ |
| 463 | (X.levi (GeneralLinearGroup.scalar Unit p.1⁻¹, p.2)).adeleMatrix |
| 464 | simp [Splitting.adeleMatrix_levi] |
| 465 | fun_prop |
| 466 | |
| 467 | end |
| 468 | |
| 469 | /-- The Iwasawa decomposition for the isotropic line of `X`: every `g` is the product of an element |
| 470 | of the radical, a Levi element and an element of the maximal compact subgroup. -/ |
| 471 | lemma exists_eq_radicalElement_mul_lineLevi_mul (g : G E t') : |
| 472 | ∃ (c : Matrix r Unit (𝔸 E)) (z : Matrix Unit Unit (𝔸 E)) (m : (𝔸 E)ˣ × G E t) |
| 473 | (κ : maxCompact E t'), g = X.radicalElement c z * lineLevi X m * κ := by |
| 474 | obtain ⟨κ, hκ, a, -, -, c, z, g₀, hg⟩ := X.iwasawa g (wt := 0) |
| 475 | -- The block `a` is a scalar `u⁻¹`, so `X.levi (a, g₀)` is by definition `lineLevi X (u, g₀)`. |
| 476 | obtain ⟨u, rfl⟩ : ∃ u : (𝔸 E)ˣ, GeneralLinearGroup.scalar Unit u⁻¹ = a := |
| 477 | ⟨a.det⁻¹, by ext <;> simp⟩ |
| 478 | exact ⟨c, z, (u, g₀), ⟨κ, hκ⟩⁻¹, eq_mul_inv_of_mul_eq hg⟩ |
| 479 | |
| 480 | omit [WeilData E] in |
| 481 | /-- The Levi element of a principal idele `u` and a rational point `g₀` lies in the rational |
| 482 | stabiliser of the isotropic line of `X`. -/ |
| 483 | lemma lineLevi_mem_lineStabilizer {u : (𝔸 E)ˣ} (hu : u ∈ principalAdeleUnits E) {g₀ : G E t} |
| 484 | (hg₀ : g₀ ∈ V.Γ) : lineLevi X (u, g₀) ∈ lineStabilizer X := by |
| 485 | obtain ⟨ξ, rfl⟩ := hu |
| 486 | have h_levi : lineLevi X (Units.map (toAdele (E := E)).toMonoidHom ξ, g₀) = |
| 487 | X.levi (GeneralLinearGroup.map toAdele (.scalar Unit ξ⁻¹), g₀) := |
| 488 | congrArg (fun a ↦ X.levi (a, g₀)) (by ext <;> simp) |
| 489 | -- The element is rational by `h_levi`, and it acts on the line by `ξ⁻¹`. |
| 490 | exact (mem_lineStabilizer_iff X _).2 |
| 491 | ⟨by simpa only [h_levi] using X.levi_mem_Gamma _ hg₀, ξ⁻¹, X.actsOnFrame_levi _ g₀⟩ |
| 492 | |
| 493 | /-- An element of the rational stabiliser of the isotropic line of `X` is moved into the radical by |
| 494 | the Levi element of a principal idele and a rational point. -/ |
| 495 | lemma exists_radicalElement_eq_mul_lineLevi {g : G E t'} (hg : g ∈ lineStabilizer X) : |
| 496 | ∃ u ∈ principalAdeleUnits E, ∃ g₀ ∈ V.Γ, |
| 497 | ∃ (c : Matrix r Unit (𝔸 E)) (b : Matrix Unit Unit (𝔸 E)), |
| 498 | X.radicalElement c b = g * lineLevi X (u, g₀) := by |
| 499 | obtain ⟨⟨γ, hγ⟩, ξ, hξ⟩ := (mem_lineStabilizer_iff X g).1 hg |
| 500 | -- Levi decomposition `g = radicalElement c b * levi (ξ, g₀)`; the block `g₀` is rational. |
| 501 | obtain ⟨c, b, a, g₀, h_eq, ha, hg₀⟩ := X.exists_eq_radicalElement_mul_levi hξ |
| 502 | have hg₀_rat : g₀ ∈ V.Γ := by |
| 503 | -- The block of the rational point `γ` at `V`, in the rational coordinates of `V`. |
| 504 | let M : Matrix r r E := V.J⁻¹ * X.iᴴ * V'.J * γ.val.val * X.i |
| 505 | have hM : M.map toAdele = V.x.val * g₀.adeleMatrix * V.x⁻¹.val := by |
| 506 | simp [M, ← hγ, iCoord, hg₀, iAdelic, adeleMatrix_ratEmbed, V'.map_J, map_J_inv, Space.ratMap, |
| 507 | Matrix.mul_assoc, conjTranspose_map_toAdele] |
| 508 | exact V.mem_Gamma_iff_range.2 (mem_ratMatrices.1 ⟨M, hM⟩) |
| 509 | obtain rfl : a = .scalar Unit (ξ.map toAdele.toMonoidHom) := Units.ext ha |
| 510 | refine ⟨_, ⟨ξ, rfl⟩, g₀⁻¹, inv_mem hg₀_rat, c, b, ?_⟩ |
| 511 | simp [lineLevi, ← Prod.inv_mk, h_eq] |
| 512 | |
| 513 | /-- The radical is compact modulo its intersection with the rational stabiliser of the isotropic |
| 514 | line of `X`. -/ |
| 515 | lemma isCocompact_lineStabilizer_subgroupOf : |
| 516 | ((lineStabilizer X).subgroupOf (radicalSubgroup X)).IsCocompact := by |
| 517 | obtain ⟨K, hK, h_cover⟩ := exists_isCompact_rat_mul_radicalElement_mem X |
| 518 | refine ⟨_, hK.preimage_val (isClosed_radicalSubgroup X), fun ⟨g, hg⟩ ↦ ?_⟩ |
| 519 | obtain ⟨c, b, rfl⟩ := (mem_radicalSubgroup_iff X g).1 hg |
| 520 | obtain ⟨y, z, hγ, hγK⟩ := h_cover c b |
| 521 | have h_stab : X.radicalElement y z ∈ lineStabilizer X := |
| 522 | (mem_lineStabilizer_iff X _).2 ⟨hγ, 1, by simp [actsOnFrame_radicalElement, ActsOnFrame]⟩ |
| 523 | exact ⟨⟨_, radicalElement_mem_radicalSubgroup X y z⟩, h_stab, hγK⟩ |
| 524 | |
| 525 | /-- Iwasawa coordinates modulo the rational stabiliser `P` of the isotropic line of `X`. Let `F` be |
| 526 | measurable and left invariant under the radical (the `X.radicalElement x y`) and under `P`. Put |
| 527 | `Θ ((u, h), κ) = |u| ^ (rk V + 1) F (lineLevi X (u, h) κ)`, and let `ν` be the product of the |
| 528 | quotient measures for ideles `u` modulo `Eˣ` and for `h` modulo the rational points, and of the |
| 529 | Haar measure for `κ` in the maximal compact subgroup. If `Θ` is integrable, then `F` is integrable |
| 530 | modulo `P`, and its integral is `c` times that of `Θ`, where `c ≠ 0` does not depend on `F`. -/ |
| 531 | lemma exists_integral_lineStabilizer : |
| 532 | ∃ c ≠ (0 : ℝ), ∀ F : G E t' → ℂ, Measurable F → |
| 533 | (∀ (x : Matrix r Unit (𝔸 E)) (y : Matrix Unit Unit (𝔸 E)) (h : G E t'), |
| 534 | F (X.radicalElement x y * h) = F h) → |
| 535 | (lineStabilizer X).FixesLeft F → |
| 536 | let Θ : ((𝔸 E)ˣ × G E t) × maxCompact E t' → ℂ := fun ((u, h), κ) ↦ |
| 537 | (ideleAbs u ^ (Fintype.card r + 1) : ℝ) * F (lineLevi X (u, h) * κ) |
| 538 | let ν : Measure (((𝔸 E)ˣ × G E t) × maxCompact E t') := |
| 539 | (((principalAdeleUnits E).quotMeasure haar).prod V.quotMeasure).prod haar |
| 540 | Integrable Θ ν → |
| 541 | Integrable F ((lineStabilizer X).quotMeasure volume) ∧ |
| 542 | ∫ h : G E t', F h ∂(lineStabilizer X).quotMeasure volume = c * integral ν Θ := by |
| 543 | -- Check the hypotheses of `integral_quotMeasure_iwasawa` for the radical, the Levi factor and |
| 544 | -- its rational points `δ d`. |
| 545 | have h_iwasawa (g : G E t') : |
| 546 | ∃ (n : radicalSubgroup X) (m : (𝔸 E)ˣ × G E t) (κ : maxCompact E t'), |
| 547 | g = n * lineLevi X m * κ := |
| 548 | let ⟨c, z, h_eq⟩ := exists_eq_radicalElement_mul_lineLevi_mul X g |
| 549 | ⟨⟨_, radicalElement_mem_radicalSubgroup X c z⟩, h_eq⟩ |
| 550 | have h_decomp (g : G E t') (hg : g ∈ lineStabilizer X) : |
| 551 | ∃ d : principalAdeleUnits E × V.Γ, |
| 552 | g * lineLevi X (Prod.map (principalAdeleUnits E).subtype V.Γ.subtype d) ∈ |
| 553 | radicalSubgroup X := |
| 554 | let ⟨u, hu, g₀, hg₀, h_rad⟩ := exists_radicalElement_eq_mul_lineLevi X hg |
| 555 | ⟨(⟨u, hu⟩, ⟨g₀, hg₀⟩), (mem_radicalSubgroup_iff X _).2 h_rad⟩ |
| 556 | obtain ⟨c, hc, h_unfold⟩ := integral_quotMeasure_iwasawa |
| 557 | (fun m : (𝔸 E)ˣ × G E t ↦ ideleAbs m.1 ^ (Fintype.card r + 1)) (μ := volume) |
| 558 | (ν := haar.prod volume) (κ := haar) (i := lineLevi X) (α := _) (hi := continuous_lineLevi X) |
| 559 | (hN := isClosed_radicalSubgroup X) (hw := by fun_prop) (hw_pos := by simp [ideleAbs_pos]) |
| 560 | (h_dec := h_iwasawa) (h_conj := lintegral_radicalHaar_conj_lineLevi X) |
| 561 | (h_triv := fun _ ↦ eq_one_of_levi_mem_radical X) |
| 562 | (hδ := .prodMap Subtype.val_injective Subtype.val_injective) (hα := lintegral_levi_unfold) |
| 563 | (hδ_mem := fun d ↦ lineLevi_mem_lineStabilizer X d.1.prop d.2.prop) (hΓ := h_decomp) |
| 564 | (h_cocpt := isCocompact_lineStabilizer_subgroupOf X) |
| 565 | refine ⟨c, hc, fun F hF h_rad h_stab ↦ h_unfold F hF (fun n hn h ↦ ?_) h_stab⟩ |
| 566 | obtain ⟨x, y, rfl⟩ := (mem_radicalSubgroup_iff X n).1 hn |
| 567 | exact h_rad x y h |
| 568 | |
| 569 | section Lines |
| 570 | |
| 571 | variable (f : 𝒮 (W'.hom V')) (g : G E s') |
| 572 | |
| 573 | /-- The sum of the terms `constTermAt` of the datum `f` moved by `(g, h)`, over the rational |
| 574 | vectors that span `y`. -/ |
| 575 | def lineSum (y : Submodule E (r' → E)) (h : G E t') : ℂ := |
| 576 | ∑' x : (fun x : r' → E ↦ E ∙ x) ⁻¹' {y}, |
| 577 | constTermAt A (replicateCol Unit x.val) (pairWeil W' V' a b (g, h) f) |
| 578 | |
| 579 | /-- The vectors that span the isotropic line of `X` are the `ξ • X.k` with `ξ` in `Eˣ`, so `lineSum` |
| 580 | over this line is the sum of their terms `constTermAt A` for `pairWeil W' V' a b (g, h) f`. This sum |
| 581 | equals the sum over `ξ ∈ Eˣ` of the theta values `θ (W.hom V)` of `lineTerm A X true ξ` applied to |
| 582 | that datum. Here `lineTerm A X true ξ` is translation by `ξ • X.kAdelic * A.kCoord` (`X.kAdelic` is |
| 583 | the adelic vector spanning the line of `X`, `A.kCoord` the coordinate along the `k`-frame of `A`), |
| 584 | followed by the zero term along the line of `A` and then the one along the line of `X`. -/ |
| 585 | lemma lineSum_splittingLine (h : G E t') : |
| 586 | lineSum A a b f g (splittingLine X) h = |
| 587 | ∑' ξ : Eˣ, θ (W.hom V) (lineTerm A X true (toAdele ξ.val) (pairWeil W' V' a b (g, h) f)) := by |
| 588 | have h_ne : X.k.col () ≠ 0 := fun h_zero ↦ by |
| 589 | simpa [show X.k = 0 from ext fun i _ ↦ congrFun h_zero i] using X.gram_lk |
| 590 | have h_span (x : r' → E) : (∃ ξ : Eˣ, ξ • X.k.col () = x) ↔ (E ∙ x) = splittingLine X := by |
| 591 | rw [splittingLine, eq_comm, span_singleton_eq_span_singleton] |
| 592 | let spanning : Eˣ ≃ (fun x : r' → E ↦ E ∙ x) ⁻¹' {splittingLine X} := |
| 593 | (ofInjective _ ((smul_left_injective E h_ne).comp val_injective)).trans |
| 594 | (subtypeEquivRight h_span) |
| 595 | rw [lineSum, ← spanning.tsum_eq] |
| 596 | exact tsum_congr fun ξ ↦ constTermAt_smul_k A X ξ.ne_zero |
| 597 | |
| 598 | /-- `lineSum A a b f g y h` is the sum, over the rational vectors spanning the subspace `y`, of |
| 599 | their terms `constTermAt A` in the constant term of the datum `pairWeil W' V' a b (g, h) f`. This |
| 600 | sum is unchanged when a rational point `γ` of the unitary group of `V'` moves `y` to `γ • y` and `h` |
| 601 | to `V'.ratEmbed γ * h`, where `V'.ratEmbed γ` is the image of `γ` in the adelic group. -/ |
| 602 | lemma lineSum_smul (γ : U V'.J) (y : Submodule E (r' → E)) (h : G E t') : |
| 603 | lineSum A a b f g (γ • y) (V'.ratEmbed γ * h) = lineSum A a b f g y h := by |
| 604 | -- `γ` carries the vectors that span `y` to those that span `γ • y`. |
| 605 | have h_span (x : r' → E) : (E ∙ x) = y ↔ (E ∙ γ • x) = γ • y := by |
| 606 | rw [← smul_left_cancel_iff γ] |
| 607 | simp [Subgroup.smul_def, Units.smul_def, smul_span] |
| 608 | let σ : (fun x : r' → E ↦ E ∙ x) ⁻¹' {y} ≃ (fun x : r' → E ↦ E ∙ x) ⁻¹' {γ • y} := |
| 609 | (toPerm γ).subtypeEquiv h_span |
| 610 | rw [lineSum, lineSum, ← σ.tsum_eq] |
| 611 | refine tsum_congr fun x ↦ ?_ |
| 612 | have h_col : replicateCol Unit (σ x).val = γ.val.val * replicateCol Unit x.val := rfl |
| 613 | simp only [h_col, constTermAt_eq_integral A a b] |
| 614 | congr with q |
| 615 | simpa [Splitting.thetaTerm, rep_apply_apply] using |
| 616 | A.thetaTerm_ratEmbed_mul V' a b f (lineRadical A q * g) γ (replicateCol Unit x.val) h |
| 617 | |
| 618 | /-- The sum of the terms along a line is a measurable function of the point `h`. -/ |
| 619 | lemma measurable_lineSum (y : Submodule E (r' → E)) : Measurable (lineSum A a b f g y) := by |
| 620 | refine .tsum fun x ↦ ?_ |
| 621 | simp only [constTermAt_eq_integral A a b] |
| 622 | refine StronglyMeasurable.measurable (.integral_prod_left (Continuous.stronglyMeasurable ?_)) |
| 623 | fun_prop [Splitting.thetaTerm] |
| 624 | |
| 625 | /-- Moving a datum `f` by an element of the radical of the stabiliser of the isotropic line of `X` |
| 626 | in the Weil representation `pairWeil` does not change `lineTerm A X true ξ f`, the zero term along |
| 627 | that line of the term of `f` at `ξ • X.kAdelic`. -/ |
| 628 | lemma lineTerm_pairWeil_radicalElement (ξ : 𝔸 E) (x : Matrix r Unit (𝔸 E)) |
| 629 | (y : Matrix Unit Unit (𝔸 E)) : |
| 630 | lineTerm A X true ξ (pairWeil W' V' a b (1, X.radicalElement x y) f) = |
| 631 | lineTerm A X true ξ f := by |
| 632 | -- Move `X.radicalElement x y` through `A.homSlice`, where it fixes `X.kAdelic`, and through the |
| 633 | -- zero term along `X`, where its Levi part is `(1, 1)`. |
| 634 | have h_char (c : AutChar E) : c / upsilonU1 * upsilonU1 ^ Fintype.card Unit = c := by simp |
| 635 | have h_source (z : Matrix r' Unit (𝔸 E)) : |
| 636 | A.homSlice V' z (pairWeil W' V' a b (1, X.radicalElement x y) f) = |
| 637 | pairWeil W V' (a / upsilonU1) b (1, X.radicalElement x y) |
| 638 | (A.homSlice V' ((X.radicalElement x y)⁻¹.adeleMatrix * z) f) := by |
| 639 | have h_levi := A.homSlice_levi V' (a / upsilonU1) b 1 1 (X.radicalElement x y) z f |
| 640 | rw [h_char, Prod.mk_one_one, map_one] at h_levi |
| 641 | simp [h_levi] |
| 642 | obtain ⟨h_frame, h_block⟩ : X.ActsOnFrame (X.radicalElement x y) 1 ∧ |
| 643 | X.iCoord * ((X.radicalElement x y).adeleMatrix * X.iAdelic) = 1 := |
| 644 | X.exists_eq_radicalElement_iff.1 ⟨x, y, rfl⟩ |
| 645 | have h_zero (a' : AutChar E) (f' : 𝒮 (W.hom V')) : |
| 646 | (X.homTarget W).zeroTerm (pairWeil W V' a' b (1, X.radicalElement x y) f') = |
| 647 | (X.homTarget W).zeroTerm f' := by |
| 648 | have h_law := X.homTarget_zeroTerm_pairWeil W a' (b / upsilonU1) (X.radicalElement x y) 1 1 |
| 649 | h_frame (h_block.trans G.adeleMatrix_one.symm) 1 f' |
| 650 | rw [h_char] at h_law |
| 651 | simp [h_law, Prod.mk_one_one] |
| 652 | simp [lineTerm, h_source, h_zero, radicalElement_inv, actsOnFrame_radicalElement] |
| 653 | |
| 654 | /-- Suppose the term `constTermAt A 0` of the zero vector in the constant term of |
| 655 | `pairWeil W' V' a b (g, h) f` vanishes. Suppose also that the subspace `y` has nonzero `lineSum`, |
| 656 | the sum of the terms `constTermAt A` of this datum over the rational vectors spanning `y`. Then `y` |
| 657 | is spanned by a nonzero isotropic vector, so by Witt's theorem a rational point of the unitary group |
| 658 | `U V'.J` moves it to the isotropic line `splittingLine X` spanned by `X.k`. -/ |
| 659 | lemma splittingLine_mem_orbit {h : G E t'} |
| 660 | (h_zero : constTermAt A 0 (pairWeil W' V' a b (g, h) f) = 0) {y : Submodule E (r' → E)} |
| 661 | (hy : lineSum A a b f g y h ≠ 0) : splittingLine X ∈ orbit (U V'.J) y := by |
| 662 | obtain ⟨⟨x, rfl⟩, hx⟩ : ∃ x : (fun x : r' → E ↦ E ∙ x) ⁻¹' {y}, |
| 663 | constTermAt A (replicateCol Unit x.val) (pairWeil W' V' a b (g, h) f) ≠ 0 := |
| 664 | not_forall.1 fun h_all ↦ hy (by simp only [lineSum, h_all, tsum_zero]) |
| 665 | have hx_ne : x ≠ 0 := fun hx_zero ↦ hx (by simpa [hx_zero] using h_zero) |
| 666 | have hx_iso : (replicateCol Unit x)ᴴ * V'.J * replicateCol Unit x = 0 := |
| 667 | by_contra fun h_ne ↦ hx (ite_eq_right h_ne) |
| 668 | obtain ⟨γ, hγ⟩ : ∃ γ : U V'.J, γ.val.val * replicateCol Unit x = X.k := |
| 669 | V'.witt (.of_ne_zero hx_ne) ⟨_, X.gram_lk⟩ (by rw [hx_iso, X.gram_kk]) |
| 670 | have h_col : γ • x = X.k.col () := congrArg (fun M ↦ M.col ()) hγ |
| 671 | exact ⟨γ, by simp [splittingLine, ← h_col, Subgroup.smul_def, Units.smul_def, smul_span]⟩ |
| 672 | |
| 673 | end Lines |
| 674 | |
| 675 | /-- Unfolding along the isotropic lines. Let `F h` be the datum `f` moved by `(g, h)`. In Iwasawa |
| 676 | coordinates `((u, h), κ)` with measure `ν` (ideles `u` modulo `Eˣ`, `h` modulo the rational points, |
| 677 | `κ` in the maximal compact subgroup), let `Θ` be `|u| ^ (rk V + 1)` times the sum over `ξ` in `Eˣ` |
| 678 | of the theta values of `lineTerm A X true ξ` at `F (lineLevi X (u, h) κ)`, which belong to the |
| 679 | vectors `ξ • X.k` that span the isotropic line of `X`. If the term `constTermAt A` of the zero |
| 680 | vector vanishes and `Θ` is integrable, then the integral of the sum of the terms of all rational |
| 681 | vectors, over the group of `V'` modulo its rational points, is `c` times the integral of `Θ`, where |
| 682 | `c ≠ 0` depends only on the splittings `A` and `X`. -/ |
| 683 | lemma exists_unfold_constant_term : |
| 684 | ∃ c ≠ (0 : ℝ), ∀ (a b : AutChar E) (f : 𝒮 (W'.hom V')) (g : G E s'), |
| 685 | let F (h : G E t') : 𝒮 (W'.hom V') := pairWeil W' V' a b (g, h) f |
| 686 | let Θ : ((𝔸 E)ˣ × G E t) × maxCompact E t' → ℂ := fun ((u, h), κ) ↦ |
| 687 | (ideleAbs u ^ (Fintype.card r + 1) : ℝ) * ∑' ξ : Eˣ, |
| 688 | θ (W.hom V) (lineTerm A X true (toAdele ξ.val) (F (lineLevi X (u, h) * κ))) |
| 689 | let ν : Measure (((𝔸 E)ˣ × G E t) × maxCompact E t') := |
| 690 | (((principalAdeleUnits E).quotMeasure haar).prod V.quotMeasure).prod haar |
| 691 | (∀ h : G E t', constTermAt A 0 (F h) = 0) → Integrable Θ ν → |
| 692 | ∫ h : G E t', ∑' x : r' → E, constTermAt A (replicateCol Unit x) (F h) ∂V'.quotMeasure = |
| 693 | c * integral ν Θ := by |
| 694 | -- Group the terms by the line they span. Only the lines in the orbit of `splittingLine X` |
| 695 | -- contribute, so the integral unfolds to its stabiliser; then pass to Iwasawa coordinates. |
| 696 | obtain ⟨c, hc, h_iwasawa⟩ := exists_integral_lineStabilizer X |
| 697 | refine ⟨c, hc, fun a b f g ↦ ?_⟩ |
| 698 | intro F Θ ν h_zero h_int |
| 699 | let lines : Set (Submodule E (r' → E)) := {y | splittingLine X ∈ orbit (U V'.J) y} |
| 700 | let Φ : G E t' → ℂ := lineSum A a b f g (splittingLine X) |
| 701 | have h_radical (x : Matrix r Unit (𝔸 E)) (y : Matrix Unit Unit (𝔸 E)) (h : G E t') : |
| 702 | Φ (X.radicalElement x y * h) = Φ h := by |
| 703 | have h_mul : (g, X.radicalElement x y * h) = (1, X.radicalElement x y) * (g, h) := by simp |
| 704 | simp only [Φ, lineSum_splittingLine, h_mul, ← rep_apply_apply, lineTerm_pairWeil_radicalElement] |
| 705 | have h_supp (h : G E t') : support (fun y ↦ lineSum A a b f g y h) ⊆ lines := |
| 706 | fun y ↦ splittingLine_mem_orbit A X a b f g (h_zero h) |
| 707 | have hΘ : Θ = fun ((u, h), κ) ↦ |
| 708 | (ideleAbs u ^ (Fintype.card r + 1) : ℝ) * Φ (lineLevi X (u, h) * κ) := by |
| 709 | simp only [Φ, Θ, F, lineSum_splittingLine] |
| 710 | obtain ⟨hΦ_int, hΦ_eq⟩ : Integrable Φ ((lineStabilizer X).quotMeasure volume) ∧ |
| 711 | ∫ h, Φ h ∂(lineStabilizer X).quotMeasure volume = c * integral ν Θ := by |
| 712 | rw [hΘ] at h_int ⊢ |
| 713 | exact h_iwasawa Φ (measurable_lineSum A a b f g _) h_radical |
| 714 | (fixesLeft_map_stabilizer (lineSum_smul A a b f g) rfl) h_int |
| 715 | obtain ⟨-, h_unfold, -⟩ := integral_tsum_orbit_of_lt_top_or_integrable (Γ := V'.Γ) (μ := volume) |
| 716 | (D := lines) (S := lineStabilizer X) V'.ratEmbed_injective rfl (measurable_lineSum A a b f g) |
| 717 | (lineSum_smul A a b f g) rfl (fun _ ↦ .rfl) (.inr hΦ_int) |
| 718 | calc ∫ h, ∑' x : r' → E, constTermAt A (replicateCol Unit x) (F h) ∂V'.quotMeasure |
| 719 | = ∫ h, ∑' y : lines, lineSum A a b f g y h ∂V'.quotMeasure := by |
| 720 | congr with h |
| 721 | rw [tsum_subtype_eq_of_support_subset (h_supp h)] |
| 722 | exact ((hasSum_constTermAt A a b).summable.hasSum.tsum_fiberwise _).tsum_eq.symm |
| 723 | _ = ∫ h, Φ h ∂(lineStabilizer X).quotMeasure volume := h_unfold |
| 724 | _ = c * integral ν Θ := hΦ_eq |
| 725 | |
| 726 | end New.Exchange |
| 727 | |
| 728 | end |