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

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.Order.Star.Int |
| 4 | import Mathlib.Algebra.Ring.IsFormallyReal |
| 5 | import Mathlib.Data.Rat.Cast.OfScientific |
| 6 | public import New.OneLift.ComparisonOperator.LineCoordinates |
| 7 | public import New.UpperBound.Kernels.DefiniteKernelSize |
| 8 | import Lib.GLn.SchurModule.SchurNorm |
| 9 | import Lib.General.LinearAlgebra.MatrixNormBounds |
| 10 | import New.Determinant.Twist.FitTwists |
| 11 | import New.UpperBound.Kernels.ThetaLiftGauge |
| 12 | import New.UpperBound.Size.Estimates |
| 13 | |
| 14 | /-! |
| 15 | # The first factors: P_V along W_j and W^add, integrality and size |
| 16 | |
| 17 | Fix admissible data `D`, a tame character `ϑ` and an index `1 ≤ j ≤ m`. Write `E^n` for |
| 18 | the standard definite space of rank `n`, V″ for the one on `New.Data.FirstFactorIndex` and |
| 19 | W^add = E^{3m−j} ⊕ W♭ ⊕ E^{3m} for the one on `New.Data.AddedIndex`. Throughout, k = `D.k`, |
| 20 | m = `D.m`, M = `D.M`, and W_j is the space on `D.RowIndex` with r₊ = `D.posRank j` = k + j − 1 |
| 21 | plus signs. This file writes P_V as a sum of products of a polynomial in X and a coordinate of |
| 22 | ζ(z), where X are the variables in the positive basis vectors of W_j and z those in W^add. Each |
| 23 | value of Υ is a double class sum of products of three theta kernels of definite spaces, and this |
| 24 | file bounds these kernels. By `New.Data.exists_isIntegralAndSmall_leftSideSeries`, for one constant |
| 25 | `c″ ≠ 0` the first factors φ″, the complex conjugates of c″Υ, are integral away from the norm of Q |
| 26 | and, if Q is empty, all their images under automorphisms of ℂ are small |
| 27 | (`New.Data.IsIntegralAndSmall`). |
| 28 | |
| 29 | ## Main definitions and results |
| 30 | |
| 31 | * `New.Data.renameRowsCols_stackedDetProd_eq_sum`: P_V as a sum of products of a polynomial in X and |
| 32 | a coordinate of ζ(z). |
| 33 | * `New.Data.exists_isIntegralAndSmall_leftSideSeries`: for 1 ≤ j ≤ m there is one c ≠ 0, independent |
| 34 | of i, ϑ and h, such that every first factor y = conj (c · Υ) is integral and small in the sense of |
| 35 | `New.Data.IsIntegralAndSmall`. |
| 36 | |
| 37 | Notions from other files: |
| 38 | * `New.toPoly`, `New.weylNormSq`: the polynomial of a coordinate vector of weight κ, and the squared |
| 39 | norm of the vector for the Gram matrix of κ. Here `κ τ h` counts the columns of height `h` at `τ`. |
| 40 | * `New.Data.FirstFactorIndex`: the indices of W_j, (E^j)⁻, E^{3m−j} and W♭ = E^{6m+1}. |
| 41 | * `New.Data.TameChar`, `New.Data.twistModulus`: a character `ϑ` of U(1)(𝔸) of weight 0 with tame |
| 42 | part on a finite set Q = `ϑ.Q` of places, and the moduli ϖ^c Q. |
| 43 | * `New.Data.stackedDetProdCoords`: the coordinates of the polynomial map ζ. |
| 44 | * `New.Data.leftSideSeries`: the series Υ, built from theta kernels of definite spaces. |
| 45 | |
| 46 | ## Relation to the literature |
| 47 | |
| 48 | The first factors enter the comparison of twisted theta forms on U(W_j) with twist-free ones, |
| 49 | `New.Data.exists_mul_thirdExchangeLeftSide_eq_choiceFn` in |
| 50 | `New.OneLift.ComparisonOperator.ThreeExchanges`: for every twist, an explicit theta form times a |
| 51 | number is a twist-free function, and the squared modulus of the number is a constant independent of |
| 52 | the twist divided by a product of squared Hecke L-values and powers of norms of places. This file |
| 53 | proves that the first factors are integral off the conductor and small when untwisted. The rank one |
| 54 | case (the lift is a scalar of square modulus an L-value), twisting on a square block and integral |
| 55 | theta data are known in the literature. Related work: T. Yang, Theta liftings and Hecke L-functions, |
| 56 | 1997; Böcherer–Schmidt, p-adic measures attached to Siegel modular forms, 2000; Harris–Li–Skinner, |
| 57 | The Rallis inner product formula and p-adic L-functions, 2005. |
| 58 | -/ |
| 59 | |
| 60 | @[expose] public section |
| 61 | |
| 62 | noncomputable section |
| 63 | |
| 64 | /-! |
| 65 | ## The product of determinants as a sum of products, along W_j and W^add |
| 66 | -/ |
| 67 | |
| 68 | section LineLeftSide |
| 69 | |
| 70 | open Matrix MvPolynomial New Rows Finset |
| 71 | |
| 72 | /-- The determinant product `New.Rows.stackedDetProd` of the matrices `New.Data.constantRows` for |
| 73 | the short basis `D.shortRows i` at the class chosen by `i` has its columns renamed. `f` renames the |
| 74 | positive indices of W_j, the space of the `j`-th lift with indices `D.RowIndex`. `g` renames the |
| 75 | indices `AddedIndex j` of W^add. The result equals the sum over `l` of the products of two factors: |
| 76 | the letter polynomial (`New.letterPoly`) of the `l`-th unit vector in the letters of sign `1`, |
| 77 | renamed by `f`, and the `l`-th coordinate `New.Data.stackedDetProdCoords`, renamed by `g`. -/ |
| 78 | lemma New.Data.renameRowsCols_stackedDetProd_eq_sum {P : Parameters} {D : Data P} |
| 79 | (j : D.LiftIndex) (i : D.RowChoice) {n : Type*} (f : D.RowIndex → n) (g : AddedIndex j → n) : |
| 80 | renameRowsCols id (f ∘ D.rowIndexOfNumber ∘ Fin.val ⊕ᵥ g) |
| 81 | (stackedDetProd (posEquiv j) (constantRows j i (D.shortRows i))) = |
| 82 | ∑ l : WeylIndex (FirstFactorIndex j) (untwistedDescentPair j).colsPlus, |
| 83 | renameRowsCols id f (letterPoly (D.signsW j) (untwistedDescentPair j).numbering 1 |
| 84 | (untwistedDescentPair j).colsPlus (Pi.single l 1)) * |
| 85 | renameRowsCols id g (stackedDetProdCoords j i (D.shortRows i) l) := by |
| 86 | -- The renaming factors through `inFirstCols`: the first columns go to the letters of sign `1` on |
| 87 | -- `D.RowIndex`, placed by `f`, and the coefficients to the variables on `AddedIndex j`, placed by |
| 88 | -- `g`. |
| 89 | have rename_eq : renameRowsCols (id : FirstFactorIndex j → FirstFactorIndex j) |
| 90 | (f ∘ D.rowIndexOfNumber ∘ Fin.val ⊕ᵥ g) = |
| 91 | (aevalTower (renameRowsCols id g) fun x : ((_ : D.Φ) × FirstFactorIndex j) × ℕ ↦ |
| 92 | renameRowsCols id f (fockLetters (D.signsW j) (untwistedDescentPair j).numbering 1 |
| 93 | (.X x))).comp |
| 94 | (inFirstCols (Φ := D.Φ) (p := D.posRank j)) := by |
| 95 | ext1 ⟨τ, a, s | s⟩ |
| 96 | · -- exactly one index has sign `1` and number `s`, namely `D.rowIndexOfNumber s` |
| 97 | simp only [rename_X, Prod.map_apply, id_eq, Sum.elim_inl, Function.comp_apply, |
| 98 | fockLetters, descentPair, Int.pred_toNat, aeval_X, map_sum, inFirstCols, |
| 99 | AlgHom.coe_comp, aevalTower_X] |
| 100 | rw [sum_eq_single] <;> grind [rowIndexOfNumber, D.basisNumber.eq_symm_apply, signsW] |
| 101 | · simp [inFirstCols] |
| 102 | -- `toPoly_stackedDetProdCoords` expands `inFirstCols (stackedDetProd …)` in the basis |
| 103 | -- `nablaBasis` with coordinates `stackedDetProdCoords`; both sides become the same double sum, up |
| 104 | -- to the order of summation. |
| 105 | rw [rename_eq] |
| 106 | simp only [AlgHom.coe_comp, Function.comp_apply, ← toPoly_stackedDetProdCoords, toPoly, |
| 107 | Matrix.map, LinearMap.coe_comp, mulVecBilin_apply, Fintype.linearCombination_apply, mulVec, |
| 108 | dotProduct, of_apply, nablaBasis, tableauPoly, minor, smul_eq_C_mul, map_sum, |
| 109 | map_intCast, sum_mul, map_mul, aevalTower_C, map_prod, AlgHom.map_det, AlgHom.mapMatrix_apply, |
| 110 | aevalTower_X, mul_right_comm _ (rename _ _), letterPoly, AlgHom.coe_toLinearMap, |
| 111 | mulVec_single, MulOpposite.op_one, col_of, one_smul] |
| 112 | exact sum_comm |
| 113 | |
| 114 | end LineLeftSide |
| 115 | |
| 116 | /-! |
| 117 | ## Integrality and size of the first factors |
| 118 | |
| 119 | Each value of Υ is a double class sum of products of three theta kernels of definite pairs, to which |
| 120 | `New.Rows.exists_ne_zero_isModKernelScale` applies; the third is evaluated on the polynomial |
| 121 | coordinates `New.Data.stackedDetProdCoords`, whose degree and denominator come from |
| 122 | `New.Data.exists_isHomogeneousOverEntries_smul_stackedDetProdCoords`. |
| 123 | |
| 124 | `New.weylGauge κ e h y ≤ 1` says that `y` is `p`-integral for the lattice at `h`, read through the |
| 125 | embedding `ιₚ : ℂ → ℂ_[p]` given by the instance `[PadicPlace p]`. |
| 126 | -/ |
| 127 | |
| 128 | namespace New.Data |
| 129 | |
| 130 | open Real Matrix Finset Rows MvPolynomial Ideal ComplexConjugate Sum Fintype NeZero RingHom |
| 131 | |
| 132 | variable {P : Parameters} {D : Data P} {ϑ : D.TameChar} |
| 133 | |
| 134 | /-- With `M = D.M`, the integer `ϑ.normQ * M ^ c` lies in the ideal of the modulus |
| 135 | `D.twistModulus ϑ c`: the `c`-th power of the product of the chosen places (the places |
| 136 | `D.chosenPlace` of the data) times the product of the places in `ϑ.Q`. -/ |
| 137 | lemma normQ_mul_M_pow_mem_modulus {c : ℕ} : |
| 138 | ↑(ϑ.normQ * D.M ^ c) ∈ (D.twistModulus ϑ c).ideal := by |
| 139 | -- `D.M` lies in the product `(D.piM)` of the chosen places, and each norm `w.q` in `w`. |
| 140 | have hM_mem : ↑D.M ∈ ∏ i, (D.chosenPlace i).asIdeal := by |
| 141 | rw [← span_piM D, mem_span_singleton] |
| 142 | exact Dvd.intro _ D.piM_mul_star |
| 143 | rw [TameChar.normQ, ← ϑ.Q.prod_coe_sort FinPlace.q, Nat.cast_mul, Nat.cast_pow, Nat.cast_prod] |
| 144 | exact mul_mem_mul_rev (pow_mem_pow hM_mem c) (prod_mem_prod fun w _ ↦ absNorm_mem w.val.asIdeal) |
| 145 | |
| 146 | /-- Replacing the matrix Y by Y·Bᵀ multiplies the matrices `constantRows` on the right by the |
| 147 | transpose of the block diagonal matrix (1, 1, τB, τA) at each τ, whatever A is. -/ |
| 148 | lemma constantRows_mul_transpose_eq_mul_fromBlocks (j : D.LiftIndex) (i : D.RowChoice) |
| 149 | (Y B : Matrix D.FlatIndex D.FlatIndex D.E) (A : Matrix D.CarrierIndex D.CarrierIndex D.E) : |
| 150 | constantRows j i (Y * Bᵀ) = fun (τ : D.Φ) (k : DetIndex j τ) ↦ |
| 151 | constantRows j i Y τ k * |
| 152 | (fromBlocks 1 0 0 ((fromBlocks 1 0 0 (fromBlocks B 0 0 A)).map (Φ τ)))ᵀ := by |
| 153 | ext τ k x z |
| 154 | -- Write the entry of the product on the right as a sum. |
| 155 | refine .trans ?_ Matrix.mul_apply.symm |
| 156 | obtain k | k := k |
| 157 | · -- A row that is a standard basis vector, in a block where the matrix is the identity. |
| 158 | obtain z | z | z | z := z |
| 159 | all_goals |
| 160 | simp only [constantRows, inclMatrix, transpose_submatrix, transpose_one, Matrix.map_mul, |
| 161 | elim_inl, submatrix_apply, Matrix.one_apply, id_eq, transpose_apply, ite_mul, one_mul, |
| 162 | zero_mul, Finset.sum_ite_eq, mem_univ, ↓reduceIte] |
| 163 | split <;> simp only [eq_comm, inl.injEq, inr.injEq, reduceCtorEq, ↓reduceIte, |
| 164 | fromBlocks_apply₁₁, fromBlocks_apply₁₂, fromBlocks_apply₂₁, fromBlocks_apply₂₂, |
| 165 | Matrix.one_apply, Matrix.zero_apply, map_apply, map_zero, |
| 166 | MonoidWithZeroHom.map_ite_one_zero] |
| 167 | · -- A row of τ(Y), supported on the block of B. |
| 168 | obtain z | z | z | z := z <;> simp only [constantRows, Matrix.map_mul, elim_inr, |
| 169 | fromCols_apply_inl, fromCols_apply_inr, Matrix.zero_apply, transpose_apply, sum_sum_type, |
| 170 | fromBlocks_apply₁₁, fromBlocks_apply₁₂, fromBlocks_apply₂₁, fromBlocks_apply₂₂, |
| 171 | submatrix_apply, id_eq, Matrix.mul_apply, map_apply, map_zero, zero_mul, mul_zero, |
| 172 | sum_const_zero, add_zero, zero_add] |
| 173 | |
| 174 | /-- Let `q` be the bound on the number of determinants, `n ≤ (10 m + 1) q` a degree with `n ≤ D.M` |
| 175 | and `0 < H ≤ (n ^ n) ^ 3` a denominator. Then the constant `chosenGroupOrder ^ 2`, the two class |
| 176 | numbers, three kernel bounds `exp x₁`, the order of GL_{3m} over the residue ring and the bound on |
| 177 | `H` times the coordinates give at most exp(f m b log² b) after squaring. Here f = `D.f` is the |
| 178 | number of infinite places, b = `D.b` and `D.natB` the weight at the b-places, log b = `D.logB`, |
| 179 | `D.offWeight` the weight at the other places, `D.gap` = 2 r⁸ the gap, x₁ = `D.x₁` the second cut-off |
| 180 | and `D.chosenGroupOrder` a common multiple of the orders of the stabilisers. -/ |
| 181 | lemma firstFactorSize_sq_le_exp {q n : ℕ} {H : ℤ} |
| 182 | (hq : q = Fintype.card D.Φ * (D.natB + D.offWeight + D.gap + D.m * D.gap)) |
| 183 | (hn : n ≤ (10 * D.m + 1) * q) (hn_le_M : n ≤ D.M) (H_pos : 0 < H) |
| 184 | (H_le : H ≤ (n ^ n) ^ 3) (φ : ℂ ≃+* ℂ) : |
| 185 | ‖φ (D.chosenGroupOrder ^ 2)‖ ^ 2 * |
| 186 | (Nat.card (StdClasses (stdLevel D.E D.CarrierIndex)) * |
| 187 | (Nat.card (StdClasses (stdLevel D.E (Fin D.m))) * |
| 188 | (rexp D.x₁ * rexp D.x₁ * |
| 189 | (rexp D.x₁ * Fintype.card (GL D.CarrierIndex (D.untwistedModulus 2).ResidueRing) * |
| 190 | √((H : ℝ) ^ 2 * (D.M ^ 9) ^ ((12 * D.m + 1) * q)))))) ^ 2 ≤ |
| 191 | rexp (D.f * D.m * D.b * D.logB ^ 2) := by |
| 192 | -- With M = `D.M` and R the residue ring of `D.untwistedModulus 2`: both class numbers are at |
| 193 | -- most exp(x³⁰), H ≤ n³ⁿ ≤ M³ⁿ, |GL(R)| ≤ |R|^{(3m)²}, and |R| ≤ (M²)^{2e} with |
| 194 | -- e = `Core.numInfPlaces D.E`. The logarithm of the product is then the left side of `h_scale`, |
| 195 | -- and with n ≤ (10 m + 1) q the scale inequalities of the data put it below f m b log² b. |
| 196 | have h_scale : |
| 197 | 4 * log D.chosenGroupOrder + |
| 198 | 2 * (D.x ^ 30 + (D.x ^ 30 + (D.x₁ + D.x₁ + |
| 199 | (D.x₁ + 2 * (2 * Core.numInfPlaces D.E * (2 * D.m + D.m) ^ 2) * log D.M + |
| 200 | (n * 3 * 2 * log D.M / 2 + 9 * ((12 * D.m + 1) * q) * log D.M / 2))))) ≤ |
| 201 | D.f * D.m * D.b * D.logB ^ 2 := by |
| 202 | grw [hn, hq] |
| 203 | exact D.le_of_hasLogBound (by scale_grind D) |
| 204 | have h_carrier : card D.CarrierIndex ≤ D.n D.m := by simpa using D.nat_le_of_hasLogBound |
| 205 | have h_fin : card (Fin D.m) ≤ D.n D.m := by simpa using D.nat_le_of_hasLogBound |
| 206 | grw [D.card_stdClasses_le_exp principalLevel_le_stdLevel h_carrier, |
| 207 | D.card_stdClasses_le_exp principalLevel_le_stdLevel h_fin] |
| 208 | grw [H_le, hn_le_M, card_eq_nat_card, card_GL_le, |
| 209 | Modulus.card_residueRing_le (levelModulus_ideal_le normQ_mul_M_pow_mem_modulus), |
| 210 | ← le_exp_of_log_le] |
| 211 | -- The goals left are the inequality of logarithms, which is `h_scale`, and positivity conditions. |
| 212 | · simp only [map_pow, map_natCast, norm_pow, RCLike.norm_natCast, ← pow_mul, Nat.reduceMul, |
| 213 | card_sum, Fintype.card_fin, Nat.cast_pow, Nat.cast_mul, Nat.cast_prod, |
| 214 | toAutChar_one_and_toTwist_one_and_Q_one, Finset.prod_empty, one_mul, Int.cast_pow, |
| 215 | Int.cast_natCast, Nat.cast_nonneg, pow_nonneg, sqrt_mul, ne_eq, ne, not_false_eq_true, |
| 216 | pow_eq_zero_iff, mul_eq_zero, exp_ne_zero, or_self, sqrt_eq_zero', |
| 217 | false_or, not_or, not_le, Nat.cast_pos, pos, pow_pos, and_self, log_mul, log_pow, |
| 218 | Nat.cast_ofNat, log_exp, Nat.cast_add, log_sqrt, Nat.cast_one] |
| 219 | exact h_scale |
| 220 | simp only [CanonicallyOrderedAdd.prod_pos, toAutChar_one_and_toTwist_one_and_Q_one, |
| 221 | notMem_empty, FinPlace.q_bounds, implies_true, mul_pos_iff_of_pos_left, pos] |
| 222 | |
| 223 | /-- On complex conjugates of vectors of weight μ⁺, the rational unitary point `γ⁻¹` acts through |
| 224 | the Schur matrix of `A`, the family of images of `γ⁻¹` at the infinite places. -/ |
| 225 | private lemma weightRep_inv_star_eq_schur_mulVec (j : D.LiftIndex) |
| 226 | (γ : U (stdSpace D.E (FirstFactorIndex j)).J) |
| 227 | (v : WeylIndex (FirstFactorIndex j) (untwistedDescentPair j).colsPlus → ℂ) : |
| 228 | (stdSpace D.E (FirstFactorIndex j)).weightRep (untwistedDescentPair j).colsPlus 0 γ⁻¹ |
| 229 | (star v) = |
| 230 | star (schur (untwistedDescentPair j).colsPlus (fun τ : D.Φ ↦ |
| 231 | (GeneralLinearGroup.map (Φ τ) (↑γ⁻¹ : GL (FirstFactorIndex j) D.E)).val) *ᵥ v) := by |
| 232 | have h_conj (τ : D.Φ) : ((starRingEnd ℂ).comp (Φ τ)).comp (starRingEnd D.E) = Φ τ := |
| 233 | RingHom.ext fun x ↦ by simp [starRingEnd_apply (R := D.E)] |
| 234 | have h_star : conj ∘ star v = v := star_star v |
| 235 | refine star_injective ((map_weightRep conj γ⁻¹ (star v)).trans ?_) |
| 236 | simp [weylRep, h_conj, h_star] |
| 237 | |
| 238 | /-- Equivariance under rational points. Let Γ and γ' be rational unitary points of the definite |
| 239 | spaces W^add and V″, and let the constant rows built from Y' be those built from Y multiplied by |
| 240 | diag(1, Γ)ᵀ at each place. Then γ'⁻¹, acting on vectors of weight μ⁺, carries the complex conjugate |
| 241 | of the vector l ↦ c 𝖪[H·ζ_l](Γ g, γ' h) for Y' to that of l ↦ c 𝖪[H·ζ_l](g, h) for Y. Here 𝖪 is the |
| 242 | theta kernel `modKernelBilin` of (W^add, V″) for the datum Ψ modulo 𝔪, with both characters |
| 243 | `firstFactorChar ϑ j`, and ζ = `stackedDetProdCoords`. -/ |
| 244 | lemma modKernelBilin_stackedDetProdCoords_equivariant (j : D.LiftIndex) (i : D.RowChoice) |
| 245 | {Y Y' : Matrix D.FlatIndex D.FlatIndex D.E} {𝔪 : Modulus D.E} |
| 246 | (Ψ : Matrix (FirstFactorIndex j) (AddedIndex j) 𝔪.ResidueRing → ℂ) |
| 247 | (Γ : U (stdSpace D.E (AddedIndex j)).J) (γ' : U (stdSpace D.E (FirstFactorIndex j)).J) |
| 248 | (g : Gf D.E (AddedIndex j)) (h : Gf D.E (FirstFactorIndex j)) (c : ℂ) (H : ℤ) |
| 249 | (h_rows : constantRows j i Y' = fun (τ : D.Φ) (k : DetIndex j τ) ↦ |
| 250 | constantRows j i Y τ k * |
| 251 | (fromBlocks 1 0 0 ((Γ : Matrix (AddedIndex j) (AddedIndex j) D.E).map (Φ τ)))ᵀ) : |
| 252 | (stdSpace D.E (FirstFactorIndex j)).weightRep (untwistedDescentPair j).colsPlus 0 γ'⁻¹ |
| 253 | (star (c • modKernelBilin (stdSpace D.E (AddedIndex j)) (stdSpace D.E (FirstFactorIndex j)) |
| 254 | (firstFactorChar ϑ j) (firstFactorChar ϑ j) 𝔪 |
| 255 | (1, (stdSpace D.E (AddedIndex j)).embFin Γ * g) |
| 256 | (1, (stdSpace D.E (FirstFactorIndex j)).embFin γ' * h) Ψ ∘ |
| 257 | (H • stackedDetProdCoords j i Y'))) = |
| 258 | star (c • modKernelBilin (stdSpace D.E (AddedIndex j)) (stdSpace D.E (FirstFactorIndex j)) |
| 259 | (firstFactorChar ϑ j) (firstFactorChar ϑ j) 𝔪 (1, g) (1, h) Ψ ∘ |
| 260 | (H • stackedDetProdCoords j i Y)) := by |
| 261 | -- The substitution by `γ'⁻¹` and `Γ` carries the coordinates for `Y'`, mixed by the Schur matrix |
| 262 | -- of `γ'⁻¹`, to those for `Y` up to determinants, and these cancel against the change of the |
| 263 | -- characters. |
| 264 | have h_char : (firstFactorChar ϑ j).HasWeight |
| 265 | (fun τ : D.Φ ↦ firstFactorCharExp j + -D.liftWeight j τ) |
| 266 | (D.liftTamePart ϑ j) := inferInstance |
| 267 | -- `A`, `B` and `B'` are the images of `γ'⁻¹`, `Γ` and diag(1, Γ) at the infinite places. |
| 268 | let A (τ : D.Φ) : Matrix (FirstFactorIndex j) (FirstFactorIndex j) ℂ := |
| 269 | (↑γ'⁻¹ : Matrix (FirstFactorIndex j) (FirstFactorIndex j) D.E).map (Φ τ) |
| 270 | let B (τ : D.Φ) : Matrix (AddedIndex j) (AddedIndex j) ℂ := |
| 271 | (Γ : Matrix (AddedIndex j) (AddedIndex j) D.E).map (Φ τ) |
| 272 | let B' (τ : D.Φ) : |
| 273 | Matrix (Fin (D.posRank j) ⊕ AddedIndex j) (Fin (D.posRank j) ⊕ AddedIndex j) ℂ := |
| 274 | fromBlocks 1 0 0 (B τ) |
| 275 | have h_subst : twoSidedSubst A B' (stackedDetProd (posEquiv j) (constantRows j i Y')) = |
| 276 | (∏ τ : D.Φ, ((A τ).det * (B' τ).det) ^ card (DetIndex j τ)) • |
| 277 | stackedDetProd (posEquiv j) (constantRows j i Y) := by |
| 278 | rw [h_rows] |
| 279 | exact twoSidedSubst_stackedDetProd (posEquiv j) (constantRows j i Y) A B' |
| 280 | -- The kernel of the mixed coordinates for `Y'` at the translated points is the kernel of the |
| 281 | -- coordinates for `Y` at `(g, h)`. |
| 282 | let θ' : MvPolynomial (D.Φ × FirstFactorIndex j × AddedIndex j) ℂ →ₗ[ℂ] ℂ := |
| 283 | modKernelBilin (stdSpace D.E (AddedIndex j)) (stdSpace D.E (FirstFactorIndex j)) |
| 284 | (firstFactorChar ϑ j) |
| 285 | (firstFactorChar ϑ j) 𝔪 (1, (stdSpace D.E (AddedIndex j)).embFin Γ * g) |
| 286 | (1, (stdSpace D.E (FirstFactorIndex j)).embFin γ' * h) Ψ |
| 287 | let θ : MvPolynomial (D.Φ × FirstFactorIndex j × AddedIndex j) ℂ →ₗ[ℂ] ℂ := |
| 288 | modKernelBilin (stdSpace D.E (AddedIndex j)) (stdSpace D.E (FirstFactorIndex j)) |
| 289 | (firstFactorChar ϑ j) |
| 290 | (firstFactorChar ϑ j) 𝔪 (1, g) (1, h) Ψ |
| 291 | have h_kernel (l : WeylIndex (FirstFactorIndex j) (untwistedDescentPair j).colsPlus) : |
| 292 | θ' (∑ k, schur (untwistedDescentPair j).colsPlus A l k • stackedDetProdCoords j i Y' k) = |
| 293 | θ (stackedDetProdCoords j i Y l) := by |
| 294 | refine (modKernelStdSpace_embFin_mul h_char h_char 𝔪 Ψ _ Γ γ' g h).trans ?_ |
| 295 | rw [twoSidedSubst_firstColsCoord A B h_subst] |
| 296 | -- the powers of the determinants cancel |
| 297 | simp only [Nat.cast_add, Int.natCast_ediv, add_pos_iff, k_pos, or_true, Nat.cast_pred, |
| 298 | Nat.cast_ofNat, ← card_detIndex_add_firstFactorCharExp, neg_add_rev, add_assoc, |
| 299 | add_neg_cancel_left, neg_neg, zpow_natCast, _root_.zpow_neg, prod_mul_distrib, |
| 300 | prod_inv_distrib, InvMemClass.coe_inv, coe_units_inv, ← mapMatrix_apply, ← map_det, |
| 301 | det_nonsing_inv, Ring.inverse_eq_inv', map_inv₀, det_fromBlocks_zero₂₁, det_one, one_mul, |
| 302 | mul_pow, inv_pow, ← modKernelBilin_apply, map_smul, smul_eq_mul, A, B', B, θ] |
| 303 | field_simp [prod_ne_zero_iff, GeneralLinearGroup.det_ne_zero] |
| 304 | have hA : A = fun τ : D.Φ ↦ |
| 305 | (GeneralLinearGroup.map (Φ τ) (↑γ'⁻¹ : GL (FirstFactorIndex j) D.E)).val := rfl |
| 306 | have h_coords : schur (untwistedDescentPair j).colsPlus A *ᵥ θ' ∘ stackedDetProdCoords j i Y' = |
| 307 | θ ∘ stackedDetProdCoords j i Y := by |
| 308 | ext l |
| 309 | simpa [mulVec, dotProduct] using h_kernel l |
| 310 | have h_smul (θ₀ : MvPolynomial (D.Φ × FirstFactorIndex j × AddedIndex j) ℂ →ₗ[ℂ] ℂ) |
| 311 | (Y₀ : Matrix D.FlatIndex D.FlatIndex D.E) : |
| 312 | θ₀ ∘ (H • stackedDetProdCoords j i Y₀) = H • θ₀ ∘ stackedDetProdCoords j i Y₀ := by |
| 313 | ext l |
| 314 | simp only [Function.comp_apply, Pi.smul_apply, map_zsmul] |
| 315 | -- On complex conjugates `γ'⁻¹` acts by the Schur matrix of `A`. |
| 316 | rw [weightRep_inv_star_eq_schur_mulVec j γ', ← hA, h_smul, h_smul, mulVec_smul, mulVec_smul, |
| 317 | h_coords] |
| 318 | |
| 319 | /-- Let `i` be a class with its short basis, whose vectors are the rows of `D.shortRows i`, and let |
| 320 | `γ` be a rational unitary point that moves the representative of the class into the points integral |
| 321 | above `p`. Then the entries of `D.shortRows i * γᵀ` are `p`-integral under every embedding `σ`. -/ |
| 322 | lemma norm_shortRows_mul_transpose_le_one (i : D.RowChoice) {p : ℕ} [Fact p.Prime] |
| 323 | (σ : D.E →+* ℂ_[p]) {γ : U (stdSpace D.E D.FlatIndex).J} |
| 324 | (hγ : (stdSpace D.E D.FlatIndex).embFin γ * i.classRep ∈ integralAbove D.FlatIndex p) |
| 325 | (x z : D.FlatIndex) : |
| 326 | ‖σ ((D.shortRows i * (γ : Matrix D.FlatIndex D.FlatIndex D.E)ᵀ) x z)‖ ≤ 1 := by |
| 327 | -- With Y = `D.shortRows i`, the matrix γ Yᵀ = (γ g)(g⁻¹ Yᵀ) is a product of integral matrices. |
| 328 | -- Here g is the representative of the class, and `Z` is g⁻¹ Yᵀ. |
| 329 | let Z : Matrix D.FlatIndex D.FlatIndex (𝔸f D.E) := |
| 330 | ((i.classRep⁻¹ : Gf D.E D.FlatIndex) : Matrix D.FlatIndex D.FlatIndex (𝔸f D.E)) * |
| 331 | (D.shortRows i)ᵀ.map (algebraMap D.E (𝔸f D.E)) |
| 332 | have hZ_int : IsIntMatrix (Ô D.E) Z := |
| 333 | (Space.exists_short_basis_stdSpace P.conductor_mem_differentIdeal i.classRep).choose_spec.left |
| 334 | have hZ_map : IsIntMatrix NormedField.valuation.integer (Z.map (adeleExtension σ)) := |
| 335 | fun a b ↦ norm_adeleExtension_le_one σ (hZ_int a b) |
| 336 | have h_prod : IsIntMatrix NormedField.valuation.integer |
| 337 | (((γ : Matrix D.FlatIndex D.FlatIndex D.E) * (D.shortRows i)ᵀ).map σ) := by |
| 338 | simpa [Z, ← Matrix.map_mul, mul_assoc, Function.comp_def] using |
| 339 | (adeleExtension_mem_intGL σ hγ).isIntMatrix.mul hZ_map |
| 340 | have h_entry : |
| 341 | ‖σ (((γ : Matrix D.FlatIndex D.FlatIndex D.E) * (D.shortRows i)ᵀ) z x)‖ ≤ 1 := h_prod z x |
| 342 | simpa [Matrix.mul_apply, mul_comm] using h_entry |
| 343 | |
| 344 | /-- Let v(Y, g, h) be the vector l ↦ conj (c 𝖪[H·ζ_l](g, h)). Here ζ = `stackedDetProdCoords j i Y`, |
| 345 | and 𝖪 is the theta kernel of the standard definite spaces W^add on `AddedIndex j` and V″ on |
| 346 | `FirstFactorIndex j`, with both characters `firstFactorChar ϑ j` for the tame character `ϑ` and a |
| 347 | datum `Ψ` on matrices modulo the modulus `𝔪`. Suppose that v(Y, g', h') has `p`-integral coordinates |
| 348 | under `ιₚ : ℂ → ℂ_[p]` whenever the finite adelic points `g'`, `h'` have integral components at the |
| 349 | primes above `p` (`integralAbove`) and the entries of `Y`, embedded in ℂ by `Φ τ`, are `p`-integral |
| 350 | under `ιₚ ∘ conj`. Let g be the block diagonal point (`U.blockSumOne`) with blocks `1`, the |
| 351 | representative in U(W♭) of the class of `i`, and `w` in U(E^{3m}). Then v(`D.shortRows i`, g, h) has |
| 352 | gauge at most one at every `h` (`weylGauge`): all coordinates of h⁻¹ · ιₚ(v) have norm at most |
| 353 | one. -/ |
| 354 | lemma weylGauge_modKernelBilin_stackedDetProdCoords_le_one (j : D.LiftIndex) (i : D.RowChoice) |
| 355 | {𝔪 : Modulus D.E} (Ψ : Matrix (FirstFactorIndex j) (AddedIndex j) 𝔪.ResidueRing → ℂ) |
| 356 | {p : ℕ} [Fact p.Prime] [PadicPlace p] (c : ℂ) (H : ℤ) |
| 357 | (h_int : ∀ g' ∈ integralAbove (AddedIndex j) p, ∀ h' ∈ integralAbove (FirstFactorIndex j) p, |
| 358 | ∀ Y : Matrix D.FlatIndex D.FlatIndex D.E, |
| 359 | (∀ (τ : D.Φ) (x z : D.FlatIndex), ‖ιₚ (conj (Φ τ (Y x z)))‖ ≤ 1) → |
| 360 | ∀ l : WeylIndex (FirstFactorIndex j) (untwistedDescentPair j).colsPlus, |
| 361 | ‖ιₚ (conj (c * modKernelStdSpace (stdSpace D.E (AddedIndex j)) (firstFactorChar ϑ j) |
| 362 | (firstFactorChar ϑ j) 𝔪 Ψ (H • stackedDetProdCoords j i Y l) (1, g') h'))‖ ≤ 1) |
| 363 | (w : Gf D.E D.CarrierIndex) (h : Gf D.E (FirstFactorIndex j)) : |
| 364 | weylGauge (untwistedDescentPair j).colsPlus 0 h |
| 365 | (star (c • modKernelBilin (stdSpace D.E (AddedIndex j)) (stdSpace D.E (FirstFactorIndex j)) |
| 366 | (firstFactorChar ϑ j) (firstFactorChar ϑ j) 𝔪 |
| 367 | (1, U.blockSumOne (1, U.blockSumOne (i.classRep, w))) (1, h) |
| 368 | Ψ ∘ (H • stackedDetProdCoords j i (D.shortRows i)))) ≤ 1 := by |
| 369 | -- Weak approximation: rational points move the two blocks and h into the integral points. |
| 370 | obtain ⟨γ₁, hγ₁, -⟩ := exists_mul_mem_integralAbove p i.classRep 1 (stdSpace D.E D.FlatIndex) |
| 371 | obtain ⟨γ₂, hγ₂, -⟩ := exists_mul_mem_integralAbove p w 1 (stdSpace D.E D.CarrierIndex) |
| 372 | obtain ⟨γ', hγ', -⟩ := exists_mul_mem_integralAbove p h 1 (stdSpace D.E (FirstFactorIndex j)) |
| 373 | -- Move `g` by the block matrix Γ; the short basis becomes Y'. |
| 374 | let g : Gf D.E (AddedIndex j) := U.blockSumOne (1, U.blockSumOne (i.classRep, w)) |
| 375 | let Γ : U (stdSpace D.E (AddedIndex j)).J := U.blockSumOne (1, U.blockSumOne (γ₁, γ₂)) |
| 376 | let Y' : Matrix D.FlatIndex D.FlatIndex D.E := |
| 377 | D.shortRows i * (γ₁ : Matrix D.FlatIndex D.FlatIndex D.E)ᵀ |
| 378 | have hΓ : (stdSpace D.E (AddedIndex j)).embFin Γ * g ∈ integralAbove (AddedIndex j) p := |
| 379 | blockSumOne_mul_mem_integralAbove (γ := 1) (by simp) (blockSumOne_mul_mem_integralAbove hγ₁ hγ₂) |
| 380 | have h_rows : constantRows j i Y' = fun (τ : D.Φ) (k : DetIndex j τ) ↦ |
| 381 | constantRows j i (D.shortRows i) τ k * |
| 382 | (fromBlocks 1 0 0 ((Γ : Matrix (AddedIndex j) (AddedIndex j) D.E).map (Φ τ)))ᵀ := |
| 383 | constantRows_mul_transpose_eq_mul_fromBlocks .. |
| 384 | have hY' (τ : D.Φ) (x z : D.FlatIndex) : ‖ιₚ (conj (Φ τ (Y' x z)))‖ ≤ 1 := |
| 385 | norm_shortRows_mul_transpose_le_one i ((ιₚ.comp conj).comp (Φ τ)) hγ₁ x z |
| 386 | -- By equivariance the gauge at h is the gauge of the vector for Y' at the integral point γ' h, |
| 387 | -- where gauge ≤ 1 means that all coordinates are integral. |
| 388 | rw [← modKernelBilin_stackedDetProdCoords_equivariant j i Ψ Γ γ' g h c H h_rows, |
| 389 | ← weylGauge_embFin, |
| 390 | Representation.self_inv_apply, weylGauge_le_one_iff _ hγ'] |
| 391 | exact h_int _ hΓ _ hγ' Y' hY' |
| 392 | |
| 393 | /-- Let `ϑ` be a tame character with set of places Q, let ϖ be the product of the chosen places, and |
| 394 | let `u`, `x` be matrices modulo ϖ² and ϖ²Q. The datum `addedDatum ϑ j u x` is `0` or a sum, over |
| 395 | GL_{3m}(O_E/ϖ²), of values of the additive character attached to `u`. For each `n` it has norm at |
| 396 | most one under all ring maps `ℂ → ℂ_[l]` with `l` a prime coprime to `n` |
| 397 | (`New.Seesaw.integralAway`). -/ |
| 398 | lemma addedDatum_mem_integralAway {ϑ : D.TameChar} (j : D.LiftIndex) |
| 399 | (u : Matrix D.CarrierIndex (FirstFactorIndex j) (D.untwistedModulus 2).ResidueRing) |
| 400 | (x : Matrix (FirstFactorIndex j) (AddedIndex j) (D.twistModulus ϑ 2).ResidueRing) (n : ℕ) : |
| 401 | addedDatum ϑ j u x ∈ Seesaw.integralAway n := by |
| 402 | -- The values of an additive character of a finite group are roots of unity. |
| 403 | have h_char (y : Matrix (FirstFactorIndex j) D.CarrierIndex (D.untwistedModulus 2).ResidueRing) : |
| 404 | traceChar u y ∈ Seesaw.integralAway n := fun l _ _ ι ↦ |
| 405 | ((ι.compAddChar _).norm_apply _).le |
| 406 | rw [addedDatum] |
| 407 | split |
| 408 | · exact sum_mem fun g _ ↦ h_char _ |
| 409 | · exact zero_mem _ |
| 410 | |
| 411 | /-- Every conjugate of a value of `New.Data.addedDatum`, for a matrix `u` modulo ϖ², has absolute |
| 412 | value at most the order of GL over the residue ring of `D.untwistedModulus 2` (the modulus ϖ², ϖ |
| 413 | the product of the chosen places), the number of terms in the sum defining it. -/ |
| 414 | lemma norm_map_addedDatum_le (j : D.LiftIndex) |
| 415 | (u : Matrix D.CarrierIndex (FirstFactorIndex j) (D.untwistedModulus 2).ResidueRing) |
| 416 | (σ : ℂ ≃+* ℂ) |
| 417 | (x : Matrix (FirstFactorIndex j) (AddedIndex j) (D.twistModulus ϑ 2).ResidueRing) : |
| 418 | ‖σ (addedDatum ϑ j u x)‖ ≤ card (GL D.CarrierIndex (D.untwistedModulus 2).ResidueRing) := by |
| 419 | -- The value is 0 or a sum, over this group, of values of an additive character. |
| 420 | rw [addedDatum] |
| 421 | split |
| 422 | · simpa using! norm_sum_le_of_le univ fun _ _ ↦ ((σ.toRingHom.compAddChar _).norm_apply _).le |
| 423 | · simp |
| 424 | |
| 425 | /-- The ranks of the five spaces in the three kernels are at most the gap `Δ = D.gap`. -/ |
| 426 | lemma card_le_gap (j : D.LiftIndex) : |
| 427 | card (Fin D.m) ≤ D.gap ∧ |
| 428 | card D.CarrierIndex ≤ D.gap ∧ |
| 429 | card (Fin j) ≤ D.gap ∧ |
| 430 | card (FirstFactorIndex j) ≤ D.gap ∧ |
| 431 | card (AddedIndex j) ≤ D.gap := by |
| 432 | have h_gap : 40 * D.k ≤ D.gap := mod_cast (D.le_of_hasLogBound : (40 * D.k : ℝ) ≤ D.gap) |
| 433 | grind [card_sum, card_rowIndex, Fintype.card_fin] |
| 434 | |
| 435 | /-- Let ζ = `stackedDetProdCoords j i (D.shortRows i)` be the vector of coordinates of the product |
| 436 | of determinants, polynomials in variables indexed by an infinite place in `D.Φ`, a row in |
| 437 | `FirstFactorIndex j` and a column in `AddedIndex j`. Evaluate `H • ζ` at a point `z` whose |
| 438 | `σ`-conjugates are at most `M ^ 4`, where `M = D.M`, and apply `σ`. If `q` bounds the total number |
| 439 | of determinants, the root of the squared norm (`New.weylNormSq`) of the result is at most |
| 440 | `√(H ^ 2 (M ^ 9) ^ ((12 m + 1) q))`, with `m = D.m`. -/ |
| 441 | lemma sqrt_weylNormSq_smul_eval_stackedDetProdCoords_le (j : D.LiftIndex) (i : D.RowChoice) {q : ℕ} |
| 442 | (hq : ∑ τ : D.Φ, card (DetIndex j τ) ≤ q) (H : ℤ) (σ : ℂ ≃+* ℂ) |
| 443 | {z : D.Φ × FirstFactorIndex j × AddedIndex j → ℂ} |
| 444 | (hz : ∀ x : D.Φ × FirstFactorIndex j × AddedIndex j, ‖σ (z x)‖ ≤ D.M ^ 4) : |
| 445 | √(weylNormSq (σ ∘ eval z ∘ (H • stackedDetProdCoords j i (D.shortRows i)))) ≤ |
| 446 | √((H : ℝ) ^ 2 * (D.M ^ 9) ^ ((12 * D.m + 1) * q)) := by |
| 447 | -- The rows `D.shortRows i` form a short basis, so their entries are small too. |
| 448 | have hY_small (ψ : D.E →+* ℂ) (x y : D.FlatIndex) : |
| 449 | ‖ψ (D.shortRows i x y)‖ ≤ Space.shortBasisConst D.E D.FlatIndex (P.q₁ D.towerExp * P.d) := |
| 450 | (Space.exists_short_basis_stdSpace P.conductor_mem_differentIdeal i.1.out).choose_spec.2 ψ y x |
| 451 | have hY_le (τ : D.Φ) (x y : D.FlatIndex) : ‖σ (Φ τ (D.shortRows i x y))‖ ≤ D.M ^ 4 := |
| 452 | (hY_small (.comp σ (Φ τ)) x y).trans (by simpa using D.le_of_hasLogBound) |
| 453 | have h_coords : weylNormSq ((σ : ℂ →+* ℂ) ∘ eval z ∘ stackedDetProdCoords j i (D.shortRows i)) ≤ |
| 454 | ↑(D.M ^ 9) ^ ((12 * D.m + 1) * ∑ τ : D.Φ, card (DetIndex j τ)) := |
| 455 | weylNormSq_comp_eval_stackedDetProdCoords_le j i (D.shortRows i) hY_le hz |
| 456 | have h_smul : eval z ∘ (H • stackedDetProdCoords j i (D.shortRows i)) = |
| 457 | (H : ℂ) • eval z ∘ stackedDetProdCoords j i (D.shortRows i) := by simp [funext_iff] |
| 458 | -- The scalar `H` multiplies the squared norm by `H ^ 2`, and `M ^ 9 ≥ 1` lets `q` replace the |
| 459 | -- number of determinants. |
| 460 | grw (transparency := default) [h_smul, weylNormSq_comp_smul, h_coords, hq] |
| 461 | · simp |
| 462 | · exact D.le_of_hasLogBound |
| 463 | |
| 464 | /-- Duality for a vector `v` of homogeneous polynomials of degree `n`. Its coordinates are indexed |
| 465 | by the basis `WeylIndex N κ` of the Weyl module of GL_N whose diagram at each `τ : T` has `κ τ h` |
| 466 | columns of height `h`. The norm of a coordinate vector is the square root of `weylNormSq`, its |
| 467 | squared norm for the positive definite Hermitian form of the Gram matrix. Let `σ` be a ring |
| 468 | automorphism of ℂ. Suppose that the `σ`-conjugates of the values of `v` on a set `S` have norm at |
| 469 | most `B`. Suppose also that a linear form `θ` has `‖σ (θ Q)‖ ≤ C` for every homogeneous `Q` of |
| 470 | degree `n` with `‖σ (Q z)‖ ≤ B` on `S`. Then the `σ`-conjugate of `θ ∘ v` has norm at most `C`. -/ |
| 471 | lemma sqrt_weylNormSq_comp_le_of_eval_le {T N ι : Type} [Fintype T] [DecidableEq T] [Fintype N] |
| 472 | [DecidableEq N] {κ : T → ℕ → ℕ} (σ : ℂ ≃+* ℂ) (θ : MvPolynomial ι ℂ →ₗ[ℂ] ℂ) |
| 473 | {v : WeylIndex N κ → MvPolynomial ι ℂ} {n : ℕ} {S : Set (ι → ℂ)} {B C : ℝ} |
| 474 | (hv_hom : ∀ l : WeylIndex N κ, (v l).IsHomogeneous n) |
| 475 | (hv_le : ∀ z ∈ S, √(weylNormSq (σ ∘ eval z ∘ v)) ≤ B) |
| 476 | (hθ : ∀ Q : MvPolynomial ι ℂ, Q.IsHomogeneous n → (∀ z ∈ S, ‖σ (Q.eval z)‖ ≤ B) → |
| 477 | ‖σ (θ Q)‖ ≤ C) : |
| 478 | √(weylNormSq (σ ∘ θ ∘ v)) ≤ C := by |
| 479 | -- Test against a functional f of norm at most one, and apply `hθ` to Q = ∑ f l • v l. |
| 480 | refine sqrt_weylNormSq_le_of_dual σ fun f hf ↦ ?_ |
| 481 | have hQ_hom : (∑ l, f l • v l).IsHomogeneous n := |
| 482 | (homogeneousSubmodule ι ℂ n).sum_mem fun l _ ↦ Submodule.smul_mem _ (f l) (hv_hom l) |
| 483 | have hQ_le (z : ι → ℂ) (hz : z ∈ S) : ‖σ ((∑ l, f l • v l).eval z)‖ ≤ B := by |
| 484 | simpa [dotProduct] using (hf (eval z ∘ v)).trans (hv_le z hz) |
| 485 | simpa [dotProduct] using hθ _ hQ_hom hQ_le |
| 486 | |
| 487 | /-- Let `p` be a prime with an embedding `ιₚ : ℂ → ℂ_[p]` (`PadicPlace p`). A vector `y` of weight |
| 488 | μ⁺ = `(untwistedDescentPair j).colsPlus` is `p`-integral at `h` if `weylGauge μ⁺ 0 h y ≤ 1`: all |
| 489 | coordinates of h⁻¹ · ιₚ(y) have norm at most one. Let every `f w v` be `p`-integral at `h`. Then so |
| 490 | is their double class sum over U(E^{3m}) and U(E^m) (`stdClassSum`, the sum of the values at class |
| 491 | representatives divided by the orders of the stabilisers), multiplied by the square of |
| 492 | `D.chosenGroupOrder`, which is a common multiple of these orders. -/ |
| 493 | lemma weylGauge_stdClassSum_stdClassSum_le_one {j : D.LiftIndex} {p : ℕ} [Fact p.Prime] |
| 494 | [PadicPlace p] (h : Gf D.E (FirstFactorIndex j)) |
| 495 | {f : Gf D.E D.CarrierIndex → Gf D.E (Fin D.m) → |
| 496 | WeylIndex (FirstFactorIndex j) (untwistedDescentPair j).colsPlus → ℂ} |
| 497 | (hf : ∀ (w : Gf D.E D.CarrierIndex) (v : Gf D.E (Fin D.m)), |
| 498 | weylGauge (untwistedDescentPair j).colsPlus 0 h (f w v) ≤ 1) : |
| 499 | weylGauge (untwistedDescentPair j).colsPlus 0 h |
| 500 | ((D.chosenGroupOrder ^ 2 : ℂ) • |
| 501 | stdClassSum (stdLevel D.E D.CarrierIndex) fun w : Gf D.E D.CarrierIndex ↦ |
| 502 | stdClassSum (stdLevel D.E (Fin D.m)) (f w)) ≤ 1 := by |
| 503 | -- Each of the two class sums takes one factor `D.chosenGroupOrder`, a multiple of the orders of |
| 504 | -- all the stabilisers. |
| 505 | let A : ℕ := D.chosenGroupOrder |
| 506 | have h_carrier : card D.CarrierIndex ≤ 2 * D.n D.m := by simpa using D.nat_le_of_hasLogBound |
| 507 | have h_fin : card (Fin D.m) ≤ 2 * D.n D.m := by simpa using D.nat_le_of_hasLogBound |
| 508 | have h_inner (w : Gf D.E D.CarrierIndex) : |
| 509 | weylGauge (untwistedDescentPair j).colsPlus 0 h |
| 510 | ((A : ℂ) • stdClassSum (stdLevel D.E (Fin D.m)) (f w)) ≤ 1 := by |
| 511 | simpa [A] using weylGauge_classSum_le_one h (card_classAut_dvd_chosenGroupOrder h_fin le_rfl) |
| 512 | (c := 1) (f := f w) fun v ↦ by simpa using hf w v |
| 513 | simpa [A, sq] using |
| 514 | weylGauge_classSum_le_one h (card_classAut_dvd_chosenGroupOrder h_carrier le_rfl) h_inner |
| 515 | |
| 516 | /-- Let `q` = |D.Φ| (natB + offWeight + Δ + m Δ) be the bound on the number of determinants, with |
| 517 | the weights `D.natB`, `D.offWeight` and the gap Δ = `D.gap`. Let `n ≤ (10 m + 1) q`, `n ≤ M` for |
| 518 | M = `D.M`, and `0 < H ≤ (n ^ n) ^ 3`. Let every vector `F w v` have `φ`-conjugate of norm at most |
| 519 | exp(3 x₁) |GL_{3m}(O_E/ϖ²)| √(H² M^{9 (12 m + 1) q}), where x₁ = `D.x₁` is a size parameter of the |
| 520 | data and ϖ² = `D.untwistedModulus 2` is the square of the product of the chosen places. Then the |
| 521 | double class sum of `F`, multiplied by the square of `D.chosenGroupOrder` (a common multiple of the |
| 522 | orders of the stabilisers), has `φ`-conjugate of squared norm at most exp(f m b log² b), for the |
| 523 | number f = `D.f` of infinite places, the weight b = `D.b` and log b = `D.logB`. -/ |
| 524 | lemma weylNormSq_stdClassSum_stdClassSum_le {j : D.LiftIndex} {q n : ℕ} {H : ℤ} |
| 525 | (hq : q = Fintype.card D.Φ * (D.natB + D.offWeight + D.gap + D.m * D.gap)) |
| 526 | (hn : n ≤ (10 * D.m + 1) * q) (hn_le_M : n ≤ D.M) (H_pos : 0 < H) |
| 527 | (H_le : H ≤ (n ^ n) ^ 3) (φ : ℂ ≃+* ℂ) |
| 528 | {F : Gf D.E D.CarrierIndex → Gf D.E (Fin D.m) → |
| 529 | WeylIndex (FirstFactorIndex j) (untwistedDescentPair j).colsPlus → ℂ} |
| 530 | (hF : ∀ (w : Gf D.E D.CarrierIndex) (v : Gf D.E (Fin D.m)), |
| 531 | √(weylNormSq (φ ∘ F w v)) ≤ rexp D.x₁ * rexp D.x₁ * |
| 532 | (rexp D.x₁ * card (GL D.CarrierIndex (D.untwistedModulus 2).ResidueRing) * |
| 533 | √((H : ℝ) ^ 2 * (D.M ^ 9) ^ ((12 * D.m + 1) * q)))) : |
| 534 | weylNormSq (φ ∘ ((D.chosenGroupOrder ^ 2 : ℂ) • |
| 535 | stdClassSum (stdLevel D.E D.CarrierIndex) fun w : Gf D.E D.CarrierIndex ↦ |
| 536 | stdClassSum (stdLevel D.E (Fin D.m)) (F w))) ≤ |
| 537 | rexp (D.f * D.m * D.b * D.logB ^ 2) := by |
| 538 | -- Each class sum multiplies the bound by its class number; the rest is numerical. |
| 539 | have h_sum : √(weylNormSq (φ ∘ stdClassSum (stdLevel D.E D.CarrierIndex) |
| 540 | fun w : Gf D.E D.CarrierIndex ↦ stdClassSum (stdLevel D.E (Fin D.m)) (F w))) ≤ |
| 541 | Nat.card (StdClasses (stdLevel D.E D.CarrierIndex)) * |
| 542 | (Nat.card (StdClasses (stdLevel D.E (Fin D.m))) * |
| 543 | (rexp D.x₁ * rexp D.x₁ * |
| 544 | (rexp D.x₁ * card (GL D.CarrierIndex (D.untwistedModulus 2).ResidueRing) * |
| 545 | √((H : ℝ) ^ 2 * (D.M ^ 9) ^ ((12 * D.m + 1) * q))))) := |
| 546 | sqrt_weylNormSq_classSum_le φ fun w ↦ sqrt_weylNormSq_classSum_le φ (hF w) |
| 547 | grw (transparency := default) [weylNormSq_comp_smul, (sqrt_le_iff.1 h_sum).2] |
| 548 | exact firstFactorSize_sq_le_exp hq hn hn_le_M H_pos H_le φ |
| 549 | |
| 550 | /-- The vector `y` of weight `(untwistedDescentPair j).colsPlus` is integral at `h` away from the |
| 551 | norm `ϑ.normQ` of Q (the product of the norms of the places in `ϑ.Q`), and has small conjugates if |
| 552 | `ϑ.Q` is empty: the bound is exp(f m b log² b), for the number f = `D.f` of infinite places, the |
| 553 | weight b = `D.b` and log b = `D.logB`. -/ |
| 554 | structure IsIntegralAndSmall (ϑ : D.TameChar) (j : D.LiftIndex) (h : Gf D.E (FirstFactorIndex j)) |
| 555 | (y : WeylIndex (FirstFactorIndex j) (untwistedDescentPair j).colsPlus → ℂ) : Prop where |
| 556 | /-- `y` is `p`-integral at `h` for every prime `p` that does not divide `ϑ.normQ`. -/ |
| 557 | weylGauge_le_one (p : ℕ) [Fact p.Prime] [PadicPlace p] (hp : p.Coprime ϑ.normQ) : |
| 558 | weylGauge (untwistedDescentPair j).colsPlus 0 h y ≤ 1 |
| 559 | /-- If `ϑ.Q` is empty, all conjugates of `y` have squared norm at most exp(f m b log² b). -/ |
| 560 | weylNormSq_le (hQ : ϑ.Q = ∅) (φ : ℂ ≃+* ℂ) : |
| 561 | weylNormSq (φ ∘ y) ≤ Real.exp (D.f * D.m * D.b * D.logB ^ 2) |
| 562 | |
| 563 | /-- Let `ϑ` be a tame character and χ′ = χ^j ϑ, where χ = `D.chiM` is the fixed character of U(1)(𝔸) |
| 564 | of weight `0` and tame part `D.chiMLocal`. Take the theta kernel of the standard definite spaces |
| 565 | (E^m, E^{3m}) with characters χ′ and `1`, unit modulus, datum `1` and polynomial `1`, and a constant |
| 566 | `c` that normalises such kernels. For every prime `p` with an embedding `ιₚ : ℂ → ℂ_[p]`, the image |
| 567 | of `c` times the kernel has norm at most one at all finite adelic points `v`, `w`. -/ |
| 568 | lemma norm_mul_modKernelStdSpace_twistedChiMPow_le_one {ϑ : D.TameChar} {j : D.LiftIndex} {c : ℂ} |
| 569 | (hc : IsModKernelScale (Fin D.m) D.CarrierIndex D 0 c) {p : ℕ} [Fact p.Prime] [PadicPlace p] |
| 570 | (v : Gf D.E (Fin D.m)) (w : Gf D.E D.CarrierIndex) : |
| 571 | ‖ιₚ (c * modKernelStdSpace (stdSpace D.E (Fin D.m)) (twistedChiMPow ϑ j) 1 (unitModulus D.E) 1 1 |
| 572 | (1, v) w)‖ ≤ 1 := by |
| 573 | -- Move v and w into the integral points; the kernel does not change, as the polynomial is 1 and |
| 574 | -- both characters have weight 0. |
| 575 | obtain ⟨γv, hγv, -⟩ := exists_mul_mem_integralAbove p v 1 (stdSpace D.E (Fin D.m)) |
| 576 | obtain ⟨γw, hγw, -⟩ := exists_mul_mem_integralAbove p w 1 (stdSpace D.E D.CarrierIndex) |
| 577 | have h_char := twistedChiMPow_hasWeight ϑ j |
| 578 | have h_inv : modKernelStdSpace (stdSpace D.E (Fin D.m)) (twistedChiMPow ϑ j) 1 (unitModulus D.E) |
| 579 | 1 1 (1, (stdSpace D.E (Fin D.m)).embFin γv * v) |
| 580 | ((stdSpace D.E D.CarrierIndex).embFin γw * w) = |
| 581 | modKernelStdSpace (stdSpace D.E (Fin D.m)) (twistedChiMPow ϑ j) 1 (unitModulus D.E) 1 1 |
| 582 | (1, v) w := by |
| 583 | simp [modKernelStdSpace_embFin_mul h_char .one] |
| 584 | rw [← h_inv] |
| 585 | exact hc.norm_le_one (q := 1) h_char .one Submodule.mem_top (by simp) (isHomogeneous_one _ _) |
| 586 | p.coprime_one_right hγv hγw (one_mem _) |
| 587 | |
| 588 | /-- Take the theta kernel `modKernelStdSpace` of (E^j, V″), with V″ the standard definite space on |
| 589 | the index set `FirstFactorIndex j`, for the characters `1` and `b`, a datum `Ψ` modulo `𝔪` and the |
| 590 | polynomial `1`. Let `c` be a constant that normalises such kernels. Let `b` have weight `e` at the |
| 591 | infinite places `D.Φ` and tame part `ψ`, a character of the residue field `ResField w` at each |
| 592 | finite place `w`. Let `𝔪` contain `q * D.M ^ 2`, with `D.M` the integer `M` of the data. Let the |
| 593 | values of `Ψ` have norm at most one under all ring maps `ℂ → ℂ_[l]` with `l` a prime coprime to `q`. |
| 594 | Let `p` be a prime coprime to `q`, and let `h` lie in `Gf D.E (FirstFactorIndex j)`, the finite |
| 595 | adelic unitary group of V″. Then the image under `ιₚ : ℂ → ℂ_[p]` of `c` times the kernel at `1` and |
| 596 | `h` has norm at most one. -/ |
| 597 | lemma norm_mul_modKernelStdSpace_one_le_one {j : D.LiftIndex} {c : ℂ} |
| 598 | (hc : IsModKernelScale (Fin j) (FirstFactorIndex j) D 0 c) {b : AutChar D.E} {e : D.Φ → ℤ} |
| 599 | {ψ : (w : FinPlace D.E) → MulChar (ResField w) ℂ} (hb : b.HasWeight e ψ) {q : ℕ} |
| 600 | {𝔪 : Modulus D.E} (h𝔪 : ↑(q * D.M ^ 2) ∈ 𝔪.ideal) |
| 601 | {Ψ : Matrix (FirstFactorIndex j) (Fin j) 𝔪.ResidueRing → ℂ} |
| 602 | (hΨ : ∀ x : Matrix (FirstFactorIndex j) (Fin j) 𝔪.ResidueRing, Ψ x ∈ Seesaw.integralAway q) |
| 603 | {p : ℕ} [Fact p.Prime] [PadicPlace p] (hp : p.Coprime q) (h : Gf D.E (FirstFactorIndex j)) : |
| 604 | ‖ιₚ (c * modKernelStdSpace (stdSpace D.E (Fin j)) 1 b 𝔪 Ψ 1 (1, 1) h)‖ ≤ 1 := by |
| 605 | -- Move h into the integral points; the kernel does not change, as the polynomial and the first |
| 606 | -- character are 1. |
| 607 | obtain ⟨γ, hγ, -⟩ := exists_mul_mem_integralAbove p h 1 (stdSpace D.E (FirstFactorIndex j)) |
| 608 | have h_inv : modKernelStdSpace (stdSpace D.E (Fin j)) 1 b 𝔪 Ψ 1 1 |
| 609 | ((stdSpace D.E (FirstFactorIndex j)).embFin γ * h) = |
| 610 | modKernelStdSpace (stdSpace D.E (Fin j)) 1 b 𝔪 Ψ 1 1 h := by |
| 611 | simpa [Prod.mk_one_one] using modKernelStdSpace_embFin_mul .one hb 𝔪 Ψ 1 1 γ 1 h |
| 612 | simpa [h_inv, Prod.mk_one_one] using |
| 613 | hc.norm_le_one .one hb h𝔪 hΨ (isHomogeneous_one _ _) hp (one_mem _) hγ (one_mem _) |
| 614 | |
| 615 | /-- Expansion of the conjugate of a multiple of the series Υ = `leftSideSeries ϑ j (u, i) h`, for a |
| 616 | tame character `ϑ`, a matrix `u` modulo ϖ² (`D.untwistedModulus 2`, ϖ the product of the chosen |
| 617 | places) and a class with rows `i`. Let g = `D.chosenGroupOrder`, a common multiple of the orders of |
| 618 | the stabilisers. There is `c` of modulus one, depending only on `j`, such that the conjugate of g² |
| 619 | c₂ H c₀ conj(c₁) c Υ is g² times a double class sum over U(E^{3m}) and U(E^m) of conjugates of |
| 620 | products of three theta kernels of definite spaces: `k₀` of (E^m, E^{3m}), the conjugate of `k₁` of |
| 621 | (E^j, V″), and c₂ times the kernel of (W^add, V″) at the polynomial vector |
| 622 | `H • stackedDetProdCoords j i (D.shortRows i)`, formed with a short basis of the class. V″ and W^add |
| 623 | are the spaces on `FirstFactorIndex j` and `AddedIndex j`, and the last two kernels have modulus |
| 624 | ϖ²Q. Here `Ψ x` is the conjugate, at `normNegOne • x` (a chosen element of norm −1, reduced), of the |
| 625 | indicator of the matrix of the inclusion E^j → V″ (`inclMatrix`), and `b'` is the inverse of the |
| 626 | character `firstFactorChar ϑ j` times the power rank V″ of `upsilonU1` (υ on the norm-one ideles). |
| 627 | The scalars `c₀`, `c₁`, `c₂` and the integer `H` are arbitrary. -/ |
| 628 | lemma exists_star_leftSideSeries_eq_classSum (j : D.LiftIndex) : |
| 629 | ∃ c : ℂ, ‖c‖ = 1 ∧ ∀ (c₀ c₁ c₂ : ℂ) (H : ℤ) |
| 630 | (u : Matrix D.CarrierIndex (FirstFactorIndex j) (D.untwistedModulus 2).ResidueRing) |
| 631 | (i : D.RowChoice) (ϑ : D.TameChar) (h : Gf D.E (FirstFactorIndex j)), |
| 632 | let Ψ : Matrix (FirstFactorIndex j) (Fin j) (D.twistModulus ϑ 2).ResidueRing → ℂ := fun x ↦ |
| 633 | (conj ∘ Pi.single (inclMatrix (D.twistModulus ϑ 2).ResidueRing (inl ∘ inr ∘ inl)) 1) |
| 634 | ((D.twistModulus ϑ 2).normNegOne • x) |
| 635 | let b' : AutChar D.E := (firstFactorChar ϑ j)⁻¹ * WeilData.upsilonU1 ^ Nat.card |
| 636 | (FirstFactorIndex j) |
| 637 | let k₀ (v : Gf D.E (Fin D.m)) (w : Gf D.E D.CarrierIndex) : ℂ := |
| 638 | c₀ * modKernelStdSpace (stdSpace D.E (Fin D.m)) (twistedChiMPow ϑ j) 1 (unitModulus D.E) 1 1 |
| 639 | (1, v) w |
| 640 | let k₁ : ℂ := c₁ * modKernelStdSpace (stdSpace D.E (Fin j)) 1 b' (D.twistModulus ϑ 2) Ψ 1 |
| 641 | (1, 1) h |
| 642 | star ((D.chosenGroupOrder * D.chosenGroupOrder * c₂ * H * c₀ * conj c₁ * c : ℂ) • |
| 643 | leftSideSeries ϑ j (u, i) h) = |
| 644 | (D.chosenGroupOrder ^ 2 : ℂ) • |
| 645 | stdClassSum (stdLevel D.E D.CarrierIndex) fun w : Gf D.E D.CarrierIndex ↦ |
| 646 | stdClassSum (stdLevel D.E (Fin D.m)) fun v : Gf D.E (Fin D.m) ↦ |
| 647 | star ((k₀ v w * conj k₁) • c₂ • |
| 648 | modKernelBilin (stdSpace D.E (AddedIndex j)) (stdSpace D.E (FirstFactorIndex j)) |
| 649 | (firstFactorChar ϑ j) (firstFactorChar ϑ j) (D.twistModulus ϑ 2) |
| 650 | (1, U.blockSumOne (1, U.blockSumOne (i.classRep, w))) (1, h) |
| 651 | (addedDatum ϑ j u) ∘ |
| 652 | (H • stackedDetProdCoords j i (D.shortRows i))) := by |
| 653 | -- The first factor of Υ, a kernel of ((E^j)⁻, V″), is a multiple of conj k₁. The other factor is |
| 654 | -- a double class sum once `carrierCoeff` is expanded. Then conjugate term by term. |
| 655 | obtain ⟨c, hc, h_neg⟩ := |
| 656 | exists_conj_modKernel_eq_mul_modKernel_neg (stdSpace D.E (Fin j)) |
| 657 | (stdSpace D.E (FirstFactorIndex j)) |
| 658 | refine ⟨c, hc, fun c₀ c₁ c₂ H u i ϑ h ↦ ?_⟩ |
| 659 | intro Ψ b' k₀ k₁ |
| 660 | ext l |
| 661 | have h_char : b'⁻¹ * WeilData.upsilonU1 ^ card (FirstFactorIndex j) = firstFactorChar ϑ j := by |
| 662 | rw [← Nat.card_eq_fintype_card, mul_inv, inv_inv, inv_mul_cancel_right] |
| 663 | have h_first : conj k₁ = conj c₁ * c * |
| 664 | modKernelStdSpace (stdSpace D.E (Fin j)).neg (WeilData.upsilonU1 ^ j.val) |
| 665 | (firstFactorChar ϑ j) (D.twistModulus ϑ 2) |
| 666 | (Pi.single (inclMatrix (D.twistModulus ϑ 2).ResidueRing (inl ∘ inr ∘ inl)) 1) 1 1 h := by |
| 667 | rw [map_mul, h_neg, h_char, mul_assoc] |
| 668 | simp [Ψ, Prod.mk_one_one] |
| 669 | -- `θ w` is the kernel of (W^add, V″) at the coordinate `l` of ζ. |
| 670 | let θ (w : Gf D.E D.CarrierIndex) : ℂ := |
| 671 | modKernelStdSpace (stdSpace D.E (AddedIndex j)) (firstFactorChar ϑ j) (firstFactorChar ϑ j) |
| 672 | (D.twistModulus ϑ 2) (addedDatum ϑ j u) (stackedDetProdCoords j i (D.shortRows i) l) |
| 673 | (1, U.blockSumOne (1, U.blockSumOne (i.classRep, w))) h |
| 674 | have h_series : c₂ * H * c₀ * conj c₁ * c * leftSideSeries ϑ j (u, i) h l = |
| 675 | stdClassSum (stdLevel D.E D.CarrierIndex) fun w : Gf D.E D.CarrierIndex ↦ |
| 676 | stdClassSum (stdLevel D.E (Fin D.m)) fun v : Gf D.E (Fin D.m) ↦ |
| 677 | k₀ v w * conj k₁ * (c₂ * (H * θ w)) := by |
| 678 | simp only [leftSideSeries, carrierCoeff, classSum_mul, mul_classSum, h_first, k₀, θ] |
| 679 | ac_rfl |
| 680 | -- Class sums of vectors are computed coordinate by coordinate. |
| 681 | have h_coord {n : Type} [Fintype n] [DecidableEq n] |
| 682 | (F : Gf D.E n → WeylIndex (FirstFactorIndex j) (untwistedDescentPair j).colsPlus → ℂ) : |
| 683 | stdClassSum (stdLevel D.E n) F l = stdClassSum (stdLevel D.E n) fun g : Gf D.E n ↦ F g l := |
| 684 | map_classSum (Pi.evalAddMonoidHom (fun _ ↦ ℂ) l) F |
| 685 | have h_scalar : D.chosenGroupOrder * D.chosenGroupOrder * c₂ * H * c₀ * conj c₁ * c * |
| 686 | leftSideSeries ϑ j (u, i) h l = |
| 687 | D.chosenGroupOrder ^ 2 * (c₂ * H * c₀ * conj c₁ * c * leftSideSeries ϑ j (u, i) h l) := by |
| 688 | ring |
| 689 | rw [Pi.star_apply, Pi.smul_apply, smul_eq_mul, h_scalar, h_series] |
| 690 | simp [h_coord, map_classSum, θ, ← Int.cast_smul_eq_zsmul ℂ H] |
| 691 | |
| 692 | /-- For 1 ≤ j ≤ m there is one c ≠ 0, independent of i, ϑ and h, such that every vector y = conj |
| 693 | (c · Υ) is integral and small in the sense of `New.Data.IsIntegralAndSmall`: for every prime p that |
| 694 | does not divide `ϑ.normQ`, the product of the norms of the places in `ϑ.Q`, the coordinates of |
| 695 | h⁻¹ · ιₚ(y) are `p`-integral (`New.weylGauge` ≤ 1), and if `ϑ.Q = ∅`, every conjugate φ ∘ y, |
| 696 | φ ∈ Aut(ℂ), has squared norm at most exp(f m b log² b), with the number f = `D.f` of infinite |
| 697 | places, m = `D.m`, the weight b = `D.b` and log b = `D.logB`. -/ |
| 698 | lemma exists_isIntegralAndSmall_leftSideSeries (j : D.LiftIndex) : |
| 699 | ∃ c ≠ (0 : ℂ), ∀ (i : ChoiceIndex j) (ϑ : D.TameChar) (h : Gf D.E (FirstFactorIndex j)), |
| 700 | IsIntegralAndSmall ϑ j h (star (c • leftSideSeries ϑ j i h)) := by |
| 701 | -- Write the vector y as a double class sum of terms conj(k₀ · conj k₁ · k₂), three kernels of |
| 702 | -- definite pairs, each made integral by a constant from `exists_ne_zero_isModKernelScale`; |
| 703 | -- the last is evaluated on H·`stackedDetProdCoords`. Integrality: move the classes into the |
| 704 | -- p-integral points and multiply the three bounds. Size: bound each term by duality, count the |
| 705 | -- classes, via `weylNormSq_stdClassSum_stdClassSum_le`. `q` bounds the total number of |
| 706 | -- determinants, over the infinite places. |
| 707 | let q : ℕ := card D.Φ * (D.natB + D.offWeight + D.gap + D.m * D.gap) |
| 708 | have h_detCount : ∑ τ : D.Φ, card (DetIndex j τ) ≤ q := |
| 709 | sum_le_card_nsmul _ _ _ fun τ _ ↦ card_detIndex_le j τ |
| 710 | -- The degree n ≤ (10 m + 1) q and the denominator 0 < H ≤ n³ⁿ of ζ: by `h_denom`, each |
| 711 | -- `H • stackedDetProdCoords j i Y l` is homogeneous of degree n, with coefficients in every |
| 712 | -- subring of ℂ that contains the conjugates of the entries of `Y`. |
| 713 | obtain ⟨n, hn, H, H_pos, H_le, h_denom⟩ := |
| 714 | exists_isHomogeneousOverEntries_smul_stackedDetProdCoords j |
| 715 | grw [h_detCount] at hn |
| 716 | have hn_le_M : n ≤ D.M := hn.trans D.nat_le_of_hasLogBound |
| 717 | -- The constants of the three kernels: by `K₀`, `K₁`, `K₂`, cᵢ times the kernel is integral at |
| 718 | -- p-integral points and has bounded conjugates. |
| 719 | obtain ⟨c₀, hc₀, K₀⟩ := exists_ne_zero_isModKernelScale (Fin D.m) D.CarrierIndex D 0 |
| 720 | obtain ⟨c₁, hc₁, K₁⟩ := exists_ne_zero_isModKernelScale (Fin j) (FirstFactorIndex j) D 0 |
| 721 | obtain ⟨c₂, hc₂, K₂⟩ := exists_ne_zero_isModKernelScale (AddedIndex j) (FirstFactorIndex j) D |
| 722 | n |
| 723 | obtain ⟨c, hc, h_expand⟩ := exists_star_leftSideSeries_eq_classSum j |
| 724 | let scale : ℂ := D.chosenGroupOrder * D.chosenGroupOrder * c₂ * H * c₀ * conj c₁ * c |
| 725 | refine ⟨scale, ?_, ?_⟩ |
| 726 | · simp [scale, H_pos.ne', ne, ← norm_pos_iff, hc, hc₀, hc₁, hc₂] |
| 727 | intro ⟨u, i⟩ ϑ h |
| 728 | -- The characters and the data of the kernels; the data are integral away from `ϑ.normQ`. |
| 729 | let 𝔪 : Modulus D.E := D.twistModulus ϑ 2 |
| 730 | let b' : AutChar D.E := (firstFactorChar ϑ j)⁻¹ * WeilData.upsilonU1 ^ Nat.card |
| 731 | (FirstFactorIndex j) |
| 732 | have hb : (firstFactorChar ϑ j).HasWeight (firstFactorCharExp j + -D.liftWeight j ·) |
| 733 | (D.liftTamePart ϑ j) := |
| 734 | inferInstance |
| 735 | have hb' : b'.HasWeight _ (D.liftTamePart ϑ j)⁻¹ := hb.inv.mul_upsilonU1_pow _ |
| 736 | let Ψ : Matrix (FirstFactorIndex j) (Fin j) 𝔪.ResidueRing → ℂ := fun x ↦ |
| 737 | (conj ∘ Pi.single (inclMatrix 𝔪.ResidueRing (inl ∘ inr ∘ inl)) 1) (𝔪.normNegOne • x) |
| 738 | have hΨ (x : Matrix (FirstFactorIndex j) (Fin j) 𝔪.ResidueRing) : |
| 739 | Ψ x ∈ Seesaw.integralAway ϑ.normQ := by |
| 740 | simp [Ψ, apply_ite, Pi.single_apply] |
| 741 | have h𝔪 : ↑(ϑ.normQ * D.M ^ 2) ∈ 𝔪.ideal := normQ_mul_M_pow_mem_modulus |
| 742 | -- The kernels: `k₀`, `k₁` with their constants, and `θ w` as a linear map on polynomials. |
| 743 | let k₀ (v : Gf D.E (Fin D.m)) (w : Gf D.E D.CarrierIndex) : ℂ := |
| 744 | c₀ * modKernelStdSpace (stdSpace D.E (Fin D.m)) (twistedChiMPow ϑ j) 1 (unitModulus D.E) 1 1 |
| 745 | (1, v) |
| 746 | w |
| 747 | let k₁ : ℂ := c₁ * modKernelStdSpace (stdSpace D.E (Fin j)) 1 b' 𝔪 Ψ 1 (1, 1) h |
| 748 | let θ (w : Gf D.E D.CarrierIndex) : MvPolynomial (D.Φ × FirstFactorIndex j × AddedIndex j) ℂ →ₗ[ℂ] |
| 749 | ℂ := |
| 750 | modKernelBilin (stdSpace D.E (AddedIndex j)) (stdSpace D.E (FirstFactorIndex j)) |
| 751 | (firstFactorChar ϑ j) |
| 752 | (firstFactorChar ϑ j) 𝔪 (1, U.blockSumOne (1, U.blockSumOne (i.classRep, w))) (1, h) |
| 753 | (addedDatum ϑ j u) |
| 754 | have hy : star (scale • leftSideSeries ϑ j (u, i) h) = |
| 755 | (D.chosenGroupOrder ^ 2 : ℂ) • |
| 756 | stdClassSum (stdLevel D.E D.CarrierIndex) fun w ↦ |
| 757 | stdClassSum (stdLevel D.E (Fin D.m)) fun v ↦ |
| 758 | star ((k₀ v w * conj k₁) • c₂ • θ w ∘ (H • stackedDetProdCoords j i (D.shortRows i))) := |
| 759 | h_expand c₀ c₁ c₂ H u i ϑ h |
| 760 | rw [hy] |
| 761 | refine ⟨fun p _ _ hp ↦ ?_, fun hQ_empty φ ↦ ?_⟩ |
| 762 | · -- Integrality of each term of the double class sum. |
| 763 | refine weylGauge_stdClassSum_stdClassSum_le_one h fun w v ↦ ?_ |
| 764 | -- The vector is a complex conjugate, so its factors are read at the place ι = `ιₚ ∘ conj`. |
| 765 | let ι : ℂ →+* ℂ_[p] := ιₚ.comp conj |
| 766 | have int₀ : ‖ι (k₀ v w)‖ ≤ 1 := |
| 767 | let _ : PadicPlace p := ⟨ι⟩ |
| 768 | norm_mul_modKernelStdSpace_twistedChiMPow_le_one K₀ v w |
| 769 | have int₁ : ‖ιₚ k₁‖ ≤ 1 := norm_mul_modKernelStdSpace_one_le_one K₁ hb' h𝔪 hΨ hp h |
| 770 | have gauge₂ : weylGauge (untwistedDescentPair j).colsPlus 0 h |
| 771 | (star (c₂ • θ w ∘ (H • stackedDetProdCoords j i (D.shortRows i)))) ≤ 1 := by |
| 772 | refine weylGauge_modKernelBilin_stackedDetProdCoords_le_one j i _ c₂ H |
| 773 | (fun g' hg' h' hh' Y hY l ↦ ?_) w h |
| 774 | let _ : PadicPlace p := ⟨ι⟩ |
| 775 | exact K₂.norm_le_one hb hb h𝔪 (addedDatum_mem_integralAway j u · ϑ.normQ) |
| 776 | (isHomogeneous_iff_aeval_smul_X.2 (h_denom i Y l).aeval_smul_X) hp hg' hh' |
| 777 | ((h_denom i Y l).mem_range _ hY) |
| 778 | rw [star_smul, weylGauge_smul] |
| 779 | refine (mul_le_of_le_one_left (norm_nonneg _) ?_).trans gauge₂ |
| 780 | simpa [ι] using (mul_le_of_le_one_left (norm_nonneg _) int₀).trans int₁ |
| 781 | · -- Size. With σ = φ ∘ conj, bound the σ-conjugates of the three kernels. |
| 782 | let σ : ℂ ≃+* ℂ := starRingAut.trans φ |
| 783 | have h_level : ϑ.normQ = 1 := by simp [hQ_empty] |
| 784 | rw [h_level, one_mul] at h𝔪 |
| 785 | obtain ⟨hm, h_carrier, hj, h_first, h_added⟩ := card_le_gap j |
| 786 | have size₀ (v : Gf D.E (Fin D.m)) (w : Gf D.E D.CarrierIndex) : ‖σ (k₀ v w)‖ ≤ rexp D.x₁ := by |
| 787 | simpa [k₀] using K₀.norm_map_le hm h_carrier (Nat.zero_le _) (twistedChiMPow_hasWeight ϑ j) |
| 788 | .one |
| 789 | (𝔪 := unitModulus D.E) (Ψ := 1) (A := 1) (B := 1) Submodule.mem_top (by simp) |
| 790 | (isHomogeneous_one _ _) σ (by simp) v w |
| 791 | have size₁ : ‖σ (conj k₁)‖ ≤ rexp D.x₁ := by |
| 792 | simpa [k₁] using K₁.norm_map_le hj h_first (Nat.zero_le _) .one hb' h𝔪 (Ψ := Ψ) (A := 1) |
| 793 | (B := 1) (by simp [Ψ, apply_ite, ite_apply, Pi.single_apply]) (isHomogeneous_one _ _) |
| 794 | (starRingAut.trans σ) (by simp) 1 h |
| 795 | -- N bounds the datum `addedDatum`, and B the vector H·`stackedDetProdCoords` at small points. |
| 796 | let N : ℕ := card (GL D.CarrierIndex (D.untwistedModulus 2).ResidueRing) |
| 797 | let B : ℝ := √((H : ℝ) ^ 2 * (D.M ^ 9) ^ ((12 * D.m + 1) * q)) |
| 798 | -- By duality it is enough to bound the kernel at every Q that is small at the small points. |
| 799 | refine weylNormSq_stdClassSum_stdClassSum_le rfl hn hn_le_M H_pos H_le φ fun w v ↦ |
| 800 | sqrt_weylNormSq_comp_le_of_eval_le σ ((k₀ v w * conj k₁) • c₂ • θ w) |
| 801 | (S := {z | ∀ x, ‖σ (z x)‖ ≤ D.M ^ 4}) |
| 802 | (fun l ↦ isHomogeneous_iff_aeval_smul_X.2 (h_denom i (D.shortRows i) l).aeval_smul_X) |
| 803 | (fun z hz ↦ sqrt_weylNormSq_smul_eval_stackedDetProdCoords_le j i h_detCount H σ hz) |
| 804 | fun Q hQ_hom hQ_le ↦ ?_ |
| 805 | have size₂ : ‖σ (c₂ * θ w Q)‖ ≤ rexp D.x₁ * N * B := |
| 806 | K₂.norm_map_le h_added h_first hn_le_M hb hb h𝔪 (norm_map_addedDatum_le j u) hQ_hom σ hQ_le |
| 807 | _ h |
| 808 | simpa [mul_assoc] using norm_mul_le_of_le (norm_mul_le_of_le (size₀ v w) size₁) size₂ |
| 809 | |
| 810 | end New.Data |
| 811 | |
| 812 | end |