module import Mathlib.Data.Rat.Cast.OfScientific import TauCeti.Analysis.SpecialFunctions.Log.Factorial public import New.Reduction.PrimeSums public import New.Spanning.Unfolding.FillingAdmissible public import New.UpperBound.Objects.RowChain public import New.UpperBound.Size.Estimates import Lib.General.LinearAlgebra.MatrixNormBounds import New.Reduction.Data.Sizes import New.UpperBound.Divisibility.ChainDatumExpansion import New.UpperBound.Divisibility.ChainValuation /-! # Archimedean size of the composite lift, and passage to target forms by the good projection The composite lift of a chain datum is `New.Data.restrictedChain` of the expansion of its glued tensor, so its size (`New.Data.weylNormSq_compositeLift_le`) follows from the bound for `New.Data.restrictedChain`. This map sends source forms (algebraic forms on `X_0`) to forms on `Y_m`. Separately, a form `z` of principal level on `Yβ‚€` (the side of the target forms) is replaced by its good part `|𝖦| eβ‚€ s z`. For the lift to `Y_m` (`lowerChainAtLevel`), this replacement keeps integrality of any scalar multiple `c β€’` of it, and it enlarges the bound `exp B` on its values to a bound `exp (x ^ 99 + B)` on the class sum. ## Main definitions and results * `New.Data.rowSizeSum`, `New.Data.chainSize`: the size of the rows of one lift diagram, and the main term of the size of the chain. * `New.Data.weylNormSq_restrictedChain_le`, `New.Data.weylNormSq_compositeLift_le`: the size bounds for the restricted chain and for the composite lift. * `New.Data.lowerChain_goodProjTranslate_apply`: the lift of `|𝖦| eβ‚€ s z` is a combination of right translates of the lift of `z`, with the coefficients of `|𝖦| eβ‚€`. Notions from other files: * `New.Data.jetSize`: The size `s_∞(j) = log j! + j log (M / Ξ©)` of a derivative of order `j`. * `New.Data.restrictedChain`: For coefficients `Ξ¨` on translations of the integral vacuum, the combination of the chains of `m` lifts of these translates, restricted to `Y_m`. `Ξ¨` is a weak chain datum (`New.Data.IsWeakChainDatum`) if the combined tensor is invariant and the coefficients are admissible. * `New.Data.gain`: The divisibility at a prime `p` that is asked of the chain. * `New.LevelPlaces.LevelForm.integralForms`: The forms Ο† whose value Ο†(g) has gauge `New.weylGauge` at most 1 for every g. * `New.LevelPlaces.LevelForm.normSqAt`: The class sum of the squared Gram norms `New.weylNormSq` of the vectors Οƒ(Ο†(g)). ## Relation to the literature The untwisted chain of lifts enlarges squared norms of all conjugates by at most an explicit factor, which gives the size side of the product formula. Related work on algebraic modular forms as values on lattice classes: Gross, Algebraic modular forms, 1999; Greenberg–Voight, Lattice methods for algebraic modular forms on classical groups, 2014. -/ @[expose] public section /-! ## Archimedean size bound for the composite of theta lifts on source forms The map `New.Data.restrictedChain` is a combination, with coefficients `Ξ¨`, of chains of `m` theta lifts `X_0 β†’ X_1 β†’ … β†’ X_m`, followed by the restriction `New.Data.restrictToY` to `Y_m`. The proof of `New.Data.weylNormSq_restrictedChain_le` multiplies four bounds: those for the single lifts (`New.Parameters.sqrt_weylNormSq_schurJet_le_of_isVacuumCombination`), the class numbers, the size of the coefficients and the bound for the restriction. -/ section SizeBound open Finset Real namespace New.Data open Parameters /-! ### The level compensates the excess -/ /-- The excess of one lift: `s_∞(a) - s_main ≀ a log (ΞΊΜ„ M rd_E / 2Ο€) + 1 + (log a) / 2`. Here `a = D.a` is the product `x b` of the integer scales `x` and `b` of the data `D`, `M = D.M` is the product of the two primes of the principal level, `rd_E` is the root discriminant of the CM field `E = D.E`, and `log ΞΊΜ„` is the mean of `log ΞΊ(Ο„)`, with `ΞΊ = D.weight`, over the set `D.Ξ¦` of the `f = D.f` infinite places of `E`. Further `s_∞(a) = D.jetSize a = log a! + a log (M / Ξ©)`, with the period `Ξ© = P.bigOmega D.towerExp`, and `s_main = D.mainPrimeSum = a (log (a / ΞΊΜ„) + c₁)`, with `c₁` the real part of `logDerivMean P.d 1 1`. -/ lemma jetSize_sub_mainPrimeSum_le {P : Parameters} (D : Data P) : D.jetSize D.a - D.mainPrimeSum ≀ D.a * ((βˆ‘ Ο„ : D.Ξ¦, log (D.weight Ο„)) / D.f + log (D.M * D.rootDisc / (2 * Real.pi))) + (1 + log D.a / 2) := by have stirling := Real.log_factorial_le D.a -- We have `log Ξ© = -1 - c₁ + log (2Ο€ / rd_E)`, with `c₁` the real part of `logDerivMean P.d 1 1`. have period : log (D.M / P.bigOmega D.towerExp) = 1 + (logDerivMean P.d 1 1).re + log (D.M * D.rootDisc / (2 * Real.pi)) := by rw [re_logDerivMean_one, bigOmega] -- Expand both logarithms; the terms in `c₁`, `M`, `Ο€` and `rd_E` agree. simp [log_div, log_mul, (HasLogBound.pos D).ne'] ring -- The constant `c₁` cancels. rw [jetSize, mainPrimeSum, period] linarith /-- The level compensates the excess of the `m` lifts: `m (s_∞(a) - s_main) - a log N ≀ 32 a log b`. Here `m = D.m` is the number of theta lifts in the chain, `a = D.a` is the product `x b` of the integer scales `x` and `b` of the data `D`, `log b = D.logB`, and the level `N = D.N` is a prime. Further `s_∞(a) = D.jetSize a = log a! + a log (M / Ξ©)`, with `M = D.M` the product of the two primes of the principal level and `Ξ©` the period `New.Parameters.bigOmega` of the field `D.E`, and `s_main = D.mainPrimeSum` is the expected mean of the prime sums `D.primeSum a Ο„` over the infinite places `Ο„ ∈ D.aPlaces`. -/ lemma mul_jetSize_sub_mainPrimeSum_sub_le {P : Parameters} (D : Data P) : D.m * (D.jetSize D.a - D.mainPrimeSum) - D.a * log D.N ≀ 32 * (D.a * D.logB) := by set w : ℝ := (βˆ‘ Ο„ : D.Ξ¦, log (D.weight Ο„)) / D.f set G : ℝ := log (D.M * D.rootDisc / (2 * Real.pi)) -- The lower end of the window for `log N`. have level : D.m * (w + G) - (G + 15 / 2 * D.logB) ≀ log D.N := by grw [← D.log_N_mem_Icc_logLevelTarget.1, logLevelTarget, New.Parameters.logLevelMin] linarith have h_stirling : D.m * (1 + log D.a / 2) ≀ D.a * D.logB := D.le_of_hasLogBound have h_size : G ≀ 23 * D.logB := D.log_M_mul_rootDisc_mem_Icc.2 have h_log : 0 ≀ D.logB := (HasLogBound.pos D).le calc D.m * (D.jetSize D.a - D.mainPrimeSum) - D.a * log D.N ≀ D.m * (D.a * (w + G) + (1 + log D.a / 2)) - D.a * (D.m * (w + G) - (G + 15 / 2 * D.logB)) := by grw [D.jetSize_sub_mainPrimeSum_le, ← level] -- The terms `m a (w + G)` cancel. _ = D.m * (1 + log D.a / 2) + D.a * (G + 15 / 2 * D.logB) := by ring _ ≀ D.a * D.logB + D.a * (23 * D.logB + 8 * D.logB) := by grw [h_stirling, h_size, show (15 / 2 : ℝ) ≀ 8 by norm_num] _ = 32 * (D.a * D.logB) := by ring /-- The level compensates the excess at all `a`-places together: `#Ξ¦_a (m (s_∞(a) - s_main) - a log N) ≀ 32 f a log b`. Here `Ξ¦_a = D.aPlaces` is a set of infinite places of `D.E`, `f = D.f` is the number of all infinite places, `s_∞ = D.jetSize` and `s_main = D.mainPrimeSum`. -/ lemma card_aPlaces_mul_excess_le {P : Parameters} (D : Data P) : #D.aPlaces * (D.m * (D.jetSize D.a - D.mainPrimeSum) - D.a * log D.N) ≀ 32 * (D.f * D.a * D.logB) := by have h_log : 0 ≀ D.logB := (HasLogBound.pos D).le grw [mul_jetSize_sub_mainPrimeSum_sub_le, show #D.aPlaces ≀ D.f from card_le_univ _] linarith /-! ### The exponent in the size bound -/ /-- The gains add up to the prime sums: over the primes `p < x₁` that do not split in `K = β„š(√-d)`, with `d = P.d` and the cut-off `x₁ = D.x₁`, `2 βˆ‘ gain_p log p = m βˆ‘_{Ο„ ∈ Ξ¦_a} s_fin(a, Ο„) + m k βˆ‘_Ο„ s_fin(ΞΊ(Ο„), Ο„)`. Here `gain_p = D.gain p` is the divisibility at `p` asked of the chain of `m = D.m` theta lifts, `k = D.k` is the rank of the source of the chain, `ΞΊ(Ο„) = D.weight Ο„` is the weight at the infinite place `Ο„` of `D.E`, and `Ξ¦_a = D.aPlaces` is the set of places `≑ 1` modulo `P.qβ‚€`. The prime sum `D.primeSum y Ο„` is `s_fin(y, Ο„) = βˆ‘_{1 ≀ Ξ½ ≀ a} Ξ›(Ξ½) (1 - Ο‡_K(Ξ½)) (y / Ξ½ - ΞΊ(-Ξ½ Ο„))β‚Š`, with `a = D.a`. -/ lemma two_mul_sum_gain_mul_log {P : Parameters} (D : Data P) : 2 * βˆ‘ p ∈ D.smallNonsplitPrimes, D.gain p * log p = D.m * βˆ‘ Ο„ ∈ D.aPlaces, D.primeSum D.a Ο„ + D.m * D.k * βˆ‘ Ο„ : D.Ξ¦, D.primeSum (D.weight Ο„) Ο„ := by -- The gain is zero at split primes, so the sum may run over all primes below `x₁`. have h_primes : βˆ‘ p ∈ D.smallNonsplitPrimes, D.gain p * log p = βˆ‘ p ∈ range ⌈D.xβ‚βŒ‰β‚Š with p.Prime, D.gain p * log p := by rw [smallNonsplitPrimes, ← filter_filter] exact sum_filter_of_ne fun p _ h_ne h_split ↦ h_ne (by simp [D.gain_eq_zero (Or.inl h_split)]) -- Each prime sum is the sum of its local terms over the same primes. have h_aPlaces : βˆ‘ Ο„ ∈ D.aPlaces, D.primeSum D.a Ο„ = βˆ‘ p ∈ range ⌈D.xβ‚βŒ‰β‚Š with p.Prime, βˆ‘ Ο„ ∈ D.aPlaces, 2 * D.localPrimeSum p D.a Ο„ * log p := (sum_congr rfl fun Ο„ _ ↦ D.primeSum_eq_sum_localPrimeSum le_rfl Ο„ le_rfl).trans sum_comm have h_allPlaces : βˆ‘ Ο„ : D.Ξ¦, D.primeSum (D.weight Ο„) Ο„ = βˆ‘ p ∈ range ⌈D.xβ‚βŒ‰β‚Š with p.Prime, βˆ‘ Ο„ : D.Ξ¦, 2 * D.localPrimeSum p (D.weight Ο„) Ο„ * log p := (sum_congr rfl fun Ο„ _ ↦ D.primeSum_eq_sum_localPrimeSum le_rfl Ο„ D.le_of_hasLogBound).trans sum_comm rw [h_primes, h_aPlaces, h_allPlaces, mul_sum, mul_sum, mul_sum, ← sum_add_distrib] refine sum_congr rfl fun p _ ↦ ?_ simp only [gain, localPrimeSumTotal, ← sum_mul, ← mul_sum] ring /-- The prime sums cancel in the exponent of the size bound: `h_main - m rem + 2 βˆ‘ gain_p log p = m #Ξ¦_a s_main + m k βˆ‘_Ο„ s_∞(ΞΊ(Ο„))`. Write `s_∞ = D.jetSize` for the size `log j! + j log (M / Ξ©)` of a derivative of order `j`, `s_fin = D.primeSum` for the prime sums, `s_main = D.mainPrimeSum` for the expected mean of `s_fin(a, Ο„)` over `Ο„ ∈ Ξ¦_a = D.aPlaces`, and `ΞΊ(Ο„) = D.weight Ο„` for the weight at an infinite place `Ο„`. Then the main amount is `h_main = m k βˆ‘_Ο„ (s_∞(ΞΊ(Ο„)) - s_fin(ΞΊ(Ο„), Ο„))`, with `m` the number of lifts and `k` the rank of the source, the total remainder is `rem = βˆ‘_{Ο„ ∈ Ξ¦_a} (s_fin(a, Ο„) - s_main)`, and `gain_p = D.gain p` is the divisibility asked at a prime `p < x₁` that does not split in `β„š(√-d)`. -/ lemma mainAmount_sub_add_two_mul_sum_gain {P : Parameters} (D : Data P) : D.mainAmount - D.m * D.totalRemainder + 2 * βˆ‘ p ∈ D.smallNonsplitPrimes, D.gain p * log p = D.m * #D.aPlaces * D.mainPrimeSum + D.m * D.k * βˆ‘ Ο„ : D.Ξ¦, D.jetSize (D.weight Ο„) := by simp only [two_mul_sum_gain_mul_log, mainAmount, directionAmount, totalRemainder, sum_sub_distrib, sum_const, nsmul_eq_mul] ring /-! ### One kernel -/ /-- For row `i` of the Young diagram of the weight of a lift at the infinite place `Ο„`, the main length plus the slack is at most `2 a`, where `a = D.a` is the product `x b` of two scales. The main length is `a` or `0` for `i = 0`, the weight `D.weight Ο„` for `0 < i < D.k`, and `0` otherwise; the slack is the number of boxes by which the row may exceed its main length. -/ lemma rowMainLength_add_rowSlack_le {P : Parameters} (D : Data P) (Ο„ : D.Ξ¦) (i : β„•) : D.rowMainLength Ο„ i + D.rowSlack i ≀ 2 * D.a := by have h_slack : D.natB + D.offWeight + D.halfGap ^ 2 ≀ D.a := D.nat_le_of_hasLogBound have h_weight : D.weight Ο„ ≀ D.natB + D.offWeight := D.weight_le_natB_add_offWeight Ο„ -- Both the main length and the slack are at most `a`. have h_main_le : D.rowMainLength Ο„ i ≀ D.a := by rw [rowMainLength, columnCount_one, firstRowExcess] split_ifs <;> omega have h_slack_le : D.rowSlack i ≀ D.a := by rw [rowSlack] split_ifs <;> omega omega /-- The sum of `s_∞ = D.jetSize` over the lengths of the first `n_j = D.n j` rows, at all infinite places `Ο„`, of the Young diagrams of the weight of the lift from `X_j` to `X_{j+1}`. The diagram at `Ο„` has `D.columnCount Ο„ h` columns of height `h`. -/ noncomputable def rowSizeSum {P : Parameters} (D : Data P) (j : β„•) : ℝ := βˆ‘ Ο„ : D.Ξ¦, βˆ‘ i ∈ range (D.n j), D.jetSize (diagramWeight (rankAt fun _ : D.Ξ¦ ↦ D.X (j + 1)) D.columnCount (Ο„, i)) /-- The main term `m (#Ξ¦_a s_∞(a) + k βˆ‘ Ο„, s_∞(ΞΊ(Ο„)))` of the size of the chain of `m` lifts, where `s_∞ = D.jetSize`, `ΞΊ = D.weight`, `k` is the rank of the source and `Ξ¦_a = D.aPlaces` is the set of `a`-places, the places at which the diagrams have `a` columns of height `1`. -/ noncomputable def chainSize {P : Parameters} (D : Data P) : ℝ := D.m * (#D.aPlaces * D.jetSize D.a + D.k * βˆ‘ Ο„ : D.Ξ¦, D.jetSize (D.weight Ο„)) /-- **One kernel.** Let `j < m`, let `X_j` be the definite hermitian space over `E = D.E` with basis `D.X j`, and let `Gf` denote the finite adelic points of its unitary group. The theta kernel `D.liftKernel TameChar.one j` of the lift from `X_j` to `X_{j+1}`, for the trivial twisting character, acts through the Weil representation `Ο‰` on Schwartz functions. Apply `Ο‰ (g, g')` to the translate `D.translateDatum t j` by `t` of the normalised vacuum function; `jetMap` turns the result into a linear map between the Weyl modules with column numbers `D.columnCount`, whose coordinates are indexed by `WeylIndex`. For `Οƒ ∈ Aut β„‚`, this map multiplies the norm √`weylNormSq` of `Οƒ`-conjugates by at most `exp (x ^ 50 + rowSizeSum j / 2)`. Here `x = D.x` is the scale and `rowSizeSum j` is the sum of `D.jetSize` over the row lengths of the weight. -/ lemma sqrt_weylNormSq_jetMap_le {P : Parameters} (D : Data P) (Οƒ : β„‚ ≃+* β„‚) (t : D.Translations) {j : β„•} (hj : j < D.m) (g : Gf D.E (D.X j)) (g' : Gf D.E (D.X (j + 1))) (ΞΎ : WeylIndex (D.X j) D.columnCount β†’ β„‚) : √(weylNormSq (Οƒ ∘ (D.liftKernel TameChar.one j).jetMap ((D.liftKernel TameChar.one j).Ο‰ (g, g') (D.translateDatum t j)) ΞΎ)) ≀ exp (D.x ^ 50 + D.rowSizeSum j / 2) * √(weylNormSq (Οƒ ∘ ΞΎ)) := by -- Apply the bound for the jets of one translate of the vacuum with growth rate `a + 1`. Its -- terms other than `rowSizeSum j` add up to at most `x ^ 50`, as each row has length `≀ 2 a`. let const : ℝ := P.constantBound * (P.qβ‚€ * towerDeg D.towerExp * (D.n (j + 1) * D.n j) + 1) ^ 2 let count : ℝ := Fintype.card (P.Ξ¦ D.towerExp) * (D.n (j + 1) * D.n j) * log (2 * ((D.a : ℝ) + 1) + 2) let lengths : ℝ := βˆ‘ Ο„ : D.Ξ¦, βˆ‘ i ∈ range (D.n j), (diagramWeight (rankAt fun _ : D.Ξ¦ ↦ D.X (j + 1)) D.columnCount (Ο„, i) : ℝ) / (D.a + 1) have h_other : const + count + lengths / 2 ≀ D.x ^ 50 := by -- The instance bounds the index `j` for `le_of_hasLogBound`. have h_upper : D.HasLogUpper (j : β„•) (D.logX / 2 + 2) := D.hasLogUpper_of_le hj.le simp only [const, count, lengths] grw [D.diagramWeight_le_rowMainLength_add_rowSlack hj, D.rowMainLength_add_rowSlack_le] simp only [n, sum_const, card_univ, card_range, nsmul_eq_mul] push_cast refine D.le_of_hasLogBound (h_exp := ?_) clear_aux_decl clear * - D scale_grind D have h_kernel : √(weylNormSq (Οƒ ∘ (D.liftKernel TameChar.one j).jetMap ((D.liftKernel TameChar.one j).Ο‰ (g, g') (D.translateDatum t j)) ΞΎ)) ≀ exp (const + (count + (lengths + D.rowSizeSum j) / 2)) * √(weylNormSq (Οƒ ∘ ΞΎ)) := by refine (P.sqrt_weylNormSq_schurJet_le_of_isVacuumCombination (P.isVacuumCombination_finHeisenbergOp (D.homX j) (t j)) g g' D.a.succPNat (D.isLiftWeight_columnCount j) ΞΎ).trans_eq ?_ -- The conjugate of `piMBar` that scales the jets has squared norm `M`, and `#X_j = n_j`. rw [norm_map_star_piMBar_sq, Parameters.jetSizeBound, schurGrowthExponent, Fintype.card_prod (P.Ξ¦ D.towerExp), Fintype.card_prod, card_X, card_X] simp [const, count, lengths, rowSizeSum, jetSize, add_assoc, sum_add_distrib] grw [h_kernel, show const + (count + (lengths + D.rowSizeSum j) / 2) ≀ D.x ^ 50 + D.rowSizeSum j / 2 by linarith] /-! ### The rows -/ lemma jetSize_zero {P : Parameters} (D : Data P) : D.jetSize 0 = 0 := by simp [jetSize] /-- Sum, over the `n_j = D.n j` rows of the Young diagram of lift `j` at the infinite place `Ο„`, the size `s_∞ = D.jetSize` of the main length of the row plus `25 log b` times its slack. The main lengths are `D.columnCount Ο„ 1` for the first row, the weight `ΞΊ(Ο„) = D.weight Ο„` for the next `k - 1` rows, with `k = D.k` the rank of the source, and `0` otherwise. The slacks add up to `b + offWeight + n_j halfGap ^ 2`, where `b = D.natB` and `offWeight` are the two values of `ΞΊ` and `halfGap = D.r ^ 8`. -/ lemma sum_range_jetSize_add_eq {P : Parameters} (D : Data P) (Ο„ : D.Ξ¦) (j : β„•) : βˆ‘ i ∈ range (D.n j), (D.jetSize (D.rowMainLength Ο„ i) + 25 * D.logB * D.rowSlack i) = D.jetSize (D.columnCount Ο„ 1) + (D.k - 1) * D.jetSize (D.weight Ο„) + 25 * D.logB * (D.natB + D.offWeight + D.n j * D.halfGap ^ 2) := by have h_main : βˆ‘ i ∈ range (D.n j), D.jetSize (D.rowMainLength Ο„ i) = D.jetSize (D.columnCount Ο„ 1) + (D.k - 1) * D.jetSize (D.weight Ο„) := by -- Split off the row `0`, then the rows `0 < i < k`; the other rows have `s_∞(0) = 0`. simp [rowMainLength, apply_ite D.jetSize, D.jetSize_zero, sum_ite, filter_eq', filter_ne', ← Nat.Ico_zero_eq_range, n] have h_slack : βˆ‘ i ∈ range (D.n j), D.rowSlack i = D.natB + D.offWeight + D.n j * D.halfGap ^ 2 := by simp [rowSlack, sum_add_distrib, n] rw [sum_add_distrib, ← mul_sum, ← Nat.cast_sum, h_main, h_slack] norm_cast /-- The chain has `m = D.m` lifts, and `rowSizeSum j` adds the sizes `s_∞ = D.jetSize` of the row lengths of the Young diagrams of the weight of lift `j`. The sum over `j < m` is at most `chainSize = m (#Ξ¦_a s_∞(a) + k βˆ‘ Ο„, s_∞(ΞΊ(Ο„)))` plus half of `errorUnit = f a logΒ³ b`. Here `Ξ¦_a = D.aPlaces`, `k = D.k` is the rank of the source, `ΞΊ(Ο„) = D.weight Ο„` is the weight at the infinite place `Ο„`, `f` is the number of infinite places, and `a = x b` for the scales `x`, `b`. -/ lemma sum_rowSizeSum_le {P : Parameters} (D : Data P) : βˆ‘ j ∈ range D.m, D.rowSizeSum j ≀ D.chainSize + D.errorUnit / 2 := by -- Compare each row with its main length; each box of the slack costs at most `25 log b`. have h_log : 0 < D.logB := HasLogBound.pos D have h_box : log ((2 * D.a : β„•) + 1) + log (D.M / P.bigOmega D.towerExp) ≀ 25 * D.logB := by grw [show ((2 * D.a : β„•) + 1 : ℝ) ≀ D.b ^ 2 from D.le_of_hasLogBound, D.log_M_div_bigOmega_mem_Icc.2, log_pow, log_exp] exact le_of_eq (by ring) have h_row (j : β„•) (hj : j < D.m) (Ο„ : D.Ξ¦) (i : β„•) : D.jetSize (diagramWeight (rankAt fun _ : D.Ξ¦ ↦ D.X (j + 1)) D.columnCount (Ο„, i)) ≀ D.jetSize (D.rowMainLength Ο„ i) + 25 * D.logB * D.rowSlack i := by grw [D.jetSize_le_add (D.diagramWeight_le_rowMainLength_add_rowSlack hj Ο„ i), D.rowMainLength_add_rowSlack_le Ο„ i, h_box] have h_first : βˆ‘ Ο„ : D.Ξ¦, D.jetSize (D.columnCount Ο„ 1) = #D.aPlaces * D.jetSize D.a := by simp [columnCount, apply_ite D.jetSize, D.jetSize_zero, Finset.univ_inter] let main : ℝ := βˆ‘ Ο„ : D.Ξ¦, D.jetSize (D.columnCount Ο„ 1) + (D.k - 1) * βˆ‘ Ο„ : D.Ξ¦, D.jetSize (D.weight Ο„) let slack : ℝ := D.f * (25 * D.logB * (D.natB + D.offWeight + D.n D.m * D.halfGap ^ 2)) have h_lift (j : β„•) (hj : j ∈ range D.m) : D.rowSizeSum j ≀ main + slack := by calc D.rowSizeSum j _ ≀ βˆ‘ Ο„ : D.Ξ¦, βˆ‘ i ∈ range (D.n j), (D.jetSize (D.rowMainLength Ο„ i) + 25 * D.logB * D.rowSlack i) := by grw [rowSizeSum, h_row j (mem_range.mp hj)] _ ≀ main + slack := by simp only [D.sum_range_jetSize_add_eq] grw [D.n_mono (mem_range.mp hj).le] simp [main, slack, sum_add_distrib, mul_sum] -- A lift has `k - 1` further rows with main length `ΞΊ(Ο„)`; as `s_∞ β‰₯ 0`, we may count `k`. have h_nonneg : 0 ≀ βˆ‘ Ο„ : D.Ξ¦, D.jetSize (D.weight Ο„) := by refine sum_nonneg fun Ο„ _ ↦ ?_ calc (0 : ℝ) ≀ 20 * D.weight Ο„ * D.logB := by positivity _ ≀ D.jetSize (D.weight Ο„) := (D.jetSize_mem_Icc D.nat_le_of_hasLogBound).1 -- The error is `O(b log b)` for each of the `m f` pairs `(j, Ο„)`, and `m b ≀ a`. have h_error : D.m * slack ≀ D.errorUnit / 2 := D.le_of_hasLogBound calc βˆ‘ j ∈ range D.m, D.rowSizeSum j ≀ D.m * (main + slack) := by grw [sum_le_sum h_lift, sum_const, card_range, nsmul_eq_mul] _ ≀ D.chainSize + D.errorUnit / 2 := by grw [mul_add, h_error] simp only [main] grw [h_first, sub_le_self (D.k : ℝ) zero_le_one, chainSize] /-- The main term `chainSize = m (#Ξ¦_a s_∞(a) + k βˆ‘ Ο„, s_∞(ΞΊ(Ο„)))` of the size of the chain of `m` lifts, less the saving `#Ξ¦_a a log N` from the restriction, is at most `h_main - m rem + 2 βˆ‘ gain_p log p + 32 f a log b`. Here `s_∞ = D.jetSize`, `ΞΊ = D.weight`, `Ξ¦_a = D.aPlaces` is a subset of the `f` infinite places, the level `N` is a prime, and `a = x b` for the scales `x`, `b`. With `s_fin = D.primeSum`, the main amount is `h_main = m k βˆ‘_Ο„ (s_∞(ΞΊ(Ο„)) - s_fin(ΞΊ(Ο„), Ο„))` and the total remainder is `rem = βˆ‘_{Ο„ ∈ Ξ¦_a} (s_fin(a, Ο„) - D.mainPrimeSum)`. -/ lemma chainSize_sub_le {P : Parameters} (D : Data P) : D.chainSize - #D.aPlaces * D.a * log D.N ≀ D.mainAmount - D.m * D.totalRemainder + 2 * βˆ‘ p ∈ D.smallNonsplitPrimes, D.gain p * log p + 32 * (D.f * D.a * D.logB) := by rw [mainAmount_sub_add_two_mul_sum_gain, chainSize] linarith only [D.card_aPlaces_mul_excess_le] /-! ### The terms and the restriction -/ /-- The number of tuples of standard classes at the levels of a chain is at most `exp (D.x ^ 30) ^ D.m`: each lift has at most `exp (D.x ^ 30)` standard classes. -/ private lemma card_chainStdClasses_le {P : Parameters} (D : Data P) : (Fintype.card (βˆ€ j : Fin D.m, StdClasses (D.levelX j)) : ℝ) ≀ exp (D.x ^ 30) ^ D.m := by have h_classes (j : Fin D.m) : (Fintype.card (StdClasses (D.levelX j)) : ℝ) ≀ exp (D.x ^ 30) := by rw [← Nat.card_eq_fintype_card] exact D.card_stdClasses_le_exp (principalLevel_le_levelX ..) (by grw [card_X, D.n_mono j.isLt.le]) grw [Fintype.card_pi, Nat.cast_prod, h_classes, prod_const, card_univ, Fintype.card_fin] /-- Let `X_j`, `Y_m` be the hermitian spaces over the CM field `E = D.E` of the chain of `m = D.m` theta lifts; `Gf` denotes finite adelic points of their unitary groups and `D.FormX j` the forms on `X_j`. Let `Ξ¨` be a weak chain datum for the trivial twist: coefficients of translates of the vacuum function whose sum is invariant, with `βˆ‘ t, |Οƒ (Ξ¨ t)| ≀ exp (D.x ^ 60)` among the conditions. `restrictedChain TameChar.one Ξ¨ Ο†` lifts the form `Ο†` from `X_0` to `X_m` with these translates, combines the results by `Ξ¨` and restricts to `Y_m`. If the values of `Οƒ Ο†` have squared norm at most `exp B`, then those of the `Οƒ`-conjugate of the lift have squared norm at most `exp (B + Ξ²)`, where `Ξ² = h_main - m rem + 2 βˆ‘ gain_p log p + f a logΒ³ b`. Here `h_main = D.mainAmount` is a difference of archimedean sizes and prime sums, and `rem = D.totalRemainder` one of prime sums and their expected mean `D.mainPrimeSum`, `gain_p` is the divisibility asked at a prime `p < D.x₁` that does not split in `β„š(√-d)`, `f` is the number of infinite places of `E`, and `a = x b` for the scales `x`, `b`. -/ lemma weylNormSq_restrictedChain_le {P : Parameters} {D : Data P} {Ξ¨ : D.Translations β†’β‚€ β„‚} (hΞ¨ : D.IsWeakChainDatum 1 Ξ¨) {Οƒ : β„‚ ≃+* β„‚} {Ο† : D.SourceForm} {B : ℝ} (hB : βˆ€ g : Gf D.E (D.X 0), weylNormSq (Οƒ ∘ (Ο† : D.FormX 0).val g) ≀ exp B) (y : Gf D.E (D.Y D.m)) : weylNormSq (Οƒ ∘ (restrictedChain TameChar.one Ξ¨ Ο†).val y) ≀ exp (B + (D.mainAmount - D.m * D.totalRemainder + 2 * βˆ‘ p ∈ D.smallNonsplitPrimes, D.gain p * log p + D.errorUnit)) := by -- A value of the chain is a sum, over tuples of classes and over `t`, of `Ξ¨ t` times products -- of `m` kernels. Bound each product by `R`, count the terms, and restrict to `Y_m`. let size (j : β„•) (ΞΎ : WeylIndex (D.X j) D.columnCount β†’ β„‚) : ℝ := √(weylNormSq (Οƒ ∘ ΞΎ)) let R : ℝ := (∏ j ∈ range D.m, exp (D.x ^ 50 + D.rowSizeSum j / 2)) * √(exp B) let ψ : D.FormX D.m := chainCombination (1 : D.Twist).toTameChar Ξ¨ D.translateDatum D.m Ο† let g : βˆ€ j : β„•, Gf D.E (D.X j) := Pi.mulSingle D.m (D.borderU y) have hg : g D.m = D.borderU y := Pi.mulSingle_eq_same .. have h_term (t : D.Translations) (p : βˆ€ j : β„•, Gf D.E (D.X j)) : size D.m (kernelProduct (D.liftKernel (1 : D.Twist).toTameChar) (D.translateDatum t) Ο†.val p D.m) ≀ R := apply_kernelProduct_le_prod_mul _ (fun j _ ↦ size j) (fun _ ↦ exp_nonneg _) (fun _ ↦ D.sqrt_weylNormSq_jetMap_le Οƒ t) (fun g ↦ sqrt_le_sqrt (hB g)) p have h_coeff : βˆ‘ t ∈ Ξ¨.support, β€–Οƒ (Ξ¨ t)β€– ≀ exp (D.x ^ 60) := hΞ¨.sum_norm_le rfl Οƒ have h_count := D.card_chainStdClasses_le -- The value of the chain at `diag (y, 1)` is a sum over classes and translations. have h_chain : size D.m (ψ.val (D.borderU y)) ≀ exp (D.x ^ 30) ^ D.m * (exp (D.x ^ 60) * R) := by unfold size at h_term ⊒ rw [← hg, chainCombination_eq_sum hΞ¨.isJointlyInvariant] calc _ ≀ βˆ‘ c : βˆ€ j : Fin D.m, StdClasses (D.levelX j), βˆ‘ t ∈ Ξ¨.support, β€–Οƒ (Ξ¨ t)β€– * √(weylNormSq (Οƒ ∘ kernelProduct (D.liftKernel (1 : D.Twist).toTameChar) (D.translateDatum t) Ο†.val (classPoints c g) D.m)) := by grw [sqrt_weylNormSq_sum_le, sqrt_weylNormSq_sum_le] simp _ ≀ exp (D.x ^ 30) ^ D.m * (exp (D.x ^ 60) * R) := by grw [h_term] simp only [← sum_mul, sum_const, card_univ, nsmul_eq_mul] grw [h_count, h_coeff, mul_assoc] have h_rest : exp (70 * D.logX) + D.f * (D.m * D.halfGap) * log D.N + 2 * (D.m * exp (30 * D.logX) + exp (60 * D.logX) + D.m * exp (50 * D.logX)) + 32 * (D.f * D.a * D.logB) ≀ D.errorUnit / 2 := D.le_of_hasLogBound have hx (k : β„•) : D.x ^ k = exp (k * D.logX) := (exp_natCast_mul _ _).symm calc weylNormSq (Οƒ ∘ (restrictedChain TameChar.one Ξ¨ Ο†).val y) _ ≀ exp (D.x ^ 70 - (βˆ‘ Ο„ : D.Ξ¦, D.branchExponent Ο„ : ℝ) * log D.N) * size D.m (ψ.val (D.borderU y)) ^ 2 := by rw [sq_sqrt (weylNormSq_nonneg _)] exact D.weylNormSq_restrictToY_le Οƒ ψ y _ ≀ exp (D.x ^ 70 - (#D.aPlaces * D.a - D.f * (D.m * D.halfGap)) * log D.N) * (exp (D.x ^ 30) ^ D.m * (exp (D.x ^ 60) * R)) ^ 2 := by grw [sum_branchExponent, h_chain] _ = exp (D.x ^ 70 - (#D.aPlaces * D.a - D.f * (D.m * D.halfGap)) * log D.N + 2 * (D.m * D.x ^ 30 + (D.x ^ 60 + (D.m * D.x ^ 50 + (βˆ‘ j ∈ range D.m, D.rowSizeSum j) / 2 + B / 2)))) := by simp [R, ← exp_natCast_mul, ← exp_sum, sum_add_distrib, ← sum_div, ← exp_half, ← exp_add] _ ≀ exp (B + (D.mainAmount - D.m * D.totalRemainder + 2 * βˆ‘ p ∈ D.smallNonsplitPrimes, D.gain p * log p + D.errorUnit)) := by refine exp_le_exp.2 ?_ simp only [hx] push_cast linarith [D.sum_rowSizeSum_le, D.chainSize_sub_le] /-- **Size of the composite lift.** Let `Ξ¨` be a chain datum for the trivial twist and `Οƒ` an automorphism of `β„‚`. `compositeLift TameChar.one Ξ¨ Ο†` lifts the form `Ο†` from the hermitian space `X_0` over `E = D.E` to `X_m` by `m = D.m` theta lifts, with the glued tensor as Schwartz data, and restricts to `Y_m`; `Gf` denotes finite adelic points. If the values of `Οƒ Ο†` have squared norm at most `exp B`, then those of the `Οƒ`-conjugate of the lift have squared norm at most `exp (B + Ξ²)`, where `Ξ² = h_main - m rem + 2 βˆ‘ gain_p log p + f a logΒ³ b`. Here `h_main = D.mainAmount` is a difference of archimedean sizes and prime sums, and `rem = D.totalRemainder` one of prime sums and their expected mean `D.mainPrimeSum`, `gain_p` is the divisibility asked at a prime `p < D.x₁` that does not split in `β„š(√-d)`, `f` is the number of infinite places of `E`, and `a = x b` for the scales `x`, `b`. -/ theorem weylNormSq_compositeLift_le {P : Parameters} {D : Data P} {Ξ¨ : D.Translations β†’β‚€ β„‚} (hΞ¨ : D.IsChainDatum 1 Ξ¨) {Οƒ : β„‚ ≃+* β„‚} {Ο† : D.SourceForm} {B : ℝ} (hB : βˆ€ g : Gf D.E (D.X 0), weylNormSq (Οƒ ∘ (Ο† : D.FormX 0).val g) ≀ exp B) (y : Gf D.E (D.Y D.m)) : weylNormSq (Οƒ ∘ (compositeLift TameChar.one Ξ¨ Ο†).val y) ≀ exp (B + (D.mainAmount - D.m * D.totalRemainder + 2 * βˆ‘ p ∈ D.smallNonsplitPrimes, D.gain p * log p + D.errorUnit)) := by obtain ⟨Ψ', h_weak, h_eq⟩ : βˆƒ Ξ¨' : D.Translations β†’β‚€ β„‚, D.IsWeakChainDatum 1 Ξ¨' ∧ βˆ€ Ο† : D.SourceForm, compositeLift TameChar.one Ξ¨ Ο† = restrictedChain TameChar.one Ξ¨' Ο† := hΞ¨.exists_isWeakChainDatum_compositeLift_eq rw [h_eq Ο†] exact weylNormSq_restrictedChain_le h_weak hB y end New.Data end SizeBound /-! ## Passage to target forms by the good projection A form `z` of principal level on `Yβ‚€` is replaced by the target form `|𝖦| eβ‚€ s z`, its good part (`New.Data.goodProjTranslate s z`, for `s ∈ 𝖦`). Here `𝖦 = New.Data.chosenGL` is a finite product of groups `GL_r` over residue fields, `New.Data.eβ‚€` is an element of its group algebra, and `New.Data.lowerChain`, `New.Data.lowerChainAtLevel` are the same lift with two target types. -/ namespace New.Data open Finset Real LevelPlaces.LevelForm attribute [local instance low] Fintype.ofFinite lemma coe_lowerChainAtLevel_apply {P : Parameters} {D : Data P} (Ο‘ : D.TameChar) (z : β†₯(D.principalForms (D.spaceY 0))) : ((lowerChainAtLevel Ο‘ z).val : AlgForm (E := D.E) (D.Y D.m) D.columnsY (D.lastEntry D.m)) = lowerChain Ο‘ z := rfl /-- Let `𝖦 = D.chosenGL` be the finite group `∏ GL_r(𝔽_w)` over the chosen places `w` above `pβ‚€`, `p₁`, let `eβ‚€ = D.eβ‚€` be the good idempotent in `β„‚[𝖦]`, and let `ΞΉ = lowerChain Ο‘` be the composite of the `m` lifts from `Yβ‚€` to `Y_m` for the tame character `Ο‘`. For `s ∈ 𝖦` and a form `z` of principal level on `Yβ‚€`, the value at `g` of `ΞΉ (|𝖦| eβ‚€ s z)` is the sum over `t ∈ 𝖦` of `|𝖦| eβ‚€(t)` times the value of `ΞΉ z` at `g * firstBlockLift Ο‘ (t * s)`. -/ lemma lowerChain_goodProjTranslate_apply {P : Parameters} {D : Data P} (Ο‘ : D.TameChar) (s : D.chosenGL) (z : β†₯(D.principalForms (D.spaceY 0))) (g : Gf D.E (D.Y D.m)) : (lowerChain Ο‘ (D.goodProjTranslate s z).val).val g = βˆ‘ t : D.chosenGL, (Nat.card D.chosenGL * D.eβ‚€.coeff t) β€’ (lowerChain Ο‘ z).val (g * firstBlockLift Ο‘ (t * s)) := by -- Expand the action of `eβ‚€` as a sum over `𝖦`; the lift turns the action of `t * s` into right -- translation by `firstBlockLift Ο‘ (t * s)` (`lowerChain_principalRep`). simp [Representation.asAlgebraHom_eq_sum, ← mul_apply_eq_comp, ← map_mul, lowerChain_principalRep, smul_sum, mul_smul] /-- Passage to the good part keeps integrality. Let `j : β„‚ β†’ β„‚_l` be a ring homomorphism; a form is integral at `j` if each value `Ο†(g)`, mapped by `j` and moved by `g⁻¹`, has coordinates of `l`-adic absolute value at most `1`. Let `ΞΉ = lowerChainAtLevel Ο‘` be the composite of the `m` lifts from `Yβ‚€` to `Y_m` for the tame character `Ο‘`, with values in the forms of given level and character. Let `𝖦 = D.chosenGL` be a finite product of groups `GL_r` over residue fields and `eβ‚€ = D.eβ‚€` the central idempotent of `β„‚[𝖦]` that cuts out the good part. For `c ∈ β„‚`, `s ∈ 𝖦` and `z` of principal level on `Yβ‚€`, if `c β€’ ΞΉ z` is integral at `j`, so is `c β€’ ΞΉ (|𝖦| eβ‚€ s z)`. -/ lemma goodProjTranslate_mem_integralForms {P : Parameters} {D : Data P} {l : β„•} [Fact l.Prime] (j : PadicPlace l) {Ο‘ : D.TameChar} {c : β„‚} {z : β†₯(D.principalForms (D.spaceY 0))} (h_integral : c β€’ lowerChainAtLevel Ο‘ z ∈ integralForms j) (s : D.chosenGL) : c β€’ lowerChainAtLevel Ο‘ (D.goodProjTranslate s z).val ∈ integralForms j := by -- The value at `g` is a sum of values of `c β€’ lowerChainAtLevel Ο‘ z` at integral right translates -- of `g`, with algebraic integers as coefficients; the gauge is ultrametric. intro g have h_value : (c β€’ lowerChainAtLevel Ο‘ (D.goodProjTranslate s z).val).val.val g = βˆ‘ t : D.chosenGL, (Nat.card D.chosenGL * D.eβ‚€.coeff t) β€’ c β€’ (lowerChain Ο‘ z).val (g * firstBlockLift Ο‘ (t * s)) := by change c β€’ (lowerChainAtLevel Ο‘ (D.goodProjTranslate s z).val).val.val g = _ simp only [coe_lowerChainAtLevel_apply, lowerChain_goodProjTranslate_apply, smul_sum, smul_comm c] rw [h_value] refine weylGauge_sum_le _ zero_le_one fun t _ ↦ ?_ have h_int : IsIntegral β„€ (Nat.card D.chosenGL * D.eβ‚€.coeff t) := D.isCentralProj_eβ‚€.isChar_card_mul_coeff.isIntegral _ rw [weylGauge_smul, ← weylGauge_mul_of_mem_integralAbove (hk := stdLevel_le_localLevel (firstBlockLift Ο‘ (t * s)).property)] exact (mul_le_of_le_one_left (norm_nonneg _) (norm_le_one_of_isIntegral _ h_int)).trans (h_integral _) /-- Size of the good part, for the trivial twist, `Οƒ ∈ Aut β„‚` and `s ∈ 𝖦`. The map `lowerChain` is the composite of the `m` lifts from forms of principal level on `Yβ‚€` to algebraic forms on `Y_m`. If every value of `lowerChain TameChar.one z`, conjugated by `Οƒ`, has squared norm at most `exp B`, then the lift `Ο†` of `D.goodProjTranslate s z`, that is of `|𝖦| eβ‚€ s z`, has `normSqAt Ο† Οƒ ≀ exp (x ^ 99 + B)`. Here `x = D.x` is the scale, `𝖦 = D.chosenGL` is a finite product of groups `GL_r` over residue fields and `eβ‚€ = D.eβ‚€` is the central idempotent of `β„‚[𝖦]` that cuts out the good part. -/ lemma normSqAt_goodProjTranslate_le {P : Parameters} {D : Data P} {Οƒ : β„‚ ≃+* β„‚} {z : β†₯(D.principalForms (D.spaceY 0))} {s : D.chosenGL} {B : ℝ} (hB : βˆ€ g : Gf D.E (D.Y D.m), weylNormSq (Οƒ ∘ (D.lowerChain TameChar.one z).val g) ≀ exp B) : (D.lowerChainAtLevel TameChar.one (D.goodProjTranslate s z).val).normSqAt Οƒ ≀ exp (D.x ^ 99 + B) := by classical -- The coefficients of the central idempotent `Οƒ eβ‚€` have norm at most `1`, since `|𝖦| Οƒ eβ‚€` is -- the character of a representation of dimension at most `|𝖦|`. have h_coeff (t : D.chosenGL) : β€–Οƒ (D.eβ‚€.coeff t)β€– ≀ 1 := by simpa using (D.isCentralProj_eβ‚€.map Οƒ).norm_coeff_le_one t -- So each value is a sum of `|𝖦|` terms, each of norm at most `|𝖦| * √(exp B)`. have h_value (g : Gf D.E (D.Y D.m)) : √(weylNormSq (Οƒ ∘ D.lowerChainAtLevel TameChar.one (D.goodProjTranslate s z).val g)) ≀ Nat.card D.chosenGL * (Nat.card D.chosenGL * √(exp B)) := by let v (t : D.chosenGL) : WeylIndex (D.Y D.m) D.columnsY β†’ β„‚ := (lowerChain TameChar.one z).val (g * firstBlockLift TameChar.one (t * s)) have h_term (t : D.chosenGL) : √(weylNormSq (Οƒ ∘ ((Nat.card D.chosenGL * D.eβ‚€.coeff t) β€’ v t))) ≀ Nat.card D.chosenGL * √(exp B) := by calc _ = Nat.card D.chosenGL * β€–Οƒ (D.eβ‚€.coeff t)β€– * √(weylNormSq (Οƒ ∘ v t)) := by simp [-Fintype.card_pi, sqrt_sq_eq_abs] _ ≀ Nat.card D.chosenGL * √(exp B) := by grw [hB, h_coeff, mul_one] rw [coe_lowerChainAtLevel_apply, lowerChain_goodProjTranslate_apply] grw [sqrt_weylNormSq_sum_le, sum_le_sum fun t _ ↦ h_term t] simp [← Nat.card_eq_fintype_card] -- The level contains the principal level `D.piM * D.piN`, so there are at most `exp (x ^ 30)` -- classes. have h_mem (i) : D.piM * D.piN ∈ ((D.levelPlaces TameChar.one).placeAt i).asIdeal := by obtain ⟨i, v, h_above, hv⟩ | ⟨v, hv⟩ := i exacts [Ideal.mul_mem_right _ _ h_above, nomatch hv] grw [normSqAt, classSum_le_card_mul_sq h_value, D.card_stdClasses_le_exp (principalLevel_le_levelOf h_mem) (D.card_Y_le le_rfl)] suffices exp (D.x ^ 30) * Nat.card D.chosenGL ^ 4 ≀ exp (D.x ^ 99) by simpa [exp_add, ← Nat.card_eq_fintype_card, field, exp_nonneg] -- The order of `𝖦` divides `D.chosenGroupOrder`, and -- `x ^ 30 + 4 * log D.chosenGroupOrder < x ^ 99`. grw [Nat.le_of_dvd Fin.pos' (D.card_GL_dvd_chosenGroupOrder D.nat_le_of_hasLogBound), le_exp_log D.chosenGroupOrder] exact D.le_of_hasLogBound D.lt_of_hasLogBound end New.Data