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.Algebra.Order.Star.Real |
| 4 | import Mathlib.MeasureTheory.SpecificCodomains.WithLp |
| 5 | import Mathlib.Topology.UniformSpace.Uniformizable |
| 6 | import TauCeti.NumberTheory.NumberField.Countable |
| 7 | import TauCeti.Topology.Algebra.Group.Units |
| 8 | import TauCeti.Topology.Instances.Matrix |
| 9 | public import New.Spanning.Frames.TopCorrelation |
| 10 | public import New.Spanning.MainTerm.FillingLevel |
| 11 | public import New.Spanning.MainTerm.KloostermanSum |
| 12 | import Lib.DiscreteSeries.Bessel.SchurBound |
| 13 | import Lib.DiscreteSeries.Bruhat.BigCell |
| 14 | import New.Spanning.Unfolding.AmplitudeSums |
| 15 | import New.Spanning.Unfolding.CutoffIntegral |
| 16 | import New.Spanning.Unfolding.Link |
| 17 | import New.Spanning.Unfolding.Packing |
| 18 | |
| 19 | /-! |
| 20 | # Class sums as orbit sums, and unfolding at a set of primes |
| 21 | |
| 22 | This file links the global sums of the filling argument to the local theory at a finite set `T` of |
| 23 | finite places, stable under conjugation. A finite adelic point is studied through its projection |
| 24 | `New.Filling.toPlaces` to `T` and the condition `New.Filling.IsIntegralOff` of being integral off |
| 25 | `T`. This file writes a class sum as a finite sum of orbit sums over the terms in the big cell. It |
| 26 | compares levels, moduli and characters with those at `T`, and it counts images modulo `M` by |
| 27 | measures. It unfolds each orbit sum to a Kloosterman sum at `T` times an orbital integral at |
| 28 | infinity. |
| 29 | |
| 30 | With `h_c` the representative `New.Filling.classRep c` of the class `c`, |
| 31 | `New.Filling.translateByClassReps c c' γ` is `h_c⁻¹ γ h_c'`, `New.Filling.termsOver c s c'` the set |
| 32 | of rational `γ` for which it is integral of reduction `s` modulo `M`, and |
| 33 | `New.Floors.FloorGroups.weylElem ϱ p` the Weyl element `w_p`. `New.Filling.boundedNonzeroIntegers` |
| 34 | is the finite set of bounded nonzero integers that contains the nonzero leading minors of |
| 35 | contributing terms. `New.Filling.entrySet` is the set 𝒯 of quotients of two of its elements. The |
| 36 | number `New.Filling.termDisc γ` is formed from the last two leading minors of the frame products of |
| 37 | `γ`. |
| 38 | |
| 39 | ## Main definitions and results |
| 40 | |
| 41 | * `New.Filling.exists_amplitudeSum_eq_sum_cosetAmplitude`: a class sum for the cut function is a |
| 42 | finite sum over the heads with entries in the finite set `New.Filling.entrySet`. Let these entries |
| 43 | be units off `T` and let all terms over `(c, s, c')` lie in the big cell. If the terms with |
| 44 | `termDisc γ ≠ 0` and one link have a nonzero sum, those that contribute lie in the double cosets |
| 45 | of the `w_p σ` for one `σ`. These cosets carry the orbit sums `New.Filling.cosetAmplitude`, over |
| 46 | the `u γ u'⁻¹` with `u`, `u'` in the unipotent group `New.Shape.Form.besselU`. |
| 47 | * `New.Filling.IsFillingData.card_reducedImage_mul_measure_congruenceSubgroup_eq`: let `B` be a |
| 48 | subgroup of the finite adelic group and `μ` an s-finite measure at `T`, carried by the projections |
| 49 | of elements of `B` integral off `T` and right invariant under the projections of `B`. Then the |
| 50 | order of the image of `B ∩ K` modulo `M` times `μ K(M)` is the `μ`-measure of the integral points. |
| 51 | * `New.Filling.IsFillingData.cosetAmplitude_eq_kloostermanSum_smul`: for `γ = w_p σ` with |
| 52 | `σ ∈ floorGroup ϱ`, and with `h_c⁻¹ γ h_c'` and the inverses of the entries of `p` integral off |
| 53 | `T`, the orbit sum is a Kloosterman sum at `T` times an orbital integral at infinity. Each double |
| 54 | coset unfolds to one integral, the double cosets correspond to the pairs in the Kloosterman sum, |
| 55 | and the values of the extended Bessel character are its terms. |
| 56 | * `New.Filling.IsFillingData.scaledOrbitalIntegral_smul_eq_cosetAmplitude`: so the orbit sum times |
| 57 | `headDensity` and the mass of `K(M)` is an entry of the integral at `T` times the integral at |
| 58 | infinity. |
| 59 | |
| 60 | Notions from other files: |
| 61 | * `New.Filling.latticeStabilizer`, `New.Filling.principalLevel`: The group `K` of integral points of |
| 62 | the finite adelic unitary group, and the kernel `K(M)` of its reduction modulo `M`; |
| 63 | `New.Floors.PlaceData.congruenceSubgroup` is the group `K(M)` at `T`. |
| 64 | * `New.Filling.amplitude`: The integral of β_c(y) β_c'(γ⁻¹y) W(y) ⊗ W(γ⁻¹y)^* over the infinite |
| 65 | points y, with β_c the cutoff `New.Filling.classCutoff` and W the full or the cut Bessel function |
| 66 | at infinity, according to the argument `side`. |
| 67 | * `New.Floors.IntegralPlace.extendedBesselChar`: The finite Bessel function, a character of u on u |
| 68 | K(M) for u in 𝖴 = `New.Shape.Form.besselU`, and 0 off 𝖴 K(M). |
| 69 | * `New.Filling.IsFillingData` (in `New.Spanning.MainTerm.FillingLevel`): the place data at `T` is |
| 70 | large lattice data for the chosen place structure, with modulus the component of `M` at `T`. |
| 71 | * `New.Filling.cosetAmplitude` (in `New.Spanning.MainTerm.FillingLevel`): the sum of the amplitudes |
| 72 | of the `u γ u'⁻¹` over the pairs of rational points of 𝖴 for which it is a term over `(c, s, c')`. |
| 73 | |
| 74 | ## Relation to the literature |
| 75 | |
| 76 | See `New.Spanning.MainTerm.EnergyEstimate` for related work. |
| 77 | -/ |
| 78 | |
| 79 | @[expose] public section |
| 80 | |
| 81 | namespace New.Filling |
| 82 | |
| 83 | open NumberField MeasureTheory Matrix ENNReal Fintype Floors FloorGroups Function |
| 84 | ComplexOrder SemilocalField Measure Filter Complex Set |
| 85 | |
| 86 | variable {E : Type} [Field E] [CMType E] {𝔰 : Shape} |
| 87 | |
| 88 | variable {S : Filling E 𝔰} {T : Finset (FinPlace E)} [T.StarStable] {x : S.GFin} |
| 89 | |
| 90 | /-! ### Terms in the big cell and class sums -/ |
| 91 | |
| 92 | section |
| 93 | |
| 94 | /-- For classes `c`, `c'`, the translate `translateByClassReps c c'` (h_c⁻¹ γ h_c') of |
| 95 | `u⁻¹ * γ * u'` equals the inverse of the translate of `u` by `c, c`, times the translate of `γ` by |
| 96 | `c, c'`, times the translate of `u'` by `c', c'`. -/ |
| 97 | lemma translateByClassReps_inv_mul_mul (c c' : S.Classes) (u γ u' : S.G E) : |
| 98 | S.translateByClassReps c c' (u⁻¹ * γ * u') = |
| 99 | (S.translateByClassReps c c u)⁻¹ * S.translateByClassReps c c' γ * |
| 100 | S.translateByClassReps c' c' u' := by |
| 101 | simp [translateByClassReps, mul_assoc] |
| 102 | |
| 103 | /-- If `σ` fixes the vectors `e_a`, `e*_a` of the `ϱ` hyperbolic pairs (`floorGroup 𝔰.ϱ`), so does |
| 104 | its translate `h_c⁻¹ σ h_c'` by class representatives. -/ |
| 105 | lemma translateByClassReps_mem_floorGroup {σ : S.G E} (hσ : σ ∈ floorGroup 𝔰.ϱ) (c c' : S.Classes) : |
| 106 | S.translateByClassReps c c' σ ∈ floorGroup 𝔰.ϱ := by |
| 107 | simp [mem_floorGroup, Sum.forall, apply_eq_one_apply_of_mem_floorGroup hσ, |
| 108 | coe_translateByClassReps, classBasis, toBesselH, |
| 109 | besselLatticeBasis, Matrix.mul_apply, Matrix.one_apply] |
| 110 | |
| 111 | /-- Let `σ` fix the vectors `e_a`, `e*_a` of the `ϱ = 𝔰.ϱ` hyperbolic pairs (`floorGroup 𝔰.ϱ`). Let |
| 112 | `L = h_c⁻¹ σ h_c'` be its translate by the representatives of the classes `c`, `c'`, and let `z` be |
| 113 | the last frame vector, of index `𝔰.top`. Then `L z = orbitPoint 𝔰.top L⁻¹` is the vector |
| 114 | `c.out⁻¹ ω - (t / N) z` in the lattice basis, where `N = π π̄` with `π = S.piN`. Here |
| 115 | `t = h(z, σ z)` is the last diagonal entry of `S.frameProducts σ`, `ω` holds the coordinates of |
| 116 | `σ z` at the basis vectors `𝔰.indexX₀ j` of `X₀`, and `c.out ∈ U(X₀)` is the chosen representative |
| 117 | of `c`. -/ |
| 118 | lemma orbitPoint_top_translateByClassReps_inv {σ : S.G E} (hσ : σ ∈ floorGroup 𝔰.ϱ) |
| 119 | (c c' : S.Classes) : |
| 120 | orbitPoint 𝔰.top (S.translateByClassReps c c' σ)⁻¹ = |
| 121 | vectorOfLastEntry S.piN (algebraMap E (𝔸f E) (S.frameProducts σ 𝔰.top 𝔰.top)) |
| 122 | (c.out⁻¹.val.val *ᵥ algebraMap E (𝔸f E) ∘ fun j : 𝔰.κ ↦ σ.val.val (𝔰.indexX₀ j) 𝔰.z) := by |
| 123 | -- The change of basis on the right fixes `z`, so the column of `σ` at `z` remains. |
| 124 | have h_fix : (classBasis c').val *ᵥ Pi.single 𝔰.z 1 = Pi.single 𝔰.z 1 := by |
| 125 | simp [funext_iff, Sum.forall, classBasis, toBesselH, besselLatticeBasis, Matrix.mul_apply] |
| 126 | have h_column : orbitPoint 𝔰.top (S.translateByClassReps c c' σ)⁻¹ = |
| 127 | S.latticeBasis⁻¹.val *ᵥ |
| 128 | fromBlocks 1 0 0 (fromBlocks (fromBlocks c.out⁻¹.val.val 0 0 1) 0 0 1) *ᵥ |
| 129 | fun i : 𝔰.BesselIndex ↦ algebraMap E (𝔸f E) (σ.val.val i 𝔰.z) := by |
| 130 | have h_map : σ.val.val.map (algebraMap E (𝔸f E)) *ᵥ Pi.single 𝔰.z 1 = |
| 131 | fun i : 𝔰.BesselIndex ↦ algebraMap E (𝔸f E) (σ.val.val i 𝔰.z) := mulVec_single_one _ 𝔰.z |
| 132 | rw [← h_map, ← h_fix] |
| 133 | simp [orbitPoint, coe_translateByClassReps, classBasis, toBesselH, ← mulVec_mulVec, |
| 134 | -mulVec_single] |
| 135 | rw [h_column, vectorOfLastEntry] |
| 136 | -- Both sides are the inverse of the lattice basis applied to a vector; compare the vectors. |
| 137 | congr 1 |
| 138 | simp [funext_iff, Sum.forall, frameGram, splitGram, middleGram, mulVec, ← piN_mul_star, |
| 139 | ← mul_assoc, ← star_mul, apply_eq_one_apply_of_mem_floorGroup hσ, dotProduct, Matrix.mul_apply] |
| 140 | |
| 141 | /-- The norm equation. Let `σ` be an isometry of the hermitian form `h` over `E`, and let it fix the |
| 142 | vectors `e_a`, `e*_a` of the `ϱ = 𝔰.ϱ` hyperbolic pairs (`floorGroup 𝔰.ϱ`). Let `z` be the basis |
| 143 | vector `𝔰.z`, the last frame vector (index `𝔰.top`), with `h(z, z) = -N` for the prime `N = S.N`. |
| 144 | Then `N ω̄ · ω = t t̄ - N²`, where `ω` holds the coordinates of `σ z` in the basis of `X₀` indexed |
| 145 | by `𝔰.κ` and `t = h(z, σ z)` is the last diagonal entry of `S.frameProducts σ`. -/ |
| 146 | lemma mul_star_dotProduct_eq_last_frameProducts {σ : S.G E} (hσ : σ ∈ floorGroup 𝔰.ϱ) : |
| 147 | S.N * star (fun j : 𝔰.κ ↦ σ.val.val (𝔰.indexX₀ j) 𝔰.z) ⬝ᵥ |
| 148 | (fun j : 𝔰.κ ↦ σ.val.val (𝔰.indexX₀ j) 𝔰.z) = |
| 149 | S.frameProducts σ 𝔰.top 𝔰.top * star (S.frameProducts σ 𝔰.top 𝔰.top) - S.N ^ 2 := by |
| 150 | -- Write `ω` for the `X₀`-coordinates of `σ z` and `a` for its coordinate at `z`. |
| 151 | -- Then `t = -N a` and `-N = h(σ z, σ z) = ω̄ · ω - N a ā`. |
| 152 | let a : E := σ.val.val 𝔰.z 𝔰.z |
| 153 | have h_last : S.frameProducts σ 𝔰.top 𝔰.top = -(S.N * a) := by |
| 154 | simp [a, frameGram, middleGram, splitGram, Matrix.mul_apply] |
| 155 | have h_norm := lastColumn_norm_of_mem_floorGroup (N := (S.N : E)) hσ |
| 156 | rw [h_last, star_neg, star_mul', star_natCast] |
| 157 | linear_combination S.N * h_norm |
| 158 | |
| 159 | /-- Weyl elements move to the left of the translate: `h_c⁻¹ (w_p σ) h_c' = w_p (h_c⁻¹ σ h_c')`, with |
| 160 | the entries `p` read in the finite adeles on the right. -/ |
| 161 | lemma translateByClassReps_weylElem_mul (c c' : S.Classes) (p : ℕ → Eˣ) (σ : S.G E) : |
| 162 | S.translateByClassReps c c' (weylElem 𝔰.ϱ p * σ) = |
| 163 | weylElem 𝔰.ϱ (Units.map (algebraMap E (𝔸f E)) ∘ p) * S.translateByClassReps c c' σ := by |
| 164 | -- No `e*_a` has level below `ϱ`. |
| 165 | have h_level (a : Fin 𝔰.ϱ) : ¬2 * 𝔰.ϱ - a < 𝔰.ϱ := by lia |
| 166 | -- The Weyl element commutes with the change of basis, entry by entry. |
| 167 | simp [Subtype.ext_iff, ← mul_assoc, Units.ext_iff, ← ext_iff, Sum.forall, weylElem, |
| 168 | weylOn, coe_translateByClassReps, classBasis, toBesselH, besselLatticeBasis, |
| 169 | fromBlocks_multiply, |
| 170 | fromCols_mul_fromBlocks, Matrix.mul_apply, Matrix.one_apply, BesselIndex.level, h_level, |
| 171 | apply_ite (algebraMap E (𝔸f E))] |
| 172 | simp +contextual |
| 173 | |
| 174 | end |
| 175 | |
| 176 | /-- Let `S` satisfy the standing hypotheses `New.Filling.IsAdmissible`. Let `γ` be a term over |
| 177 | `(c, s, c')` (`termsOver`). Suppose that its amplitude for the cut Bessel function W♭, the integral |
| 178 | of `W♭(y) ⊗ W♭(γ⁻¹ y)^*` against the cutoffs of `c`, `c'` over the points `y` at infinity, is |
| 179 | nonzero. Then each nonzero leading minor `δ` of the matrix `S.frameProducts γ = (h(f_j, γ f_l))` of |
| 180 | products of the frame `f` with its image lies in `S.boundedNonzeroIntegers`: it is an integer of `E` |
| 181 | with `‖δ‖ ^ 2 ≤ b ^ (270 n ^ 2)` at every infinite place. Here `b = S.b` is the size parameter of |
| 182 | `S` and `n = 𝔰.n = ϱ + 1`. -/ |
| 183 | lemma leadingMinor_mem_boundedNonzeroIntegers [WeilData E] |
| 184 | [S.IsAdmissible] {c c' : S.Classes} {s : S.ResidueGL} {γ : S.G E} |
| 185 | (hγ : γ ∈ S.termsOver c s c') (h_amp : S.amplitude .cut c c' γ ≠ 0) {l : Fin (𝔰.n + 1)} |
| 186 | (h_ne : leadingMinor (S.frameProducts γ) l ≠ 0) : |
| 187 | leadingMinor (S.frameProducts γ) l ∈ S.boundedNonzeroIntegers := by |
| 188 | refine ⟨h_ne, IsIntegral.det fun _ _ ↦ isIntegral_frameProducts hγ _ _, fun v ↦ ?_⟩ |
| 189 | -- At some point `y` both `W♭(y)` and `W♭(γ⁻¹ y)` are nonzero. Unipotent translates of the two |
| 190 | -- points lie in the boxes, and they do not change the minors. |
| 191 | obtain ⟨y, hy⟩ : ∃ y : InfinitePlace E → 𝔰.G₁, S.besselKernel .cut γ y ≠ 0 := by |
| 192 | by_contra! h_zero |
| 193 | exact h_amp (by simp [amplitude, h_zero]) |
| 194 | have h_cut := inCut_of_besselKernel_ne_zero hy |
| 195 | obtain ⟨u, hu, hu_box⟩ : ∃ u ∈ S.classUnipotent c, S.ratToInf u * y ∈ S.boxedPoints := |
| 196 | exists_classUnipotent_mul_mem_boxedPoints c fun v ↦ (h_cut v).1 |
| 197 | obtain ⟨u', hu', hu'_box⟩ : |
| 198 | ∃ u' ∈ S.classUnipotent c', S.ratToInf u' * ((S.ratToInf γ)⁻¹ * y) ∈ S.boxedPoints := |
| 199 | exists_classUnipotent_mul_mem_boxedPoints c' fun v ↦ (h_cut v).2 |
| 200 | have h_near : S.IsNear (u * γ * u'⁻¹) := |
| 201 | ⟨S.ratToInf u * y, hu_box, by simpa [mul_assoc] using hu'_box⟩ |
| 202 | rw [← leadingMinor_frameGram_besselU_mul (inv_mem hu.1) (inv_mem hu'.1), inv_inv] |
| 203 | exact h_near.norm_map_leadingMinor_sq_le _ _ |
| 204 | |
| 205 | /-- Let `S` satisfy the standing hypotheses `New.Filling.IsAdmissible`. Let `u`, `u'` be rational |
| 206 | points of the group 𝖴 = `besselU` of block upper unitriangular isometries. Let `σ` fix the vectors |
| 207 | `e_a`, `e*_a` of the `ϱ = 𝔰.ϱ` hyperbolic pairs (`floorGroup 𝔰.ϱ`). Let `p ϱ = h(z, σ z)` be the |
| 208 | last diagonal entry of `S.frameProducts σ`. Write `w_p` for the Weyl element `weylElem 𝔰.ϱ p`. Let |
| 209 | `γ = u⁻¹ (w_p σ) u'` be a term over `(c, s, c')` (`S.termsOver c s c'`): `h_c⁻¹ γ h_c'` lies in `K` |
| 210 | and has reduction `s`. Suppose that its amplitude `S.amplitude .cut c c' γ` for the cut Bessel |
| 211 | function W♭ is nonzero. Then for every `a ≤ ϱ` the entry `p a` lies in 𝒯 = `S.entrySet`, the finite |
| 212 | set of quotients of two elements of `S.boundedNonzeroIntegers`. -/ |
| 213 | lemma entry_mem_entrySet [WeilData E] |
| 214 | [S.IsAdmissible] {c c' : S.Classes} {s : S.ResidueGL} {u u' σ : S.G E} |
| 215 | {p : ℕ → Eˣ} (hu : u ∈ besselU) (hu' : u' ∈ besselU) (hσ : σ ∈ floorGroup 𝔰.ϱ) |
| 216 | (hθ : S.frameProducts σ 𝔰.top 𝔰.top = p 𝔰.ϱ) |
| 217 | (hγ : u⁻¹ * (weylElem 𝔰.ϱ p * σ) * u' ∈ S.termsOver c s c') |
| 218 | (h_amp : S.amplitude .cut c c' (u⁻¹ * (weylElem 𝔰.ϱ p * σ) * u') ≠ 0) |
| 219 | {a : ℕ} (ha : a ≤ 𝔰.ϱ) : p a ∈ S.entrySet := by |
| 220 | -- The minors are the products of the first entries, and `p a` is a quotient of two of them. |
| 221 | have h_prod (l : Fin (𝔰.n + 1)) : ∏ j ∈ Finset.range l, (p j).val ∈ S.boundedNonzeroIntegers := by |
| 222 | have h_minor : leadingMinor (S.frameProducts (u⁻¹ * (weylElem 𝔰.ϱ p * σ) * u')) l = |
| 223 | ∏ j ∈ Finset.range l, (p j).val := |
| 224 | (leadingMinor_frameGram_besselU_mul hu hu' l).trans |
| 225 | (leadingMinor_weylElem_mul_of_last_entry hσ hθ l) |
| 226 | rw [← h_minor] |
| 227 | exact leadingMinor_mem_boundedNonzeroIntegers hγ h_amp |
| 228 | (by simp [h_minor, Finset.prod_eq_zero_iff]) |
| 229 | refine (Finite.mem_toFinset _).2 ⟨_, h_prod ⟨a + 1, by lia⟩, _, h_prod ⟨a, by lia⟩, ?_⟩ |
| 230 | rw [Finset.prod_range_succ, mul_div_cancel_left₀ _ (by simp [Finset.prod_eq_zero_iff])] |
| 231 | |
| 232 | /-- For a star-stable set of places `T`, `integralOff T` is closed under `star`. -/ |
| 233 | instance isStarStable_integralOff : IsStarStable (integralOff T) where |
| 234 | star_mem {a} ha := by |
| 235 | rw [← sub_adeleOfLocal_mem_iff T] at ha ⊢ |
| 236 | rw [← star_evalPlaces, adeleOfLocal_star, ← star_sub] |
| 237 | exact star_mem_Ô ha |
| 238 | |
| 239 | section |
| 240 | |
| 241 | /-- Let `T` be a finite set of finite places, stable under conjugation; integral off `T` means |
| 242 | integral at every finite place outside `T`. Let `u`, `u'` be rational points of the unipotent group |
| 243 | `besselU`. Let `σ` fix the vectors `e_a`, `e*_a` of the `ϱ = 𝔰.ϱ` hyperbolic pairs |
| 244 | (`floorGroup 𝔰.ϱ`). Let the inverses of the entries `p a`, `a < ϱ`, be integral off `T`. Suppose |
| 245 | `γ = u⁻¹ (w_p σ) u'` is a term over `(c, s, c')` (`S.termsOver c s c'`): `h_c⁻¹ γ h_c'` lies in `K` |
| 246 | and has reduction `s`. Then the translates `h_c⁻¹ u h_c` and `h_c⁻¹ σ h_c'` (`translateByClassReps`) |
| 247 | are integral off `T`. -/ |
| 248 | lemma isIntegralOff_of_mem_termsOver {c c' : S.Classes} {s : S.ResidueGL} {u u' σ : S.G E} |
| 249 | {p : ℕ → Eˣ} (hu : u ∈ besselU) (hu' : u' ∈ besselU) (hσ : σ ∈ floorGroup 𝔰.ϱ) |
| 250 | (hp : ∀ a : Fin 𝔰.ϱ, (p a)⁻¹.val ∈ ratIntegralOff T) |
| 251 | (hγ : u⁻¹ * (weylElem 𝔰.ϱ p * σ) * u' ∈ S.termsOver c s c') : |
| 252 | S.IsIntegralOff T (S.translateByClassReps c c u) ∧ |
| 253 | S.IsIntegralOff T (S.translateByClassReps c c' σ) := by |
| 254 | obtain ⟨k, -, hk⟩ : ∃ k : S.latticeStabilizer, S.reduction k = s ∧ |
| 255 | k.val = S.translateByClassReps c c' (u⁻¹ * (weylElem 𝔰.ϱ p * σ) * u') := hγ |
| 256 | have h_int : S.IsIntegralOff T k.val := (mem_latticeStabilizer_iff.1 k.prop).1 |
| 257 | rw [hk, translateByClassReps_inv_mul_mul, translateByClassReps_weylElem_mul] at h_int |
| 258 | obtain ⟨h_left, h_mid, -⟩ := big_cell_factors_mem_intGL S.isUnimodular_latticeMiddle.splitGram |
| 259 | (hu.translateByClassReps_mem_besselU c) (hu'.translateByClassReps_mem_besselU c') |
| 260 | (translateByClassReps_mem_floorGroup hσ c c') hp h_int |
| 261 | exact ⟨h_left, h_mid⟩ |
| 262 | |
| 263 | /-- Suppose the entries `p a`, `a < ϱ`, and their inverses are integral off `T`, and `h_c⁻¹ σ h_c'` |
| 264 | (`translateByClassReps c c' σ`) is integral off `T`. Then so is `h_c⁻¹ (w_p σ) h_c'`, where |
| 265 | `w_p = weylElem 𝔰.ϱ p`. -/ |
| 266 | lemma isIntegralOff_weylElem_mul {c c' : S.Classes} {σ : S.G E} {p : ℕ → Eˣ} |
| 267 | (hp : ∀ a < 𝔰.ϱ, (p a).val ∈ ratIntegralOff T ∧ (p a)⁻¹.val ∈ ratIntegralOff T) |
| 268 | (h_off : S.IsIntegralOff T (S.translateByClassReps c c' σ)) : |
| 269 | S.IsIntegralOff T (S.translateByClassReps c c' (weylElem 𝔰.ϱ p * σ)) := by |
| 270 | rw [translateByClassReps_weylElem_mul] |
| 271 | refine mul_mem (weylOn_mem_intGL S.isUnimodular_latticeMiddle.splitGram fun a ha ↦ ?_) h_off |
| 272 | rw [Ring.inverse_unit] |
| 273 | exact hp a ha |
| 274 | |
| 275 | variable (S T) in |
| 276 | /-- The properties of the element `σ` that names the link `Λ` over `(c, s, c')`: it fixes the |
| 277 | hyperbolic planes, the last diagonal entry `t` of its frame products lies in 𝒯 with `t t̄ - N²` |
| 278 | totally positive, and its translate is integral off `T`. The element `k` is a lift of `s`. -/ |
| 279 | structure NamesLink (c : S.Classes) (s : S.ResidueGL) (c' : S.Classes) |
| 280 | (Λ : Submodule E (𝔰.MiddleIndex ⊕ 𝔰.MiddleIndex → E)) (t : Eˣ) (σ : S.G E) |
| 281 | (k : S.latticeStabilizer) : Prop where |
| 282 | /-- `σ` fixes the hyperbolic planes. -/ |
| 283 | mem_floorGroup : σ ∈ floorGroup 𝔰.ϱ |
| 284 | /-- `t` is the last diagonal entry of the frame products of `σ`. -/ |
| 285 | frameProducts_top_top : S.frameProducts σ 𝔰.top 𝔰.top = t |
| 286 | /-- `t t̄ - N²` is totally positive. -/ |
| 287 | sq_lt_norm_sq (v : InfinitePlace E) : S.N ^ 2 < ‖Φ v t.val‖ ^ 2 |
| 288 | /-- `k` reduces to `s`. -/ |
| 289 | reduction_eq : S.reduction k = s |
| 290 | /-- `Λ` is the link of `w_1 σ`, which is that of `w_p σ` for every head `p`. -/ |
| 291 | link_eq : Λ = link (weylElem 𝔰.ϱ 1 * σ) |
| 292 | /-- The last entry lies in 𝒯. -/ |
| 293 | mem_entrySet : t ∈ S.entrySet |
| 294 | /-- The translate `h_c⁻¹ σ h_c'` is integral off `T`. -/ |
| 295 | isIntegralOff : S.IsIntegralOff T (S.translateByClassReps c c' σ) |
| 296 | |
| 297 | /-- Let `σ` fix the vectors `e_a`, `e*_a` of the `ϱ = 𝔰.ϱ` hyperbolic pairs (`floorGroup 𝔰.ϱ`), and |
| 298 | let `θ = h(z, σ z)` be the last diagonal entry of the matrix `S.frameProducts σ` of products of the |
| 299 | frame with its image under `σ`. Let `N = S.N` be the prime with `h(z, z) = -N`. If `θ θ̄ ≠ N²`, then |
| 300 | `N² < |θ|²` at every infinite place `v`, read through its chosen embedding `Φ v`. -/ |
| 301 | lemma sq_lt_norm_sq_last_frameProducts {σ : S.G E} (hσ : σ ∈ floorGroup 𝔰.ϱ) |
| 302 | (hθ : S.frameProducts σ 𝔰.top 𝔰.top * star (S.frameProducts σ 𝔰.top 𝔰.top) - S.N ^ 2 ≠ 0) |
| 303 | (v : InfinitePlace E) : |
| 304 | S.N ^ 2 < ‖Φ v (S.frameProducts σ 𝔰.top 𝔰.top)‖ ^ 2 := by |
| 305 | let θ : E := S.frameProducts σ 𝔰.top 𝔰.top |
| 306 | let ω : 𝔰.κ → E := fun j ↦ σ.val.val (𝔰.indexX₀ j) 𝔰.z |
| 307 | -- The difference equals `N ω̄ · ω`, so it is nonnegative, hence positive, at each infinite place. |
| 308 | have h_norm : S.N * star ω ⬝ᵥ ω = θ * star θ - S.N ^ 2 := |
| 309 | mul_star_dotProduct_eq_last_frameProducts hσ |
| 310 | have h_nonneg : 0 ≤ Φ v (θ * star θ - S.N ^ 2) := by |
| 311 | rw [← h_norm] |
| 312 | simp only [dotProduct, Pi.star_apply, map_mul, map_natCast, _root_.map_sum, map_star_complex, |
| 313 | star_def, conj_mul'] |
| 314 | -- The goal is `0 ≤ N ∑ j, ‖ω j‖²` at the place `v`. |
| 315 | positivity |
| 316 | have h_pos : 0 < Φ v (θ * star θ - S.N ^ 2) := ((map_ne_zero (Φ v)).2 hθ).lt_of_le' h_nonneg |
| 317 | simpa [θ, mul_conj', sq] using (Complex.lt_def.1 h_pos).1 |
| 318 | |
| 319 | /-- For `σ` fixing the `ϱ` hyperbolic pairs, the map `(p, u, u') ↦ u (w_p σ) u'⁻¹` is injective, |
| 320 | where `u`, `u'` are rational points of 𝖴 = `besselU` and `p` is a `ϱ`-tuple with entries in 𝒯 = |
| 321 | `S.entrySet`, completed by the last entry `t` (`padTuple`). -/ |
| 322 | lemma injective_bigCellTerm {σ : S.G E} (hσ : σ ∈ floorGroup 𝔰.ϱ) (t : Eˣ) : |
| 323 | Injective fun i : (Fin 𝔰.ϱ → S.entrySet) × (S.ratMiddle E).besselU × (S.ratMiddle E).besselU ↦ |
| 324 | i.2.1.val * (weylElem 𝔰.ϱ (padTuple (fun a : Fin 𝔰.ϱ ↦ (i.1 a).val) t) * σ) * i.2.2.val⁻¹ := |
| 325 | fun _ _ h ↦ by simpa [Prod.ext_iff, funext_iff, padTuple] using big_cell_unique hσ h |
| 326 | |
| 327 | /-- The Weyl element depends only on the entries of its tuple below `ϱ`, so these may be completed |
| 328 | by any last entry `t`. -/ |
| 329 | lemma weylElem_padTuple (p : ℕ → Eˣ) (t : Eˣ) : |
| 330 | (weylElem 𝔰.ϱ p : S.G E) = weylElem 𝔰.ϱ (padTuple (fun a : Fin 𝔰.ϱ ↦ p a) t) := |
| 331 | weylElem_eq_of_agree fun a ha ↦ by simp [padTuple, ha] |
| 332 | |
| 333 | end |
| 334 | |
| 335 | /-- Let `S` satisfy the standing hypotheses `New.Filling.IsAdmissible`. Let `σ` fix the vectors |
| 336 | `e_a`, `e*_a` of the `ϱ = 𝔰.ϱ` hyperbolic pairs (`floorGroup 𝔰.ϱ`), let `t` be the last diagonal |
| 337 | entry of `S.frameProducts σ`, and let `u`, `u'` lie in the unipotent group `besselU`. Let |
| 338 | `γ = u⁻¹ (w_p σ) u'` be a term over `(c, s, c')`, and suppose that its amplitude for the cut Bessel |
| 339 | function W♭, the integral of `W♭(y) ⊗ W♭(γ⁻¹ y)^*` against the cutoffs of `c`, `c'` over the points |
| 340 | `y` at infinity, is nonzero. Then `t` and the entries `p a`, `a < ϱ`, lie in 𝒯 = `S.entrySet`, the |
| 341 | finite set of quotients of two elements of `S.boundedNonzeroIntegers`. -/ |
| 342 | lemma head_and_last_mem_entrySet [WeilData E] [S.IsAdmissible] {c c' : S.Classes} {s : S.ResidueGL} |
| 343 | {u u' σ : S.G E} {p : ℕ → Eˣ} {t : Eˣ} (hσ : σ ∈ floorGroup 𝔰.ϱ) |
| 344 | (ht : S.frameProducts σ 𝔰.top 𝔰.top = t) (hu : u ∈ besselU) (hu' : u' ∈ besselU) |
| 345 | (hγ : u⁻¹ * (weylElem 𝔰.ϱ p * σ) * u' ∈ S.termsOver c s c') |
| 346 | (h_amp : S.amplitude .cut c c' (u⁻¹ * (weylElem 𝔰.ϱ p * σ) * u') ≠ 0) : |
| 347 | (∀ a : Fin 𝔰.ϱ, p a ∈ S.entrySet) ∧ t ∈ S.entrySet := by |
| 348 | rw [weylElem_padTuple p t] at hγ h_amp |
| 349 | have h_mem {a : ℕ} (ha : a ≤ 𝔰.ϱ) : padTuple (fun a : Fin 𝔰.ϱ ↦ p a) t a ∈ S.entrySet := |
| 350 | entry_mem_entrySet hu hu' hσ (by simp [padTuple, ht]) hγ h_amp ha |
| 351 | exact ⟨fun a ↦ by simpa [padTuple] using h_mem a.isLt.le, by simpa [padTuple] using h_mem le_rfl⟩ |
| 352 | |
| 353 | /-- Let `σ` fix the vectors `e_a`, `e*_a` of the `ϱ = 𝔰.ϱ` hyperbolic pairs (`floorGroup 𝔰.ϱ`). Let |
| 354 | `θ = h(z, σ z)` be the last diagonal entry of the matrix `S.frameProducts σ` of products of the |
| 355 | frame with its image, and suppose `θ θ̄ ≠ N²` for `N = S.N = -h(z, z)`. Let `u`, `u'` lie in the |
| 356 | group 𝖴 = `besselU` of block upper unitriangular isometries, and take the Weyl element |
| 357 | `w_p = weylElem 𝔰.ϱ p`, with `e_a ↦ p_a e*_a` and `e*_a ↦ e_a / p̄_a` for `a < ϱ`. Then |
| 358 | `γ = u (w_p σ) u'⁻¹` lies in `S.termsOfLink Λ` for the link `Λ` (`New.link`) of `w_1 σ`: the link of |
| 359 | `γ` is `Λ`, and `termDisc γ = D D̄ - N² D' D̄'` is nonzero, with `D`, `D'` the last two leading |
| 360 | minors of `S.frameProducts γ`. -/ |
| 361 | lemma mem_termsOfLink_bigCell {σ : S.G E} {Λ : Submodule E (𝔰.MiddleIndex ⊕ 𝔰.MiddleIndex → E)} |
| 362 | (hσ : σ ∈ floorGroup 𝔰.ϱ) |
| 363 | (hθ : S.frameProducts σ 𝔰.top 𝔰.top * star (S.frameProducts σ 𝔰.top 𝔰.top) - S.N ^ 2 ≠ 0) |
| 364 | (hΛ : Λ = link (weylElem 𝔰.ϱ 1 * σ)) (p : ℕ → Eˣ) {u u' : S.G E} |
| 365 | (hu : u ∈ besselU) (hu' : u' ∈ besselU) : |
| 366 | u * (weylElem 𝔰.ϱ p * σ) * u'⁻¹ ∈ S.termsOfLink Λ := by |
| 367 | rw [← inv_inv u, isStable_termsOfLink Λ u⁻¹ (inv_mem hu) u'⁻¹ (inv_mem hu') _] |
| 368 | constructor |
| 369 | · rw [termDisc, frameDisc_weylElem_mul hσ] |
| 370 | exact mul_ne_zero (by simp [Finset.prod_eq_zero_iff]) hθ |
| 371 | · rw [hΛ, link_weylElem_mul_eq_iff hσ hσ] |
| 372 | |
| 373 | /-- A sum of amplitudes is a finite sum of orbit sums over 𝖴 × 𝖴, with 𝖴 = `besselU`. Let `S` |
| 374 | satisfy the standing hypotheses `New.Filling.IsAdmissible`, and let the elements of the finite set |
| 375 | 𝒯 = `S.entrySet` be units off the set of places `T`. The terms over `(c, s, c')` are the rational |
| 376 | `γ` with `h_c⁻¹ γ h_c'` in the group `K = S.latticeStabilizer` of integral points and of reduction |
| 377 | `s`; let the leading minors `D_0, …, D_ϱ` of their matrices `S.frameProducts γ` be nonzero. Let `A` |
| 378 | be the sum `amplitudeSum` of the amplitudes, for the cut Bessel function, of the terms with |
| 379 | `termDisc γ = |D_{ϱ+1}|² - N² |D_ϱ|² ≠ 0` and link `Λ`, and suppose `A ≠ 0`. Then there are `t ∈ 𝒯`, |
| 380 | `σ` and `k ∈ K` with the properties `NamesLink`: `σ` fixes the `ϱ` hyperbolic pairs, `t` is the |
| 381 | last diagonal entry of `S.frameProducts σ`, `t t̄ - N²` is totally positive, `Λ` is the link of |
| 382 | `w_1 σ`, `h_c⁻¹ σ h_c'` is integral off `T`, and `k` reduces to `s`. Moreover `A` is the sum, over |
| 383 | the `ϱ`-tuples `p` in 𝒯 followed by `t` (`padTuple`), of the sums `cosetAmplitude` of the amplitudes |
| 384 | of the terms `u w_p σ u'⁻¹` with `u`, `u'` in 𝖴. -/ |
| 385 | lemma exists_amplitudeSum_eq_sum_cosetAmplitude [WeilData E] [S.IsAdmissible] {c c' : S.Classes} |
| 386 | {s : S.ResidueGL} {Λ : Submodule E (𝔰.MiddleIndex ⊕ 𝔰.MiddleIndex → E)} |
| 387 | (h_entry_units : ∀ t ∈ S.entrySet, t.val ∈ ratIntegralOff T ∧ t⁻¹.val ∈ ratIntegralOff T) |
| 388 | (h_sum_ne : S.amplitudeSum .cut (S.termsOfLink Λ) c s c' ≠ 0) |
| 389 | (h_minors : ∀ γ ∈ S.termsOver c s c', ∀ l : Fin 𝔰.n, |
| 390 | leadingMinor (S.frameProducts γ) l.castSucc ≠ 0) : |
| 391 | ∃ (t : Eˣ) (σ : S.G E) (k : S.latticeStabilizer), S.NamesLink T c s c' Λ t σ k ∧ |
| 392 | S.amplitudeSum .cut (S.termsOfLink Λ) c s c' = ∑ p : Fin 𝔰.ϱ → S.entrySet, |
| 393 | S.cosetAmplitude .cut c s c' |
| 394 | (weylElem 𝔰.ϱ (padTuple (fun a : Fin 𝔰.ϱ ↦ (p a).val) t) * σ) := by |
| 395 | classical |
| 396 | -- Take a contributing term γ₀ and write γ₀ = u₀⁻¹ w_{p₀} σ u₀' in the big cell. The contributing |
| 397 | -- terms γ over (c, s, c') with link Λ and `termDisc γ ≠ 0` are among the u w_p σ u'⁻¹ with p in |
| 398 | -- 𝒯, each occurring once; sum over (u, u') for fixed p. |
| 399 | obtain ⟨⟨γ₀, h_terms, hγ₀⟩, h_amp₀⟩ : |
| 400 | ∃ γ : ↥(S.termsOfLink Λ ∩ S.termsOver c s c'), S.amplitude .cut c c' γ.val ≠ 0 := by |
| 401 | by_contra! h_zero |
| 402 | exact h_sum_ne (by simp [amplitudeSum, h_zero]) |
| 403 | obtain ⟨u₀, hu₀, u₀', hu₀', p₀, σ, hσ, rfl⟩ := exists_big_cell_decomp (h_minors _ hγ₀) |
| 404 | obtain ⟨h_disc₀, hΛ⟩ := (isStable_termsOfLink Λ u₀ hu₀ u₀' hu₀' _).mp h_terms |
| 405 | have h_link : Λ = link (weylElem 𝔰.ϱ 1 * σ) := by |
| 406 | rw [← hΛ, link_weylElem_mul_eq_iff hσ hσ] |
| 407 | -- With θ the last diagonal entry of `S.frameProducts σ`, the number θ θ̄ - N² is a factor of |
| 408 | -- the nonzero discriminant of `weylElem 𝔰.ϱ p₀ * σ`. |
| 409 | let θ : E := S.frameProducts σ 𝔰.top 𝔰.top |
| 410 | have hθ_norm : θ * star θ - S.N ^ 2 ≠ 0 := by |
| 411 | rw [termDisc, frameDisc_weylElem_mul hσ] at h_disc₀ |
| 412 | exact right_ne_zero_of_mul h_disc₀ |
| 413 | have hθ_gt (v : InfinitePlace E) : S.N ^ 2 < ‖Φ v θ‖ ^ 2 := |
| 414 | sq_lt_norm_sq_last_frameProducts hσ hθ_norm v |
| 415 | have hθ_ne : θ ≠ 0 := fun h_zero ↦ by |
| 416 | simpa [h_zero, (sq_nonneg _).not_gt] using hθ_gt Classical.ofNonempty |
| 417 | let t : Eˣ := Units.mk0 θ hθ_ne |
| 418 | let δ (i : (Fin 𝔰.ϱ → S.entrySet) × (S.ratMiddle E).besselU × (S.ratMiddle E).besselU) : S.G E := |
| 419 | i.2.1.val * (weylElem 𝔰.ϱ (padTuple (fun a ↦ (i.1 a).val) t) * σ) * i.2.2.val⁻¹ |
| 420 | let a : S.G E → EuclideanSpace ℂ (S.BesselCoord × S.BesselCoord) := |
| 421 | (S.termsOfLink Λ ∩ S.termsOver c s c').indicator (S.amplitude .cut c c') |
| 422 | -- Every contributing term is a value of δ: it lies in the big cell, and the link fixes σ. |
| 423 | have hδ_onto (γ : S.G E) (hγ : γ ∈ S.termsOfLink Λ ∩ S.termsOver c s c') |
| 424 | (h_amp : S.amplitude .cut c c' γ ≠ 0) : γ ∈ range δ := by |
| 425 | obtain ⟨⟨-, hγ_link⟩, hγ_over⟩ := hγ |
| 426 | obtain ⟨u, hu, u', hu', p, τ, hτ, rfl⟩ := exists_big_cell_decomp (h_minors γ hγ_over) |
| 427 | obtain rfl : τ = σ := (link_weylElem_mul_eq_iff hτ hσ).1 |
| 428 | ((link_inv_mul_mul_of_mem_besselU hu hu').symm.trans (hγ_link.trans h_link)) |
| 429 | obtain ⟨hp, -⟩ := head_and_last_mem_entrySet (t := t) hσ rfl hu hu' hγ_over h_amp |
| 430 | refine ⟨(fun a ↦ ⟨p a, hp a⟩, ⟨u, hu⟩⁻¹, ⟨u', hu'⟩⁻¹), ?_⟩ |
| 431 | simp [δ, ← weylElem_padTuple] |
| 432 | have h_sum : HasSum (a ∘ δ) (S.amplitudeSum .cut (S.termsOfLink Λ) c s c') := by |
| 433 | have h_zero (γ : S.G E) (hγ : γ ∉ range δ) : a γ = 0 := |
| 434 | indicator_apply_eq_zero.2 fun h ↦ not_not.1 (mt (hδ_onto γ h) hγ) |
| 435 | rw [Injective.hasSum_iff (g := δ) (injective_bigCellTerm hσ t) h_zero] |
| 436 | exact hasSum_subtype_iff_indicator.1 (summable_amplitude _ c s c').hasSum |
| 437 | obtain ⟨h_head₀, ht⟩ := head_and_last_mem_entrySet (t := t) hσ rfl hu₀ hu₀' hγ₀ h_amp₀ |
| 438 | have h_off : S.IsIntegralOff T (S.translateByClassReps c c' σ) := |
| 439 | (isIntegralOff_of_mem_termsOver hu₀ hu₀' hσ (fun a ↦ (h_entry_units _ (h_head₀ a)).2) hγ₀).2 |
| 440 | obtain ⟨k, hk, -⟩ := hγ₀ |
| 441 | refine ⟨t, σ, k, |
| 442 | { mem_floorGroup := hσ, frameProducts_top_top := rfl, |
| 443 | sq_lt_norm_sq := hθ_gt, reduction_eq := hk, |
| 444 | link_eq := h_link, mem_entrySet := ht, isIntegralOff := h_off }, ?_⟩ |
| 445 | have h_fiber (p : Fin 𝔰.ϱ → S.entrySet) : ∑' q, (a ∘ δ) (p, q) = |
| 446 | S.cosetAmplitude .cut c s c' (weylElem 𝔰.ϱ (padTuple (fun a ↦ (p a).val) t) * σ) := by |
| 447 | refine tsum_congr fun ⟨u, u'⟩ ↦ ?_ |
| 448 | have h_mem : δ (p, u, u') ∈ S.termsOfLink Λ := |
| 449 | mem_termsOfLink_bigCell hσ hθ_norm h_link _ u.prop u'.prop |
| 450 | simp only [a, δ, Function.comp_apply, indicator, mem_inter_iff, h_mem, true_and] |
| 451 | simp_rw [← h_fiber] |
| 452 | exact (h_sum.prod_fiberwise fun p ↦ (h_sum.summable.prod_factor p).hasSum).unique |
| 453 | (hasSum_fintype _) |
| 454 | |
| 455 | /-! ### Global against local: levels, moduli and characters -/ |
| 456 | |
| 457 | /-- For a finite adele `t` and a tuple `x` of finite adeles, the vector `vectorOfLastEntry` of their |
| 458 | projections to `T`, formed with the projection of `S.piN`, is the projection of their vector |
| 459 | `vectorOfLastEntry`. -/ |
| 460 | theorem vectorOfLastEntry_evalPlaces (t : 𝔸f E) (x : 𝔰.κ → 𝔸f E) : |
| 461 | vectorOfLastEntry (S.piN.map (evalPlaces T)) (evalPlaces T t) (evalPlaces T ∘ x) = |
| 462 | evalPlaces T ∘ vectorOfLastEntry S.piN t x := by |
| 463 | -- Coordinate by coordinate: `evalPlaces T` is a ring homomorphism that commutes with `star`. |
| 464 | apply funext |
| 465 | simp [Sum.forall, vectorOfLastEntry, besselLatticeBasis, middleInclusionMatrix, mulVec, |
| 466 | dotProduct, |
| 467 | Matrix.diagonal, apply_ite (evalPlaces T), ← star_evalPlaces, -Units.val_inv_eq_inv_val] |
| 468 | |
| 469 | /-- The projection to `T` of h_c⁻¹ w_p σ h_c' is w_p times the projection of h_c⁻¹ σ h_c'. -/ |
| 470 | lemma toPlaces_translateByClassReps_weylElem_mul {σ : (S.ratMiddle E).G} {p : ℕ → Eˣ} |
| 471 | (c c' : S.Classes) : |
| 472 | S.toPlaces T (S.translateByClassReps c c' (weylElem 𝔰.ϱ p * σ)) = |
| 473 | weylElem 𝔰.ϱ (Units.map (ratToPlaces T) ∘ p) * |
| 474 | S.toPlaces T (S.translateByClassReps c c' σ) := by |
| 475 | -- Move the adelic Weyl element to the left and project it entry by entry. |
| 476 | set q : ℕ → (LocProd T)ˣ := Units.map (ratToPlaces T) ∘ p |
| 477 | rw [translateByClassReps_weylElem_mul, map_mul] |
| 478 | congr 1 |
| 479 | -- The name `q` keeps `simp` from unfolding the units on the right. |
| 480 | ext : 2 |
| 481 | simp [toPlaces, U.map, weylElem, weylOn, apply_ite (evalPlaces T), -star_algebraMap_finAdele, |
| 482 | -Units.val_inv_eq_inv_val] |
| 483 | rfl |
| 484 | |
| 485 | variable [P : IntegralPlace (LocProd T)] |
| 486 | {F : PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) (S.latticeMiddle (LocProd T)) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + 5)} |
| 487 | |
| 488 | /-- Let `P` be a structure of a finite place on the product of the completions at `T`, with modulus |
| 489 | `P.modulus`. Let `x` and `x⁻¹` lie in the ring `ratIntegralOff T` of `T`-integers of `E`. Then the |
| 490 | square root of `P.modulus` at the component `evalPlaces T x` of `x` at `T` is the inverse of the |
| 491 | product of the absolute values `‖Φ v x‖` over the infinite places `v`, with `Φ v` the chosen |
| 492 | embedding. -/ |
| 493 | theorem _root_.New.Floors.IntegralPlace.modulus_evalPlaces_rpow_half {x : Eˣ} |
| 494 | (hx : x.val ∈ ratIntegralOff T ∧ x⁻¹.val ∈ ratIntegralOff T) : |
| 495 | P.modulus (evalPlaces T x.val) ^ (2⁻¹ : ℝ) = (∏ v : InfinitePlace E, ‖Φ v x.val‖ₑ)⁻¹ := by |
| 496 | obtain ⟨hx_int, hx_inv⟩ := hx |
| 497 | let u : (LocProd T)ˣ := x.map (ratToPlaces T).toMonoidHom |
| 498 | -- The product formula: the inequality `sqrt_genIndex_le_prod_norm` for `x` and for `x⁻¹` gives |
| 499 | -- equality. |
| 500 | have h_prod : √(genIndex u.val) = ∏ v : InfinitePlace E, ‖Φ v x.val‖ := by |
| 501 | refine (sqrt_genIndex_le_prod_norm T x.ne_zero hx_int).antisymm ?_ |
| 502 | simpa [u, genIndex_eq_inv_prod_norm] using |
| 503 | inv_anti₀ (Real.sqrt_pos.2 (genIndex_pos u⁻¹)) |
| 504 | (sqrt_genIndex_le_prod_norm T x⁻¹.ne_zero hx_inv) |
| 505 | have h_modulus : P.modulus (evalPlaces T x.val) = (ENNReal.ofReal √(genIndex u.val) ^ 2)⁻¹ := |
| 506 | inv_eq_iff_eq_inv.1 (P.inv_modulus_eq_sqrt_genIndex_sq u) |
| 507 | rw [h_modulus, h_prod] |
| 508 | simp [inv_rpow, ← rpow_natCast_mul, ofReal_prod_of_nonneg] |
| 509 | |
| 510 | /-- Let `F` be a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose |
| 511 | modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` |
| 512 | (`hM_inv`). A finite adelic point `x` lies in the principal level `K(M)` exactly when it is integral |
| 513 | off `T` and its projection to `T` lies in the group `K(M) = F.congruenceSubgroup`. -/ |
| 514 | theorem IsFillingData.mem_principalLevel_iff [hF : S.IsFillingData T F] |
| 515 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] : |
| 516 | x ∈ S.principalLevel ↔ S.IsIntegralOff T x ∧ S.toPlaces T x ∈ F.congruenceSubgroup := by |
| 517 | rw [principalLevel_eq_unitaryLevel, mem_unitaryLevel_iff hM_inv.out, ← hF.levelUnit_eq] |
| 518 | |
| 519 | /-- Let `F` be a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose |
| 520 | modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` |
| 521 | (`hM_inv`). Two elements `k`, `l` of the group `K` of integral points have the same reduction modulo |
| 522 | `M` exactly when their projections to `T` are in the same left coset of |
| 523 | `K(M) = F.congruenceSubgroup`. -/ |
| 524 | theorem IsFillingData.reduction_eq_iff [hF : S.IsFillingData T F] |
| 525 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] (k l : S.latticeStabilizer) : |
| 526 | S.reduction k = S.reduction l ↔ (S.toPlaces T k)⁻¹ * S.toPlaces T l ∈ F.congruenceSubgroup := by |
| 527 | obtain ⟨l, rfl⟩ : ∃ a : S.latticeStabilizer, k * a = l := mul_left_surjective k l |
| 528 | simpa [principalLevel, mem_latticeStabilizer_iff.mp l.prop] using hF.mem_principalLevel_iff |
| 529 | (x := l) |
| 530 | |
| 531 | /-- Let `F` be a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose |
| 532 | modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` |
| 533 | (`hM_inv`). For a finite adelic point `x` integral off `T`, the character `P.ψ` at the sum of the |
| 534 | simple root coordinates of its projection, divided by `F.levelUnit`, is the unipotent character of |
| 535 | `S` at `x`. -/ |
| 536 | theorem IsFillingData.psi_simpleRootSum_eq_unipotentChar [hF : S.IsFillingData T F] |
| 537 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] (h_off : S.IsIntegralOff T x) : |
| 538 | P.ψ (F.levelUnit⁻¹.val * simpleRootSum (S.toPlaces T x)) = S.unipotentChar x := by |
| 539 | have h_int : S.ideleM⁻¹.val * simpleRootSum x ∈ integralOff T := |
| 540 | mul_mem hM_inv.out (sum_mem fun _ _ ↦ h_off.isIntMatrix _ _) |
| 541 | calc |
| 542 | _ = S.charOnPlaces T (evalPlaces T (S.ideleM⁻¹.val * simpleRootSum x)) := by |
| 543 | simp [hF.levelUnit_eq, hF.psi_eq, simpleRootSum, toPlaces, U.map] |
| 544 | _ = _ := S.charOnPlaces_evalPlaces T h_int |
| 545 | |
| 546 | /-- Let `F` be a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose |
| 547 | modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` |
| 548 | (`hM_inv`). Then `P.modulus F.levelUnit` is `(M ^ f)⁻¹ ^ 2`, with `M` read as the natural number |
| 549 | `S.M` and `f` the number of infinite places of `E`. -/ |
| 550 | theorem IsFillingData.modulus_levelUnit [hF : S.IsFillingData T F] |
| 551 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] : |
| 552 | P.modulus F.levelUnit = (S.M ^ numInfPlaces E : ℝ≥0∞)⁻¹ ^ 2 := by |
| 553 | -- The product formula for `S.ideleM`, which is a unit off `T`, squared. |
| 554 | have h_rat : P.modulus F.levelUnit ^ (2⁻¹ : ℝ) = (S.M ^ numInfPlaces E : ℝ≥0∞)⁻¹ := by |
| 555 | simpa [hF.levelUnit_eq, ideleM_val, ← ofReal_norm] using |
| 556 | P.modulus_evalPlaces_rpow_half ⟨((mem_Ô_iff T).1 S.ideleM_mem).2, hM_inv.out⟩ |
| 557 | rw [← h_rat, ← rpow_natCast, Nat.cast_ofNat, rpow_inv_rpow two_ne_zero] |
| 558 | |
| 559 | /-- Let `F` be a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose |
| 560 | modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` |
| 561 | (`hM_inv`). Let 𝖴 = `besselU` be the group of block upper unitriangular isometries. The order |
| 562 | `S.unipotentOrder` of the reduction modulo `M` of the integral points of 𝖴, times the measure |
| 563 | `F.unipotentMass` of 𝖴 ∩ K(M) at `T`, is one. Here `K(M) = F.congruenceSubgroup` consists of the |
| 564 | integral points congruent to `1` modulo `M`. -/ |
| 565 | theorem IsFillingData.unipotentOrder_mul_unipotentMass_eq_one [hF : S.IsFillingData T F] |
| 566 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] : |
| 567 | S.unipotentOrder * F.unipotentMass = 1 := by |
| 568 | -- By `modulus_levelUnit` the floor `l` has volume `(M ^ f)⁻¹ ^ (2 d + 1)`, with |
| 569 | -- `f = numInfPlaces E` and `d = k + 1 + 2 (ϱ - (l + 1))`; sum the exponents. |
| 570 | have h_sum (n : ℕ) : |
| 571 | ∑ l ∈ .range n, (2 * (𝔰.k + 1 + 2 * (n - (l + 1))) + 1) = n * (2 * 𝔰.k + 2 * n + 1) := by |
| 572 | induction n with |
| 573 | | zero => simp |
| 574 | | succ n ih => grind [Finset.sum_range_succ'] |
| 575 | simp only [Nat.cast_pow, PlaceData.unipotentMass, PlaceData.floorModulus, hF.modulus_levelUnit, |
| 576 | ← rpow_natCast_mul, Nat.cast_ofNat, mul_inv_cancel₀ (two_ne_zero' ℝ), rpow_one, ← pow_mul _ 2, |
| 577 | ← pow_succ, Finset.prod_pow_eq_pow_sum] |
| 578 | rw [pow_mul, h_sum, ← mul_pow] |
| 579 | simp [ENNReal.mul_inv_cancel, Nat.Prime.ne_zero, -Nat.cast_mul] |
| 580 | |
| 581 | /-! ### Counting images modulo `M` by measures -/ |
| 582 | |
| 583 | /-- Let `F` be a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose |
| 584 | modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` |
| 585 | (`hM_inv`). Let `B` be a subgroup of the finite adelic unitary group and `μ` an s-finite measure on |
| 586 | the unitary group over the product `LocProd T` of the completions at `T`. Suppose that almost every |
| 587 | point for `μ` is the projection (`toPlaces`) of an element of `B` integral off `T`, and that `μ` is |
| 588 | invariant under right translation by the projections of the elements of `B`. Then the order of the |
| 589 | image `S.reducedImage B` modulo `M` of the integral points of `B`, times the measure of the |
| 590 | principal congruence subgroup `K(M) = F.congruenceSubgroup`, is the measure of the group |
| 591 | `unitaryLevel P.integers 1 _` of integral points at `T`. -/ |
| 592 | theorem IsFillingData.card_reducedImage_mul_measure_congruenceSubgroup_eq [hF : S.IsFillingData T F] |
| 593 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] {B : Subgroup S.GFin} |
| 594 | {μ : Measure (U (S.latticeMiddle (LocProd T)).splitGram)} [SFinite μ] |
| 595 | (h_supp : ∀ᵐ z : U (S.latticeMiddle (LocProd T)).splitGram ∂μ, |
| 596 | ∃ x ∈ B, S.toPlaces T x = z ∧ S.IsIntegralOff T x) |
| 597 | (h_inv : ∀ x ∈ B, μ ∗ₘ Measure.dirac (S.toPlaces T x) = μ) : |
| 598 | Nat.card (S.reducedImage B) * μ F.congruenceSubgroup = |
| 599 | μ (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) := by |
| 600 | classical |
| 601 | -- Choose lifts `k s ∈ B ∩ K` of the `s ∈ S.reducedImage B`. Almost everywhere, the integral |
| 602 | -- points are the disjoint union of the cosets `C s = K(M) (k s)⁻¹`, all of measure `μ K(M)`. |
| 603 | have h_lift (s : S.reducedImage B) : |
| 604 | ∃ k : S.latticeStabilizer, k.val ∈ B ∧ S.reduction k = s := s.property |
| 605 | choose k hkB hk_red using h_lift |
| 606 | let C (s : S.reducedImage B) : Set (U (S.latticeMiddle (LocProd T)).splitGram) := |
| 607 | (· * S.toPlaces T (k s)) ⁻¹' F.congruenceSubgroup |
| 608 | have hC_meas (s : S.reducedImage B) : MeasurableSet (C s) := |
| 609 | measurable_mul_const _ P.measurableSet_unitaryLevel |
| 610 | have hC_vol (s : S.reducedImage B) : μ (C s) = μ F.congruenceSubgroup := by |
| 611 | nth_rw 2 [← h_inv _ (hkB s)] |
| 612 | rw [μ.mconv_dirac, μ.map_apply (by fun_prop) P.measurableSet_unitaryLevel] |
| 613 | have hC_disj : Pairwise (onFun Disjoint C) := by |
| 614 | refine fun s t hst ↦ disjoint_left.2 fun z hs ht ↦ hst (Subtype.ext ?_) |
| 615 | rw [← hk_red s, ← hk_red t, hF.reduction_eq_iff] |
| 616 | simpa using mul_mem (inv_mem hs.out) ht.out |
| 617 | have h_cover : ⋃ s, C s =ᵐ[μ] |
| 618 | (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram : Set _) := by |
| 619 | refine eventuallyEqSet_iff.2 (h_supp.mono ?_) |
| 620 | rintro _ ⟨x, hx, rfl, hx_off⟩ |
| 621 | refine mem_iUnion.trans ⟨fun ⟨s, hs⟩ ↦ ?_, fun hxK ↦ ?_⟩ |
| 622 | · exact (mul_mem_cancel_right (mem_latticeStabilizer_iff.1 (k s).prop).2).1 |
| 623 | (P.unitaryLevel_le_unitaryLevel_one hs) |
| 624 | · -- The point `x` lies in `S.latticeStabilizer`; take for `s` the reduction of `x⁻¹`. |
| 625 | lift x to S.latticeStabilizer using mem_latticeStabilizer_iff.2 ⟨hx_off, hxK⟩ |
| 626 | refine ⟨⟨S.reduction x⁻¹, x⁻¹, inv_mem hx, rfl⟩, ?_⟩ |
| 627 | simpa [C] using (hF.reduction_eq_iff x⁻¹ _).1 (by simp [hk_red]) |
| 628 | rw [← measure_congr h_cover, measure_iUnion hC_disj hC_meas] |
| 629 | simp [hC_vol, Nat.card_eq_fintype_card] |
| 630 | |
| 631 | /-! ### Double cosets and the Kloosterman sum -/ |
| 632 | |
| 633 | omit P in |
| 634 | /-- Let `γ = w_p σ` with `σ` fixing the `ϱ` hyperbolic pairs of the basis. Let 𝖴 = `besselU` be the |
| 635 | unipotent group and `𝖴_c(M) = S.classUnipotent c` the group of its rational points `u` with |
| 636 | `h_c⁻¹ u h_c ≡ 1` modulo `M`. Let `r` and `r'` list rational points of 𝖴 without repetition, with |
| 637 | exactly one in each of the cosets `u 𝖴_c(M)` and `u' 𝖴_c'(M)` for which `u⁻¹ γ u'` is a term. Let |
| 638 | `W = S.besselFn side` be the full or the cut Bessel function on the points at infinity. Then the sum |
| 639 | `cosetAmplitude` of the amplitudes of the terms `u γ u'⁻¹` is the sum, over the pairs of |
| 640 | representatives that give a term `δ`, of the orbital integrals `∫ W(y) ⊗ W(δ⁻¹ y)^* dy`. -/ |
| 641 | lemma hasSum_besselOrbitalIntegral_cosetAmplitude [WeilData E] |
| 642 | [S.IsAdmissible] {side : FullOrCut} {σ : S.G E} |
| 643 | (hσ : σ ∈ floorGroup 𝔰.ϱ) (p : ℕ → Eˣ) {c c' : S.Classes} {s : S.ResidueGL} {ι ι' : Type} |
| 644 | {r : ι → S.G E} {r' : ι' → S.G E} (hr : ∀ w : ι, r w ∈ besselU) (hr' : ∀ w : ι', r' w ∈ besselU) |
| 645 | (r_inj : Injective r) (r'_inj : Injective r') |
| 646 | (h_rep : ∀ u ∈ besselU, ∀ u' ∈ besselU, |
| 647 | u⁻¹ * (weylElem 𝔰.ϱ p * σ) * u' ∈ S.termsOver c s c' → |
| 648 | (∃! v : S.classUnipotent c, u * v.val⁻¹ ∈ range r) ∧ |
| 649 | ∃! v' : S.classUnipotent c', u' * v'.val⁻¹ ∈ range r') : |
| 650 | HasSum |
| 651 | (fun w : ι × ι' ↦ (S.termsOver c s c').indicator |
| 652 | (fun δ : S.G E ↦ besselOrbitalIntegral volume |
| 653 | (fun y : InfinitePlace E → 𝔰.G₁ ↦ WithLp.toLp 2 (S.besselFn side y)) (S.ratToInf δ)) |
| 654 | ((r w.1)⁻¹ * (weylElem 𝔰.ϱ p * σ) * r' w.2)) |
| 655 | (S.cosetAmplitude side c s c' (weylElem 𝔰.ϱ p * σ)) := by |
| 656 | -- The group `𝖴_c(M) × 𝖴_c'(M)` acts freely on the terms in `X = 𝖴 γ 𝖴`, and each orbit contains |
| 657 | -- one `δ w`. So the cutoffs may be replaced by the indicator of the set of the `δ w`. |
| 658 | set γ : S.G E := weylElem 𝔰.ϱ p * σ |
| 659 | let f (x : (S.ratMiddle E).besselU × (S.ratMiddle E).besselU) : S.G E := x.1.val * γ * x.2.val⁻¹ |
| 660 | have f_inj : Injective f := fun _ _ h ↦ (big_cell_unique hσ h).2 |
| 661 | have f_move (u u' : (S.ratMiddle E).besselU) |
| 662 | (x : (S.ratMiddle E).besselU × (S.ratMiddle E).besselU) : |
| 663 | f (u * x.1, u' * x.2) = u * f x * u'.val⁻¹ := by simp [f, mul_assoc] |
| 664 | let X : Set (S.G E) := range f |
| 665 | have hX : S.IsStable X := fun u hu u' hu' δ ↦ |
| 666 | ⟨fun ⟨x, hx⟩ ↦ ⟨_, (f_move ⟨u, hu⟩ ⟨u', hu'⟩ x).trans (by simp [hx, mul_assoc])⟩, |
| 667 | fun ⟨x, hx⟩ ↦ ⟨_, (f_move ⟨u, hu⟩⁻¹ ⟨u', hu'⟩⁻¹ x).trans (by simp [hx])⟩⟩ |
| 668 | have h_block : S.amplitudeSum side X c s c' = S.cosetAmplitude side c s c' γ := by |
| 669 | rw [amplitudeSum, tsum_subtype _ (S.amplitude side c c'), |
| 670 | ← f_inj.tsum_eq (support_indicator_subset.trans inter_subset_left), ← indicator_indicator] |
| 671 | exact tsum_congr fun x ↦ indicator_of_mem (mem_range_self x) _ |
| 672 | let δ (w : ι × ι') : S.G E := (r w.1)⁻¹ * γ * r' w.2 |
| 673 | have δ_eq (w : ι × ι') : δ w = f (⟨r w.1, hr w.1⟩⁻¹, ⟨r' w.2, hr' w.2⟩⁻¹) := by simp [δ, f] |
| 674 | have δ_inj : Injective δ := fun w w' h ↦ by |
| 675 | simpa [δ_eq, f_inj.eq_iff, Prod.ext_iff, r_inj.eq_iff, r'_inj.eq_iff] using h |
| 676 | have h_one (x : S.G E) (hx : x ∈ X ∩ S.termsOver c s c') : |
| 677 | ∑' v : S.classUnipotent c × S.classUnipotent c', |
| 678 | (range δ).indicator (1 : S.G E → ℝ≥0∞) (v.1 * x * v.2⁻¹) = 1 := by |
| 679 | obtain ⟨⟨⟨u, u'⟩, rfl⟩, h_over⟩ := hx |
| 680 | have h_iff (v : S.classUnipotent c × S.classUnipotent c') : v.1 * f (u, u') * v.2⁻¹ ∈ range δ ↔ |
| 681 | u.val⁻¹ * v.1.val⁻¹ ∈ range r ∧ u'.val⁻¹ * v.2.val⁻¹ ∈ range r' := by |
| 682 | have h_move : v.1 * f (u, u') * v.2⁻¹ = f (⟨v.1, v.1.prop.1⟩ * u, ⟨v.2, v.2.prop.1⟩ * u') := |
| 683 | (f_move ⟨v.1, v.1.prop.1⟩ ⟨v.2, v.2.prop.1⟩ (u, u')).symm |
| 684 | rw [h_move] |
| 685 | simp only [mem_range, δ_eq, f_inj.eq_iff, Prod.exists, Prod.mk.injEq, inv_eq_iff_eq_inv, |
| 686 | Subtype.ext_iff, exists_and_left, exists_and_right] |
| 687 | simp |
| 688 | obtain ⟨⟨v, hv, v_unique⟩, v', hv', v'_unique⟩ := |
| 689 | h_rep _ (inv_mem u.property) _ (inv_mem u'.property) (by simpa using h_over) |
| 690 | rw [tsum_eq_single (v, v'), indicator_of_mem ((h_iff (v, v')).2 ⟨hv, hv'⟩), Pi.one_apply] |
| 691 | refine fun z hz ↦ indicator_of_notMem (fun h_mem ↦ hz ?_) _ |
| 692 | exact Prod.ext (v_unique _ ((h_iff z).1 h_mem).1) (v'_unique _ ((h_iff z).1 h_mem).2) |
| 693 | obtain ⟨h_sum, h_int, -⟩ := hasSum_amplitudeSum_of_cutoff (side := side) hX c s c' |
| 694 | (fun x _ ↦ (range δ).indicator 1 x) (fun x hx _ ↦ h_one x hx) fun _ ↦ measurable_const |
| 695 | -- Only the `δ w` contribute, each with one integral over the infinite points. |
| 696 | let g (x : S.G E) : EuclideanSpace ℂ (S.BesselCoord × S.BesselCoord) := |
| 697 | ∫ y, ((range δ).indicator (1 : S.G E → ℝ≥0∞) x).toReal • S.besselKernel side x y |
| 698 | have h_zero (x : S.G E) (hx : x ∉ range δ) : (X ∩ S.termsOver c s c').indicator g x = 0 := |
| 699 | indicator_apply_eq_zero.2 fun _ ↦ by simp [g, indicator_of_notMem hx] |
| 700 | rw [← h_block] |
| 701 | refine ((δ_inj.hasSum_iff h_zero).2 (hasSum_subtype_iff_indicator.1 h_sum)).congr_fun fun w ↦ ?_ |
| 702 | by_cases hw : δ w ∈ S.termsOver c s c' |
| 703 | · have h_mem : δ w ∈ X ∩ S.termsOver c s c' := ⟨⟨_, (δ_eq w).symm⟩, hw⟩ |
| 704 | rw [indicator_of_mem hw, Function.comp_apply, indicator_of_mem h_mem] |
| 705 | ext i |
| 706 | rw [eval_integral_piLp (h_int ⟨δ w, h_mem⟩).eval_piLp i] |
| 707 | simp [besselOrbitalIntegral, besselKernel] |
| 708 | · rw [indicator_of_notMem hw, Function.comp_apply, |
| 709 | indicator_of_notMem fun (h : δ w ∈ X ∩ S.termsOver c s c') ↦ hw h.2] |
| 710 | |
| 711 | /-- Let `F` be a filling datum at `T` (`hF`), that is, a large lattice datum on the completions at |
| 712 | `T` whose modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off |
| 713 | `T` (`hM_inv`). Let `k` be a point of `S.latticeStabilizer`, with reduction `S.reduction k` modulo |
| 714 | `M`. Let `γ` be a rational element whose translate `S.translateByClassReps c c' γ = h_c⁻¹ γ h_c'` is |
| 715 | integral off `T` (`h_off`). Then `γ` lies in `S.termsOver c (S.reduction k) c'` exactly when the |
| 716 | projection of its translate to `T` lies in `S.toPlaces T k · K(M)`, with |
| 717 | `K(M) = F.congruenceSubgroup`. Lying in `S.termsOver` means the translate is integral with reduction |
| 718 | `S.reduction k`. -/ |
| 719 | lemma IsFillingData.mem_termsOver_iff [hF : S.IsFillingData T F] |
| 720 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] |
| 721 | {c c' : S.Classes} {γ : S.G E} (k : S.latticeStabilizer) |
| 722 | (h_off : S.IsIntegralOff T (S.translateByClassReps c c' γ)) : |
| 723 | γ ∈ S.termsOver c (S.reduction k) c' ↔ |
| 724 | (S.toPlaces T k)⁻¹ * S.toPlaces T (S.translateByClassReps c c' γ) ∈ F.congruenceSubgroup := by |
| 725 | constructor |
| 726 | · rintro ⟨l, h_red, hl⟩ |
| 727 | rw [← hl, ← hF.reduction_eq_iff, h_red] |
| 728 | · intro h |
| 729 | have h_int : S.translateByClassReps c c' γ ∈ S.latticeStabilizer := |
| 730 | mem_latticeStabilizer_iff.2 ⟨h_off, (mul_mem_cancel_left |
| 731 | (inv_mem (mem_latticeStabilizer_iff.1 k.2).2)).1 (P.unitaryLevel_le_unitaryLevel_one h)⟩ |
| 732 | exact ⟨⟨_, h_int⟩, ((hF.reduction_eq_iff k ⟨_, h_int⟩).2 h).symm, rfl⟩ |
| 733 | |
| 734 | /-- Let `F` be a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose |
| 735 | modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` |
| 736 | (`hM_inv`). Let `S` satisfy the standing hypotheses `New.Filling.IsAdmissible`, let 𝖴 = `besselU` be |
| 737 | the group of block upper unitriangular isometries, and put `K(M) = F.congruenceSubgroup` and |
| 738 | `𝖴_c(M) = S.classUnipotent c`. The translate `S.translateByClassReps c c u = h_c⁻¹ u h_c`, read at |
| 739 | `T`, matches the cosets `u 𝖴_c(M)` of the points `u` of 𝖴 over `E` whose translate is integral off |
| 740 | `T` with the cosets of `𝖴 ∩ K(M)` in 𝖴 at `T`. This is stated by a list `r` of rational |
| 741 | representatives, one for each coset at `T`. -/ |
| 742 | lemma IsFillingData.exists_injective_mem_besselU_and_isIntegralOff [hF : S.IsFillingData T F] |
| 743 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] (c : S.Classes) : |
| 744 | ∃ r : F.UnipotentCosets → S.G E, |
| 745 | Injective r ∧ |
| 746 | (∀ w : F.UnipotentCosets, r w ∈ besselU) ∧ |
| 747 | (∀ w : F.UnipotentCosets, S.IsIntegralOff T (S.translateByClassReps c c (r w))) ∧ |
| 748 | (∀ w : F.UnipotentCosets, |
| 749 | w.out.val⁻¹ * S.toPlaces T (S.translateByClassReps c c (r w)) ∈ F.congruenceSubgroup) ∧ |
| 750 | ∀ u ∈ besselU, S.IsIntegralOff T (S.translateByClassReps c c u) → |
| 751 | ∃! v : S.classUnipotent c, u * v.val⁻¹ ∈ range r := by |
| 752 | let pos (u : S.G E) : S.GFin := S.translateByClassReps c c u |
| 753 | -- Lift a point at `T` by `1` off `T`, and approximate the lift by a rational point. |
| 754 | have h_dense (w : F.UnipotentCosets) : ∃ u ∈ besselU, |
| 755 | S.IsIntegralOff T (pos u) ∧ w.out.val⁻¹ * S.toPlaces T (pos u) ∈ F.congruenceSubgroup := by |
| 756 | obtain ⟨x, hx, hx_off, hx_unip, -⟩ := S.exists_isIntegralOff_toPlaces_eq w.out.val |
| 757 | obtain ⟨u, hu, hux, -⟩ := exists_rat_approx_unipotentChar_eq c (hx_unip w.out.property) |
| 758 | obtain ⟨h_off, h_level⟩ := hF.mem_principalLevel_iff.1 hux |
| 759 | exact ⟨u, hu, (mul_mem_cancel_left (inv_mem hx_off)).1 h_off, by simpa [hx] using h_level⟩ |
| 760 | choose r hr r_off r_level using h_dense |
| 761 | refine ⟨r, fun w w' h ↦ PlaceData.unipotentCosets_eq_of_inv_mul_mem ?_, hr, r_off, r_level, |
| 762 | fun u hu h_off ↦ ?_⟩ |
| 763 | · simpa [h] using mul_mem (r_level w) (inv_mem (r_level w')) |
| 764 | -- The point `u` lies in `r w 𝖴_c(M)` exactly when `w` is the coset of its translate at `T`. |
| 765 | let u₀ : (S.latticeMiddle (LocProd T)).besselU := |
| 766 | ⟨S.toPlaces T (pos u), (hu.translateByClassReps_mem_besselU c).map_mem_agreeWithOneOn _⟩ |
| 767 | let w₀ : F.UnipotentCosets := u₀ |
| 768 | have hw₀ : (S.toPlaces T (pos u))⁻¹ * w₀.out.val ∈ F.congruenceSubgroup := |
| 769 | PlaceData.inv_mul_out_mem (F := F) u₀ |
| 770 | have h_coset (w : F.UnipotentCosets) : (r w)⁻¹ * u ∈ S.classUnipotent c ↔ w = w₀ := by |
| 771 | have h_unip : (r w)⁻¹ * u ∈ S.classUnipotent c ↔ (pos (r w))⁻¹ * pos u ∈ S.principalLevel := by |
| 772 | simp [pos, classUnipotent, translateByClassReps, mul_assoc, mul_mem (inv_mem (hr w)) hu] |
| 773 | have h_int : S.IsIntegralOff T ((pos (r w))⁻¹ * pos u) := mul_mem (inv_mem (r_off w)) h_off |
| 774 | rw [h_unip, hF.mem_principalLevel_iff, and_iff_right h_int, map_mul, map_inv] |
| 775 | refine ⟨fun h ↦ PlaceData.unipotentCosets_eq_of_inv_mul_mem ?_, ?_⟩ |
| 776 | · simpa [mul_assoc] using mul_mem (mul_mem (r_level w) h) hw₀ |
| 777 | · rintro rfl |
| 778 | simpa [mul_assoc] using inv_mem (mul_mem hw₀ (r_level w₀)) |
| 779 | refine ⟨⟨(r w₀)⁻¹ * u, (h_coset w₀).2 rfl⟩, ⟨w₀, by simp⟩, ?_⟩ |
| 780 | rintro ⟨v, hv⟩ ⟨w, hw⟩ |
| 781 | obtain rfl : v = (r w)⁻¹ * u := by simp [hw] |
| 782 | simp only [(h_coset w).1 hv] |
| 783 | |
| 784 | /-- Let `F` be a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose |
| 785 | modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` |
| 786 | (`hM_inv`). For a rational point `u` of 𝖴 = `besselU` whose translate `h_c⁻¹ u h_c` is integral off |
| 787 | `T`, the finite Bessel function `P.extendedBesselChar F.levelUnit` at the projection of the |
| 788 | translate is the character `S.unipotentChar` at the finite part of `u`. -/ |
| 789 | lemma IsFillingData.extendedBesselChar_toPlaces_translateByClassReps [hF : S.IsFillingData T F] |
| 790 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] |
| 791 | {c : S.Classes} {u : S.G E} (hu : u ∈ besselU) |
| 792 | (h_off : S.IsIntegralOff T (S.translateByClassReps c c u)) : |
| 793 | P.extendedBesselChar F.levelUnit (S.toPlaces T (S.translateByClassReps c c u)) = S.unipotentChar |
| 794 | (S.ratToFin u) := by |
| 795 | have hu' : S.translateByClassReps c c u ∈ besselU := hu.translateByClassReps_mem_besselU c |
| 796 | -- The character is trivial on the integral points off `T`, and conjugation by `h_c` keeps it. |
| 797 | rw [P.extendedBesselChar_eq (u := S.toPlaces T (S.translateByClassReps c c u)) |
| 798 | (hu'.map_mem_agreeWithOneOn _) |
| 799 | (by simp), |
| 800 | hF.psi_simpleRootSum_eq_unipotentChar h_off, |
| 801 | unipotentChar_eq_of_mem_principalLevel hu' (ratToFin_mem_besselU_iff.mpr hu) c.out |
| 802 | (by simp [translateByClassReps, mul_assoc])] |
| 803 | |
| 804 | omit P in |
| 805 | /-- Phases at the infinite places. Let `W = S.besselFn side` be the full or the cut Bessel function |
| 806 | at infinity (`side : FullOrCut`), and `J(γ) = ∫ W(y) ⊗ W(γ⁻¹ y)^* dy` the orbital integral |
| 807 | `besselOrbitalIntegral`. Let `u`, `u'` be rational points of the group 𝖴 = `besselU` of block upper |
| 808 | unitriangular isometries, and let `γ` be rational. Then `J(S.ratToInf (u⁻¹ γ u')) = ψ(u) conj ψ(u') |
| 809 | J(S.ratToInf γ)`, where `ψ(u) = S.unipotentChar (S.ratToFin u)` is the character of 𝖴 at the image |
| 810 | of `u` at the finite places. -/ |
| 811 | lemma besselOrbitalIntegral_ratToInf_besselU_mul {side : FullOrCut} {u u' : S.G E} |
| 812 | (hu : u ∈ besselU) (hu' : u' ∈ besselU) (γ : S.G E) : |
| 813 | besselOrbitalIntegral volume (fun y : InfinitePlace E → 𝔰.G₁ ↦ |
| 814 | WithLp.toLp 2 (S.besselFn side y)) |
| 815 | (S.ratToInf (u⁻¹ * γ * u')) = |
| 816 | (S.unipotentChar (S.ratToFin u) * star (S.unipotentChar (S.ratToFin u'))) • |
| 817 | besselOrbitalIntegral volume |
| 818 | (fun y : InfinitePlace E → 𝔰.G₁ ↦ WithLp.toLp 2 (S.besselFn side y)) (S.ratToInf γ) := by |
| 819 | let χ : ℂ := S.unipotentChar (S.ratToFin u) * star (S.unipotentChar (S.ratToFin u')) |
| 820 | have h_inv {x : S.G E} (hx : x ∈ besselU) : |
| 821 | S.unipotentChar (S.ratToFin x)⁻¹ = (S.unipotentChar (S.ratToFin x))⁻¹ := by |
| 822 | rw [unipotentChar, simpleRootSum_inv _ |
| 823 | (mem_partialUnitriangularGroup_of_mem_besselU (ratToFin_mem_besselU_iff.2 hx)), |
| 824 | mul_neg, AddChar.map_neg_eq_inv, unipotentChar] |
| 825 | have h_phase : ‖S.unipotentChar (S.ratToFin u')‖ = 1 := norm_selfDualChar |
| 826 | have h_kernel (y : InfinitePlace E → 𝔰.G₁) : |
| 827 | S.besselKernel side (u⁻¹ * γ * u') y = χ • S.besselKernel side γ (S.ratToInf u * y) := by |
| 828 | simpa [χ, h_inv hu, h_inv hu', Complex.star_def, |
| 829 | ← Complex.inv_eq_conj h_phase, mul_assoc] using |
| 830 | besselKernel_besselU_mul (side := side) (inv_mem hu) (inv_mem hu') γ (S.ratToInf u * y) |
| 831 | ext i |
| 832 | calc |
| 833 | _ = ∫ y, S.besselKernel side (u⁻¹ * γ * u') y i := rfl |
| 834 | _ = χ * ∫ y, S.besselKernel side γ (S.ratToInf u * y) i := by |
| 835 | simp only [h_kernel, PiLp.smul_apply, smul_eq_mul, integral_const_mul] |
| 836 | _ = χ * ∫ y, S.besselKernel side γ y i := by |
| 837 | rw [integral_mul_left_eq_self (S.besselKernel side γ · i)] |
| 838 | |
| 839 | variable [WeilData E] |
| 840 | |
| 841 | /-- Let `F` be a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose |
| 842 | modulus `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` |
| 843 | (`hM_inv`). Let `γ = w_p σ`, with the inverses of the entries `p a`, `a < ϱ`, integral off `T`, `σ` |
| 844 | fixing the `ϱ` hyperbolic pairs and `h_c⁻¹ γ h_c'` integral off `T`. Let `x` and `s` be the |
| 845 | projections to `T` of `h_c⁻¹ γ h_c'` and of the integral point `k`, and `k̄` the reduction of `k`. |
| 846 | The Kloosterman sum `F.kloostermanSum x s` is the sum of `χ(u) conj χ(u')` over the cosets `u`, `u'` |
| 847 | in `𝖴 / (𝖴 ∩ K(M))` at `T` with `u⁻¹ x u' ∈ s K(M)`, where `χ` is the character of 𝖴 = `besselU`. |
| 848 | Then the orbit sum `New.Filling.cosetAmplitude` of `γ` over `(c, k̄, c')` is this sum times the |
| 849 | orbital integral of `γ` at the infinite places, for the full or the cut Bessel function |
| 850 | `S.besselFn side`. -/ |
| 851 | theorem IsFillingData.cosetAmplitude_eq_kloostermanSum_smul [hF : S.IsFillingData T F] |
| 852 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] [S.IsAdmissible] {side : FullOrCut} |
| 853 | {σ : S.G E} {p : ℕ → Eˣ} {c c' : S.Classes} (k : S.latticeStabilizer) (hσ : σ ∈ floorGroup 𝔰.ϱ) |
| 854 | (hp : ∀ a : Fin 𝔰.ϱ, (p a)⁻¹.val ∈ ratIntegralOff T) |
| 855 | (h_off : S.IsIntegralOff T (S.translateByClassReps c c' (weylElem 𝔰.ϱ p * σ))) : |
| 856 | S.cosetAmplitude side c (S.reduction k) c' (weylElem 𝔰.ϱ p * σ) = |
| 857 | F.kloostermanSum (S.toPlaces T (S.translateByClassReps c c' (weylElem 𝔰.ϱ p * σ))) |
| 858 | (S.toPlaces T k) • |
| 859 | besselOrbitalIntegral volume |
| 860 | (fun y : InfinitePlace E → 𝔰.G₁ ↦ WithLp.toLp 2 (S.besselFn side y)) |
| 861 | (S.ratToInf (weylElem 𝔰.ϱ p * σ)) := by |
| 862 | set γ : S.G E := weylElem 𝔰.ϱ p * σ |
| 863 | obtain ⟨r, r_inj, hr, r_off, r_level, r_rep⟩ := |
| 864 | hF.exists_injective_mem_besselU_and_isIntegralOff c |
| 865 | obtain ⟨r', r'_inj, hr', r'_off, r'_level, r'_rep⟩ := |
| 866 | hF.exists_injective_mem_besselU_and_isIntegralOff c' |
| 867 | -- In a term `u⁻¹ γ u'` over `(c, k̄, c')`, `u` and `u'` have translates integral off `T`. |
| 868 | have h_int (u : S.G E) (hu : u ∈ besselU) (u' : S.G E) (hu' : u' ∈ besselU) |
| 869 | (h_over : u⁻¹ * γ * u' ∈ S.termsOver c (S.reduction k) c') : |
| 870 | S.IsIntegralOff T (S.translateByClassReps c c u) ∧ |
| 871 | S.IsIntegralOff T (S.translateByClassReps c' c' u') := by |
| 872 | obtain ⟨h_left, -⟩ := isIntegralOff_of_mem_termsOver hu hu' hσ hp h_over |
| 873 | obtain ⟨l, -, hl⟩ := h_over |
| 874 | have h_all : S.IsIntegralOff T l.val := (mem_latticeStabilizer_iff.1 l.property).1 |
| 875 | rw [hl, translateByClassReps_inv_mul_mul] at h_all |
| 876 | exact ⟨h_left, (mul_mem_cancel_left (mul_mem (inv_mem h_left) h_off)).1 h_all⟩ |
| 877 | -- Unfolding: each double coset gives one orbital integral at the infinite places. |
| 878 | have h_sum := hasSum_besselOrbitalIntegral_cosetAmplitude (side := side) hσ p hr hr' r_inj r'_inj |
| 879 | fun u hu u' hu' h_over ↦ (h_int u hu u' hu' h_over).imp (r_rep u hu) (r'_rep u' hu') |
| 880 | -- Rational and local pairs: `(r w)⁻¹ γ (r' w')` is a term over `(c, k̄, c')` exactly when |
| 881 | -- `(w, w')` is a pair in the sum at `T`. |
| 882 | let x : (S.latticeMiddle (LocProd T)).G := S.toPlaces T (S.translateByClassReps c c' γ) |
| 883 | let s : (S.latticeMiddle (LocProd T)).G := S.toPlaces T k |
| 884 | have h_pair (w w' : F.UnipotentCosets) : |
| 885 | (r w)⁻¹ * γ * r' w' ∈ S.termsOver c (S.reduction k) c' ↔ |
| 886 | s⁻¹ * (w.out.val⁻¹ * x * w'.out.val) ∈ F.congruenceSubgroup := by |
| 887 | have h_term : S.IsIntegralOff T (S.translateByClassReps c c' ((r w)⁻¹ * γ * r' w')) := by |
| 888 | rw [translateByClassReps_inv_mul_mul] |
| 889 | exact mul_mem (mul_mem (inv_mem (r_off w)) h_off) (r'_off w') |
| 890 | have h_conj : s⁻¹ * (w.out.val⁻¹ * S.toPlaces T (S.translateByClassReps c c (r w))) * s⁻¹⁻¹ ∈ |
| 891 | F.congruenceSubgroup := |
| 892 | conj_mem_unitaryLevel (inv_mem (mem_latticeStabilizer_iff.1 k.property).2) (r_level w) |
| 893 | rw [hF.mem_termsOver_iff k h_term, ← mul_mem_cancel_left h_conj, |
| 894 | ← mul_mem_cancel_right (inv_mem (r'_level w')), translateByClassReps_inv_mul_mul] |
| 895 | simp [x, s, mul_assoc] |
| 896 | -- Phases: the factor of a pair is the term of the Kloosterman sum. |
| 897 | have h_phase {d : S.Classes} {u : S.G E} {w : F.UnipotentCosets} (hu : u ∈ besselU) |
| 898 | (hu_off : S.IsIntegralOff T (S.translateByClassReps d d u)) |
| 899 | (hw : w.out.val⁻¹ * S.toPlaces T (S.translateByClassReps d d u) ∈ F.congruenceSubgroup) : |
| 900 | S.unipotentChar (S.ratToFin u) = P.extendedBesselChar F.levelUnit w.out.val := by |
| 901 | rw [← hF.extendedBesselChar_toPlaces_translateByClassReps hu hu_off, |
| 902 | P.extendedBesselChar_eq_of_inv_mul_mem hw] |
| 903 | ext i |
| 904 | rw [PiLp.smul_apply, smul_eq_mul, PlaceData.kloostermanSum, ← tsum_mul_right] |
| 905 | refine ((EuclideanSpace.proj i).hasSum h_sum).tsum_eq.symm.trans (tsum_congr fun w ↦ ?_) |
| 906 | by_cases hw : (r w.1)⁻¹ * γ * r' w.2 ∈ S.termsOver c (S.reduction k) c' |
| 907 | · rw [indicator_of_mem hw, ite_eq_left ((h_pair w.1 w.2).1 hw), |
| 908 | besselOrbitalIntegral_ratToInf_besselU_mul (hr _) (hr' _), |
| 909 | h_phase (hr _) (r_off _) (r_level _), h_phase (hr' _) (r'_off _) (r'_level _)] |
| 910 | rfl |
| 911 | · rw [indicator_of_notMem hw, ite_eq_right (mt (h_pair w.1 w.2).2 hw), map_zero, zero_mul] |
| 912 | |
| 913 | /-- Unfolding, for either of the Bessel functions at infinity. Let `S` be admissible, and let `F` be |
| 914 | a filling datum at `T` (`hF`): a large lattice datum on the completions at `T` whose modulus |
| 915 | `F.levelUnit` is the component of `M = p₀p₁ = S.ideleM`. Let `M⁻¹` be integral off `T` (`hM_inv`). |
| 916 | Put `K(M) = F.congruenceSubgroup`. Let `γ = w_p σ`, with `w_p = weylElem 𝔰.ϱ p`. Suppose the |
| 917 | inverses of the entries `p i`, `i < ϱ`, are integral off `T`, `σ` fixes the `ϱ` hyperbolic pairs, |
| 918 | and `h_c⁻¹ γ h_c'` is integral off `T`, for class representatives `h_c`, `h_c'` of `c`, `c'`. Let |
| 919 | `Z` be a group between `K(M)` and the integral points at `T`. Let `k ∈ S.latticeStabilizer`, and let |
| 920 | the cosets `a`, `b` of `Z.Cosets` satisfy `k⁻¹ a b⁻¹ ∈ K(M)`. Let `q` and `l` be the projections to |
| 921 | `T` of `p` and of `h_c⁻¹ σ h_c'`, and let `κ = F.headDensity 𝔰.ϱ q 1` be the density, a product of |
| 922 | powers of the `P.modulus (q i)`, `i < ϱ`. Then `F.scaledOrbitalIntegral Z q l⁻¹` is `κ` times the |
| 923 | orbital integral of the finite Bessel vector of `Z` at `w_q l`. Its entry `(a, b)` times the |
| 924 | integral `New.besselOrbitalIntegral` of `γ` at the infinite places is `κ` times the measure of |
| 925 | `K(M)` times the orbit sum `New.Filling.cosetAmplitude` of `γ` over `(c, k̄, c')`, with `k̄` the |
| 926 | reduction of `k`. -/ |
| 927 | theorem IsFillingData.scaledOrbitalIntegral_smul_eq_cosetAmplitude [hF : S.IsFillingData T F] |
| 928 | [hM_inv : Fact (S.ideleM⁻¹.val ∈ integralOff T)] [S.IsAdmissible] {side : FullOrCut} |
| 929 | {σ : S.G E} {p : ℕ → Eˣ} {c c' : S.Classes} {Z : F.IntermediateGroup} {k : S.latticeStabilizer} |
| 930 | (hσ : σ ∈ floorGroup 𝔰.ϱ) (hp : ∀ a : Fin 𝔰.ϱ, (p a)⁻¹.val ∈ ratIntegralOff T) |
| 931 | (h_off : S.IsIntegralOff T (S.translateByClassReps c c' (weylElem 𝔰.ϱ p * σ))) {a b : Z.Cosets} |
| 932 | (hab : (S.toPlaces T k)⁻¹ * a.out.val * b.out.val⁻¹ ∈ F.congruenceSubgroup) : |
| 933 | let q : ℕ → (LocProd T)ˣ := Units.map (ratToPlaces T) ∘ p |
| 934 | let γ : S.G E := weylElem 𝔰.ϱ p * σ |
| 935 | F.scaledOrbitalIntegral Z q (S.toPlaces T (S.translateByClassReps c c' σ))⁻¹ (a, b) • |
| 936 | besselOrbitalIntegral volume (fun y : InfinitePlace E → 𝔰.G₁ ↦ |
| 937 | WithLp.toLp 2 (S.besselFn side y)) (S.ratToInf γ) = |
| 938 | (F.headDensity 𝔰.ϱ q 1).toReal • F.groupMeasure.real F.congruenceSubgroup • |
| 939 | S.cosetAmplitude side c (S.reduction k) c' γ := by |
| 940 | -- Both the entry at `T` and the orbit sum contain the Kloosterman sum. |
| 941 | intro q γ |
| 942 | rw [PlaceData.scaledOrbitalIntegral, inv_inv, ← toPlaces_translateByClassReps_weylElem_mul, |
| 943 | PiLp.smul_apply, smul_assoc, |
| 944 | IntegralPlace.IsLargeLatticeData.besselOrbitalIntegral_besselVector_apply Z _ hab, smul_assoc, |
| 945 | hF.cosetAmplitude_eq_kloostermanSum_smul k hσ hp h_off] |
| 946 | |
| 947 | end New.Filling |