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 | public import Mathlib.Topology.Algebra.Group.Units |
| 4 | import TauCeti.Analysis.Matrix.IndefiniteUnitaryGroup |
| 5 | public import Lib.Adelic.Adeles.LocalFactors |
| 6 | public import New.Spanning.Unfolding.Setup |
| 7 | public import Lib.DiscreteSeries.Bruhat.FloorMeasures |
| 8 | import Lib.Adelic.Adeles.StrongApproximation |
| 9 | import Lib.Shimura.HeckeTower.HeckeData |
| 10 | |
| 11 | /-! |
| 12 | # Bessel data: level subgroup, Eichler maps and strong approximation for the unipotent group |
| 13 | |
| 14 | The file works with filling data `S : New.Filling E 𝔰` and the unitary group `S.G` of the form |
| 15 | `T.splitGram`, where `T` is the middle Gram matrix, at rational points, finite adeles and |
| 16 | archimedean points. The middle space is X₀ ⊕ E z, with X₀ spanned by the basis vectors indexed by |
| 17 | `κ`. Write 𝖴 for the Bessel unipotent group `New.Shape.Form.besselU`. Write H for |
| 18 | `New.Shape.Form.besselH`, the unitary group U(X₀), acting only on the basis vectors indexed by `κ`. |
| 19 | Write `New.Shape.Form.besselS` for the group they generate. Write σ = `New.simpleRootSum` for the |
| 20 | sum of the entries just above the diagonal on the frame. The level is `S.M = p₀ p₁` with |
| 21 | `pᵢ = S.levelPrime i`, and `S.chosenPlaces i` are the chosen places of norm `pᵢ`. K(M) is |
| 22 | `S.principalLevel`. For a class c, h_c = `S.classRep c` is its representative in H. For classes c, |
| 23 | d, `S.translateByClassReps c d γ` is h_c⁻¹ γ h_d, and `S.termsOver c s d` is the set of rational γ |
| 24 | with `S.translateByClassReps c d γ` integral of reduction s. |
| 25 | |
| 26 | ## Main definitions and results |
| 27 | |
| 28 | * `New.Filling.besselFn_adelicToInf_mul_eq_prod_wave_smul`, `New.Filling.besselFn_ratToInf_mul`: how |
| 29 | the Bessel function `New.Filling.besselFn` transforms under left translation by `𝖴`. |
| 30 | * `New.exists_mem_besselU_eq_eichlerMap`: for a hermitian invertible form, if x is a combination of |
| 31 | the frame vectors of index below a and v is orthogonal to these vectors, then the Eichler map |
| 32 | along x and v, with ς = τ h(v, v), lies in the unipotent group `New.Shape.Form.besselU`; the lemma |
| 33 | also computes its `New.simpleRootSum`. |
| 34 | * `New.besselU_dense`, `New.Filling.exists_besselU_approx`: strong approximation for 𝖴. |
| 35 | * `New.Filling.exists_besselS_mem_termsOver`: each reduction `s` of an integral element of |
| 36 | `New.Shape.Form.besselS` is reached from each class c by a rational element of |
| 37 | `New.Shape.Form.besselS`. |
| 38 | |
| 39 | Notions from other files: |
| 40 | * `New.Shape.Form.splitGram`: The Gram matrix of ϱ hyperbolic planes and a middle space with Gram |
| 41 | matrix T: identity blocks pair the first and last ϱ indices, T is the middle block, all else is |
| 42 | zero. |
| 43 | * `New.Filling.selfDualChar`: The additive character x ↦ ψ_f(−x/ϖ) of the finite adeles. |
| 44 | * `New.Filling.IsAdmissible`: The standing hypotheses on the data: among them, `sourceLevel` is the |
| 45 | preimage of K(M), `reduction` is onto, and some size inequalities hold. |
| 46 | * `S.GFin`: The finite adelic points of the unitary group in the lattice basis. |
| 47 | * `New.Filling.unipotentChar`: The value of the additive character `S.selfDualChar` at M⁻¹ σ(u), |
| 48 | where σ(u) = `New.simpleRootSum u` sums the entries of u at the simple roots. |
| 49 | |
| 50 | ## Relation to the literature |
| 51 | |
| 52 | See `Lib.DiscreteSeries.Bruhat.FloorGroups` for sources. |
| 53 | -/ |
| 54 | |
| 55 | @[expose] public section |
| 56 | |
| 57 | noncomputable section |
| 58 | |
| 59 | /-! |
| 60 | ## Bessel groups at rational, finite adelic and archimedean points |
| 61 | |
| 62 | * `New.Filling.termsOver.mul`, `New.Filling.termsOver.inv`: the sets `New.Filling.termsOver` compose |
| 63 | like a groupoid. |
| 64 | * `New.Filling.prod_wave_simpleRootSum_adelicToInf`, `New.Filling.prod_wave_simpleRootSum_ratToInf`: |
| 65 | the character of `𝖴` at infinity in terms of the finite character. |
| 66 | -/ |
| 67 | |
| 68 | namespace New.Filling |
| 69 | |
| 70 | open NumberField Matrix Complex Circle Finset Real Prod Floors.FloorGroups |
| 71 | |
| 72 | variable {E : Type} [Field E] [CMType E] |
| 73 | {𝔰 : Shape} {S : Filling E 𝔰} {R R' : Type} [CommRing R] [CommRing R'] |
| 74 | |
| 75 | attribute [local aesop simp] selfDualChar ideleM splitGram middleGram latticeMiddleGram |
| 76 | besselLatticeBasis BesselIndex.level |
| 77 | |
| 78 | /-! ### Change of ring and of basis in the Bessel groups -/ |
| 79 | |
| 80 | /-- A ring homomorphism carries the Gram matrix in the lattice basis over `R` to the one over |
| 81 | `R'`: `S.latticeMiddle R` is the middle block of this matrix and `splitGram` the whole matrix. -/ |
| 82 | lemma map_splitGram_latticeMiddle (f : R →+* R') : |
| 83 | (S.latticeMiddle R).splitGram.map f = (S.latticeMiddle R').splitGram := by |
| 84 | ext i j |
| 85 | aesop (add simp [fromBlocks_map, fromCols_map, fromRows_map, Function.swap, diagonal_apply, |
| 86 | Matrix.one_apply, apply_ite]) |
| 87 | |
| 88 | /-- If `γ` agrees with the identity matrix at the entries `(i, j)` with `r i j`, then so does its |
| 89 | image under a ring homomorphism `f`; `agreeWithOneOn` is the group of such invertible matrices. -/ |
| 90 | lemma _root_.Membership.mem.map_mem_agreeWithOneOn (f : R →+* R') |
| 91 | {r : 𝔰.BesselIndex → 𝔰.BesselIndex → Prop} |
| 92 | {hr : ∀ i k j : 𝔰.BesselIndex, r i j → r i k ∨ r k j} {H : Subgroup (GL 𝔰.BesselIndex R)} |
| 93 | {γ : H} (hγ : γ ∈ (agreeWithOneOn r R hr).subgroupOf H) : |
| 94 | GeneralLinearGroup.map f γ.val ∈ agreeWithOneOn r R' hr := by |
| 95 | aesop (add simp [Subgroup.mem_subgroupOf, Matrix.one_apply]) |
| 96 | |
| 97 | /-- The rational Gram matrix `S.ratMiddle E` of the middle space is hermitian and invertible. -/ |
| 98 | instance : Floors.IsHermitianUnit (S.ratMiddle E) where |
| 99 | conjTranspose_eq := by aesop (add simp fromBlocks_conjTranspose) |
| 100 | isUnit := by simp [isUnit_iff_isUnit_det, middleGram, Nat.Prime.ne_zero] |
| 101 | |
| 102 | /-- A finite adelic point lies in the unipotent group `besselU` in rational coordinates iff it does |
| 103 | in the lattice basis; `S.toLatticeBasis` is the change to the lattice basis. -/ |
| 104 | lemma toLatticeBasis_mem_besselU {x : S.G (𝔸f E)} : S.toLatticeBasis x ∈ besselU ↔ x ∈ besselU := by |
| 105 | -- `S.toLatticeBasis` is conjugation by `S.latticeBasis`; both `S.latticeBasis` and its inverse |
| 106 | -- are block triangular. |
| 107 | obtain ⟨h_tri, h_inv_tri⟩ : S.latticeBasis.val.BlockTriangular BesselIndex.level ∧ |
| 108 | (S.latticeBasis⁻¹).val.BlockTriangular BesselIndex.level := by |
| 109 | aesop (add simp [BlockTriangular, Matrix.one_apply]) |
| 110 | refine ⟨fun hx ↦ ?_, fun hx ↦ conj_mem_unitriangular h_tri hx.out⟩ |
| 111 | have h_eq : S.latticeBasis⁻¹⁻¹ * (S.toLatticeBasis x).val * S.latticeBasis⁻¹ = x.val := by |
| 112 | simp [toLatticeBasis, mul_assoc] |
| 113 | rw [Shape.Form.besselU, Subgroup.mem_subgroupOf, ← h_eq] |
| 114 | exact conj_mem_unitriangular h_inv_tri hx.out |
| 115 | |
| 116 | /-- A rational point lies in the unipotent group `besselU` iff its finite adelic image in the |
| 117 | lattice basis does. -/ |
| 118 | @[simp] |
| 119 | lemma ratToFin_mem_besselU_iff {γ : S.G E} : S.ratToFin γ ∈ besselU ↔ γ ∈ besselU := by |
| 120 | have h_entry (i j : 𝔰.BesselIndex) : |
| 121 | (S.toLatticeBasis.symm (S.ratToFin γ)).val i j = algebraMap E (𝔸f E) (γ.val i j) := by |
| 122 | simp [ratToFin, adelicToFin, ratToAdelic, U.map] |
| 123 | rw [← S.toLatticeBasis.apply_symm_apply (S.ratToFin γ), toLatticeBasis_mem_besselU] |
| 124 | -- The conditions on the entries are reflected by the injective map `E → 𝔸f E`. |
| 125 | have h_one (i j : 𝔰.BesselIndex) : (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (𝔸f E)) i j = |
| 126 | algebraMap E (𝔸f E) ((1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex E) i j) := by |
| 127 | simp [Matrix.one_apply] |
| 128 | simp only [mem_besselU, h_entry, h_one, (algebraMap E (𝔸f E)).injective.eq_iff] |
| 129 | |
| 130 | /-- The inclusion `S.inclHFin` of the finite adelic points of the unitary group of `X₀` lands in |
| 131 | `besselH`, the isometries that fix the basis vectors outside `κ`. -/ |
| 132 | lemma inclHFin_mem_besselH (k : U 1) : S.inclHFin k ∈ besselH := by |
| 133 | simp [besselLatticeBasis, floorGroup, inclHFin, toLatticeBasis, Subgroup.mem_subgroupOf, |
| 134 | val_toBesselH_apply_coe, fromBlocks_multiply, fromCols_mul_fromBlocks, Matrix.one_apply] |
| 135 | |
| 136 | /-- The image of `S.inclHFin`, the inclusion of the finite adelic points of the unitary group of |
| 137 | `X₀ = span κ` in the lattice basis, is the group `besselH` of isometries that fix the basis vectors |
| 138 | outside `κ`. -/ |
| 139 | lemma range_inclHFin : S.inclHFin.range = besselH := by |
| 140 | refine le_antisymm (Set.range_subset_iff.2 inclHFin_mem_besselH) fun x hx ↦ ?_ |
| 141 | -- In rational coordinates `x` still fixes the basis vectors outside `κ`, as `S.latticeBasis` and |
| 142 | -- its inverse do (the two goals left by `mul_mem`), so it comes from `toBesselH`. |
| 143 | have h_mem : S.toLatticeBasis.symm x ∈ besselH := by |
| 144 | apply mul_mem (mul_mem _ hx.out) <;> aesop (add simp Matrix.one_apply) |
| 145 | obtain ⟨k, hk⟩ : ∃ k : Gf E 𝔰.κ, S.toLatticeBasis.symm x = toBesselH 𝔰 (S.N : 𝔸f E) k := |
| 146 | exists_eq_toBesselH h_mem (by simp [← piN_mul_star]) |
| 147 | exact ⟨k, S.toLatticeBasis.eq_symm_apply.1 hk.symm⟩ |
| 148 | |
| 149 | /-- The finite image of the rational `toBesselH` of `γ ∈ U(X₀)` is the inclusion `S.inclHFin` of the |
| 150 | finite adelic image of `γ`. -/ |
| 151 | lemma ratToFin_toBesselH (γ : U 1) : |
| 152 | S.ratToFin (toBesselH 𝔰 (S.N : E) γ) = S.inclHFin (stdEmbFin γ) := by |
| 153 | ext |
| 154 | simp [stdSpace_embFin γ, coe_ratToFin, val_toBesselH_apply_coe, fromBlocks_map, inclHFin, |
| 155 | toLatticeBasis] |
| 156 | |
| 157 | /-- For a class `c`, let h be the image under `toBesselH` of the chosen element `c.out` of the |
| 158 | double coset `c`, in rational coordinates. This is the finite adelic matrix h · `S.latticeBasis`. |
| 159 | Its columns form a basis of hΛ₀, where Λ₀ is the lattice spanned by the columns of |
| 160 | `S.latticeBasis`. -/ |
| 161 | noncomputable def classBasis (c : S.Classes) : GL 𝔰.BesselIndex (𝔸f E) := |
| 162 | (toBesselH 𝔰 (S.N : 𝔸f E) c.out).val * S.latticeBasis |
| 163 | |
| 164 | /-- The class basis is the lattice basis times the class representative: |
| 165 | `classBasis c = S.latticeBasis * S.classRep c`. -/ |
| 166 | lemma classBasis_eq_latticeBasis_mul_classRep (c : S.Classes) : |
| 167 | classBasis c = S.latticeBasis * (S.classRep c).val := by |
| 168 | simp [classBasis, classRep, inclHFin, toLatticeBasis, mul_assoc] |
| 169 | |
| 170 | /-- The matrix of `S.translateByClassReps c c' γ` is `B_c⁻¹ γ B_c'`, with `B_c = classBasis c`. -/ |
| 171 | lemma coe_translateByClassReps (c c' : S.Classes) (γ : S.G E) : |
| 172 | (S.translateByClassReps c c' γ).val = |
| 173 | (classBasis c)⁻¹ * GeneralLinearGroup.map (algebraMap E (𝔸f E)) γ.val * classBasis c' := by |
| 174 | simp only [classBasis_eq_latticeBasis_mul_classRep, translateByClassReps, Subgroup.coe_mul, |
| 175 | InvMemClass.coe_inv, coe_ratToFin, _root_.mul_inv_rev, mul_assoc] |
| 176 | |
| 177 | /-- The chosen representative `h_c = S.classRep c` of a class lies in `besselS`, as it lies in |
| 178 | `besselH`. -/ |
| 179 | lemma classRep_mem_besselS (c : S.Classes) : S.classRep c ∈ besselS := |
| 180 | mem_partialUnitriangularGroup_of_mem_floorGroup (inclHFin_mem_besselH c.out) |
| 181 | |
| 182 | /-- If a rational `γ` lies in `besselU`, then so does `h_c⁻¹ γ h_c = S.translateByClassReps c c |
| 183 | γ`. -/ |
| 184 | lemma _root_.Membership.mem.translateByClassReps_mem_besselU {γ : S.G E} (c : S.Classes) |
| 185 | (hγ : γ ∈ besselU) : S.translateByClassReps c c γ ∈ besselU := |
| 186 | -- `besselS` normalises `besselU`. |
| 187 | (besselS_le_normalizer_besselU (inv_mem (classRep_mem_besselS c)) _).1 |
| 188 | (ratToFin_mem_besselU_iff.2 hγ) |
| 189 | |
| 190 | /-- The product of a term over `(c, s, c')` and a term over `(c', t, c'')` is a term over |
| 191 | `(c, s * t, c'')`. -/ |
| 192 | lemma termsOver.mul {c : S.Classes} {s : S.ResidueGL} {c' : S.Classes} {t : S.ResidueGL} |
| 193 | {c'' : S.Classes} {γ δ : S.G E} (hγ : γ ∈ S.termsOver c s c') (hδ : δ ∈ S.termsOver c' t c'') : |
| 194 | γ * δ ∈ S.termsOver c (s * t) c'' := by |
| 195 | obtain ⟨(k : S.latticeStabilizer), rfl, hk⟩ := hγ |
| 196 | obtain ⟨(k' : S.latticeStabilizer), rfl, hk'⟩ := hδ |
| 197 | exact ⟨k * k', map_mul .., by simp [hk, hk', translateByClassReps, mul_assoc]⟩ |
| 198 | |
| 199 | /-- The inverse of a term over `(c, s, c')` is a term over `(c', s⁻¹, c)`. -/ |
| 200 | lemma termsOver.inv {c : S.Classes} {s : S.ResidueGL} {c' : S.Classes} {γ : S.G E} |
| 201 | (hγ : γ ∈ S.termsOver c s c') : γ⁻¹ ∈ S.termsOver c' s⁻¹ c := by |
| 202 | obtain ⟨(k : S.latticeStabilizer), rfl, hk⟩ := hγ |
| 203 | exact ⟨k⁻¹, map_inv .., by simp [hk, translateByClassReps, mul_assoc]⟩ |
| 204 | |
| 205 | /-! ### The unipotent transformation law -/ |
| 206 | |
| 207 | /-- Let `u` be an adelic point of the unitary group of the filling data `S`, and let |
| 208 | `σ = simpleRootSum` be the sum of the entries just above the diagonal on the frame e₁, …, e_ϱ, z. |
| 209 | The value of `σ` at `S.adelicToFin u`, the finite part of `u` written in the lattice basis, is the |
| 210 | finite part (the second component) of the adele `σ(u)`. -/ |
| 211 | @[local simp] |
| 212 | lemma simpleRootSum_adelicToFin (u : S.G (𝔸 E)) : |
| 213 | simpleRootSum (S.adelicToFin u) = (simpleRootSum u).2 := by |
| 214 | -- Conjugation by the lattice basis does not change the entries just above the diagonal. |
| 215 | have h_entry (a : Fin 𝔰.ϱ) : |
| 216 | (S.adelicToFin u).val (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ) = |
| 217 | (u.val (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ)).2 := by |
| 218 | cases a.succ using Fin.lastCases <;> |
| 219 | simp [adelicToFin, besselLatticeBasis, Matrix.mul_apply, U.map, toLatticeBasis, |
| 220 | Matrix.one_apply] |
| 221 | simp only [simpleRootSum, snd_sum, h_entry] |
| 222 | |
| 223 | /-- The sum of the entries just above the diagonal on the frame commutes with the embedding of |
| 224 | `E` in the adeles. -/ |
| 225 | @[simp] |
| 226 | lemma simpleRootSum_ratToAdelic (u : S.G E) : |
| 227 | simpleRootSum (S.ratToAdelic u) = ↑(simpleRootSum u) := |
| 228 | (map_sum (toAdele (E := E)) _ _).symm |
| 229 | |
| 230 | /-- The self-dual character on finite adeles has complex norm identically equal to 1. -/ |
| 231 | @[simp] |
| 232 | lemma norm_selfDualChar {x : 𝔸f E} : ‖S.selfDualChar x‖ = 1 := norm_coe _ |
| 233 | |
| 234 | /-- If a rational `γ` agrees with the identity matrix at the entries `(i, j)` with `r i j`, then so |
| 235 | does each component of its archimedean image `S.ratToInf γ`. -/ |
| 236 | lemma _root_.Membership.mem.ratToInf_mem_agreeWithOneOn {γ : S.G E} |
| 237 | {r : 𝔰.BesselIndex → 𝔰.BesselIndex → Prop} |
| 238 | {hr : ∀ i k j : 𝔰.BesselIndex, r i j → r i k ∨ r k j} |
| 239 | (hγ : γ ∈ (agreeWithOneOn r E hr).subgroupOf (S.G E)) (v : InfinitePlace E) : |
| 240 | S.ratToInf γ v ∈ (agreeWithOneOn r ℂ hr).subgroupOf 𝔰.G₁ := by |
| 241 | aesop (add simp [Subgroup.mem_subgroupOf, Matrix.one_apply]) |
| 242 | |
| 243 | variable (S) in |
| 244 | /-- For adelic `x` and an infinite place `v`, `simpleRootSum (S.adelicToInf x v)` is the sum of the |
| 245 | entries just above the diagonal of the block on `(e_0, …, e_{ϱ-1}, z)` of the rescaled `v`-component |
| 246 | of `x`. It equals `-2πi` times the `v`-component of `-simpleRootSum x / (M ϖ)`. Here `M = S.M` is |
| 247 | the level and `ϖ = S.deltaE` generates the different of `E`. -/ |
| 248 | lemma simpleRootSum_adelicToInf (x : S.G (𝔸 E)) (v : InfinitePlace E) : |
| 249 | simpleRootSum (S.adelicToInf x v) = |
| 250 | -π * 2 * .I * (toAdele (-(S.M * S.deltaE : E)⁻¹) * simpleRootSum x).1 v := by |
| 251 | have h_entry (a : Fin 𝔰.ϱ) : |
| 252 | (S.adelicToInf x v).val (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ) = |
| 253 | (x.val (𝔰.besselFrame a.castSucc) (𝔰.besselFrame a.succ)).1 v * (S.realM v : ℂ)⁻¹ := by |
| 254 | have h_exp : 𝔰.ϱ - (a.castSucc : ℕ) = 𝔰.ϱ - (a.succ : ℕ) + 1 := by grind |
| 255 | simp only [adelicToInf_apply, basisScale_besselFrame, h_exp] |
| 256 | have hN : (√S.N : ℂ) ≠ 0 := by simp [S.N_prime.ne_zero] |
| 257 | simp [field, pow_succ'] |
| 258 | simp only [simpleRootSum, h_entry, ← sum_mul] |
| 259 | simp [fst_sum, Finset.sum_apply, coe_realM, field, mul_assoc] |
| 260 | |
| 261 | variable (S) in |
| 262 | /-- Let `σ = New.simpleRootSum` be the sum of the entries just above the diagonal on the frame e₁, |
| 263 | …, e_ϱ, z, let `x` be an adelic point, and let `c_v = σ (S.adelicToInf x v)` be the value of `σ` at |
| 264 | the component of `x` at `v`, written in the basis rescaled by `S.basisScale v`. Let `ψ` be the |
| 265 | standard character of the adeles and `ψ_f` its finite part, `M = S.M` the level, the product of the |
| 266 | two primes `S.levelPrime i`, and `ϖ = S.deltaE` the generator of the different of `E`. The product |
| 267 | of the numbers `wave c_v = exp (c_v - c̄_v)` over the infinite places is `ψ(-σ(x) / (M ϖ))` divided |
| 268 | by `S.unipotentChar x_f = ψ_f(-σ(x_f) / (M ϖ))`, where `x_f = S.adelicToFin x` is the finite part of |
| 269 | `x`; that is, it is the archimedean factor of `ψ(-σ(x) / (M ϖ))`. -/ |
| 270 | lemma prod_wave_simpleRootSum_adelicToInf (x : S.G (𝔸 E)) : |
| 271 | ∏ v : InfinitePlace E, wave (simpleRootSum (S.adelicToInf x v)) = |
| 272 | New.stdAddChar E (toAdele (-(S.M * S.deltaE : E)⁻¹) * simpleRootSum x) / |
| 273 | S.unipotentChar (S.adelicToFin x) := by |
| 274 | set z : 𝔸 E := toAdele (-(S.M * S.deltaE : E)⁻¹) * simpleRootSum x with hz |
| 275 | -- The finite factor of `ψ(z)` is `unipotentChar`, so the quotient is the archimedean factor. |
| 276 | have h_fin : S.unipotentChar (S.adelicToFin x) = ψf E z.2 := by |
| 277 | have h_arg : z.2 = algebraMap E (𝔸f E) (-(S.deltaE : E)⁻¹) * |
| 278 | (algebraMap E (𝔸f E) (S.M : E)⁻¹ * (simpleRootSum x).2) := by |
| 279 | rw [← mul_assoc, ← map_mul, neg_mul, ← mul_inv, mul_comm (S.deltaE : E)] |
| 280 | rfl -- the finite component of a product of adeles is the product of the finite components |
| 281 | have h_coe (t : Circle) : Circle.coeHom t = (t : ℂ) := rfl |
| 282 | simp [h_arg, unipotentChar, selfDualChar, ideleM, h_coe] |
| 283 | -- With `c = -2πi z_v` one has `c - c̄ = -2πi · 2 Re z_v`. |
| 284 | have h_arch (v : InfinitePlace E) : wave (simpleRootSum (S.adelicToInf x v)) = |
| 285 | Complex.exp (↑(2 * π * -(2 * (z.1 v).re)) * .I) := by |
| 286 | rw [S.simpleRootSum_adelicToInf x v, ← hz, wave, sub_conj] |
| 287 | simp [mul_assoc] |
| 288 | have h_split : New.stdAddChar E z = |
| 289 | fourierChar (-∑ v : InfinitePlace E, 2 * (z.1 v).re) * ψf E z.2 := rfl |
| 290 | rw [h_fin, h_split, Circle.coe_mul, mul_div_cancel_right₀ _ (Circle.coe_ne_zero _), |
| 291 | fourierChar_apply] |
| 292 | simp only [h_arch, ← Complex.exp_sum, ← sum_mul, ← ofReal_sum, ← mul_sum, sum_neg_distrib] |
| 293 | |
| 294 | variable (S) in |
| 295 | /-- For a rational point `γ`, take the product of `wave (simpleRootSum (S.ratToInf γ v))` over the |
| 296 | infinite places `v`; this is the character of `besselU` at infinity. It equals the complex conjugate |
| 297 | of the finite character `S.unipotentChar` at `S.ratToFin γ`, the finite adelic image of `γ`. -/ |
| 298 | lemma prod_wave_simpleRootSum_ratToInf (γ : S.G E) : |
| 299 | ∏ v : InfinitePlace E, wave (simpleRootSum (S.ratToInf γ v)) = |
| 300 | star (S.unipotentChar (S.ratToFin γ)) := by |
| 301 | let z : 𝔸 E := toAdele (-(S.M * S.deltaE : E)⁻¹) * simpleRootSum (S.ratToAdelic γ) |
| 302 | -- The adelic character is trivial on the rational element `z`. |
| 303 | have h_trivial : New.stdAddChar E z = 1 := by |
| 304 | simp only [z, simpleRootSum_ratToAdelic, ← map_mul, stdAddChar_toAdele] |
| 305 | calc _ = New.stdAddChar E z / S.unipotentChar (S.ratToFin γ) := |
| 306 | S.prod_wave_simpleRootSum_adelicToInf (S.ratToAdelic γ) |
| 307 | _ = star (S.unipotentChar (S.ratToFin γ)) := by |
| 308 | rw [h_trivial, Circle.coe_one, one_div] |
| 309 | exact Complex.inv_eq_conj norm_selfDualChar |
| 310 | |
| 311 | /-- Let `x` be an adelic point in the unipotent group `besselU`. Left translation by |
| 312 | `S.adelicToInf x`, the rescaled infinite components of `x`, multiplies the Bessel function |
| 313 | `S.besselFn side` (full or cut) by a scalar. This scalar is the character of `besselU` at infinity: |
| 314 | the product of `wave (simpleRootSum (S.adelicToInf x v))` over the infinite places `v`. -/ |
| 315 | lemma besselFn_adelicToInf_mul_eq_prod_wave_smul {x : S.G (𝔸 E)} {side : FullOrCut} |
| 316 | (hx : x ∈ besselU) (y : InfinitePlace E → 𝔰.G₁) : |
| 317 | S.besselFn side (S.adelicToInf x * y) = |
| 318 | (∏ v : InfinitePlace E, wave (simpleRootSum (S.adelicToInf x v))) • S.besselFn side y := by |
| 319 | -- Each local Bessel function transforms by `wave c = exp (c - c̄)` under the unipotent group, |
| 320 | -- which contains every component of `S.adelicToInf x`. |
| 321 | have h_inf (v : InfinitePlace E) : S.adelicToInf x v ∈ besselU := |
| 322 | conj_mem_unitriangular (blockTriangular_diagonal _) (hx.map_mem_agreeWithOneOn _) |
| 323 | have h_loc (v : InfinitePlace E) (g : 𝔰.G₁) : |
| 324 | (S.besselSystem v).besselFn side (S.adelicToInf x v * g) = |
| 325 | wave (simpleRootSum (S.adelicToInf x v)) • (S.besselSystem v).besselFn side g := |
| 326 | ((S.besselSystem v).isCutPair.isBesselFunction side).map_unipotent_mul _ (h_inf v) g |
| 327 | funext i |
| 328 | simp [besselFn, h_loc, prod_mul_distrib] |
| 329 | |
| 330 | /-- For rational `γ` in the unipotent group, left translation by the archimedean image of `γ` |
| 331 | multiplies the Bessel function `S.besselFn side` by the inverse of the finite character |
| 332 | `New.Filling.unipotentChar` of the finite image of `γ`. -/ |
| 333 | lemma besselFn_ratToInf_mul {γ : S.G E} {side : FullOrCut} (hγ : γ ∈ besselU) |
| 334 | (y : InfinitePlace E → 𝔰.G₁) : |
| 335 | S.besselFn side (S.ratToInf γ * y) = |
| 336 | (S.unipotentChar (S.ratToFin γ))⁻¹ • S.besselFn side y := by |
| 337 | have h_inv : (S.unipotentChar (S.ratToFin γ))⁻¹ = star (S.unipotentChar (S.ratToFin γ)) := |
| 338 | Complex.inv_eq_conj norm_selfDualChar |
| 339 | rw [h_inv, ← prod_wave_simpleRootSum_ratToInf] |
| 340 | exact besselFn_adelicToInf_mul_eq_prod_wave_smul (hγ.map_mem_agreeWithOneOn _) y |
| 341 | |
| 342 | end New.Filling |
| 343 | |
| 344 | /-! |
| 345 | ## Unimodularity of the lattice form and Eichler maps in 𝖴 |
| 346 | |
| 347 | Matrix computations for the form `T.splitGram` of `ϱ` hyperbolic planes and a middle space with Gram |
| 348 | matrix `T`, over a commutative ring with involution. |
| 349 | |
| 350 | The basis is `e₁, …, e_ϱ`, a basis of the middle space ending in `z`, and `e*₁, …, e*_ϱ`. The frame |
| 351 | is `f = (e₁, …, e_ϱ, z)`, and `h(x, y)` is `xᴴ J y`. |
| 352 | -/ |
| 353 | |
| 354 | namespace New |
| 355 | |
| 356 | open scoped Classical in |
| 357 | /-- The weight of a head `p 0, …, p (i - 1)` at the finite places: the product over `l < i` of the |
| 358 | `K`-th power of `√(genIndex D)`, where `D = p 0 * ⋯ * p l` and `genIndex D` is the inverse of the |
| 359 | factor by which multiplication by `D` scales Haar measure. It is `0` unless all these partial |
| 360 | products lie in the ring of integers `SemilocalField.O`. -/ |
| 361 | noncomputable def finHeadWeight {A : Type*} [SemilocalField A] (K i : ℕ) (p : ℕ → Aˣ) : ℝ := |
| 362 | ∏ l ∈ Finset.range i, |
| 363 | let D : A := ∏ a ∈ Finset.range (l + 1), (p a).val |
| 364 | if D ∈ SemilocalField.O then √(genIndex D) ^ K else 0 |
| 365 | |
| 366 | open Matrix Fin Sum Floors Finset |
| 367 | |
| 368 | -- `Type _`: the universe is `0` in the statements about `simpleRootSum`, arbitrary in the others. |
| 369 | variable {A : Type _} [CommRing A] |
| 370 | {R : Subring A} {𝔰 : Shape} {T : Shape.Form 𝔰 A} |
| 371 | |
| 372 | /-- Let `R` be a subring of `A` and let `N ∈ R` be fixed by the involution. Then |
| 373 | `latticeMiddleGram 𝔰 N`, the Gram matrix of the middle space `X₀ ⊕ A z` in the lattice basis, is |
| 374 | hermitian and lies in `GL(R)`. -/ |
| 375 | lemma isUnimodular_latticeMiddleGram [StarRing A] (𝔰 : Shape) {N : A} (hN : N ∈ R ∧ star N = N) : |
| 376 | IsUnimodular R (latticeMiddleGram 𝔰 N) := by |
| 377 | -- the inverse is the same matrix for `N = 0` with `N` put at the diagonal place `(k₀, k₀)` |
| 378 | let inv : Matrix 𝔰.MiddleIndex 𝔰.MiddleIndex A := |
| 379 | latticeMiddleGram 𝔰 0 + diagonal (Pi.single (inl 𝔰.k₀) N) |
| 380 | have h_inv : latticeMiddleGram 𝔰 N * inv = 1 := by |
| 381 | ext i j |
| 382 | aesop (add simp [inv, latticeMiddleGram, Matrix.mul_apply, diagonal, Matrix.one_apply, |
| 383 | Function.swap]) |
| 384 | -- hermitian, as `N` is fixed by `star`; the entries of both matrices are `0`, `±1`, `±N` |
| 385 | have h_herm : (latticeMiddleGram 𝔰 N)ᴴ = latticeMiddleGram 𝔰 N := by |
| 386 | ext i j |
| 387 | aesop (add simp [latticeMiddleGram, diagonal, Function.swap]) |
| 388 | have h_mem (a b : 𝔰.MiddleIndex) : latticeMiddleGram 𝔰 N a b ∈ R ∧ inv a b ∈ R := by |
| 389 | aesop (add simp [latticeMiddleGram, diagonal, Function.swap]) |
| 390 | let u : GL 𝔰.MiddleIndex A := ⟨latticeMiddleGram 𝔰 N, inv, h_inv, mul_eq_one_comm.1 h_inv⟩ |
| 391 | exact ⟨h_herm, u, mem_intGL.2 ⟨fun a b ↦ (h_mem a b).1, fun a b ↦ (h_mem a b).2⟩, rfl⟩ |
| 392 | |
| 393 | /-- The combination of the frame vectors e₁, …, e_ϱ, z with coefficients `x` has `e`-coordinates |
| 394 | `init x`, `z`-coordinate the last coefficient, and all other coordinates zero. -/ |
| 395 | lemma frameImage_one_mulVec {x : Fin (𝔰.ϱ + 1) → A} : |
| 396 | frameImage (R := A) (𝔰 := 𝔰) 1 *ᵥ x = init x ⊕ᵥ ((0 ⊕ᵥ fun _ : Unit ↦ x 𝔰.top) ⊕ᵥ 0) := |
| 397 | funext (by simp [init, mulVec_eq_sum, sum_univ_castSucc, Matrix.one_apply]) |
| 398 | |
| 399 | /-- The combination of the columns of `γ` at the frame indices with coefficients `x` is the image |
| 400 | under `γ` of the same combination of the frame vectors. -/ |
| 401 | lemma frameImage_mulVec (γ : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) (x : Fin (𝔰.ϱ + 1) → A) : |
| 402 | frameImage (R := A) (𝔰 := 𝔰) γ *ᵥ x = γ *ᵥ frameImage 1 *ᵥ x := by simp [← mul_inclMatrix] |
| 403 | |
| 404 | variable [StarRing A] |
| 405 | |
| 406 | /-- For an invertible hermitian matrix `J`, every row vector is `vᴴ J` for some `v`. -/ |
| 407 | lemma exists_star_vecMul_eq (J : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) [hJ : IsHermitianUnit J] |
| 408 | (l : 𝔰.BesselIndex → A) : ∃ v : 𝔰.BesselIndex → A, star v ᵥ* J = l := by |
| 409 | refine ⟨star (l ᵥ* ↑hJ.isUnit.unit⁻¹), ?_⟩ |
| 410 | -- `-coe_units_inv` keeps the inverse as a unit, so that it cancels `J`. |
| 411 | simp [-coe_units_inv] |
| 412 | |
| 413 | /-- Let `J = T.splitGram` be hermitian and invertible, and `h(y, y') = yᴴ J y'`, conjugate-linear in |
| 414 | `y`. Let `f j = frameImage 1 *ᵥ j` be the combination of the frame vectors e₁, …, e_ϱ, z with |
| 415 | coefficients `j`, and put `x = r • f j`. Suppose `j b = 0` for `b ≥ a`, and that `v` is orthogonal |
| 416 | to the frame vectors of index below `a`. Let `τ = TraceOne.element` be the chosen element with |
| 417 | `τ + τ̄ = 1`, and `ς = τ h(v, v)`. Then the Eichler map `eichlerMap J x v ς : y ↦ y + h(v, y) x - |
| 418 | h(x, y) (v + ς x)` is an element `u` of the unipotent group `besselU`. Its `simpleRootSum`, the sum |
| 419 | of the entries just above the diagonal on the frame, is `r h(v, f j')`, where `j' = cons 0 (init j)` |
| 420 | is `j` shifted by one place. -/ |
| 421 | lemma exists_mem_besselU_eq_eichlerMap {v : 𝔰.BesselIndex → A} [hJ : IsHermitianUnit T.splitGram] |
| 422 | [TraceOne A] (a : Fin (𝔰.ϱ + 1)) (j : Fin (𝔰.ϱ + 1) → A) (r : A) {m : 𝔰.BesselIndex → A} |
| 423 | (hm : star v ᵥ* T.splitGram = m) (hj : ∀ b : Fin (𝔰.ϱ + 1), a ≤ b → j b = 0) |
| 424 | (hm_low : ∀ b : Fin (𝔰.ϱ + 1), b < a → m (𝔰.besselFrame b) = 0) : |
| 425 | ∃ u : T.G, u ∈ T.besselU ∧ |
| 426 | -- (a) the sum of the entries of `u` at the simple roots |
| 427 | simpleRootSum u = r * m ∘ 𝔰.besselFrame ⬝ᵥ Fin.cons 0 (init j) ∧ |
| 428 | -- (b) `u` is the Eichler map |
| 429 | u.val.val = eichlerMap T.splitGram (r • frameImage 1 *ᵥ j) v |
| 430 | (TraceOne.element * star v ⬝ᵥ T.splitGram *ᵥ v) := by |
| 431 | -- The vector `x = r • frameImage 1 *ᵥ j` has only `e`-coordinates, as `hj` kills the one at `z`. |
| 432 | -- So the form `h(x, ·)` reads only `e*`-coordinates, and vanishes at `x` and on the frame. |
| 433 | set x : 𝔰.BesselIndex → A := r • frameImage 1 *ᵥ j |
| 434 | set ς : A := TraceOne.element * star v ⬝ᵥ T.splitGram *ᵥ v |
| 435 | have hx : x = (fun b ↦ r * j b.castSucc) ⊕ᵥ 0 := by |
| 436 | simp [x, frameImage_one_mulVec, funext_iff, init, hj _ (le_last a)] |
| 437 | have hx_form : star x ᵥ* T.splitGram = |
| 438 | (0 ⊕ᵥ (0 ⊕ᵥ fun b ↦ star (r * j b.castSucc)) : 𝔰.BesselIndex → A) := by |
| 439 | simp [hx, funext_iff, splitGram, vecMul, dotProduct, Matrix.one_apply] |
| 440 | -- `m (besselFrame c)` is the conjugate of the `e*_c`-coordinate of `v`. For `c ≤ b` either |
| 441 | -- `a ≤ b`, and `j b = 0`, or `c < a`, and that coordinate is `0`. |
| 442 | have h_low (b c : Fin 𝔰.ϱ) (hcb : c ≤ b) : j b.castSucc = 0 ∨ v (inr (inr c)) = 0 := by |
| 443 | refine (le_or_gt a b.castSucc).imp (hj _) fun hb ↦ ?_ |
| 444 | simpa [← hm, splitGram, vecMul, dotProduct, Matrix.one_apply] using hm_low c.castSucc (by grind) |
| 445 | have hxx : star x ⬝ᵥ T.splitGram *ᵥ x = 0 := by |
| 446 | simp [hx, splitGram, mulVec, dotProduct] |
| 447 | have hvx : star v ⬝ᵥ T.splitGram *ᵥ x = 0 := by |
| 448 | have h_term (b : Fin 𝔰.ϱ) : star (v (inr (inr b))) * (r * j b.castSucc) = 0 := by |
| 449 | obtain h | h := h_low b b le_rfl <;> simp [h] |
| 450 | simp [hx, splitGram, mulVec, dotProduct, Matrix.one_apply, h_term] |
| 451 | have hς : ς + star ς = star v ⬝ᵥ T.splitGram *ᵥ v := by |
| 452 | simp [ς, IsHermitian.star_dotProduct_mulVec_comm hJ.conjTranspose_eq, ← add_mul] |
| 453 | obtain ⟨u, hu⟩ := exists_unitary_eq_eichlerMap hJ.conjTranspose_eq hxx hvx hς |
| 454 | refine ⟨u, ?_, ?_, hu⟩ |
| 455 | · -- block by block, the entries on and below the diagonal are those of `1`, by `h_low` |
| 456 | suffices h_below : ∀ p q : 𝔰.BesselIndex, BesselIndex.level q ≤ BesselIndex.level p → |
| 457 | eichlerMap T.splitGram x v ς p q = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex A) p q by |
| 458 | simpa [mem_besselU, hu] using h_below |
| 459 | simp [eichlerMap, hx, vecMulVec, BesselIndex.level, splitGram, vecMul, dotProduct, |
| 460 | Matrix.one_apply, sub_eq_zero] |
| 461 | -- each product left contains `j b` and `v (e*_c)` with `c ≤ b`, so one factor is zero |
| 462 | grind [star_zero] |
| 463 | · have h_entry (b : Fin 𝔰.ϱ) : u.val (𝔰.besselFrame b.castSucc) (𝔰.besselFrame b.succ) = |
| 464 | r * m (𝔰.besselFrame b.succ) * j b.castSucc := by |
| 465 | rw [hu, eichlerMap, hx_form, hx, hm] |
| 466 | -- `b.succ` is the index of `z` or of some `e_c`. |
| 467 | cases hb : b.succ using lastCases <;> simp [vecMulVec, Matrix.one_apply] <;> grind |
| 468 | simp only [simpleRootSum, h_entry] |
| 469 | simp [dotProduct, sum_univ_succ, mul_sum, init, mul_assoc] |
| 470 | |
| 471 | end New |
| 472 | |
| 473 | /-! |
| 474 | ## The idele M, the self-dual character and the level subgroup K(M) |
| 475 | |
| 476 | The global data `S` are translated into the terms of the abstract local theory over the pair |
| 477 | `Ô E ⊆ 𝔸f E` of integral and all finite adeles. |
| 478 | -/ |
| 479 | |
| 480 | namespace New.Filling |
| 481 | |
| 482 | open Matrix Circle intGL Floors IsHermitianUnit |
| 483 | |
| 484 | variable {E : Type} [Field E] [CMType E] {𝔰 : Shape} (S : Filling E 𝔰) {F : Type} [CommRing F] |
| 485 | |
| 486 | /-- The middle block `S.latticeMiddle F` of the form in the lattice basis, over a ring `F` with |
| 487 | involution, is hermitian and lies in `GL(R)` for every subring `R` of `F`. -/ |
| 488 | lemma isUnimodular_latticeMiddle [StarRing F] {R : Subring F} : |
| 489 | IsUnimodular R (S.latticeMiddle F) := by |
| 490 | simp [isUnimodular_latticeMiddleGram] |
| 491 | |
| 492 | instance [StarRing F] : IsHermitianUnit (S.latticeMiddle F) := by |
| 493 | obtain ⟨h_herm, u, -, hu⟩ : IsUnimodular ⊤ (S.latticeMiddle F) := S.isUnimodular_latticeMiddle |
| 494 | exact ⟨h_herm, u, hu⟩ |
| 495 | |
| 496 | /-- The Gram matrix of the whole form in the lattice basis is symmetric. -/ |
| 497 | lemma transpose_splitGram : (S.latticeMiddle F).splitGramᵀ = (S.latticeMiddle F).splitGram := by |
| 498 | -- For the trivial involution on `F`, hermitian means symmetric. |
| 499 | let : StarRing F := starRingOfComm |
| 500 | exact (conjTranspose_eq : (S.latticeMiddle F).splitGramᴴ = (S.latticeMiddle F).splitGram) |
| 501 | |
| 502 | /-- The inverse adjoint s ↦ J⁻¹s⁻ᵀJ, an automorphism of the general linear group over F; J is the |
| 503 | Gram matrix in the lattice basis. -/ |
| 504 | def invAdjoint : MulAut (Matrix 𝔰.BesselIndex 𝔰.BesselIndex F)ˣ := |
| 505 | letI : StarRing F := starRingOfComm |
| 506 | MulAut.conj (isUnit (J := (S.latticeMiddle F).splitGram)).unit⁻¹ * invTransposeGL |
| 507 | |
| 508 | /-- The automorphism s ↦ J⁻¹s⁻ᵀJ of the general linear group over F if b is true, else the |
| 509 | identity; J is the Gram matrix in the lattice basis. -/ |
| 510 | def idOrInvAdjoint (b : Bool) : MulAut (Matrix 𝔰.BesselIndex 𝔰.BesselIndex F)ˣ := |
| 511 | if b then S.invAdjoint else 1 |
| 512 | |
| 513 | |
| 514 | lemma idOrInvAdjoint_true : S.idOrInvAdjoint (F := F) true = S.invAdjoint := rfl |
| 515 | |
| 516 | /-- For a chosen place w, of norm p₀ or p₁, and a Boolean, the ring homomorphism from the integral |
| 517 | finite adeles to the residue field at w: reduction modulo w, preceded by conjugation if the Boolean |
| 518 | is true. -/ |
| 519 | def reduceAboveM (x : (Σ i : Fin 2, S.chosenPlaces i) × Bool) : |
| 520 | Ô E →+* ResField (x.1.snd : FinPlace E) := |
| 521 | if x.2 then (reduceAt (x.1.snd : FinPlace E)).comp (starRingEnd (Ô E)) |
| 522 | else reduceAt (x.1.snd : FinPlace E) |
| 523 | |
| 524 | lemma reduceAboveM_false (p : Σ i : Fin 2, S.chosenPlaces i) : |
| 525 | S.reduceAboveM (p, false) = reduceAt (p.snd : FinPlace E) := rfl |
| 526 | |
| 527 | lemma reduceAboveM_true (p : Σ i : Fin 2, S.chosenPlaces i) : |
| 528 | S.reduceAboveM (p, true) = (reduceAt (p.snd : FinPlace E)).comp (starRingEnd (Ô E)) := rfl |
| 529 | |
| 530 | /-- Every element of `S.latticeStabilizer`, the group of integral finite adelic isometries, is the |
| 531 | image of a unitary matrix over the ring `Ô E` of integral finite adeles. -/ |
| 532 | lemma exists_map_eq_of_mem_latticeStabilizer {k : S.GFin} (hk : k ∈ S.latticeStabilizer) : |
| 533 | ∃ g : (S.latticeMiddle (Ô E)).G, |
| 534 | U.map (Ô E).subtype coe_star_Ô (S.map_splitGram_latticeMiddle (Ô E).subtype) g = k := by |
| 535 | obtain ⟨k₀, hk₀⟩ : |
| 536 | ∃ k₀ : GL 𝔰.BesselIndex (Ô E), GeneralLinearGroup.map (Ô E).subtype k₀ = k := hk |
| 537 | obtain ⟨g, -, hg⟩ := U.mem_range_map coe_star_Ô (Ô E).subtype_injective isUnit |
| 538 | (S.map_splitGram_latticeMiddle (Ô E).subtype) (congrArg Units.val hk₀) |
| 539 | exact ⟨g, hg⟩ |
| 540 | |
| 541 | /-- Let `k` be an integral finite adelic isometry, `i : Fin 2`, `w` a place in `S.chosenPlaces i` |
| 542 | and `b` a Boolean. The image of `k` under `S.reduceAboveM (⟨i, w⟩, b)`, applied entrywise by |
| 543 | `intGL.map`, is `S.idOrInvAdjoint b` applied to the reduction `S.reduction k i w` of `k` at `w`. -/ |
| 544 | lemma intGL_map_reduceAboveM (k : S.latticeStabilizer) (i : Fin 2) (w : S.chosenPlaces i) |
| 545 | (b : Bool) : |
| 546 | intGL.map (S.reduceAboveM (⟨i, w⟩, b)) ⟨k, k.2⟩ = S.idOrInvAdjoint b (S.reduction k i w) := by |
| 547 | cases b |
| 548 | · rfl |
| 549 | obtain ⟨k, hk⟩ := k |
| 550 | obtain ⟨g, rfl⟩ := S.exists_map_eq_of_mem_latticeStabilizer hk |
| 551 | set k : S.latticeStabilizer := |
| 552 | ⟨U.map (Ô E).subtype coe_star_Ô (S.map_splitGram_latticeMiddle (Ô E).subtype) g, hk⟩ |
| 553 | let A : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (Ô E) := g |
| 554 | let A_inv : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (Ô E) := (g⁻¹ : (S.latticeMiddle (Ô E)).G) |
| 555 | let p : FinPlace E := w |
| 556 | let J : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (ResField p) := |
| 557 | (S.latticeMiddle (ResField p)).splitGram |
| 558 | -- Transpose `Aᴴ J = J A⁻¹` and reduce it modulo `w`; the Gram matrix `J` is symmetric. |
| 559 | have h_unitary : J * Aᴴᵀ.map (reduceAt p) = A_invᵀ.map (reduceAt p) * J := by |
| 560 | have h_form : (Aᴴ * (S.latticeMiddle (Ô E)).splitGram)ᵀ.map (reduceAt p) = |
| 561 | ((S.latticeMiddle (Ô E)).splitGram * A_inv)ᵀ.map (reduceAt p) := by |
| 562 | rw [U.form_mul_inv_eq] |
| 563 | simpa only [transpose_mul, Matrix.map_mul, transpose_splitGram, map_splitGram_latticeMiddle] |
| 564 | using h_form |
| 565 | have h_conj : (intGL.map (S.reduceAboveM (⟨i, w⟩, true)) ⟨k, k.property⟩).val = |
| 566 | Aᴴᵀ.map (reduceAt p) := rfl |
| 567 | have h_inv : (invTransposeGL (S.reduction k i w)).val = A_invᵀ.map (reduceAt p) := rfl |
| 568 | rw [idOrInvAdjoint_true, invAdjoint, MulAut.mul_apply, MulAut.conj_apply, inv_inv, mul_assoc, |
| 569 | eq_inv_mul_iff_mul_eq, Units.ext_iff] |
| 570 | -- both sides are now the products in `h_unitary` |
| 571 | simpa only [Units.val_mul, h_conj, h_inv, IsUnit.unit_spec] using h_unitary |
| 572 | |
| 573 | lemma ideleM_val : S.ideleM.val = S.M := by simp [ideleM] |
| 574 | |
| 575 | lemma ideleM_mem : (S.ideleM : 𝔸f E) ∈ Ô E := by simp [ideleM, mul_mem] |
| 576 | |
| 577 | /-- The ring `Ô E` of integral finite adeles is self-dual for the character |
| 578 | `S.selfDualChar : x ↦ ψ_f(-x / ϖ)`, where `ψ_f` is the finite part of the standard additive |
| 579 | character and `ϖ` is the chosen generator of the different of `E`: the character is trivial on |
| 580 | `Ô E * a` iff `a` is integral. -/ |
| 581 | lemma forall_selfDualChar_mul_eq_one_iff (a : 𝔸f E) : |
| 582 | (∀ r : Ô E, S.selfDualChar (r * a) = 1) ↔ a ∈ Ô E := by |
| 583 | rw [show (∀ r : Ô E, S.selfDualChar (r * a) = 1) ↔ |
| 584 | ∀ r ∈ Ô E, ψf E (r * (algebraMap E (𝔸f E) (-(S.deltaE : E)⁻¹) * a)) = 1 by |
| 585 | simp [selfDualChar, mul_left_comm, map_eq_one_iff coeHom @Circle.ext], |
| 586 | forall_ψf_mul_eq_one_iff, S.span_deltaE] |
| 587 | -- The different is generated by `ϖ`, which cancels the factor `ϖ⁻¹`. |
| 588 | simp only [Ideal.mem_span_singleton', forall_exists_index, forall_apply_eq_imp_iff, |
| 589 | ← mul_assoc, ← map_mul] |
| 590 | simp [← IsScalarTower.algebraMap_apply] |
| 591 | exact ⟨fun h ↦ by simpa using h 1, fun ha r ↦ mul_mem (coe_mem_Ô r) ha⟩ |
| 592 | |
| 593 | lemma selfDualChar_eq_one_of_mem (x : 𝔸f E) (hx : x ∈ Ô E) : S.selfDualChar x = 1 := by |
| 594 | simpa using (S.forall_selfDualChar_mul_eq_one_iff x).2 hx 1 |
| 595 | |
| 596 | /-- For an integral finite adele `r` and the level `M`, seen as the idele `S.ideleM`, the adele |
| 597 | `M⁻¹ r` is integral iff `r` and its conjugate reduce to `0` at every chosen place; these reductions |
| 598 | are the maps `S.reduceAboveM x`. -/ |
| 599 | lemma inv_ideleM_smul_mem_iff (r : Ô E) : |
| 600 | S.ideleM⁻¹ • (r : 𝔸f E) ∈ Ô E ↔ |
| 601 | ∀ x : ((i : Fin 2) × S.chosenPlaces i) × Bool, S.reduceAboveM x r = 0 := by |
| 602 | -- `M⁻¹ r` is integral iff `M` divides `r` in `Ô E`, and `M_dvd_iff` describes this by the places. |
| 603 | have h_coe : ((S.levelPrime 0 * S.levelPrime 1 : ℕ) : Ô E) = (S.ideleM : 𝔸f E) := by |
| 604 | simp [ideleM_val, -Nat.cast_mul] |
| 605 | have h_dvd : S.ideleM⁻¹ • (r : 𝔸f E) ∈ Ô E ↔ |
| 606 | ((S.levelPrime 0 * S.levelPrime 1 : ℕ) : Ô E) ∣ r := by |
| 607 | simp only [dvd_def, Subtype.ext_iff, MulMemClass.coe_mul, h_coe, Units.smul_def, smul_eq_mul, |
| 608 | ← S.ideleM.inv_mul_eq_iff_eq_mul, Subtype.exists, exists_prop, exists_eq_right'] |
| 609 | simp only [h_dvd, S.M_dvd_iff r, Prod.forall, Bool.forall_bool, reduceAboveM_false, |
| 610 | reduceAboveM_true, RingHom.comp_apply, starRingEnd_apply] |
| 611 | |
| 612 | /-- An integral finite adelic isometry `k` reduces to `1` at all chosen places iff `k` is congruent |
| 613 | to `1` modulo the level `M = S.ideleM`, that is, `M⁻¹ (k - 1)` has integral entries. -/ |
| 614 | lemma reduction_eq_one_iff (k : S.latticeStabilizer) : |
| 615 | S.reduction k = 1 ↔ IsIntMatrix (Ô E) |
| 616 | (S.ideleM⁻¹ • (((k : S.GFin) : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (𝔸f E)) - 1)) := by |
| 617 | let k' : intGL 𝔰.BesselIndex (Ô E) := ⟨k, k.property⟩ |
| 618 | calc |
| 619 | -- At a conjugate place the reduction is the inverse adjoint of the one at the place itself. |
| 620 | _ ↔ ∀ (i : Fin 2) (w : S.chosenPlaces i) (b : Bool), |
| 621 | S.idOrInvAdjoint b (S.reduction k i w) = 1 := by |
| 622 | simp only [EmbeddingLike.map_eq_one_iff, forall_const, funext_iff, Pi.one_apply] |
| 623 | _ ↔ ∀ x : (Σ i : Fin 2, S.chosenPlaces i) × Bool, intGL.map (S.reduceAboveM x) k' = 1 := by |
| 624 | simp only [Prod.forall, Sigma.forall, ← intGL_map_reduceAboveM, k'] |
| 625 | _ ↔ ∀ (a b : 𝔰.BesselIndex) (x : (Σ i : Fin 2, S.chosenPlaces i) × Bool), |
| 626 | S.reduceAboveM x (toMatrix k' a b - toMatrix 1 a b) = 0 := by |
| 627 | simp only [intGL.map_eq_one, forall_comm (α := (Σ i : Fin 2, S.chosenPlaces i) × Bool)] |
| 628 | _ ↔ _ := forall₂_congr fun a b ↦ by |
| 629 | rw [← inv_ideleM_smul_mem_iff] |
| 630 | by_cases hab : a = b <;> simp [k', toMatrix, Units.smul_def] |
| 631 | |
| 632 | /-- The image `S.principalLevel` of the kernel of the reduction at the chosen places equals |
| 633 | `unitaryLevel`: the isometries of the Gram matrix `(S.latticeMiddle (𝔸f E)).splitGram` that are |
| 634 | integral over `Ô E` and congruent to `1` modulo the level `M = S.ideleM`. -/ |
| 635 | lemma principalLevel_eq_unitaryLevel : |
| 636 | S.principalLevel = unitaryLevel (Ô E) S.ideleM (S.latticeMiddle (𝔸f E)).splitGram := by |
| 637 | refine le_antisymm ?_ fun k ⟨hk, h_congr⟩ ↦ |
| 638 | ⟨⟨k, hk⟩, (S.reduction_eq_one_iff ⟨k, hk⟩).2 h_congr, rfl⟩ |
| 639 | rintro _ ⟨k, hk, rfl⟩ |
| 640 | exact ⟨k.property, (S.reduction_eq_one_iff k).1 hk⟩ |
| 641 | |
| 642 | end New.Filling |
| 643 | |
| 644 | /-! |
| 645 | ## Strong approximation for 𝖴, rational terms of given reduction, and freeness |
| 646 | |
| 647 | * `New.Filling.unipotentChar_eq_of_mem_principalLevel`, |
| 648 | `New.Filling.exists_rat_approx_unipotentChar_eq`: approximation keeps the character |
| 649 | `S.unipotentChar`. |
| 650 | -/ |
| 651 | |
| 652 | section UnipotentApproximation |
| 653 | |
| 654 | open NumberField Matrix Subgroup Fintype Set New Floors TraceOne Fact IsHermitianUnit FloorGroups |
| 655 | Function RingHom |
| 656 | |
| 657 | section Density |
| 658 | |
| 659 | variable {E : Type} [Field E] [NumberField E] [IsCMField E] {𝔰 : Shape} |
| 660 | |
| 661 | /-- The element `1 / 2` of the finite adeles has trace one. -/ |
| 662 | noncomputable instance : TraceOne (𝔸f E) where |
| 663 | element := (2⁻¹ : E) |
| 664 | element_add_star := by norm_num [← map_add] |
| 665 | |
| 666 | /-- The skew elements `t - t̄` with `t ∈ E` are dense in the skew finite adeles. -/ |
| 667 | lemma New.denseRange_skewPart_algebraMap : |
| 668 | DenseRange fun t : E ↦ skewPart (algebraMap E (𝔸f E) t) := by |
| 669 | -- A skew element `β` is the skew part of `τ β`, as `τ + τ̄ = 1`. |
| 670 | have h_onto : Surjective (skewPart : 𝔸f E → skewAdjoint (𝔸f E)) := |
| 671 | fun β ↦ ⟨element * (β : 𝔸f E), by simp [skewPart, ← add_mul]⟩ |
| 672 | exact h_onto.denseRange.comp denseRange_algebraMap_finAdele (by fun_prop) |
| 673 | |
| 674 | /-- Let `T` be an invertible hermitian middle block over `E`, and `T'` one over the finite adeles |
| 675 | `𝔸f E` whose Gram matrix `T'.splitGram` is the image of `T.splitGram` (`hT`). Take `a < 𝔰.ϱ`, the |
| 676 | index of a hyperbolic pair (e_a, e*_a). Let `v` be a vector on the basis indices `i` with |
| 677 | `floorOf i ≥ a + 1`. Let `β` be skew. Then `heisenbergElem a (v, β)` is the Eichler map with |
| 678 | e*_a ↦ e*_a + v + (β - h(v, v) / 2) e_a. The map from rational to finite adelic isometries sends the |
| 679 | element for `T` with parameter `(v, skewPart t)`, where `skewPart t = t - t̄`, to the element for |
| 680 | `T'` whose parameter is the image of `(v, t - t̄)` in `𝔸f E`. -/ |
| 681 | lemma New.map_heisenbergElem_finAdele {T : 𝔰.Form E} [IsHermitianUnit T] {T' : 𝔰.Form (𝔸f E)} |
| 682 | [IsHermitianUnit T'.splitGram] (hT : T.splitGram.map (↑) = T'.splitGram) (a : Fin 𝔰.ϱ) |
| 683 | (v : {i : 𝔰.BesselIndex // a + 1 ≤ floorOf i} → E) (t : E) : |
| 684 | (U.map (algebraMap E (𝔸f E)) (h := hT)) (heisenbergElem (T := T) a (v, skewPart t)) = |
| 685 | heisenbergElem (T := T') a (fun i ↦ (v i : 𝔸f E), skewPart (t : 𝔸f E)) := by |
| 686 | -- Both sides are the same polynomial expression in `v`, `t`, `τ = 1 / 2` and the Gram matrix. |
| 687 | ext |
| 688 | simp [inclMatrix, U.map, heisenbergElem, eichlerMap, ← hT, vecMulVec, vecMul, dotProduct, mulVec, |
| 689 | apply_ite (algebraMap E (𝔸f E)), apply_ite star, element, -sum_sum_type, |
| 690 | -splitGram_eq_ite_oppositeIndex, Pi.single_apply, Matrix.one_apply] |
| 691 | |
| 692 | /-- Strong approximation for the unipotent group 𝖴 = `besselU` of the form made of ϱ hyperbolic |
| 693 | planes and a middle block. Let `T` be an invertible hermitian middle block over `E`, and `T'` one |
| 694 | over the finite adeles whose Gram matrix is the image of that of `T`. Then 𝖴(𝔸_f) lies in the |
| 695 | closure of the image of 𝖴(E). -/ |
| 696 | lemma New.besselU_dense {T : 𝔰.Form E} [IsHermitianUnit T] {T' : 𝔰.Form (𝔸f E)} |
| 697 | (hT : T.splitGram.map (↑) = T'.splitGram) : |
| 698 | T'.besselU ≤ (T.besselU.map (U.map (algebraMap E (𝔸f E)) (h := hT))).topologicalClosure := by |
| 699 | have : IsHermitianUnit T'.splitGram := |
| 700 | hT ▸ ⟨IsHermitian.map conjTranspose_eq _ fun _ ↦ by simp, isUnit.map (mapMatrix _)⟩ |
| 701 | -- `besselU` is built floor by floor from `floorUnipotent l`. |
| 702 | rw [← unipotentBelow_eq_besselU (l := 𝔰.ϱ) le_rfl] |
| 703 | refine unipotentBelow_induction (C := fun _ x ↦ x ∈ _) (one_mem _) |
| 704 | (fun l x hx _ hy ↦ mul_mem ?_ hy) 𝔰.ϱ |
| 705 | obtain hl | hl := le_or_gt 𝔰.ϱ l |
| 706 | · simp [eq_one_of_mem_floorGroup_inf hx (.inr hl)] |
| 707 | -- For `l < ϱ`, `x` is a Heisenberg element, and rational parameters are dense. |
| 708 | let a : Fin 𝔰.ϱ := ⟨l, hl⟩ |
| 709 | obtain ⟨p, rfl⟩ : ∃ p, x = heisenbergElem a p := exists_eq_heisenbergElem_of_mem hx |
| 710 | refine map_mem_closure (continuous_heisenbergElem (a := a)) |
| 711 | (((DenseRange.piMap fun _ ↦ denseRange_algebraMap_finAdele).prodMap |
| 712 | denseRange_skewPart_algebraMap) p) ?_ |
| 713 | rintro _ ⟨⟨v, t⟩, rfl⟩ |
| 714 | exact ⟨_, unipotentBelow_le_besselU |
| 715 | (heisenbergElem_mem_floorUnipotent (T := T) a (v, skewPart t)).2, |
| 716 | map_heisenbergElem_finAdele hT a v t⟩ |
| 717 | |
| 718 | end Density |
| 719 | |
| 720 | namespace New.Filling |
| 721 | |
| 722 | variable {𝔰 : Shape} {E : Type} [Field E] [CMType E] {S : Filling E 𝔰} |
| 723 | |
| 724 | @[simp] |
| 725 | lemma unipotentChar_one : S.unipotentChar 1 = 1 := by |
| 726 | simp [unipotentChar, simpleRootSum_eq_zero_of_mem_besselH] |
| 727 | |
| 728 | /-- Strong approximation for the unipotent group 𝖴 = `besselU` of block upper unitriangular |
| 729 | isometries. `K(M) = S.principalLevel` is the group of integral points of `S.GFin` that are congruent |
| 730 | to `1` modulo `M`. For `x ∈ 𝖴(𝔸_f)` and any `y` in `S.GFin`, some rational `u ∈ 𝖴` has `y⁻¹ x⁻¹ u y` |
| 731 | in `K(M)`. -/ |
| 732 | lemma exists_besselU_approx {x : S.GFin} (hx : x ∈ besselU) (y : S.GFin) : |
| 733 | ∃ u : S.G E, u ∈ besselU ∧ y⁻¹ * (x⁻¹ * S.ratToFin u) * y ∈ S.principalLevel := by |
| 734 | -- In rational coordinates `x` lies in the closure of the rational points of `besselU`, and `V` is |
| 735 | -- an open neighbourhood of it. |
| 736 | let f (z : S.G (𝔸f E)) : S.GFin := y⁻¹ * (x⁻¹ * S.toLatticeBasis z) * y |
| 737 | let V : Set (S.G (𝔸f E)) := f ⁻¹' S.principalLevel |
| 738 | have h_open : IsOpen V := by |
| 739 | refine IsOpen.preimage (f := f) (.subtype_mk ?_ _) ?_ |
| 740 | · simp only [Subgroup.coe_mul, InvMemClass.coe_inv, toLatticeBasis, U.conj_symm_apply_coe] |
| 741 | fun_prop |
| 742 | · rw [S.principalLevel_eq_unitaryLevel] |
| 743 | exact (isOpen_intGL isOpen_Ô).preimage_val.and isOpen_Ô.matrix.preimage_of_continuous |
| 744 | have hxV : S.toLatticeBasis.symm x ∈ V := by simp [V, f, one_mem] |
| 745 | have hx_bes : S.toLatticeBasis.symm x ∈ besselU := |
| 746 | toLatticeBasis_mem_besselU.1 (by simpa using hx) |
| 747 | let φ : S.G E →* S.G (𝔸f E) := |
| 748 | U.map (algebraMap E (𝔸f E)) (h := S.map_splitGram_ratMiddle E (algebraMap E (𝔸f E))) |
| 749 | obtain ⟨_, hzV, u, hu, rfl⟩ : (V ∩ besselU.map φ).Nonempty := |
| 750 | mem_closure_iff.1 (besselU_dense (S.map_splitGram_ratMiddle E _) hx_bes) V h_open hxV |
| 751 | have h_map : S.ratToFin u = S.toLatticeBasis (φ u) := by |
| 752 | apply S.toLatticeBasis.symm.injective |
| 753 | ext |
| 754 | simp [φ, ratToFin, adelicToFin, ratToAdelic, U.map] |
| 755 | exact ⟨u, hu, by simpa [V, h_map] using hzV⟩ |
| 756 | |
| 757 | /-- Let `u`, `v` lie in the unipotent group `besselU` inside the finite adelic unitary group |
| 758 | `S.GFin`. Let `g` be a finite adelic point of U(X₀), the unitary group `U 1` of the identity form on |
| 759 | `𝔰.κ`, and let `h = S.inclHFin g` be its image in `S.GFin`, an element of `New.Shape.Form.besselH`. |
| 760 | If `u⁻¹ h⁻¹ v h` lies in the principal congruence subgroup `S.principalLevel`, then the complex |
| 761 | character `S.unipotentChar` has the same value at `u` and `v`. -/ |
| 762 | lemma unipotentChar_eq_of_mem_principalLevel {u v : S.GFin} (hu : u ∈ besselU) (hv : v ∈ besselU) |
| 763 | (g : U (1 : Matrix 𝔰.κ 𝔰.κ (𝔸f E))) |
| 764 | (h_mem : u⁻¹ * ((S.inclHFin g)⁻¹ * v * S.inclHFin g) ∈ S.principalLevel) : |
| 765 | S.unipotentChar v = S.unipotentChar u := by |
| 766 | set h : S.GFin := S.inclHFin g |
| 767 | set k : S.GFin := u⁻¹ * (h⁻¹ * v * h) with hk |
| 768 | obtain ⟨hu_bes, hv_bes⟩ : u ∈ besselS ∧ v ∈ besselS := |
| 769 | ⟨mem_partialUnitriangularGroup_of_mem_besselU hu, |
| 770 | mem_partialUnitriangularGroup_of_mem_besselU hv⟩ |
| 771 | have hh_bes : h ∈ besselS := mem_partialUnitriangularGroup_of_mem_floorGroup |
| 772 | (inclHFin_mem_besselH g) |
| 773 | have hk_bes : k ∈ besselS := |
| 774 | mul_mem (inv_mem hu_bes) (mul_mem (mul_mem (inv_mem hh_bes) hv_bes) hh_bes) |
| 775 | -- `simpleRootSum` is additive on `besselS`; apply it to `v h = h u k`. |
| 776 | have h_add : simpleRootSum v = simpleRootSum u + simpleRootSum k := by |
| 777 | have h_sum : simpleRootSum (v * h) = simpleRootSum (h * (u * k)) := by simp [hk, mul_assoc] |
| 778 | simp only [simpleRootSum_mul, hv_bes, hh_bes, hu_bes, hk_bes, mul_mem] at h_sum |
| 779 | linear_combination h_sum |
| 780 | -- As `k` is congruent to `1` modulo `S.ideleM`, it does not contribute to the character. |
| 781 | have h_int : ↑S.ideleM⁻¹ * simpleRootSum k ∈ Ô E := |
| 782 | inv_mul_simpleRootSum_mem (S.principalLevel_eq_unitaryLevel.le h_mem) |
| 783 | simp [unipotentChar, h_add, mul_add, S.selfDualChar.map_add_eq_mul, |
| 784 | S.selfDualChar_eq_one_of_mem _ h_int] |
| 785 | |
| 786 | /-- Let `k` be an integral finite adelic isometry, `γ` a rational one, and `c`, `d` classes with |
| 787 | representatives `h_c`, `h_d`. Then `h_c⁻¹ γ h_d = S.translateByClassReps c d γ` is integral with the |
| 788 | same reduction as `k` iff it lies in `k K(M)`, with `K(M) = S.principalLevel`. -/ |
| 789 | lemma mem_termsOver_reduction_iff {c d : S.Classes} {γ : S.G E} {k : S.latticeStabilizer} : |
| 790 | γ ∈ S.termsOver c (S.reduction k) d ↔ |
| 791 | (k : S.GFin)⁻¹ * S.translateByClassReps c d γ ∈ S.principalLevel := by |
| 792 | constructor |
| 793 | · rintro ⟨k', h_reduction, h_position⟩ |
| 794 | exact ⟨k⁻¹ * k', by simp [h_reduction, ← h_position]⟩ |
| 795 | · rintro ⟨k', h_kernel, h_position⟩ |
| 796 | exact ⟨k * k', by simp [MonoidHom.mem_ker.1 h_kernel], eq_inv_mul_iff_mul_eq.1 h_position⟩ |
| 797 | |
| 798 | /-- Let `c`, `d` be classes, that is, double cosets in U(X₀)(E⁺) \ U(X₀)(𝔸_f) / `S.sourceLevel`, |
| 799 | with chosen representatives `h_c = S.classRep c` and `h_d`. Let `S` satisfy the standing hypotheses |
| 800 | `S.IsAdmissible`; they include that `S.sourceLevel` is the preimage in U(X₀)(𝔸_f) of the principal |
| 801 | congruence subgroup `K(M) = S.principalLevel`. Let `γ` be a rational element of the Bessel subgroup |
| 802 | `besselS`. If `S.translateByClassReps c d γ = h_c⁻¹ γ h_d` lies in `K(M)`, then `c = d` and `γ` lies |
| 803 | in `S.classUnipotent c`, the group of rational unipotent `u` with `h_c⁻¹ u h_c ∈ K(M)`. -/ |
| 804 | lemma eq_and_mem_classUnipotent_of_besselS [hS : S.IsAdmissible] {c d : S.Classes} |
| 805 | {γ : (S.ratMiddle E).G} (hγ_bes : γ ∈ besselS) |
| 806 | (hγ_level : S.translateByClassReps c d γ ∈ S.principalLevel) : |
| 807 | c = d ∧ γ ∈ S.classUnipotent c := by |
| 808 | obtain ⟨u, hu, η, rfl⟩ : ∃ u ∈ besselU, ∃ η : U (1 : Matrix 𝔰.κ 𝔰.κ E), |
| 809 | γ = u * toBesselH 𝔰 (S.N : E) η := |
| 810 | exists_besselU_mul_toBesselH hγ_bes |
| 811 | -- `h_c⁻¹ γ h_d` splits into a part in `besselU` and a part in `besselH`. The second part lies in |
| 812 | -- `K(M)` too, and relates the representatives of `c` and `d` modulo `S.sourceLevel`. |
| 813 | have h_split : S.translateByClassReps c d (u * toBesselH 𝔰 (S.N : E) η) = |
| 814 | S.translateByClassReps c c u * S.inclHFin (c.out⁻¹ * stdEmbFin η * d.out) := by |
| 815 | simp [translateByClassReps, ratToFin_toBesselH, mul_assoc] |
| 816 | have h_level : c.out⁻¹ * stdEmbFin η * d.out ∈ S.sourceLevel := by |
| 817 | rw [h_split, principalLevel_eq_unitaryLevel] at hγ_level |
| 818 | exact hS.sourceLevel_eq.ge (S.principalLevel_eq_unitaryLevel.ge (mem_unitaryLevel_of_besselU_mul |
| 819 | (hu.translateByClassReps_mem_besselU c) (inclHFin_mem_besselH _) hγ_level)) |
| 820 | -- The level `S.sourceLevel` is free, so `c = d` and `η = 1`, and `γ` is unipotent. |
| 821 | have h_free (δ : U (stdSpace E 𝔰.κ).J) (hδ : d.out⁻¹ * stdEmbFin δ * d.out ∈ S.sourceLevel) : |
| 822 | δ = 1 := |
| 823 | (map_eq_one_iff _ out).1 ((S.classAut_eq_bot d.out).le ⟨⟨δ, rfl⟩, hδ⟩) |
| 824 | obtain ⟨rfl, rfl⟩ : c = d ∧ η = 1 := |
| 825 | eq_and_eq_one_of_doubleCoset_rep Quotient.out_eq h_free η h_level |
| 826 | exact ⟨rfl, by simpa using hu, by simpa [translateByClassReps] using hγ_level⟩ |
| 827 | |
| 828 | /-- Let `c` be a class in `S.Classes` with representative `h_c`, and let `u` belong to `𝖴(𝔸_f)`. |
| 829 | There is a rational `u₀ ∈ 𝖴` such that |
| 830 | `S.translateByClassReps c c u₀ = h_c⁻¹ u₀ h_c` lies in `u K(M)`, with `K(M) = S.principalLevel`. |
| 831 | Moreover `S.unipotentChar`, the character u ↦ ψ_f(−σ(u)/(Mϖ)), takes the same value at |
| 832 | `S.ratToFin u₀` and at `u`. -/ |
| 833 | lemma exists_rat_approx_unipotentChar_eq (c : S.Classes) {u : S.GFin} |
| 834 | (hu : u ∈ besselU) : |
| 835 | ∃ u₀ : S.G E, u₀ ∈ besselU ∧ |
| 836 | u⁻¹ * S.translateByClassReps c c u₀ ∈ S.principalLevel ∧ |
| 837 | S.unipotentChar (S.ratToFin u₀) = S.unipotentChar u := by |
| 838 | -- Approximate `h_c u h_c⁻¹`, which is unipotent as `besselS` normalises `besselU`. |
| 839 | have h_conj : S.classRep c * u * (S.classRep c)⁻¹ ∈ besselU := |
| 840 | (besselS_le_normalizer_besselU (classRep_mem_besselS c) u).1 hu |
| 841 | obtain ⟨u₀, hu₀, h_approx⟩ := exists_besselU_approx h_conj (S.classRep c) |
| 842 | have h_level : u⁻¹ * S.translateByClassReps c c u₀ ∈ S.principalLevel := by |
| 843 | simpa [translateByClassReps, mul_assoc] using h_approx |
| 844 | exact ⟨u₀, hu₀, h_level, |
| 845 | unipotentChar_eq_of_mem_principalLevel hu (ratToFin_mem_besselU_iff.2 hu₀) c.out h_level⟩ |
| 846 | |
| 847 | /-- Let `S` satisfy the standing hypotheses `S.IsAdmissible`. They include that `S.sourceLevel` is |
| 848 | the preimage in U(X₀)(𝔸_f) of `S.principalLevel`, the kernel of reduction at the chosen places. Let |
| 849 | `s` in `S.ResidueGL`, the product of the general linear groups over the residue fields at these |
| 850 | places, be the reduction of an integral finite adelic element of the Bessel subgroup `besselS`. For |
| 851 | each class `c`, a double coset in U(X₀)(E⁺) \ U(X₀)(𝔸_f) / `S.sourceLevel`, there are a class `d` |
| 852 | and a rational `γ ∈ besselS` with `γ ∈ S.termsOver c s d`. -/ |
| 853 | lemma exists_besselS_mem_termsOver [hS : S.IsAdmissible] (c : S.Classes) {s : S.ResidueGL} |
| 854 | (hs : s ∈ S.reducedImage besselS) : |
| 855 | ∃ (d : S.Classes) (γ : S.G E), γ ∈ besselS ∧ γ ∈ S.termsOver c s d := by |
| 856 | obtain ⟨k, hk, rfl⟩ := hs |
| 857 | -- Split `h_c k = u * S.inclHFin g`, approximate `u` by a rational `x`, and write `g` as |
| 858 | -- `stdEmbFin η * d.out * a` with `η` rational, `d` a class and `a ∈ S.sourceLevel`. |
| 859 | obtain ⟨u, hu, h, hh, h_split⟩ : |
| 860 | ∃ u ∈ besselU, ∃ h ∈ besselH, S.classRep c * (k : S.GFin) = u * h := |
| 861 | mem_besselS.1 (mul_mem (classRep_mem_besselS c) hk) |
| 862 | obtain ⟨g, rfl⟩ := S.range_inclHFin.ge hh |
| 863 | obtain ⟨x, hx, h_approx⟩ := exists_besselU_approx hu (S.inclHFin g) |
| 864 | obtain ⟨d, η, a, hg⟩ : ∃ (d : S.Classes) (η : U (stdSpace E 𝔰.κ).J) (a : S.sourceLevel), |
| 865 | g = stdEmbFin η * d.out * a := |
| 866 | exists_eq_map_mul_rep_mul stdEmbFin S.sourceLevel Quotient.out_eq g |
| 867 | let γ : S.G E := x * toBesselH 𝔰 (S.N : E) η |
| 868 | -- `h_c⁻¹ γ h_d` is `k` times an element of `S.principalLevel`, which reduces to `1`. |
| 869 | have h_quotient : (k : S.GFin)⁻¹ * S.translateByClassReps c d γ = |
| 870 | (S.inclHFin g)⁻¹ * (u⁻¹ * S.ratToFin x) * S.inclHFin g * (S.inclHFin a)⁻¹ := by |
| 871 | simp [eq_mul_inv_of_mul_eq h_split.symm, hg, γ, translateByClassReps, ratToFin_toBesselH η, |
| 872 | mul_assoc] |
| 873 | refine ⟨d, γ, mem_besselS.2 ⟨x, hx, _, toBesselH_mem η, rfl⟩, ?_⟩ |
| 874 | rw [mem_termsOver_reduction_iff, h_quotient] |
| 875 | exact mul_mem h_approx (inv_mem (hS.sourceLevel_eq.le a.property)) |
| 876 | |
| 877 | /-- Freeness in rank at most `𝔰.k`, the rank of the definite space X₀. Let `E` be a CM field that |
| 878 | contains a primitive 5040th root of unity, and let `S` be filling data over `E`. For `i = 0, 1`, |
| 879 | `S.chosenPlaces i` is the chosen set of finite places of `E` of norm the prime `S.levelPrime i`. |
| 880 | Let `γ` be a rational point of the standard unitary group in `n` variables, `|n| ≤ 𝔰.k`, and `g` a |
| 881 | finite adelic point. If `g⁻¹ γ g` is integral (lies in `stdLevel E n`) and reduces to `1` at every |
| 882 | place of `S.chosenPlaces i`, then `γ = 1`. -/ |
| 883 | lemma eq_one_of_reduceAt_eq_one {n : Type} |
| 884 | [Fintype n] [DecidableEq n] (hn : card n ≤ 𝔰.k) (i : Fin 2) {γ : U (stdSpace E n).J} |
| 885 | {g : Gf E n} (h_int : g⁻¹ * (stdSpace E n).embFin γ * g ∈ stdLevel E n) |
| 886 | (h_red : ∀ w : S.chosenPlaces i, |
| 887 | stdLevel.reduceAt w ⟨g⁻¹ * (stdSpace E n).embFin γ * g, h_int⟩ = 1) : |
| 888 | γ = 1 := by |
| 889 | -- There are `[E : ℚ] / 2` places in `S.chosenPlaces i`, each of norm above `(2 * card n) ^ 2`. |
| 890 | have h_lt : (2 * card n) ^ 2 < S.levelPrime i := |
| 891 | calc |
| 892 | _ ≤ (𝔰.k * 𝔰.k) ^ 2 := by gcongr; grind [S.thousand_mul_le_k] |
| 893 | _ = 𝔰.k ^ 4 := by ring |
| 894 | _ < 𝔰.k ^ 10 := Nat.pow_lt_pow_right (by grind [S.thousand_mul_le_k]) (by norm_num) |
| 895 | _ ≤ S.levelPrime i := by |
| 896 | exact_mod_cast (pow_le_pow_left₀ 𝔰.k.cast_nonneg S.k_le_b 10).trans (S.le_levelPrime i) |
| 897 | have h_prod : (2 * card n) ^ Module.finrank ℚ E < ∏ w : S.chosenPlaces i, w.val.q := by |
| 898 | simp only [S.chosenPlaces_q i _ (Subtype.prop _), Finset.prod_const, Finset.card_univ, |
| 899 | S.card_chosenPlaces, finrank_eq_two_mul_card_infinitePlace, pow_mul] |
| 900 | gcongr |
| 901 | exact Variety.eq_one_of_reduceAt_eq_one Subtype.val_injective h_prod h_int h_red |
| 902 | |
| 903 | end New.Filling |
| 904 | |
| 905 | end UnipotentApproximation |
| 906 | |
| 907 | end |