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.Ring.IsFormallyReal |
| 4 | import Mathlib.Data.Rat.Cast.OfScientific |
| 5 | import Mathlib.RingTheory.Etale.Weakly |
| 6 | import Mathlib.RingTheory.Finiteness.ModuleFinitePresentation |
| 7 | import Mathlib.Topology.Algebra.Ring.Compact |
| 8 | import Mathlib.Topology.Connected.Separation |
| 9 | import Mathlib.Topology.MetricSpace.Ultra.TotallySeparated |
| 10 | import TauCeti.Algebra.Order.GroupWithZero.WithZeroInt |
| 11 | import TauCeti.LinearAlgebra.Dimension.Submodule |
| 12 | public import Lib.CM.FormalGroup.PrimeNotation |
| 13 | public import New.UpperBound.Objects.Columns |
| 14 | public import Lib.Adelic.AutomorphicForms.PAdicGauge |
| 15 | import Lib.GLn.Dual |
| 16 | import Lib.GLn.SchurModule.SchurNorm |
| 17 | import Lib.PadicComparison.Descent.TestCategory |
| 18 | import New.Reduction.Data.Sizes |
| 19 | import New.UpperBound.Kernels.JetConjugatesAndBounds |
| 20 | |
| 21 | /-! |
| 22 | # Prime-by-prime divisibility measures; short forms span the ramified source forms |
| 23 | |
| 24 | This file defines numbers that measure, prime by prime, how divisible the chain of theta lifts on |
| 25 | source forms must be, and shows that short algebraic forms span. `New.AlgForm` is the space of |
| 26 | algebraic forms of weight (κ, e) on the definite unitary group of `New.stdSpace`, with right |
| 27 | translation `New.algFormRep`. The source forms `New.Data.SourceForm` form its subspace fixed by |
| 28 | `New.Data.levelX` 0. `New.Data.piNPlaces` is the set of the f primes dividing π, where ππ̄ = N and f |
| 29 | is the number of infinite places of E. Short forms span at a free level. |
| 30 | |
| 31 | ## Main definitions and results |
| 32 | |
| 33 | * `New.Data.localPrimeSum`: the exponent asked at p for a height y at an infinite place σ. |
| 34 | * `New.Data.localPrimeSumTotal`, `New.Data.gain`: the sum of these exponents over all infinite |
| 35 | places, and the total exponent asked of the m lifts. |
| 36 | * `New.IsShort`: the values of a form are p-adically integral, and their conjugates under Aut(ℂ) |
| 37 | have squared norm at most B. |
| 38 | * `New.span_isShort_eq_top`: at a free level K ≤ `New.stdLevel` the short forms span, for an |
| 39 | explicit B. |
| 40 | * `New.Data.scalingGenerator`: for w ∣ π a scaling z_w at w (`New.Data.IsScalingAt`) of order N − 1 |
| 41 | modulo w. |
| 42 | * `New.Data.ramifiedSourceForms`: the source forms whose translates by the powers of each z_w have |
| 43 | mean 0; `New.Data.ramifiedSourceForms_eq_range`: they are the image of ∏_{w∣π} (1 − z_w). |
| 44 | * `New.Data.span_isShort_ramifiedSourceForms_eq_top`: the short ramified source forms span the |
| 45 | ramified source forms. |
| 46 | |
| 47 | Notions from other files: |
| 48 | * `New.Parameters`: The fixed parameters: a multiple `q₀` of `18480 = 16 · 3 · 5 · 7 · 11` and a |
| 49 | prime `d` with `d ≡ q₀/2 - 1 mod q₀`. |
| 50 | * `New.weylGauge`: The gauge of ξ at g: the largest p-adic absolute value of a coordinate of |
| 51 | g⁻¹·ι(ξ), with g⁻¹ acting in weight (κ, e). |
| 52 | * `New.weylNormSq`: The squared norm ξ* G ξ for the integer Gram matrix G = `New.weylGram`. |
| 53 | * `New.Data.chosenLevel`: The principal congruence subgroup of level `New.Data.piM`, whose prime |
| 54 | divisors are the chosen places. |
| 55 | |
| 56 | ## Role in the proof |
| 57 | |
| 58 | The exponents are used in `New.UpperBound.Divisibility.LocalDivisibility`, the short forms in |
| 59 | `New.Reduction.ShortAndEnough` and `New.Determinant.AuxiliaryForms.SpanningForms`. |
| 60 | -/ |
| 61 | |
| 62 | @[expose] public section |
| 63 | |
| 64 | noncomputable section |
| 65 | |
| 66 | /-! |
| 67 | ## Prime-by-prime measures of the divisibility asked of the lifted map |
| 68 | |
| 69 | The infinite places of E form the group (ℤ/q₁)^×, where q₁ = `New.Data.q₁` is a multiple of q₀. The |
| 70 | a-places (`New.Data.aPlaces`) are the places whose class is 1 modulo q₀; the b-places |
| 71 | (`New.Data.bPlaces`) are a set of places of class −1 modulo q₀, part of the data. The numbers m (of |
| 72 | lifts), k, x, x₁, b and the long order a = xb (`New.Data.a`) are those of `New.Data`. |
| 73 | |
| 74 | * `New.Data.IsSmallNonsplit`, `New.Data.IsPlusMinusOneModLifts`, `New.Data.IsExceptional`: the |
| 75 | classes of primes in the local proof; `New.Data.ceilLogLifts`: the base-p logarithm of m, rounded |
| 76 | up. |
| 77 | -/ |
| 78 | |
| 79 | namespace New.Data |
| 80 | |
| 81 | variable {P : Parameters} (D : Data P) (p : ℕ) |
| 82 | |
| 83 | /-- The prime sum s_p(y, σ) = v(π_p) ∑_{e ∈ I_p} (y/p^e − w(u(−p^e) σ))⁺. Here v(π_p) is |
| 84 | `New.piPrimeValuation` (1/2 if p = d, and 1 otherwise), I_p is `New.positivePartnerExponents` (the |
| 85 | odd numbers if p is inert, all e ≥ 1 if p = d, none if p splits), and w is `New.Data.weight` (b on |
| 86 | the set `New.Data.bPlaces`, a/x₁ elsewhere). The infinite places form the group (ℤ/q₁)^×, with |
| 87 | q₁ = `New.Data.q₁`; u(ν) = `New.Data.placeOfInt` ν is the place given by the class of ν if ν is |
| 88 | prime to q₁, and the identity place otherwise. -/ |
| 89 | def localPrimeSum (y : ℝ) (σ : D.Φ) : ℝ := piPrimeValuation P.d p * |
| 90 | ∑' e : ℕ, if e ∈ positivePartnerExponents P.d p then |
| 91 | (y / p ^ e - D.weight (D.placeOfInt (-p ^ e) * σ))⁺ else 0 |
| 92 | |
| 93 | /-- The total F(p) = ∑_σ s_p(w(σ), σ) of the prime sums s_p = `New.Data.localPrimeSum` p over the |
| 94 | infinite places σ, with w = `New.Data.weight`. -/ |
| 95 | def localPrimeSumTotal : ℝ := ∑ σ : D.Φ, D.localPrimeSum p (D.weight σ) σ |
| 96 | |
| 97 | /-- The divisibility asked of the chain of m lifts at p: gain(p) = m(∑_τ s_p(a, τ) + k F(p)). The |
| 98 | sum runs over the a-places τ (`New.Data.aPlaces`, the infinite places of class 1 modulo q₀), s_p is |
| 99 | `New.Data.localPrimeSum` p and F(p) is `New.Data.localPrimeSumTotal` p. -/ |
| 100 | def gain : ℝ := D.m * (∑ τ ∈ D.aPlaces, D.localPrimeSum p D.a τ + D.k * D.localPrimeSumTotal p) |
| 101 | |
| 102 | /-- The natural number p satisfies p < x₁ and χ_K(p) ≠ 1; for prime p, this says that p is below |
| 103 | x₁ and inert or ramified in the quadratic field of the character χ_K = `New.chiK`. -/ |
| 104 | abbrev IsSmallNonsplit : Prop := p < D.x₁ ∧ chiK P.d p ≠ 1 |
| 105 | |
| 106 | /-- The number m of lifts divides p − 1 (truncated at 0) or p + 1; for a prime p, this says |
| 107 | p ≡ ±1 modulo m. -/ |
| 108 | def IsPlusMinusOneModLifts : Prop := D.m ∣ p - 1 ∨ D.m ∣ p + 1 |
| 109 | |
| 110 | open scoped Classical in |
| 111 | /-- The unit of the allowed losses at a non-split p < x₁: f a (log b)²/p, times m if p ≡ ±1 modulo |
| 112 | m. -/ |
| 113 | def loss : ℝ := D.f * D.logB ^ 2 * (D.a / p * (if D.IsPlusMinusOneModLifts p then D.m else 1)) |
| 114 | |
| 115 | /-- The least natural number 𝔯 with m ≤ p^𝔯 (for p > 1). -/ |
| 116 | def ceilLogLifts : ℕ := p.clog D.m |
| 117 | |
| 118 | /-- The natural number ν_p = 𝔯f(n_m + 𝔯), with 𝔯 = `New.Data.ceilLogLifts` p and f the number of |
| 119 | infinite places of E. Here n_j = k + j(t + 1) (`New.Data.n`) is the rank of the space X_j of stage |
| 120 | j, and m is the number of lifts. -/ |
| 121 | def transferExponent : ℕ := D.ceilLogLifts p * D.f * (D.n D.m + D.ceilLogLifts p) |
| 122 | |
| 123 | /-- The natural number j_p = ⌈2mfa/p⌉, with f the number of infinite places of E. -/ |
| 124 | def collisionExponent : ℕ := ⌈(D.m * (2 * D.f * D.a / p) : ℝ)⌉₊ |
| 125 | |
| 126 | /-- The order o₀ in (ℤ/q₀)^× of the class of the infinite place named by −p |
| 127 | (`New.Data.placeOfInt`). The places form the group (ℤ/q₁)^×, where q₁ = q₀ · `New.towerDeg` s and |
| 128 | s = `D.towerExp`, and `New.Parameters.placeClass` reduces modulo the divisor q₀ of q₁. For p prime |
| 129 | to q₀, o₀ is the order of −p in (ℤ/q₀)^×. -/ |
| 130 | def o₀ : ℕ := orderOf (P.placeClass ⟨towerDeg D.towerExp, rfl⟩ (D.placeOfInt (-p))) |
| 131 | |
| 132 | /-- p is exceptional if χ_K(p) = −1, p is not ±1 modulo the number m of lifts, and the order |
| 133 | o₀ = `New.Data.o₀` p is odd and at most 𝔯 = `New.Data.ceilLogLifts` p. Then, for e = o₀, the |
| 134 | infinite place named by −p^e is an a-place. -/ |
| 135 | def IsExceptional : Prop := |
| 136 | chiK P.d p = -1 ∧ ¬D.IsPlusMinusOneModLifts p ∧ Odd (D.o₀ p) ∧ D.o₀ p ≤ D.ceilLogLifts p |
| 137 | |
| 138 | /-- A collision outside ev: e lies in I_p = `New.positivePartnerExponents`, and both τ and its |
| 139 | product with the place named by −p^e are a-places not in ev. -/ |
| 140 | def IsCollision (ev : Finset D.Φ) (τ : D.Φ) (e : ℕ) : Prop := |
| 141 | e ∈ positivePartnerExponents P.d p ∧ τ ∈ D.aPlaces \ ev ∧ |
| 142 | D.placeOfInt (-p ^ e) * τ ∈ D.aPlaces \ ev |
| 143 | |
| 144 | open scoped Classical in |
| 145 | /-- The sum of a/p^e over all pairs (τ, e) that are collisions outside ev |
| 146 | (`New.Data.IsCollision`). -/ |
| 147 | def collisionSum (ev : Finset D.Φ) : ℝ := |
| 148 | ∑ τ : D.Φ, ∑' e : ℕ, if D.IsCollision p ev τ e then (D.a / p ^ e : ℝ) else 0 |
| 149 | |
| 150 | end New.Data |
| 151 | |
| 152 | /-! |
| 153 | ## Short forms and the ramified source forms |
| 154 | |
| 155 | * `New.Data.finrank_ker_ramifyingOp_le`: the kernel of ∏_{w∈s} (1 − z_w) has dimension at most |
| 156 | #s/(N − 1) times the dimension of the source forms. |
| 157 | * `New.Data.isShort_ramifyingOp`: ∏_{w∈s} (1 − z_w) keeps integrality and at most multiplies the |
| 158 | squared-norm bound by 4^#s. |
| 159 | -/ |
| 160 | |
| 161 | namespace New |
| 162 | |
| 163 | open NumberField Matrix Finset Fintype Submodule Space Rows Norms.L2Operator MvPolynomial |
| 164 | |
| 165 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 166 | {κ : InfinitePlace E → ℕ → ℕ} {e : InfinitePlace E → ℤ} |
| 167 | |
| 168 | /-! ### Short forms -/ |
| 169 | |
| 170 | /-- A form φ is B-short if each value φ(g) is integral for Weyl's lattice at g at every p-adic |
| 171 | embedding, and all conjugates of φ(g) under Aut(ℂ) have squared norm at most B. -/ |
| 172 | def IsShort (B : ℝ) (φ : AlgForm n κ e) : Prop := |
| 173 | (∀ (p : ℕ) [Fact p.Prime] [PadicPlace p], GaugeLe 1 1 φ) ∧ |
| 174 | ∀ (σ : ℂ ≃+* ℂ) (g : Gf E n), weylNormSq (σ ∘ φ.val g) ≤ B |
| 175 | |
| 176 | /-- Let G_f = `Gf E n` be the unitary group of the form ∑ xᵢx̄ᵢ over the finite adeles of the CM |
| 177 | field E, and φ an algebraic form on G_f of weight (κ, e): at the infinite place τ the Young diagram |
| 178 | has κ τ h columns of height h, and e τ is the power of the determinant. Let φ be B-short, and let |
| 179 | k ∈ G_f have integral entries (`New.stdLevel`). Then φ minus its right translate by k is |
| 180 | 4B-short. -/ |
| 181 | lemma IsShort.sub_translate {B : ℝ} {k : Gf E n} {φ : AlgForm n κ e} (hφ : IsShort B φ) |
| 182 | (hk : k ∈ stdLevel E n) : |
| 183 | IsShort (4 * B) (φ - algFormRep κ e k φ) := by |
| 184 | obtain ⟨h_int, h_norm⟩ := hφ |
| 185 | refine ⟨fun p _ _ ↦ ?_, fun σ g ↦ ?_⟩ |
| 186 | · -- The integral forms are a module, and the gauge is unchanged under g ↦ g * k. |
| 187 | have translate_int : GaugeLe 1 1 (algFormRep κ e k φ) := |
| 188 | fun g ↦ by simpa [weylGauge_mul_of_mem_integralAbove, stdLevel_le_localLevel hk] using h_int p |
| 189 | (g * k) |
| 190 | have h_sub : φ - algFormRep κ e k φ ∈ integralFormsAt (p := p) ⊤ 1 := |
| 191 | sub_mem (Submodule.mem_inf.2 ⟨mem_top, h_int p⟩) |
| 192 | (Submodule.mem_inf.2 ⟨mem_top, translate_int⟩) |
| 193 | exact (Submodule.mem_inf.1 h_sub).2 |
| 194 | · -- Parallelogram law: `‖a - b‖² = 2 ‖a‖² + 2 ‖b‖² - ‖a + b‖² ≤ 4 B`. |
| 195 | have parallelogram : |
| 196 | weylNormSq (σ ∘ (φ.val g - φ.val (g * k))) + weylNormSq (σ ∘ (φ.val g + φ.val (g * k))) = |
| 197 | 2 * weylNormSq (σ ∘ φ.val g) + 2 * weylNormSq (σ ∘ φ.val (g * k)) := by |
| 198 | simp [weylNormSq, mulVec_sub, mulVec_add] |
| 199 | ring |
| 200 | change weylNormSq (σ ∘ (φ.val g - φ.val (g * k))) ≤ 4 * B |
| 201 | linarith [h_norm σ g, h_norm σ (g * k), weylNormSq_nonneg (σ ∘ (φ.val g + φ.val (g * k)))] |
| 202 | |
| 203 | omit [DecidableEq n] in |
| 204 | /-- Let y be an array over ℂ_p with entries of absolute value at most 1. The evaluation vector |
| 205 | `New.weylEval` at y has norm at most 1: its coordinates are the values at y of the products of |
| 206 | minors `New.nablaBasis`, which are polynomials with integer coefficients. -/ |
| 207 | lemma norm_weylEval_le_one_of_integral {p : ℕ} [Fact p.Prime] |
| 208 | {y : (Σ _ : InfinitePlace E, n) × ℕ → ℂ_[p]} |
| 209 | (hy : ∀ x : (Σ _ : InfinitePlace E, n) × ℕ, ‖y x‖ ≤ 1) : |
| 210 | ‖weylEval (fun _ : InfinitePlace E ↦ n) κ y‖ ≤ 1 := by |
| 211 | refine (pi_norm_le_iff_of_nonneg zero_le_one).2 fun i ↦ ?_ |
| 212 | rw [weylEval, ← map_nablaBasis (Int.castRingHom ℂ_[p]), eval_map] |
| 213 | change eval₂ (Int.castRingHom ℂ_[p]) y (nablaBasis ℤ (fun _ ↦ n) κ i) ∈ |
| 214 | NormedField.valuation.integer |
| 215 | exact eval₂_mem (by simp) hy |
| 216 | |
| 217 | /-- The product of the actions of `G` in weight (κ, e) and of `Z` in weight (κ, 0) is the product |
| 218 | of the powers `(det G_τ) ^ e_τ` times the Schur matrix of `G Z`. The Schur matrix `schur κ z` is the |
| 219 | map that a family `z` of matrices induces on the Weyl module of the diagram with `κ τ h` columns |
| 220 | of height `h` at `τ`. -/ |
| 221 | lemma weylRep_mul_weylRep_zero {R : Type} [CommRing R] (G Z : InfinitePlace E → GL n R) : |
| 222 | weylRep κ e G * weylRep κ 0 Z = |
| 223 | (∏ τ : InfinitePlace E, (G τ).det ^ e τ) • |
| 224 | schur κ (fun τ : InfinitePlace E ↦ (G τ).val * (Z τ).val) := by |
| 225 | simp [weylRep] |
| 226 | |
| 227 | /-- Let g lie in G_f = `Gf E n`, the unitary group of rank n over the finite adeles of the CM field |
| 228 | E. A family h of invertible matrices h_τ, indexed by the infinite places τ, acts in weight (κ, e) |
| 229 | (`New.weylRep`) by ∏_τ det(h_τ)^(e_τ) times its action on the Weyl module whose Young diagram at τ |
| 230 | has κ τ h columns of height h. |
| 231 | |
| 232 | Let Y₀ and Y_τ be invertible matrices over E such that g⁻¹Y₀ and each g^(−e_τ)Y_τ are integral |
| 233 | (entries in Ô), and let the entries of y be integral elements of ℂ_p. Act on the evaluation vector |
| 234 | at y by Y₀ in weight (κ, 0), multiply by ∏_τ det Y_τ, and act by g⁻¹ in weight (κ, e): the result |
| 235 | has coordinates of absolute value at most 1. Here E goes to ℂ_p by `New.weightEmbedding` at τ, for |
| 236 | the chosen embedding ιₚ of ℂ, and its finite adeles by the extension `New.adeleExtension` of that |
| 237 | map. -/ |
| 238 | lemma norm_weylRep_mulVec_det_smul_weylEval_le_one {p : ℕ} [Fact p.Prime] [PadicPlace p] |
| 239 | {g : Gf E n} {Y₀ : GL n E} {Y : InfinitePlace E → GL n E} |
| 240 | (hY₀ : IsIntMatrix (Ô E) (g⁻¹.val.val * Y₀.val.map (algebraMap E (𝔸f E)))) |
| 241 | (hY : ∀ τ : InfinitePlace E, |
| 242 | IsIntMatrix (Ô E) ((g ^ e τ)⁻¹.val.val * (Y τ).val.map (algebraMap E (𝔸f E)))) |
| 243 | {y : (Σ _ : InfinitePlace E, n) × ℕ → ℂ_[p]} |
| 244 | (hy : ∀ x : ((_ : InfinitePlace E) × n) × ℕ, ‖y x‖ ≤ 1) : |
| 245 | ‖weylRep κ e |
| 246 | (fun τ : InfinitePlace E ↦ |
| 247 | GeneralLinearGroup.map (adeleExtension (weightEmbedding ιₚ τ)) g⁻¹.val) *ᵥ |
| 248 | ((∏ τ : InfinitePlace E, ((Y τ).map (weightEmbedding ιₚ τ)).det) • |
| 249 | weylRep κ 0 fun τ : InfinitePlace E ↦ Y₀.map (weightEmbedding ιₚ τ)) *ᵥ |
| 250 | weylEval (fun _ : InfinitePlace E ↦ n) κ y‖ ≤ 1 := by |
| 251 | -- The vector is a product of determinants of integral matrices times the Schur matrix of |
| 252 | -- integral matrices applied to the values at `y` of polynomials with integer coefficients. |
| 253 | set gInv : InfinitePlace E → GL n ℂ_[p] := |
| 254 | fun τ ↦ GeneralLinearGroup.map (adeleExtension (weightEmbedding ιₚ τ)) g⁻¹.val |
| 255 | set Y₀p : InfinitePlace E → GL n ℂ_[p] := fun τ ↦ Y₀.map (weightEmbedding ιₚ τ) |
| 256 | let d (τ : InfinitePlace E) : ℂ_[p]ˣ := |
| 257 | ((Y τ).map (weightEmbedding ιₚ τ)).det * (gInv τ).det ^ e τ |
| 258 | have h_det (τ : InfinitePlace E) : ‖(d τ).val‖ ≤ 1 := by |
| 259 | have gInv_pow : gInv τ ^ e τ = |
| 260 | GeneralLinearGroup.map (adeleExtension (weightEmbedding ιₚ τ)) (g ^ e τ)⁻¹.val := by |
| 261 | rw [← map_zpow, ← SubgroupClass.coe_zpow, _root_.inv_zpow] |
| 262 | have det_gInv_pow : ((gInv τ).det ^ e τ).val = |
| 263 | adeleExtension (weightEmbedding ιₚ τ) (g ^ e τ)⁻¹.val.val.det := by |
| 264 | rw [← map_zpow, gInv_pow, RingHom.map_det] |
| 265 | rfl |
| 266 | have det_Y : ((Y τ).map (weightEmbedding ιₚ τ)).det.val = |
| 267 | adeleExtension (weightEmbedding ιₚ τ) ((Y τ).val.map (algebraMap E (𝔸f E))).det := by |
| 268 | simp [← RingHom.mapMatrix_apply, ← RingHom.map_det] |
| 269 | rw [Units.val_mul, det_gInv_pow, det_Y, ← map_mul, mul_comm, ← det_mul] |
| 270 | exact norm_adeleExtension_le_one _ (hY τ).det_mem |
| 271 | have h_entry (τ : InfinitePlace E) (i j : n) : ‖((gInv τ).val * (Y₀p τ).val) i j‖ ≤ 1 := by |
| 272 | -- Without `map_inv` the inverse of `g` stays inside the image under the embedding. |
| 273 | simpa [gInv, Y₀p, Matrix.mul_apply, -map_inv] using |
| 274 | norm_adeleExtension_le_one (weightEmbedding ιₚ τ) (hY₀ i j) |
| 275 | have h_prod : ∏ τ, ‖(d τ).val‖ ≤ 1 := |
| 276 | Finset.prod_le_one₀ (fun τ _ ↦ norm_nonneg _) fun τ _ ↦ h_det τ |
| 277 | have h_schur : ‖schur κ (fun τ ↦ (gInv τ).val * (Y₀p τ).val) *ᵥ weylEval _ κ y‖ ≤ 1 := |
| 278 | (norm_schur_mulVec_le .refl h_entry _).trans (norm_weylEval_le_one_of_integral hy) |
| 279 | -- Acting with `g⁻¹` after `Y₀` gives the determinants `d τ` times the Schur matrix of `g⁻¹ Y₀`. |
| 280 | calc |
| 281 | _ = ‖(∏ τ, (d τ).val) • |
| 282 | (schur κ (fun τ ↦ (gInv τ).val * (Y₀p τ).val) *ᵥ weylEval _ κ y)‖ := by |
| 283 | rw [mulVec_mulVec, Matrix.mul_smul, weylRep_mul_weylRep_zero, smul_smul, ← prod_mul_distrib, |
| 284 | smul_mulVec, Units.smul_def, Units.coe_prod] |
| 285 | _ = (∏ τ, ‖(d τ).val‖) * |
| 286 | ‖schur κ (fun τ ↦ (gInv τ).val * (Y₀p τ).val) *ᵥ weylEval _ κ y‖ := by |
| 287 | rw [norm_smul, norm_prod] |
| 288 | _ ≤ 1 := (mul_le_of_le_one_left (norm_nonneg _) h_prod).trans h_schur |
| 289 | |
| 290 | /-- Consider the Weyl module whose Young diagram at the infinite place τ of E has κ τ h columns of |
| 291 | height h. A family Y₀ of invertible matrices indexed by the infinite places acts on it by |
| 292 | `New.weylRep` κ 0 Y₀. |
| 293 | |
| 294 | Let R be at least the rank n, let the complex matrices of the families Y₀ and Y have entries of |
| 295 | absolute value at most R, and let y have entries of absolute value at most 1. Let M be at least n·f |
| 296 | plus the number of boxes of κ in columns of height below n (`New.boxes`), where f is the number of |
| 297 | infinite places, and let R^(6M) ≤ B. Then ∏_τ det Y_τ times the image under Y₀ of the evaluation |
| 298 | vector at y has squared norm at most B. -/ |
| 299 | lemma weylNormSq_det_smul_weylRep_mulVec_weylEval_le [Nonempty n] {R B : ℝ} {M : ℕ} |
| 300 | (hn_le : Fintype.card n ≤ R) |
| 301 | (hM : Fintype.card n * Fintype.card (InfinitePlace E) + boxes κ (Fintype.card n) ≤ M) |
| 302 | (hB : R ^ (6 * M) ≤ B) {Y₀ Y : InfinitePlace E → GL n ℂ} |
| 303 | (hY₀ : ∀ (τ : InfinitePlace E) (i j : n), ‖(Y₀ τ).val i j‖ ≤ R) |
| 304 | (hY : ∀ (τ : InfinitePlace E) (i j : n), ‖(Y τ).val i j‖ ≤ R) |
| 305 | {y : ((_ : InfinitePlace E) × n) × ℕ → ℂ} |
| 306 | (hy : ∀ x : ((_ : InfinitePlace E) × n) × ℕ, ‖y x‖ ≤ 1) : |
| 307 | weylNormSq (((∏ τ : InfinitePlace E, (Y τ).det) • weylRep κ 0 Y₀) *ᵥ |
| 308 | weylEval (fun _ : InfinitePlace E ↦ n) κ y) ≤ B := by |
| 309 | -- The evaluation vector at `y` is `schur κ` of the square frame of `y` applied to a unit vector, |
| 310 | -- so the action of `Y₀` gives `schur κ z` of that unit vector. |
| 311 | have one_le : 1 ≤ R := (Nat.one_le_cast.2 Fintype.card_pos).trans hn_le |
| 312 | let z (τ : InfinitePlace E) : Matrix n n ℂ := |
| 313 | (Y₀ τ).val * GL.squarePart (GL.rowEquivFin fun _ : InfinitePlace E ↦ n) y τ |
| 314 | let u : WeylIndex n κ → ℂ := weylEval _ κ (permArray fun τ a ↦ GL.rowEquivFin (fun _ ↦ n) τ a) |
| 315 | have h_ev : weylRep κ 0 Y₀ *ᵥ weylEval (fun _ : InfinitePlace E ↦ n) κ y = schur κ z *ᵥ u := by |
| 316 | simp [weylRep, z, u, ← GL.schur_squarePart_mulVec (GL.rowEquivFin _) y] |
| 317 | -- `schur κ z` multiplies the squared norm by at most `∏ ρ τ i ^ λ(τ, i)`, where `∑ i, ρ τ i` is |
| 318 | -- at most the sum of the squared entries of `z τ`, each at most `(n R)²`. |
| 319 | obtain ⟨ρ, hρ, schur_le⟩ := weylNormSq_schur_le (κ := κ) .refl z |
| 320 | have ρ_le (τ : InfinitePlace E) (i : Fin (card n)) : ρ τ i ≤ R ^ 6 := |
| 321 | calc (ρ τ i : ℝ) ≤ ∑ a, ∑ b, ‖z τ a b‖ ^ 2 := |
| 322 | (NNReal.coe_mono (single_le_sum_of_canonicallyOrdered (by simp))).trans (hρ τ) |
| 323 | _ ≤ ∑ _ : n, ∑ _ : n, (∑ _ : n, R * 1) ^ 2 := by |
| 324 | gcongr |
| 325 | exact norm_sum_le_of_le _ fun k _ ↦ norm_mul_le_of_le (hY₀ τ _ k) (hy _) |
| 326 | _ = card n ^ 4 * R ^ 2 := by simp [field] |
| 327 | _ ≤ R ^ 6 := by grw [hn_le, ← pow_add] |
| 328 | -- `|det Y| ≤ ‖Y‖ ^ n ≤ (n² R) ^ n ≤ (R ^ 3) ^ n`. |
| 329 | have det_le (τ : InfinitePlace E) : ‖(Y τ).val.det‖ ^ 2 ≤ (R ^ 6) ^ card n := by |
| 330 | grw [norm_det_le_norm_pow, l2_opNorm_le_of_apply (hY τ), ← sq, hn_le] |
| 331 | exact le_of_eq (by ring) |
| 332 | have h_dets : ‖∏ τ, (Y τ).val.det‖ ^ 2 ≤ (R ^ 6) ^ (card n * card (InfinitePlace E)) := by |
| 333 | simpa [← pow_mul, ← prod_pow, mul_assoc] using |
| 334 | prod_le_prod₀ (s := univ) (by simp) fun τ _ ↦ det_le τ |
| 335 | -- The exponents λ(τ, i) add up to the number of boxes. |
| 336 | have h_schur : weylNormSq (schur κ z *ᵥ u) ≤ (R ^ 6) ^ boxes κ (card n) := by |
| 337 | grw [schur_le, GL.weylNormSq_weylEval_permArray] |
| 338 | rw [← FitsRanks.refl.sum_diagramWeight_eq_boxes, ← prod_pow_eq_pow_sum, prod_prod_type, mul_one] |
| 339 | simp only [NNReal.coe_prod, NNReal.coe_pow, prod_range] |
| 340 | gcongr |
| 341 | exact ρ_le _ _ |
| 342 | rw [smul_mulVec, h_ev, Units.smul_def, weylNormSq_smul, Units.coe_prod] |
| 343 | calc |
| 344 | _ ≤ (R ^ 6) ^ (card n * card (InfinitePlace E)) * (R ^ 6) ^ boxes κ (card n) := |
| 345 | mul_le_mul h_dets h_schur (weylNormSq_nonneg _) (by positivity) |
| 346 | _ ≤ R ^ (6 * M) := by grw [← pow_add, ← pow_mul, hM] |
| 347 | _ ≤ B := hB |
| 348 | |
| 349 | /-- Let K be a level of the finite adelic unitary group G_f that is free: Γ ∩ gKg⁻¹ is trivial for |
| 350 | every g, where Γ is the group of rational points. Let x be in G_f and let v be a coordinate vector |
| 351 | of weight (κ, e). Suppose that for every prime p and every embedding ι of ℂ in ℂ_p the coordinates |
| 352 | of x⁻¹·ι(v) have absolute value at most 1 (`New.weylGauge`), and that every conjugate of v under |
| 353 | Aut(ℂ) has squared norm at most B (`New.weylNormSq`). Then the delta form at x made from v is |
| 354 | B-short (`New.IsShort`): its values are integral at every p-adic embedding and their conjugates have |
| 355 | squared norm at most B. The delta form is supported on ΓxK, and its value at y is the sum of γ⁻¹·v |
| 356 | over the rational γ with x⁻¹γy ∈ K. -/ |
| 357 | lemma isShort_deltaForm {K : Subgroup (Gf E n)} [IsLevel K] |
| 358 | (free : ∀ g : Gf E n, classAut stdRatPoints K g = ⊥) {B : ℝ} {x : Gf E n} |
| 359 | {v : WeylIndex n κ → ℂ} |
| 360 | (h_int : ∀ (p : ℕ) [Fact p.Prime] [PadicPlace p], weylGauge (p := p) κ e x v ≤ 1) |
| 361 | (h_norm : ∀ σ : ℂ ≃+* ℂ, weylNormSq (σ ∘ v) ≤ B) : |
| 362 | IsShort B (deltaForm stdEmbFin ((stdSpace E n).weightRep κ e) (1 : K →* ℂ) x v).val := by |
| 363 | set φ : AlgForm n κ e := |
| 364 | (deltaForm stdEmbFin ((stdSpace E n).weightRep κ e) (1 : K →* ℂ) x v).val |
| 365 | have h_order (k : K) : IsOfFinOrder ((1 : K →* ℂ) k) := by simp |
| 366 | refine ⟨fun p _ _ g ↦ ?_, fun σ g ↦ ?_⟩ |
| 367 | · calc weylGauge κ e (g * 1) (φ.val g) = weylGauge κ e g (φ.val g) := by rw [mul_one] |
| 368 | _ ≤ weylGauge κ e x v := weylGauge_deltaForm_le h_order |
| 369 | _ ≤ 1 := h_int p |
| 370 | · -- At a free level the stabiliser of the coset `x K` is trivial. |
| 371 | have h_card : Nat.card (classAut stdEmbFin.range K x) = 1 := Subgroup.card_eq_one.2 (free x) |
| 372 | calc weylNormSq (σ ∘ φ.val g) |
| 373 | ≤ (Nat.card (classAut stdEmbFin.range K x) : ℝ) ^ 2 * weylNormSq (σ ∘ v) := |
| 374 | weylNormSq_deltaForm_le h_order σ x v g |
| 375 | _ = weylNormSq (σ ∘ v) := by rw [h_card, Nat.cast_one, one_pow, one_mul] |
| 376 | _ ≤ B := h_norm σ |
| 377 | |
| 378 | -- Keeps definitional checks from unfolding the finite sums. |
| 379 | seal Finset.sum in |
| 380 | /-- Consider algebraic forms on the finite adelic unitary group G_f of rank n over E, of weight (κ, |
| 381 | e): at the infinite place τ the Young diagram has κ τ h columns of height h, and e τ is the power of |
| 382 | the determinant. Let K be a level that is free: Γ ∩ gKg⁻¹ is trivial for every g, where Γ is the |
| 383 | group of rational points. Let N ≠ 0 be a natural number in the different of E, f the number of |
| 384 | infinite places, and M at least n·f plus the number of boxes of κ in columns of height below n. If |
| 385 | B ≥ C^(6M), where C = 6N(fn)² is `New.Space.shortBasisConst` E n N, the forms fixed by K are spanned |
| 386 | by the B-short ones. -/ |
| 387 | lemma span_isShort_eq_top {K : Subgroup (Gf E n)} [IsLevel K] [Nonempty n] |
| 388 | (free : ∀ g : Gf E n, classAut stdRatPoints K g = ⊥) |
| 389 | {N M : ℕ} [NeZero N] (hN_diff : ↑N ∈ differentIdeal ℤ (𝓞 E)) |
| 390 | (hM : Fintype.card n * Fintype.card (InfinitePlace E) + boxes κ (Fintype.card n) ≤ M) {B : ℝ} |
| 391 | (hB : (shortBasisConst E n N : ℝ) ^ (6 * M) ≤ B) : |
| 392 | span ℂ {φ : levelSpace (algFormRep κ e) K | IsShort B φ.val} = ⊤ := by |
| 393 | -- At a free level a form is a sum of delta forms, one for each class `c`. So it suffices to |
| 394 | -- find, for each `c`, a spanning set of vectors that are integral at `c` and short. |
| 395 | refine top_unique fun φ _ ↦ ?_ |
| 396 | rw [← (freeLevelEquiv _ _ 1 free Quot.out_eq).left_inv φ] |
| 397 | refine sum_mem fun c _ ↦ ?_ |
| 398 | -- `Y g` is a short basis of the lattice of `g`: `g⁻¹ * Y g` is integral, the entries are small. |
| 399 | choose Y hY_int hY_le using exists_short_basis_stdSpace (E := E) (n := n) hN_diff |
| 400 | -- The vectors are `A *ᵥ weylEval n κ y`, all entries of `y` roots of unity. `A` is the action of |
| 401 | -- `Y c` (through the embeddings `weightEmbedding`) in weight `κ`, times the determinants of short |
| 402 | -- bases for the powers `c ^ e τ`, which absorb the determinant part of the weight; `A f` is its |
| 403 | -- image under `f`. |
| 404 | let A {R : Type} [NormedField R] (f : ℂ →+* R) : |
| 405 | Matrix (WeylIndexFamily (fun _ ↦ n) κ) (WeylIndexFamily (fun _ ↦ n) κ) R := |
| 406 | (∏ τ, ((Y (c.out ^ e τ)).map (weightEmbedding f τ)).det) • |
| 407 | weylRep κ 0 fun τ ↦ (Y c.out).map (weightEmbedding f τ) |
| 408 | have map_A {R : Type} [NormedField R] (f : ℂ →+* R) (y : (Σ _ : InfinitePlace E, n) × ℕ → ℂ) : |
| 409 | f ∘ (A (.id _) *ᵥ weylEval _ κ y) = A f *ᵥ weylEval _ κ (f ∘ y) := by |
| 410 | simp [funext_iff, A, Units.smul_def, f.map_det, weylRep_map, weylEval, mulVec_apply_eq_sum, |
| 411 | map_eval] |
| 412 | -- Integral: `c⁻¹` moves the vector to `weylRep κ 0 (c⁻¹ * Y c)` applied to integer polynomials in |
| 413 | -- `y`, times the determinants of the integral matrices `(c ^ e τ)⁻¹ * Y (c ^ e τ)`. |
| 414 | have ev_int (p : ℕ) [Fact p.Prime] [PadicPlace p] (y : (Σ _ : InfinitePlace E, n) × ℕ → ℂ) |
| 415 | (hy : ∀ x, ‖(ιₚ (y x) : ℂ_[p])‖ ≤ 1) : |
| 416 | weylGauge κ e c.out (A (.id _) *ᵥ weylEval _ κ y) ≤ 1 := by |
| 417 | rw [weylGauge, map_A] |
| 418 | exact norm_weylRep_mulVec_det_smul_weylEval_le_one (hY_int _) (fun τ ↦ hY_int _) hy |
| 419 | -- Short, as all entries of all conjugates of `Y` are at most the constant of the short bases. |
| 420 | have h_card : Fintype.card n ≤ shortBasisConst E n N := by |
| 421 | refine Nat.le_of_dvd (Nat.pos_of_neZero _) ?_ |
| 422 | exact dvd_mul_of_dvd_right (dvd_pow (dvd_mul_left _ _) two_ne_zero) _ |
| 423 | have ev_le (σ : ℂ →+* ℂ) (y : (Σ _ : InfinitePlace E, n) × ℕ → ℂ) (hy : ∀ x, ‖σ (y x)‖ ≤ 1) : |
| 424 | weylNormSq (σ ∘ (A (.id _) *ᵥ weylEval _ κ y)) ≤ B := by |
| 425 | rw [map_A] |
| 426 | exact weylNormSq_det_smul_weylRep_mulVec_weylEval_le (Nat.cast_le.2 h_card) hM hB |
| 427 | (fun τ ↦ hY_le _ (weightEmbedding σ τ)) (fun τ ↦ hY_le _ (weightEmbedding σ τ)) hy |
| 428 | -- The evaluation vectors span (`GL.ext_weylEval`), and their images under `A` are short. |
| 429 | have h_zero : (mkQ (span ℂ {φ : levelSpace (algFormRep κ e) K | IsShort B φ.val}) ∘ₗ |
| 430 | deltaForm stdEmbFin ((stdSpace E n).weightRep κ e) (1 : K →* ℂ) c.out) ∘ₗ |
| 431 | (A (.id _)).mulVecLin = 0 := by |
| 432 | -- For each `k > 0` some complex number has order `k`. |
| 433 | have infinite : {z : ℂ | 0 < orderOf z}.Infinite := (Set.Ioi_infinite 0).preimage |
| 434 | fun k hk ↦ ⟨_, (Complex.isPrimitiveRoot_exp k hk.ne').eq_orderOf.symm⟩ |
| 435 | refine GL.ext_weylEval 0 (fun y hy _ ↦ ?_) infinite |
| 436 | simp only [LinearMap.comp_apply, LinearMap.zero_apply, mkQ_apply, Quotient.mk_eq_zero] |
| 437 | -- The entries of y are roots of unity, hence of absolute value 1 in every normed field. |
| 438 | have norm_le {R : Type} [NormedField R] (f : ℂ →+* R) (x : (Σ _ : InfinitePlace E, n) × ℕ) : |
| 439 | ‖f (y x)‖ ≤ 1 := (f.isOfFinOrder (by simpa using hy x)).norm_eq_one.le |
| 440 | exact subset_span <| isShort_deltaForm free (fun p _ _ ↦ ev_int p y (norm_le _)) |
| 441 | fun σ ↦ ev_le σ y (norm_le _) |
| 442 | -- As `A` is invertible, every delta form at `c` lies in the span of the short forms. |
| 443 | have h_unit : IsUnit (A (.id ℂ)) := ((Group.isUnit _).map _).smul _ |
| 444 | have h_surj : Function.Surjective (A (.id ℂ)).mulVecLin := |
| 445 | mulVec_surjective_iff_isUnit.2 h_unit |
| 446 | rw [← LinearMap.zero_comp (A (.id _)).mulVecLin, LinearMap.cancel_right h_surj] at h_zero |
| 447 | exact (Quotient.mk_eq_zero _).1 (LinearMap.congr_fun h_zero _) |
| 448 | |
| 449 | /-- The representation of the norm-one finite adeles, acting by translation by scalar matrices, |
| 450 | on algebraic forms of weight (κ, e) on which J acts through χ. -/ |
| 451 | def algFormCentralRep {J : Subgroup (Gf E n)} {χ : J →* ℂ} : |
| 452 | Representation ℂ (unitary (𝔸f E)) (levelSpace (algFormRep κ e) J χ) := |
| 453 | Representation.subrepresentation ((algFormRep κ e).comp (scalarFin n)) |
| 454 | (levelSpace (algFormRep κ e) J χ) fun _ _ hφ ↦ map_mem_levelSpace_of_commute hφ fun k ↦ |
| 455 | (Seesaw.commute_scalarFin k.val).symm.map (algFormRep κ e) |
| 456 | |
| 457 | /-- For `φ` in the level space of `algFormRep κ e` for `J` and `χ`, the form underlying |
| 458 | `algFormCentralRep z φ` is `φ` right-translated by the scalar matrix `scalarFin n z` under |
| 459 | `algFormRep κ e`. -/ |
| 460 | lemma coe_algFormCentralRep_apply {J : Subgroup (Gf E n)} {χ : J →* ℂ} (z : unitary (𝔸f E)) |
| 461 | (φ : levelSpace (algFormRep κ e) J χ) : |
| 462 | (algFormCentralRep z φ).val = algFormRep κ e (scalarFin n z) φ.val := |
| 463 | rfl |
| 464 | |
| 465 | private lemma one_sub_dvd_natCast_sub_geom_sum {R : Type*} [Ring R] (x : R) (r : ℕ) : |
| 466 | 1 - x ∣ (r : R) - ∑ i ∈ range r, x ^ i := by |
| 467 | rw [show (r : R) - ∑ i ∈ range r, x ^ i = ∑ i ∈ range r, (1 - x ^ i) by simp] |
| 468 | exact dvd_sum fun i _ ↦ one_sub_dvd_one_sub_pow x i |
| 469 | |
| 470 | /-- Let `T` be an endomorphism of a complex vector space with `T ^ r = 1`, where `r ≠ 0`. The |
| 471 | vectors `T ^ i φ`, `0 ≤ i < r`, have sum `0` if and only if `φ = ψ - T ψ` for some vector `ψ`. -/ |
| 472 | lemma sum_pow_apply_eq_zero_iff_exists_eq_sub {V : Type*} [AddCommGroup V] [Module ℂ V] |
| 473 | {T : Module.End ℂ V} {r : ℕ} (hr : (r : ℂ) ≠ 0) (hT : T ^ r = 1) (φ : V) : |
| 474 | ∑ i ∈ range r, (T ^ i) φ = 0 ↔ ∃ ψ : V, φ = ψ - T ψ := by |
| 475 | rw [← LinearMap.sum_apply] |
| 476 | constructor |
| 477 | · intro h_sum |
| 478 | -- The operator `r - ∑ T ^ i` is the scalar `r` on `φ`, and `1 - T` divides it. |
| 479 | obtain ⟨S, hS⟩ := one_sub_dvd_natCast_sub_geom_sum T r |
| 480 | have h_scalar : (r : ℂ) • φ = S φ - T (S φ) := |
| 481 | calc |
| 482 | (r : ℂ) • φ = ((r : Module.End ℂ V) - ∑ i ∈ range r, T ^ i) φ := by |
| 483 | simp [h_sum, Nat.cast_smul_eq_nsmul] |
| 484 | _ = S φ - T (S φ) := by simp [hS] |
| 485 | refine ⟨(r : ℂ)⁻¹ • S φ, ?_⟩ |
| 486 | rw [map_smul, ← smul_sub, ← h_scalar, inv_smul_smul₀ hr] |
| 487 | · rintro ⟨ψ, rfl⟩ |
| 488 | calc |
| 489 | (∑ i ∈ range r, T ^ i) (ψ - T ψ) = ((∑ i ∈ range r, T ^ i) * (1 - T)) ψ := by simp |
| 490 | _ = 0 := by rw [geom_sum_mul_neg, hT, sub_self, LinearMap.zero_apply] |
| 491 | |
| 492 | /-- Let `π` be a complex representation of a commutative group and `z w` a finite family of |
| 493 | elements with `π (z w) ^ r = 1`, where `r ≠ 0`. The vectors whose translates by `z w ^ i`, |
| 494 | `0 ≤ i < r`, have sum `0` for each `w` are the image of the product of the operators `1 - z w`. -/ |
| 495 | lemma iInf_ker_sum_pow_eq_range {G V ι : Type*} [CommGroup G] [AddCommGroup V] [Module ℂ V] |
| 496 | [Fintype ι] (π : Representation ℂ G V) (z : ι → G) {r : ℕ} (hr : (r : ℂ) ≠ 0) |
| 497 | (hz : ∀ w : ι, π (z w) ^ r = 1) : |
| 498 | ⨅ w : ι, LinearMap.ker (∑ i ∈ range r, π (z w) ^ i) = |
| 499 | (π.asAlgebraHom (∏ w : ι, (1 - .of ℂ G (z w)))).range := by |
| 500 | classical |
| 501 | -- Compute in the commutative group algebra, with `σ w = ∑ i < r, z w ^ i`. |
| 502 | let ρ : MonoidAlgebra ℂ G →ₐ[ℂ] Module.End ℂ V := π.asAlgebraHom |
| 503 | let y (w : ι) : MonoidAlgebra ℂ G := .of ℂ G (z w) |
| 504 | let σ (w : ι) : MonoidAlgebra ℂ G := ∑ i ∈ range r, y w ^ i |
| 505 | have h_mem (φ : V) : |
| 506 | φ ∈ ⨅ w : ι, LinearMap.ker (∑ i ∈ range r, π (z w) ^ i) ↔ ∀ w, ρ (σ w) φ = 0 := by |
| 507 | simp only [Submodule.mem_iInf, LinearMap.mem_ker, ρ, σ, y, map_sum, map_pow, |
| 508 | Representation.asAlgebraHom_of] |
| 509 | change _ = (ρ (∏ w, (1 - y w))).range |
| 510 | refine le_antisymm (fun φ hφ ↦ ?_) ?_ |
| 511 | · -- On a vector killed by `σ w` the element `r - σ w` is the scalar `r`; `1 - z w` divides it. |
| 512 | have h_scalar (s : Finset ι) : ρ (∏ w ∈ s, (↑r - σ w)) φ = (r : ℂ) ^ #s • φ := by |
| 513 | induction s using cons_induction with |
| 514 | | empty => simp |
| 515 | | cons w s hw ih => |
| 516 | have h_factor : ρ (↑r - σ w) φ = (r : ℂ) • φ := by |
| 517 | simp [(h_mem φ).1 hφ w, Nat.cast_smul_eq_nsmul] |
| 518 | simp only [prod_cons, map_mul, mul_apply_eq_comp, ih, map_smul, h_factor, card_cons, |
| 519 | pow_succ, mul_smul] |
| 520 | have h_dvd : ∀ w ∈ (univ : Finset ι), 1 - y w ∣ ↑r - σ w := |
| 521 | fun w _ ↦ one_sub_dvd_natCast_sub_geom_sum (y w) r |
| 522 | obtain ⟨q, hq⟩ := prod_dvd_prod_of_dvd _ _ h_dvd |
| 523 | rw [← smul_mem_iff _ (pow_ne_zero _ hr), ← h_scalar univ, hq, map_mul] |
| 524 | exact ⟨ρ q φ, (mul_apply_eq_comp _ _ φ).symm⟩ |
| 525 | · -- `σ w * (1 - z w) = 1 - z w ^ r` acts as `0`. |
| 526 | rintro _ ⟨ψ, rfl⟩ |
| 527 | refine (h_mem _).2 fun w ↦ ?_ |
| 528 | have h_zero : ρ (σ w * (1 - y w)) = 0 := by |
| 529 | rw [geom_sum_mul_neg, map_sub, map_one, map_pow, Representation.asAlgebraHom_of, hz, |
| 530 | sub_self] |
| 531 | rw [← mul_apply_eq_comp, ← map_mul, prod_eq_mul_prod_compl w, ← mul_assoc, map_mul, h_zero, |
| 532 | zero_mul, LinearMap.zero_apply] |
| 533 | |
| 534 | /-- For levels `K' ≤ K` such that `classAut stdRatPoints K g` and `classAut stdRatPoints K' g` are |
| 535 | trivial for every `g`, the dimension of `levelSpace (algFormRep κ e) K'` is `[K : K']` times the |
| 536 | dimension of `levelSpace (algFormRep κ e) K`. -/ |
| 537 | lemma relIndex_mul_finrank_levelSpace {K K' : Subgroup (Gf E n)} [IsLevel K] [IsLevel K'] |
| 538 | (h_le : K' ≤ K) (K_free : ∀ g : Gf E n, classAut stdRatPoints K g = ⊥) |
| 539 | (K'_free : ∀ g : Gf E n, classAut stdRatPoints K' g = ⊥) : |
| 540 | (K'.relIndex K : ℝ) * Module.finrank ℂ (levelSpace (algFormRep κ e) K) = |
| 541 | Module.finrank ℂ (levelSpace (algFormRep κ e) K') := by |
| 542 | -- At a free level the dimension is the number of classes times the dimension of the weight, |
| 543 | -- and the number of classes is multiplied by the index (`classSum_one_of_le`). |
| 544 | simp only [finrank_levelSpace_smoothFormRep K_free, finrank_levelSpace_smoothFormRep K'_free, |
| 545 | Nat.cast_mul, mul_assoc, card_classes_eq_classSum K_free, card_classes_eq_classSum K'_free, |
| 546 | classSum_one_of_le h_le] |
| 547 | |
| 548 | /-- If a set `S` spans a module and an endomorphism `f` with image `W` maps `S` into `T`, then |
| 549 | the elements of `W` that lie in `T` span `W`. -/ |
| 550 | lemma span_setOf_mem_eq_top_of_eq_range {R V : Type*} [Semiring R] [AddCommMonoid V] [Module R V] |
| 551 | {f : Module.End R V} {W : Submodule R V} (hW : W = f.range) {S T : Set V} |
| 552 | (hS : span R S = ⊤) (h_maps : Set.MapsTo f S T) : |
| 553 | span R {φ : W | φ.val ∈ T} = ⊤ := by |
| 554 | subst hW |
| 555 | have h_image : span R (f.rangeRestrict '' S) = ⊤ := by |
| 556 | rw [span_image, hS, Submodule.map_top, LinearMap.range_rangeRestrict] |
| 557 | refine eq_top_mono (span_mono ?_) h_image |
| 558 | rintro _ ⟨φ, hφ, rfl⟩ |
| 559 | exact h_maps hφ |
| 560 | |
| 561 | namespace Data |
| 562 | |
| 563 | open Representation Module Valued Subgroup |
| 564 | |
| 565 | /-! ### The levels and the scaling generators at the primes dividing `D.piN` -/ |
| 566 | |
| 567 | /-- Neither a place `w` above the prime `D.N` nor its conjugate is a chosen place |
| 568 | (`New.Data.IsChosen`), as the chosen places lie above the smaller primes `D.levelPrime i`. -/ |
| 569 | lemma not_isChosen_of_N_mem {P : Parameters} (D : Data P) {w : FinPlace D.E} |
| 570 | (hw : ↑D.N ∈ w.asIdeal) : |
| 571 | ¬D.IsChosen w ∧ ¬D.IsChosen (star w) := by |
| 572 | -- A chosen place has norm a prime `D.levelPrime i < D.N`; `w` and `star w` have norm `D.N`. |
| 573 | have h_norm : w.q = D.N := P.q_eq_of_modEq_one D.N_modEq_one hw |
| 574 | have h_not_chosen (u : FinPlace D.E) (hu : u.q = D.N) (h_chosen : D.IsChosen u) : False := by |
| 575 | obtain ⟨i, -, h_above⟩ := D.isChosen_iff.1 h_chosen |
| 576 | have h_lt : D.levelPrime i < D.N := Nat.cast_lt.1 (D.levelPrime_mem_Ioo i).2 |
| 577 | have h_eq : D.levelPrime i = D.N := by rw [← D.q_eq_levelPrime h_above, hu] |
| 578 | exact h_lt.ne h_eq |
| 579 | exact ⟨h_not_chosen w h_norm, h_not_chosen (star w) (by rw [q_star, h_norm])⟩ |
| 580 | |
| 581 | /-- Let `D` be admissible data, with CM field `E = D.E` and integer `π = D.piN` of `E` with `π π̄` |
| 582 | prime. The chain of theta lifts passes through hermitian spaces `X_j` of rank `D.n j`, with basis |
| 583 | indexed by `D.X j` and last index `Sum.inr ()`. An element `k` of the finite adelic unitary group |
| 584 | `Gf D.E (D.X j)` of `X_j` lies in the level `D.levelX j` if and only if it lies in `D.chosenLevel` |
| 585 | and, at every prime `w` dividing `π`, the last row of `k_w - 1` vanishes modulo `w`. Here |
| 586 | `k_w = k.atPlace w` is the component of `k` at `w`, and `v` is the valuation of the completion |
| 587 | `E_w`, which gives a uniformizer the value `exp (-1)`. -/ |
| 588 | lemma mem_levelX {P : Parameters} (D : Data P) {j : ℕ} {k : Gf D.E (D.X j)} : |
| 589 | k ∈ D.levelX j ↔ |
| 590 | k ∈ D.chosenLevel ∧ |
| 591 | ∀ w ∈ D.piNPlaces, ∀ b : D.X j, |
| 592 | v (((k.atPlace w).val - 1) (Sum.inr ()) b) ≤ WithZero.exp (-1) := by |
| 593 | rw [levelX, Subgroup.mem_inf] |
| 594 | refine and_congr_right fun hk ↦ ?_ |
| 595 | have h_int : k ∈ stdLevel D.E (D.X j) := levelOf_le_stdLevel hk |
| 596 | -- Besides integrality, membership says that each entry of the last row of `k - 1` lies in `(π)`. |
| 597 | have h_cong : k.val ∈ congruenceGL (Ô D.E ∙ algebraMap (𝓞 D.E) (𝔸f D.E) D.piN) Sum.inr ↔ |
| 598 | ∀ b : D.X j, (k.val.val - 1) (Sum.inr ()) b ∈ Ô D.E ∙ algebraMap (𝓞 D.E) (𝔸f D.E) D.piN := |
| 599 | ⟨fun h b ↦ h.2 () b, fun h ↦ ⟨h_int, fun _ ↦ h⟩⟩ |
| 600 | have h_entry (b : D.X j) : |
| 601 | (k.val.val - 1) (Sum.inr ()) b ∈ Ô D.E ∙ algebraMap (𝓞 D.E) (𝔸f D.E) D.piN ↔ |
| 602 | ∀ w ∈ D.piNPlaces, v (((k.atPlace w).val - 1) (Sum.inr ()) b) ≤ WithZero.exp (-1) := by |
| 603 | rw [sub_one_mem_span_iff_atPlace h_int] |
| 604 | simp +contextual only [D.mem_piNPlaces, D.intValuation_piN] |
| 605 | rw [Subgroup.mem_subgroupOf, h_cong, forall_congr' h_entry] |
| 606 | tauto |
| 607 | |
| 608 | /-- Let `S` be a set of places above `N`, and take the finite adelic unitary group of the space |
| 609 | `X_j` of stage `j`. An integral element (`stdLevel`) with component `1` off `S` and its conjugates |
| 610 | lies in the principal congruence subgroup `D.chosenLevel`. -/ |
| 611 | lemma inf_supportedOn_le_chosenLevel {P : Parameters} (D : Data P) {j : ℕ} |
| 612 | {S : Set (FinPlace D.E)} (hS : ∀ w ∈ S, ↑D.N ∈ w.asIdeal) : |
| 613 | stdLevel D.E (D.X j) ⊓ Gf.supportedOn (D.X j) S ≤ D.chosenLevel := |
| 614 | (inf_supportedOn_le_principalLevel fun w hw ↦ D.not_isChosen_of_N_mem (hS w hw)).trans |
| 615 | (D.principalLevel_le_chosenLevel dvd_rfl) |
| 616 | |
| 617 | /-- The scalings at a prime `w` dividing `π = D.piN`: the integral ideles of norm one that are `1` |
| 618 | off `w` and its conjugate. -/ |
| 619 | def IsScalingAt {P : Parameters} (D : Data P) (w : D.piNPlaces) (z : unitary (𝔸f D.E)) : Prop := |
| 620 | z.val ∈ Ô D.E ∧ ∀ u : FinPlace D.E, u ≠ w.val → star u ≠ w.val → z.val u = 1 |
| 621 | |
| 622 | /-- Let `D` be admissible data, with CM field `E = D.E`, prime `N = D.N` and integer `π = D.piN` of |
| 623 | `E` with `π π̄ = N`. Let `w` be a prime of `E` dividing `π`; its residue field has `N` elements. |
| 624 | There is a scaling `z` at `w` whose component `z_w` generates the units of the residue field: |
| 625 | `z_w ^ i` is congruent to `1` modulo `w` if and only if `N - 1` divides `i`. -/ |
| 626 | lemma exists_isScalingAt_valuation_pow_iff {P : Parameters} (D : Data P) (w : D.piNPlaces) : |
| 627 | ∃ z : unitary (𝔸f D.E), |
| 628 | D.IsScalingAt w z ∧ ∀ i : ℕ, v (z.val w ^ i - 1) < 1 ↔ D.N - 1 ∣ i := by |
| 629 | -- Let `x` be a local unit at `w` that generates the cyclic group of units of the residue field, |
| 630 | -- which has `D.N - 1` elements; take the idele of `x` divided by its conjugate. |
| 631 | obtain ⟨x, hx⟩ : ∃ x : (LocInt w.val).unitGroup, |
| 632 | orderOf ((LocInt w.val).unitGroupToResidueFieldUnits x) = Nat.card (ResField w.val)ˣ := |
| 633 | (LocInt w.val).surjective_unitGroupToResidueFieldUnits.exists.1 |
| 634 | IsCyclic.exists_ofOrder_eq_natCard |
| 635 | have h_split : star w.val ≠ w := |
| 636 | (ne_of_mem_of_not_mem w.property (D.isSplitLevel_piNPlaces.star_notMem w w.property)).symm |
| 637 | have h_order (i : ℕ) : v (((x : (LocField w.val)ˣ) : LocField w.val) ^ i - 1) < 1 ↔ |
| 638 | D.N - 1 ∣ i := by |
| 639 | rw [← D.isSplitLevel_piNPlaces.q_eq w w.property, ← card_ResField, ← Nat.card_units, ← hx, |
| 640 | orderOf_dvd_iff_pow_eq_one] |
| 641 | exact ⟨fun h ↦ Units.ext (residue_eq_iff_valuation_sub_lt_one.2 h), |
| 642 | fun h ↦ residue_eq_iff_valuation_sub_lt_one.1 (Units.ext_iff.1 h)⟩ |
| 643 | have h_idele {y : (LocField w.val)ˣ} (hy : v y.val = 1) (u : FinPlace D.E) : |
| 644 | v ((locIdele w.val y).val u) = 1 := |
| 645 | mem_idelesUnitOff.1 (locIdele_mem_idelesUnitOff (S := ∅) hy) u (Set.notMem_empty u) |
| 646 | refine ⟨divStar (locIdele w x), ⟨?_, fun u hu hu_star ↦ ?_⟩, fun i ↦ ?_⟩ |
| 647 | · simp [coe_divStar, ← map_inv, mem_Ô, h_idele, (v.mem_unitGroup_iff _ _).1 x.property] |
| 648 | · simp [coe_divStar, ← map_inv, hu, hu_star] |
| 649 | · -- As `w` splits, the component at `w` is `x`. |
| 650 | simpa [coe_divStar, ← map_inv, h_split, ← WithZero.exp_add] using h_order i |
| 651 | |
| 652 | /-- A chosen scaling `z_w` at a prime `w` dividing `π`: it is integral, it is `1` off `w` and its |
| 653 | conjugate, and its component at `w` has order `N - 1` modulo `w`, so it reduces to a generator of |
| 654 | the units of the residue field. -/ |
| 655 | def scalingGenerator {P : Parameters} (D : Data P) (w : D.piNPlaces) : unitary (𝔸f D.E) := |
| 656 | (D.exists_isScalingAt_valuation_pow_iff w).choose |
| 657 | |
| 658 | lemma isScalingAt_scalingGenerator {P : Parameters} (D : Data P) (w : D.piNPlaces) : |
| 659 | D.IsScalingAt w (D.scalingGenerator w) := |
| 660 | (D.exists_isScalingAt_valuation_pow_iff w).choose_spec.1 |
| 661 | |
| 662 | /-- The `i`-th power of the component at `w` of the chosen scaling `z_w = D.scalingGenerator w` is |
| 663 | congruent to `1` modulo `w` if and only if `N - 1` divides `i`. -/ |
| 664 | lemma valuation_scalingGenerator_pow_sub_one_lt_one_iff {P : Parameters} (D : Data P) |
| 665 | (w : D.piNPlaces) (i : ℕ) : |
| 666 | v ((D.scalingGenerator w).val w ^ i - 1) < 1 ↔ D.N - 1 ∣ i := |
| 667 | (D.exists_isScalingAt_valuation_pow_iff w).choose_spec.2 i |
| 668 | |
| 669 | /-- The scalar matrix of a scaling `z` at `w` (integral, and `1` off `w` and its conjugate) lies in |
| 670 | the maximal compact subgroup at `w`. -/ |
| 671 | lemma scalarFin_mem_maxCompactAt_of_isScalingAt {P : Parameters} (D : Data P) (w : D.piNPlaces) |
| 672 | (ι : Type) [Fintype ι] [DecidableEq ι] {z : unitary (𝔸f D.E)} (hz : D.IsScalingAt w z) : |
| 673 | scalarFin ι z ∈ maxCompactAt ι w := by |
| 674 | obtain ⟨h_int, h_supp⟩ := hz |
| 675 | refine ⟨mem_stdLevel.2 fun i j ↦ ?_, Gf.mem_supportedOn.2 fun u hu hu_star ↦ Units.ext ?_⟩ |
| 676 | · simp [scalarFin, diagonal_apply, ite_mem, h_int] |
| 677 | · rw [scalarFin_atPlace, h_supp u hu hu_star] |
| 678 | exact diagonal_one |
| 679 | |
| 680 | /-- The scalar matrix of the chosen scaling `z_w = D.scalingGenerator w` lies in the maximal compact |
| 681 | subgroup at `w`. -/ |
| 682 | lemma scalarFin_scalingGenerator_mem_maxCompactAt {P : Parameters} (D : Data P) (w : D.piNPlaces) |
| 683 | (ι : Type) [Fintype ι] [DecidableEq ι] : |
| 684 | scalarFin ι (D.scalingGenerator w) ∈ maxCompactAt ι w := |
| 685 | D.scalarFin_mem_maxCompactAt_of_isScalingAt w ι (D.isScalingAt_scalingGenerator w) |
| 686 | |
| 687 | /-- The scalar matrix, of size `D.X j`, of the chosen scaling `z_w = D.scalingGenerator w` lies in |
| 688 | the principal congruence subgroup `D.chosenLevel`. -/ |
| 689 | lemma scalarFin_scalingGenerator_mem_chosenLevel {P : Parameters} (D : Data P) {j : ℕ} |
| 690 | (w : D.piNPlaces) : |
| 691 | scalarFin (D.X j) (D.scalingGenerator w) ∈ D.chosenLevel := |
| 692 | D.inf_supportedOn_le_chosenLevel (by simp [D.isSplitLevel_piNPlaces.natCast_level_mem]) |
| 693 | (D.scalarFin_scalingGenerator_mem_maxCompactAt w _) |
| 694 | |
| 695 | /-- Let `D` be admissible data (`New.Data`), with CM field `E = D.E`, prime `N = D.N` and integer |
| 696 | `π = D.piN` of `E` with `π π̄ = N`, and let `w` be a prime dividing `π`. The chosen scaling |
| 697 | `z_w = D.scalingGenerator w` is an integral finite idele with `z_w z̄_w = 1` that is `1` off `w` and |
| 698 | its conjugate and has order `N - 1` modulo `w`; `scalarFin (D.X j) z_w` is its scalar matrix with |
| 699 | rows indexed by `D.X j`. The `i`-th power of this matrix lies in the level `D.levelX j` if and only |
| 700 | if `N - 1` divides `i`. -/ |
| 701 | lemma scalarFin_scalingGenerator_pow_mem_levelX_iff {P : Parameters} (D : Data P) {j : ℕ} |
| 702 | (w : D.piNPlaces) (i : ℕ) : |
| 703 | scalarFin (D.X j) (D.scalingGenerator w) ^ i ∈ D.levelX j ↔ D.N - 1 ∣ i := by |
| 704 | rw [← D.valuation_scalingGenerator_pow_sub_one_lt_one_iff w i, mem_levelX, |
| 705 | and_iff_right (pow_mem (D.scalarFin_scalingGenerator_mem_chosenLevel w) i)] |
| 706 | -- At a place `u` the matrix `z_w ^ i - 1` is the scalar `(z_w u) ^ i - 1`. |
| 707 | have h_entry (u : FinPlace D.E) : |
| 708 | ((scalarFin (D.X j) (D.scalingGenerator w) ^ i).atPlace u).val - 1 = |
| 709 | Matrix.diagonal fun _ ↦ (D.scalingGenerator w).val u ^ i - 1 := by |
| 710 | simp [← map_pow, scalarFin_atPlace, ← diagonal_one, diagonal_sub] |
| 711 | simp only [h_entry, TauCeti.lt_one_iff_le_exp_neg_one] |
| 712 | -- The congruence at `w` is the condition on the right; at the other `u ∣ π` the scaling is `1`. |
| 713 | refine ⟨fun h_cong ↦ ?_, fun h_cong u hu b ↦ ?_⟩ |
| 714 | · simpa only [diagonal_apply_eq] using h_cong w w.property (.inr ()) |
| 715 | obtain rfl | hne := eq_or_ne u w |
| 716 | · cases b <;> simp [h_cong] |
| 717 | · have h_star : star u ≠ w := fun h_eq ↦ |
| 718 | D.isSplitLevel_piNPlaces.star_notMem u hu (by simpa only [h_eq] using w.property) |
| 719 | simp [(D.isScalingAt_scalingGenerator w).2 u hne h_star] |
| 720 | |
| 721 | /-! ### Ramified source forms -/ |
| 722 | |
| 723 | /-- The representation of the norm-one finite adeles U(1)(𝔸_f) on source forms, by right translation |
| 724 | by scalar matrices. -/ |
| 725 | def centralRep {P : Parameters} (D : Data P) : Representation ℂ (unitary (𝔸f D.E)) D.SourceForm := |
| 726 | algFormCentralRep |
| 727 | |
| 728 | /-- On the underlying forms, `z` acts by right translation by its scalar matrix. -/ |
| 729 | lemma coe_centralRep_apply {P : Parameters} (D : Data P) (z : unitary (𝔸f D.E)) (φ : D.SourceForm) : |
| 730 | (D.centralRep z φ).val = algFormRep D.columnCount (D.lastEntry 0) (scalarFin (D.X 0) z) φ.val := |
| 731 | rfl |
| 732 | |
| 733 | /-- Let `D` be admissible data for the parameters `P`, with CM field `E = D.E`, prime `N = D.N` and |
| 734 | integer `π = D.piN` of `E` with `π π̄ = N`, and let `w` be a prime dividing `π`. The finite adelic |
| 735 | unitary group of `X_j` acts by right translation (`algFormRep`) on the algebraic forms whose weight |
| 736 | at each infinite place `τ` has `D.columnCount τ h` columns of height `h` and last entry |
| 737 | `D.lastEntry j τ`; `levelSpace` is the subspace fixed by the level `D.levelX j`. On it a finite |
| 738 | idele `z` with `z z̄ = 1` acts by translation by its scalar matrix (`algFormCentralRep`). For |
| 739 | `z = D.scalingGenerator w`, which is `1` off `w` and its conjugate and has order `N - 1` modulo `w`, |
| 740 | the `(N - 1)`-th power of this operator is the identity. -/ |
| 741 | lemma algFormCentralRep_scalingGenerator_pow {P : Parameters} (D : Data P) {j : ℕ} |
| 742 | (w : D.piNPlaces) : |
| 743 | (algFormCentralRep (D.scalingGenerator w) : |
| 744 | End ℂ (levelSpace (algFormRep D.columnCount (D.lastEntry j)) (D.levelX j))) ^ (D.N - 1) = |
| 745 | 1 := by |
| 746 | refine LinearMap.ext fun φ ↦ Subtype.ext ?_ |
| 747 | have h_mem : scalarFin (D.X j) (D.scalingGenerator w) ^ (D.N - 1) ∈ D.levelX j := |
| 748 | (D.scalarFin_scalingGenerator_pow_mem_levelX_iff w (D.N - 1)).2 dvd_rfl |
| 749 | rw [← map_pow] at h_mem ⊢ |
| 750 | rw [coe_algFormCentralRep_apply] |
| 751 | simpa using mem_levelSpace.1 φ.property ⟨_, h_mem⟩ |
| 752 | |
| 753 | lemma centralRep_scalingGenerator_pow_eq_one {P : Parameters} (D : Data P) (w : D.piNPlaces) : |
| 754 | D.centralRep (D.scalingGenerator w) ^ (D.N - 1) = 1 := |
| 755 | D.algFormCentralRep_scalingGenerator_pow w |
| 756 | |
| 757 | /-- The ramified source forms: those for which, at each `w ∣ π`, the translates by the powers |
| 758 | `z_w ^ i`, `0 ≤ i < N - 1`, of the chosen scaling `z_w = D.scalingGenerator w` have sum `0`. -/ |
| 759 | def ramifiedSourceForms {P : Parameters} (D : Data P) : Submodule ℂ D.SourceForm := |
| 760 | ⨅ w : D.piNPlaces, LinearMap.ker (∑ i ∈ range (D.N - 1), D.centralRep (D.scalingGenerator w) ^ i) |
| 761 | |
| 762 | lemma cast_N_sub_one_ne_zero {P : Parameters} (D : Data P) : (↑(D.N - 1) : ℂ) ≠ 0 := |
| 763 | Nat.cast_ne_zero.2 (Nat.sub_ne_zero_of_lt D.N_prime.one_lt) |
| 764 | |
| 765 | /-- The product over `w ∈ s` of the operators `1 - z_w` on source forms, where |
| 766 | `z_w = D.scalingGenerator w` acts through `D.centralRep`. -/ |
| 767 | def ramifyingOp {P : Parameters} (D : Data P) (s : Finset D.piNPlaces) : |
| 768 | Module.End ℂ D.SourceForm := |
| 769 | D.centralRep.asAlgebraHom (∏ w ∈ s, (1 - .of ℂ _ (D.scalingGenerator w))) |
| 770 | |
| 771 | /-- For admissible data `D`, let `π = D.piN` be the integer of `E` with `π π̄ = N`, the prime `D.N`. |
| 772 | For each prime `w` dividing `π` the chosen scaling `z_w = D.scalingGenerator w` acts on source forms |
| 773 | by right translation by its scalar matrix. The ramified source forms, those whose translates by |
| 774 | `z_w ^ i`, `0 ≤ i < N - 1`, have sum `0` for each `w`, are the image of `D.ramifyingOp univ`, the |
| 775 | product of the operators `1 - z_w` over all `w` dividing `π`. -/ |
| 776 | lemma ramifiedSourceForms_eq_range {P : Parameters} (D : Data P) : |
| 777 | D.ramifiedSourceForms = (D.ramifyingOp univ).range := |
| 778 | iInf_ker_sum_pow_eq_range D.centralRep D.scalingGenerator D.cast_N_sub_one_ne_zero |
| 779 | D.centralRep_scalingGenerator_pow_eq_one |
| 780 | |
| 781 | /-- Let `D` be admissible data for the parameters `P`, with CM field `E = D.E`, prime `N = D.N` and |
| 782 | integer `π = D.piN` of `E` with `π π̄ = N`, and let `w` be a prime dividing `π`. The finite adelic |
| 783 | unitary group of `X_j` acts by right translation (`algFormRep`) on the algebraic forms whose weight |
| 784 | at each infinite place `τ` has `D.columnCount τ h` columns of height `h` and last entry |
| 785 | `D.lastEntry j τ`. Let `φ` lie in the subspace (`levelSpace`) fixed by the level `D.levelX j`. The |
| 786 | finite idele `z_w = D.scalingGenerator w` is `1` off `w` and its conjugate, has order `N - 1` modulo |
| 787 | `w`, and acts through its scalar matrix (`scalarFin`). The translates of `φ` by `z_w ^ i`, |
| 788 | `0 ≤ i < N - 1`, have sum `0` if and only if `φ = ψ - z_w ψ` for a form `ψ` of the same weight and |
| 789 | level. -/ |
| 790 | theorem sum_scalingGenerator_pow_eq_zero_iff_exists_eq_sub {P : Parameters} (D : Data P) {j : ℕ} |
| 791 | (w : D.piNPlaces) (φ : levelSpace (algFormRep D.columnCount (D.lastEntry j)) (D.levelX j)) : |
| 792 | ∑ i ∈ range (D.N - 1), algFormRep D.columnCount (D.lastEntry j) |
| 793 | (scalarFin (D.X j) (D.scalingGenerator w) ^ i) φ.val = 0 ↔ |
| 794 | ∃ ψ : levelSpace (algFormRep D.columnCount (D.lastEntry j)) (D.levelX j), |
| 795 | φ.val = ψ.val - algFormRep D.columnCount (D.lastEntry j) |
| 796 | (scalarFin (D.X j) (D.scalingGenerator w)) ψ.val := by |
| 797 | -- The operator `T` of `z_w` on the forms of this level has `T ^ (N - 1) = 1`. |
| 798 | let T : End ℂ (levelSpace (algFormRep D.columnCount (D.lastEntry j)) (D.levelX j)) := |
| 799 | algFormCentralRep (D.scalingGenerator w) |
| 800 | have h_iff : ∑ i ∈ range (D.N - 1), (T ^ i) φ = 0 ↔ |
| 801 | ∃ ψ : levelSpace (algFormRep D.columnCount (D.lastEntry j)) (D.levelX j), φ = ψ - T ψ := |
| 802 | sum_pow_apply_eq_zero_iff_exists_eq_sub D.cast_N_sub_one_ne_zero |
| 803 | (D.algFormCentralRep_scalingGenerator_pow w) φ |
| 804 | simpa only [T, Subtype.ext_iff, Submodule.coe_sum, Submodule.coe_sub, Submodule.coe_zero, |
| 805 | ← map_pow, coe_algFormCentralRep_apply] using h_iff |
| 806 | |
| 807 | /-- For admissible data `D`, let `π = D.piN` be the integer of `E` with `π π̄ = N`, the prime `D.N`. |
| 808 | The source forms `D.SourceForm` are the algebraic forms on the unitary group of `X_0`, of the weight |
| 809 | of `X_0`, fixed by the level `D.levelX 0`. For a prime `u` dividing `π` the chosen scaling |
| 810 | `z_u = D.scalingGenerator u` acts on them by right translation by its scalar matrix. Let `φ` be a |
| 811 | ramified source form: for each `u` its translates by `z_u ^ i`, `0 ≤ i < N - 1`, have sum `0`. Then |
| 812 | for each prime `w` dividing `π` there is a source form `ψ` with `φ = ψ - z_w ψ`. -/ |
| 813 | lemma exists_eq_sub_scalingGenerator {P : Parameters} (D : Data P) (w : D.piNPlaces) |
| 814 | {φ : D.SourceForm} (hφ : φ ∈ D.ramifiedSourceForms) : |
| 815 | ∃ ψ : D.SourceForm, |
| 816 | φ.val = ψ.val - algFormRep D.columnCount (D.lastEntry 0) |
| 817 | (scalarFin (D.X 0) (D.scalingGenerator w)) ψ.val := by |
| 818 | have h_sum : (∑ i ∈ range (D.N - 1), D.centralRep (D.scalingGenerator w) ^ i) φ = 0 := |
| 819 | (Submodule.mem_iInf _).1 hφ w |
| 820 | refine (D.sum_scalingGenerator_pow_eq_zero_iff_exists_eq_sub w φ).1 ?_ |
| 821 | simpa only [Subtype.ext_iff, LinearMap.sum_apply, Submodule.coe_sum, Submodule.coe_zero, |
| 822 | ← map_pow, coe_centralRep_apply] using h_sum |
| 823 | |
| 824 | /-- At each infinite place `τ`, the sum over heights `h` below the rank of `X_0` of |
| 825 | `h * D.columnCount τ h` is at most `a = D.a`. Here `D.columnCount τ h` counts the columns of height |
| 826 | `h` in the Young diagram of the weight of `D`. So that diagram has at most `a` boxes in those |
| 827 | columns. -/ |
| 828 | lemma sum_height_mul_columnCount_le {P : Parameters} (D : Data P) (τ : D.Φ) : |
| 829 | ∑ h ∈ range (Fintype.card (D.X 0)), h * D.columnCount τ h ≤ D.a := by |
| 830 | -- The rank is `k`, and below height `k` only columns of height `1` occur, at most `a` of them. |
| 831 | have h_zero (h : ℕ) (h_lt : h ∈ range D.k) (h_ne : h ≠ 1) : h * D.columnCount τ h = 0 := by |
| 832 | grind [columnCount] |
| 833 | rw [card_X, n, zero_mul, add_zero, sum_eq_ite 1 h_zero] |
| 834 | grind [columnCount] |
| 835 | |
| 836 | /-- If a level `K` contains the scalar matrix of the chosen scaling `z_w = D.scalingGenerator w`, |
| 837 | then the index in `K` of its intersection with the level `D.levelX 0` is at least `N - 1`. -/ |
| 838 | lemma N_sub_one_le_relIndex_levelX {P : Parameters} (D : Data P) (w : D.piNPlaces) |
| 839 | {K : Subgroup (Gf D.E (D.X 0))} [hK : IsLevel K] |
| 840 | (h_mem : scalarFin (D.X 0) (D.scalingGenerator w) ∈ K) : |
| 841 | D.N - 1 ≤ (D.levelX 0).relIndex K := by |
| 842 | -- Some power `z_w ^ i` with `0 < i ≤ index` lies in `levelX 0`, and then `N - 1 ∣ i`. |
| 843 | obtain ⟨i, hi_pos, hi_le, hi_mem, -⟩ := exists_pow_mem_of_relIndex_ne_zero |
| 844 | (hK.isCompact.relIndex_ne_zero D.isLevel_levelX.isOpen) h_mem |
| 845 | exact (Nat.le_of_dvd hi_pos |
| 846 | ((D.scalarFin_scalingGenerator_pow_mem_levelX_iff w i).1 hi_mem)).trans hi_le |
| 847 | |
| 848 | /-- For admissible data `D`, a source form `φ` fixed by the norm-one finite idele `z` under |
| 849 | `D.centralRep` is fixed by right translation by the group generated by `D.levelX 0` and the scalar |
| 850 | matrix `scalarFin (D.X 0) z`. -/ |
| 851 | lemma coe_mem_levelSpace_sup_zpowers {P : Parameters} (D : Data P) {z : unitary (𝔸f D.E)} |
| 852 | {φ : D.SourceForm} (hφ : D.centralRep z φ = φ) : |
| 853 | φ.val ∈ levelSpace (algFormRep D.columnCount (D.lastEntry 0)) |
| 854 | (D.levelX 0 ⊔ zpowers (scalarFin (D.X 0) z)) := by |
| 855 | let F : Gf D.E (D.X 0) → WeylIndex (D.X 0) D.columnCount → ℂ := φ.val |
| 856 | have h_level : D.levelX 0 ≤ rightStabilizer F := fun k hk g ↦ by |
| 857 | simpa using levelSpace_smoothFormRep_apply φ.property 1 g ⟨k, hk⟩ |
| 858 | have h_fixed : algFormRep D.columnCount (D.lastEntry 0) (scalarFin (D.X 0) z) φ.val = φ.val := by |
| 859 | rw [← coe_centralRep_apply, hφ] |
| 860 | have h_scalar : scalarFin (D.X 0) z ∈ rightStabilizer F := fun g ↦ |
| 861 | congrArg (fun ψ ↦ ψ.val g) h_fixed |
| 862 | refine mem_levelSpace.2 fun k ↦ ?_ |
| 863 | ext g a |
| 864 | have h_eq : F (g * k) = F g := sup_le h_level (zpowers_le.2 h_scalar) k.property g |
| 865 | simpa using congrFun h_eq a |
| 866 | |
| 867 | /-- For admissible data `D`, let `w` be a prime of `E` dividing `π = D.piN`, where `π π̄ = N` is the |
| 868 | prime `D.N`. The chosen scaling `z_w = D.scalingGenerator w` acts on the space `D.SourceForm` of |
| 869 | source forms through `D.centralRep`, by right translation by its scalar matrix. The source forms |
| 870 | fixed by `z_w` form a subspace of dimension at most `1 / (N - 1)` times the dimension of all source |
| 871 | forms. -/ |
| 872 | lemma finrank_ker_one_sub_scalingGenerator_le {P : Parameters} (D : Data P) (w : D.piNPlaces) : |
| 873 | finrank ℂ (1 - D.centralRep (D.scalingGenerator w)).ker ≤ |
| 874 | (D.N - 1 : ℝ)⁻¹ * finrank ℂ D.SourceForm := by |
| 875 | classical |
| 876 | -- The kernel is fixed by the level `K` generated by `levelX 0` and the scalar matrix of |
| 877 | -- `z_w = D.scalingGenerator w`. Both levels are free, so the dimensions differ by the factor |
| 878 | -- `[K : levelX 0]`, which is at least `N - 1`. |
| 879 | let K : Subgroup (Gf D.E (D.X 0)) := |
| 880 | D.levelX 0 ⊔ zpowers (scalarFin (D.X 0) (D.scalingGenerator w)) |
| 881 | have hK : K ≤ D.chosenLevel := |
| 882 | sup_le inf_le_left (zpowers_le.2 (D.scalarFin_scalingGenerator_mem_chosenLevel w)) |
| 883 | have K_level : IsLevel K := |
| 884 | ⟨hK.trans levelOf_le_stdLevel, isOpen_mono le_sup_left D.isLevel_levelX.isOpen⟩ |
| 885 | have index_ge : D.N - 1 ≤ (D.levelX 0).relIndex K := |
| 886 | D.N_sub_one_le_relIndex_levelX w (zpowers_le.1 le_sup_right) |
| 887 | have h_ker : finrank ℂ (1 - D.centralRep (D.scalingGenerator w)).ker ≤ |
| 888 | finrank ℂ (levelSpace (algFormRep D.columnCount (D.lastEntry 0)) K) := by |
| 889 | rw [← finrank_map_subtype_eq] |
| 890 | refine finrank_mono (map_le_iff_le_comap.2 fun φ hφ ↦ ?_) |
| 891 | have h_fixed : D.centralRep (D.scalingGenerator w) φ = φ := |
| 892 | (sub_eq_zero.1 (LinearMap.mem_ker.1 hφ)).symm |
| 893 | exact D.coe_mem_levelSpace_sup_zpowers h_fixed |
| 894 | have h_rank : Fintype.card (D.X 0) ≤ 2 * D.n D.m := by |
| 895 | rw [card_X] |
| 896 | exact (D.n_mono D.m.zero_le).trans (Nat.le_mul_of_pos_left _ two_pos) |
| 897 | have K_free : ∀ g : Gf D.E (D.X 0), classAut stdRatPoints K g = ⊥ := |
| 898 | D.classAut_eq_bot_of_le_chosenLevel hK h_rank |
| 899 | have h_dim : ((D.levelX 0).relIndex K : ℝ) * |
| 900 | finrank ℂ (levelSpace (algFormRep D.columnCount (D.lastEntry 0)) K) = |
| 901 | finrank ℂ D.SourceForm := |
| 902 | relIndex_mul_finrank_levelSpace le_sup_left K_free D.classAut_levelX_zero_eq_bot |
| 903 | have N_pos : (0 : ℝ) < D.N - 1 := sub_pos.2 (Nat.one_lt_cast.2 D.N_prime.one_lt) |
| 904 | have cast_index_ge : (D.N - 1 : ℝ) ≤ (D.levelX 0).relIndex K := |
| 905 | (Nat.cast_pred D.N_prime.pos).symm.trans_le (Nat.cast_le.2 index_ge) |
| 906 | refine (le_inv_mul_iff₀ N_pos).2 ?_ |
| 907 | calc (D.N - 1 : ℝ) * finrank ℂ (1 - D.centralRep (D.scalingGenerator w)).ker |
| 908 | ≤ (D.levelX 0).relIndex K * |
| 909 | finrank ℂ (levelSpace (algFormRep D.columnCount (D.lastEntry 0)) K) := |
| 910 | mul_le_mul cast_index_ge (Nat.cast_le.2 h_ker) (Nat.cast_nonneg _) (Nat.cast_nonneg _) |
| 911 | _ = finrank ℂ D.SourceForm := h_dim |
| 912 | |
| 913 | /-- The kernel of a product of two endomorphisms of a finite-dimensional space has dimension at most |
| 914 | the sum of the dimensions of the two kernels. -/ |
| 915 | lemma _root_.New.finrank_ker_mul_le {V : Type} [AddCommGroup V] [Module ℂ V] [Module.Finite ℂ V] |
| 916 | (f g : End ℂ V) : finrank ℂ (f * g).ker ≤ finrank ℂ f.ker + finrank ℂ g.ker := by |
| 917 | rw [End.mul_eq_comp, LinearMap.ker_comp, LinearMap.finrank_comap] |
| 918 | exact Nat.add_le_add_right (Submodule.finrank_mono inf_le_right) _ |
| 919 | |
| 920 | lemma ramifyingOp_empty {P : Parameters} (D : Data P) : D.ramifyingOp ∅ = 1 := by |
| 921 | simp [ramifyingOp] |
| 922 | |
| 923 | /-- Adding a prime `w ∉ s` to `s` multiplies `D.ramifyingOp s` on the left by `1 - z_w`, where |
| 924 | `z_w = D.scalingGenerator w` acts on source forms through `D.centralRep`. -/ |
| 925 | lemma ramifyingOp_cons {P : Parameters} (D : Data P) (w : D.piNPlaces) {s : Finset D.piNPlaces} |
| 926 | (hw : w ∉ s) : |
| 927 | D.ramifyingOp (cons w s hw) = (1 - D.centralRep (D.scalingGenerator w)) * D.ramifyingOp s := by |
| 928 | -- The ring map lemmas are applied through `toRingHom`: the instance search behind `map_mul` |
| 929 | -- for `D.centralRep.asAlgebraHom` times out. |
| 930 | let φ := D.centralRep.asAlgebraHom |
| 931 | rw [ramifyingOp, ramifyingOp, Finset.prod_cons, |
| 932 | show ∀ x y, φ (x * y) = φ x * φ y from φ.toRingHom.map_mul, |
| 933 | show ∀ x y, φ (x - y) = φ x - φ y from φ.toRingHom.map_sub, |
| 934 | show φ 1 = 1 from φ.toRingHom.map_one, Representation.asAlgebraHom_of] |
| 935 | |
| 936 | /-- For admissible data `D`, let `s` be a finite set of primes of `E` dividing `π = D.piN`, where |
| 937 | `π π̄ = N` is the prime `D.N`. For `w ∈ s` the chosen scaling `z_w = D.scalingGenerator w` acts on |
| 938 | the space `D.SourceForm` of source forms by right translation by its scalar matrix. The kernel of |
| 939 | `D.ramifyingOp s`, the product of the operators `1 - z_w` over `w ∈ s`, has dimension at most |
| 940 | `#s / (N - 1)` times the dimension of all source forms. -/ |
| 941 | lemma finrank_ker_ramifyingOp_le {P : Parameters} (D : Data P) (s : Finset D.piNPlaces) : |
| 942 | finrank ℂ (D.ramifyingOp s).ker ≤ #s * ((D.N - 1 : ℝ)⁻¹ * finrank ℂ D.SourceForm) := by |
| 943 | induction s using cons_induction with |
| 944 | | empty => simp [ramifyingOp_empty, End.one_eq_id] |
| 945 | | cons w s hw ih => |
| 946 | calc (finrank ℂ (D.ramifyingOp (cons w s hw)).ker : ℝ) |
| 947 | ≤ finrank ℂ (1 - D.centralRep (D.scalingGenerator w)).ker + |
| 948 | finrank ℂ (D.ramifyingOp s).ker := by |
| 949 | rw [D.ramifyingOp_cons w hw] |
| 950 | exact_mod_cast finrank_ker_mul_le _ _ |
| 951 | _ ≤ (D.N - 1 : ℝ)⁻¹ * finrank ℂ D.SourceForm + |
| 952 | #s * ((D.N - 1 : ℝ)⁻¹ * finrank ℂ D.SourceForm) := |
| 953 | add_le_add (D.finrank_ker_one_sub_scalingGenerator_le w) ih |
| 954 | _ = #(cons w s hw) * ((D.N - 1 : ℝ)⁻¹ * finrank ℂ D.SourceForm) := by |
| 955 | rw [card_cons, Nat.cast_succ, add_one_mul, add_comm] |
| 956 | |
| 957 | /-- The ramified source forms have dimension at least `1 - f / (N - 1)` times the dimension of all |
| 958 | source forms, where `f` is the number of infinite places of `E`. -/ |
| 959 | lemma le_finrank_ramifiedSourceForms {P : Parameters} (D : Data P) : |
| 960 | (1 - D.f / (D.N - 1 : ℝ)) * finrank ℂ D.SourceForm ≤ finrank ℂ D.ramifiedSourceForms := by |
| 961 | have h_rank : (finrank ℂ D.ramifiedSourceForms + finrank ℂ (D.ramifyingOp univ).ker : ℝ) = |
| 962 | finrank ℂ D.SourceForm := by |
| 963 | rw [ramifiedSourceForms_eq_range, ← Nat.cast_add, LinearMap.finrank_range_add_finrank_ker] |
| 964 | have h_ker : finrank ℂ (D.ramifyingOp univ).ker ≤ |
| 965 | D.f / (D.N - 1 : ℝ) * finrank ℂ D.SourceForm := by |
| 966 | simpa [card_piNPlaces, div_eq_mul_inv, mul_assoc] using D.finrank_ker_ramifyingOp_le univ |
| 967 | linarith |
| 968 | |
| 969 | /-- The proportion `f / (N - 1)` is at most `b⁻⁸`, because `f ≤ b` and `b⁹ + 1 ≤ N`. -/ |
| 970 | lemma f_div_N_sub_one_le {P : Parameters} (D : Data P) : D.f / (D.N - 1 : ℝ) ≤ (D.b ^ 8)⁻¹ := by |
| 971 | have hf : D.f ≤ D.b := D.le_of_hasLogBound |
| 972 | have hN : D.b ^ 9 ≤ D.N - 1 := le_sub_iff_add_le.2 D.le_of_hasLogBound |
| 973 | calc D.f / (D.N - 1 : ℝ) ≤ D.b / D.b ^ 9 := by gcongr |
| 974 | _ = (D.b ^ 8)⁻¹ := by field |
| 975 | |
| 976 | /-- If the source form `φ` is `B`-short, then `D.ramifyingOp s φ`, its image under the product of |
| 977 | the operators `1 - z_w` over `w ∈ s`, with `z_w = D.scalingGenerator w` acting by its scalar matrix, |
| 978 | is `4 ^ #s * B`-short. -/ |
| 979 | lemma isShort_ramifyingOp {P : Parameters} (D : Data P) (s : Finset D.piNPlaces) {B : ℝ} |
| 980 | {φ : D.SourceForm} (hφ : IsShort B φ.val) : |
| 981 | IsShort (4 ^ #s * B) (D.ramifyingOp s φ).val := by |
| 982 | induction s using cons_induction with |
| 983 | | empty => simpa [ramifyingOp_empty] using hφ |
| 984 | | cons w s hw ih => |
| 985 | rw [card_cons, pow_succ', mul_assoc] |
| 986 | simpa [ramifyingOp_cons, coe_centralRep_apply] using |
| 987 | ih.sub_translate (mem_of_le_of_mem inf_le_left |
| 988 | (D.scalarFin_scalingGenerator_mem_maxCompactAt w (D.X 0))) |
| 989 | |
| 990 | /-- For admissible data `D` (`New.Data`), let `f = D.f` be the number of infinite places of the |
| 991 | field `D.E`, let `x` and `b` be the scales of `D` and `a = x b`, so that |
| 992 | `D.errorUnit = f a (log b)³`. The source forms are spanned by those that are `B`-short for |
| 993 | `B = exp D.errorUnit / 4 ^ f`: their values are `p`-adically integral for every `p`, and all |
| 994 | conjugates of the values have squared norm at most `B`. -/ |
| 995 | lemma span_isShort_eq_top {P : Parameters} (D : Data P) : |
| 996 | span ℂ {φ : D.SourceForm | IsShort (D.errorUnit.exp / 4 ^ D.f) φ.val} = ⊤ := by |
| 997 | have h_boxes : boxes D.columnCount (Fintype.card (D.X 0)) ≤ D.f * D.a := by |
| 998 | simpa using sum_le_card_nsmul univ _ D.a fun τ _ ↦ D.sum_height_mul_columnCount_le τ |
| 999 | -- The base in `h_bound` is `shortBasisConst` for the rank `D.k` of `X_0` and the natural number |
| 1000 | -- `D.q₁ * P.d`, which lies in the different of `E`; `D.errorUnit` bounds its logarithm. |
| 1001 | have h_const : (shortBasisConst D.E (D.X 0) (D.q₁ * P.d) : ℝ) = |
| 1002 | 6 * (D.q₁ * P.d) * (D.f * D.k) ^ 2 := by |
| 1003 | simp [n] |
| 1004 | have h_bound : 4 ^ D.f * (6 * (D.q₁ * P.d) * (D.f * D.k) ^ 2 : ℝ) ^ |
| 1005 | (6 * (D.k * D.f + D.f * D.a)) ≤ D.errorUnit.exp := |
| 1006 | Real.le_exp_of_log_le <| D.le_of_hasLogBound (h_exp := by |
| 1007 | scale_grind D) |
| 1008 | have h_rank : Fintype.card (D.X 0) = D.k := by rw [card_X, n, zero_mul, add_zero] |
| 1009 | refine New.span_isShort_eq_top D.classAut_levelX_zero_eq_bot P.conductor_mem_differentIdeal |
| 1010 | (Nat.add_le_add_left h_boxes _) ?_ |
| 1011 | rw [le_div_iff₀' (by positivity), h_const, h_rank] |
| 1012 | exact h_bound |
| 1013 | |
| 1014 | /-- The ramified source forms `D.ramifiedSourceForms` are spanned by those that are `B`-short for |
| 1015 | `B = exp D.errorUnit`: their values are `p`-adically integral for every `p`, and all conjugates of |
| 1016 | the values have squared norm at most `B`. -/ |
| 1017 | lemma span_isShort_ramifiedSourceForms_eq_top {P : Parameters} (D : Data P) : |
| 1018 | span ℂ {φ : D.ramifiedSourceForms | IsShort D.errorUnit.exp (φ : D.SourceForm).val} = ⊤ := by |
| 1019 | -- The `Z`-short source forms span, and `∏ (1 - z_w)` makes them `4 ^ f Z`-short. |
| 1020 | let Z : ℝ := D.errorUnit.exp / 4 ^ D.f |
| 1021 | have h_maps : Set.MapsTo (D.ramifyingOp univ) {φ : D.SourceForm | IsShort Z φ.val} |
| 1022 | {φ : D.SourceForm | IsShort D.errorUnit.exp φ.val} := by |
| 1023 | intro φ hφ |
| 1024 | simpa [Z, card_piNPlaces, mul_div_cancel₀] using D.isShort_ramifyingOp univ hφ |
| 1025 | exact span_setOf_mem_eq_top_of_eq_range (T := {φ : D.SourceForm | IsShort D.errorUnit.exp φ.val}) |
| 1026 | D.ramifiedSourceForms_eq_range D.span_isShort_eq_top h_maps |
| 1027 | |
| 1028 | end Data |
| 1029 | |
| 1030 | end New |
| 1031 | |
| 1032 | end |