module import Mathlib.Algebra.Ring.IsFormallyReal import Mathlib.Data.Rat.Cast.OfScientific import Mathlib.Tactic.PNatToNat import Std.Tactic.BVDecide.Normalize.Bool public import New.Determinant.AuxiliaryForms.LastPath public import New.Determinant.AuxiliaryForms.Turns public import New.UpperBound.Kernels.ThetaLiftGauge public import New.UpperBound.Objects.RowChain public import New.UpperBound.Size.ShortColumns import New.Determinant.AuxiliaryForms.DiagonalTurns import New.Determinant.AuxiliaryForms.FirstPath import New.OneLift.ComparisonOperator.FirstFactors import New.UpperBound.Size.Estimates /-! # Denominators and sizes on the last path, and the auxiliary forms Let `Ξ = New.Data.lastPathPeriod Ψ y` be the sum attached to the last path. Its denominators are small at the primes that do not divide `Nm Q` and, for the trivial twist, its conjugates are small. Going back through the turns to the first path, and reading the values of a form from its pairings with delta forms, we get integrality and size for the chain of lifts from `Y₀` to `Y_m` on the restrictions of short forms. Throughout, `ϑ` is an `m`-fold twist, `Q` is its finite set of places, `ϑ.normQ` is `Nm Q`, and sizes are measured by the parameters `x = D.x` and `b = D.b`. The modulus `𝔪 = gridModulus ϑ` of the twist is the product of the chosen places to the power `D.natB` (the number `b` as a natural number), times `Q`. The other numbers of the data that occur are the level `D.M`, the order `D.q₁` of the root of unity that generates `E` over `K = ℚ(√-P.d)`, the prime `P.d`, the ranks `D.n j` and the parameter `D.r`; at most `D.natB * D.r ^ 4` boxes occur in each diagram of a weight on the last path. ## Main definitions and results * `New.Data.exists_mul_lastPathPeriod_mem_embValRing`, `New.Data.norm_lastPathPeriod_le`: denominators and conjugates of `Ξ`. * `New.Data.exists_integral_lowerChainUpTo_eq_lastPathPeriod`: the index of the level times the pairing with the chain of lifts of a restriction is a constant multiple of `Ξ` divided by the constants of the turns. * `New.Data.exists_dualPairing_eq_mul_lastPathPeriod`: the values of the chain of lifts, read by delta forms, with one constant for all twists, points and forms. * `New.Data.exists_span_short_lifts_eq_top`: the space of forms on `Y₀` is spanned by forms with two properties: for every twist their scaled lifts are integral at the primes not dividing `Nm Q`, and for the trivial twist the conjugates of their lifts are small. The passage to target forms is `New.Data.exists_span_isAuxiliaryForm_eq_top`, in `New.Determinant.Twist.LongForms`. Notions from other files: * `New.Data.lastPathPeriod Ψ y`: the sum over the tuples of matrices `S` of `Ψ S` times the pairing of the lifts of the two forms `y` along the halves of the last path, integrated over the finite points of `Y^m_m`. * `New.Data.gridLevelForms m`: the forms of level `J(𝔟)` on `Ỹ^m_0`, where the half `true` of the last path starts; `𝔟` is generated by `New.Data.gridLevelGen`. * `New.Data.levelY ϑ m`: the level `J(𝔪₀)` on `Y_m`, where `𝔪₀` is the product of the chosen places and `Q`. * `New.weylGauge κ e g v`: the largest `p`-adic absolute value of a coordinate of `g⁻¹ v`. * `New.weylNormSq v`: the squared norm of `v` for the integral Gram matrix of the Weyl module. * `New.Data.lowerChain ϑ`: the chain of lifts, that is the composite of the `m` theta lifts from `Y₀` to `Y_m`, with values in algebraic forms. `New.Data.lowerChainAtLevel ϑ` is the same map with values in the forms of the last level and its character; `levelY ϑ m` fixes these forms. -/ @[expose] public section noncomputable section namespace New.Data open Real Matrix Fintype Submodule LevelPlaces.LevelForm Space Rows Finset Function variable {P : Parameters} (D : Data P) variable {D} in /-- The bound for the number of roots of unity in a value of the data on the last path: that for the first path, times one factor for each of the `m ^ 2` turns. Here `vectorCountBound ϑ` bounds the number of column vectors modulo `𝔪` at a node of the grids and `edgeMatrixCountBound ϑ` the number of matrices modulo `𝔪` at an edge. -/ abbrev lastPathBound (ϑ : D.MFoldTwist) : ℕ := vectorCountBound ϑ ^ D.m ^ 2 * edgeMatrixCountBound ϑ ^ (2 * D.m) /-! ### Denominators on the last path -/ /-- A product of powers of `M` and `P.d` that, at the primes not dividing `Nm Q`, clears the denominators of each kernel on the last path. The first factor takes the datum of an edge to standard data, and the second pays for the boxes of the diagram: `2 * D.n D.m` bounds the ranks on that path and `D.natB * D.r ^ 4` the numbers of boxes. -/ def liftDenominator : ℕ := (D.M ^ D.natB) ^ (2 * Core.numInfPlaces D.E * (2 * D.n D.m * (2 * D.n D.m))) * (D.M ^ D.natB * P.d) ^ (D.natB * D.r ^ 4) section Denominators variable {D} /-- Let `p` be a prime that does not divide the product `ϑ.normQ` of the norms of the set `Q` of places of the `m`-fold twist `ϑ`, and fix an embedding of `ℂ` into `ℂ_[p]` (`PadicPlace p`). The half `z` of the last path is a sequence of `m + 1` spaces, and the theta kernel `lastPathKernel ϑ z j` lifts forms from the `j`-th to the next. For a tuple `S` of matrices on the edges, the finite datum `lastPathEdgeDatum S z j` of this lift, multiplied by the number `liftDenominator`, lies in `raises 1 1 1` of the kernel. The first two `1`s are translations of the source point and of the target point, here trivial, and the third is a factor: for all finite points `g` of the source and `h` of the target, the lift from `g` to `h` does not increase `p`-adic gauges. -/ lemma liftDenominator_smul_lastPathEdgeDatum_mem_raises {ϑ : D.MFoldTwist} {p : ℕ} [Fact p.Prime] [PadicPlace p] (hp : p.Coprime ϑ.normQ) (S : EdgeTuple ϑ) (z : Bool) {j : ℕ} (hj : j < D.m) : (D.liftDenominator : ℂ) • lastPathEdgeDatum S z j ∈ (lastPathKernel ϑ z j).raises 1 1 1 := by have h_dvd : (D.M ^ D.natB) ^ (2 * Core.numInfPlaces D.E * card (D.LastPathIndex z (j + 1) × D.LastPathIndex z j)) * (D.M ^ D.natB * P.d) ^ boxes (D.lastPathColumns z) (card (D.LastPathIndex z (j + 1))) ∣ D.liftDenominator := by grw [card_prod, boxes_lastPathColumns_le_natB_mul z hj, card_lastPathIndex_le z hj, card_lastPathIndex_le z hj.le, liftDenominator] unfold lastPathKernel exact P.smul_mem_raises_of_dvd (lastPathEdgeDatum S z j) (P.smul_vacuumDatum_mem_standardData normQ_mul_M_pow_mem_modulus (by simp [ite_mem, Pi.single_apply]) hp) embValRing.one_mem h_dvd /-- Let `t` be the idele that generates the modulus `𝔪 = gridModulus ϑ` of the `m`-fold twist `ϑ` and `α = P.α D.towerExp` the fixed idele of the CM field `D.E`, for which `q₁ * α` and `α⁻¹` are integral, with `q₁ = P.q₁ D.towerExp`. Write `star` for complex conjugation on the finite adeles of `D.E`, `normQ` for the product of the norms of the places in the set `Q` of `ϑ`, `M = D.M` for the level and `natB = D.natB` for the exponent of the chosen places in `𝔪`. The flip scalar `u = star (t * α) / (t * α)` becomes an integral adele after multiplication by `normQ * M ^ natB * q₁`. -/ lemma generator_inv_mul_normQ_mul_star_mem (ϑ : D.MFoldTwist) : (gridModulus ϑ).generator⁻¹.val * algebraMap (NumberField.RingOfIntegers D.E) (Ô D.E) ↑(ϑ.normQ * D.M ^ D.natB) * (star ((gridModulus ϑ).generator.val * (P.q₁ D.towerExp * (P.α D.towerExp).val)) * (P.α D.towerExp)⁻¹.val) ∈ Ô D.E := by -- `t`, `q₁ * α` and `α⁻¹` are integral, and `t` divides `normQ * M ^ natB`. have h_red : (gridModulus ϑ).reduction (algebraMap (NumberField.RingOfIntegers D.E) (Ô D.E) ↑(ϑ.normQ * D.M ^ D.natB)) = 0 := (Modulus.reduction_eq_zero_iff _).2 (Ideal.mem_map_of_mem _ normQ_mul_M_pow_mem_modulus) rw [Modulus.reduction_eq_zero_iff_generator_inv_mul_mem] at h_red exact mul_mem h_red (mul_mem (star_mem_Ô (mul_mem (gridModulus ϑ).generator_mem P.q₁_mul_alpha_mem)) P.inv_alpha_mem) /-- Let `ϑ` be an `m`-fold twist, `ϑ.normQ` the product of the norms of its places, and `p` a prime that does not divide it. Let `u` be the flip scalar `star (t * α) / (t * α)` of the modulus `gridModulus ϑ` (`t` generates the modulus, `α` is a fixed idele), as a `1 × 1` matrix (index type `Unit`) over the finite adeles. For an infinite place `τ : D.Φ` of the CM field `D.E`, map the matrix `(u ^ m)⁻¹` to `ℂ_[p]`. The map is the component at the prime above `p` of the embedding `weightEmbedding ιₚ τ`. Let `δ` be the determinant of the image. For every integer `l`, the product of `(M ^ natB * q₁) ^ (m * |l|)` and `(δ ^ l)⁻¹` has absolute value at most `1`. -/ lemma norm_mul_det_flipScalar_zpow_le_one {ϑ : D.MFoldTwist} {p : ℕ} [Fact p.Prime] [PadicPlace p] (hp : p.Coprime ϑ.normQ) (τ : D.Φ) (l : ℤ) : ‖((D.M ^ D.natB * D.q₁) ^ (D.m * l.natAbs) : ℕ) * (((((gridModulus ϑ).flipScalar Unit).val ^ D.m)⁻¹.map (adeleExtension (weightEmbedding ιₚ τ))).det ^ l)⁻¹.val‖ ≤ 1 := by -- According to the sign of `l`, the number has the norm of a power of the integral adele `a` or -- of its conjugate, because `ϑ.normQ` is a `p`-adic unit. let f : 𝔸f D.E →+* ℂ_[p] := adeleExtension (weightEmbedding ιₚ τ) let u : unitary (𝔸f D.E) := divStar (star ((gridModulus ϑ).generator * P.α D.towerExp)) let a : 𝔸f D.E := (gridModulus ϑ).generator⁻¹.val * algebraMap (NumberField.RingOfIntegers D.E) (Ô D.E) ↑(ϑ.normQ * D.M ^ D.natB) * (star ((gridModulus ϑ).generator.val * (P.q₁ D.towerExp * (P.α D.towerExp).val)) * (P.α D.towerExp)⁻¹.val) have ha_eq : a = ((ϑ.normQ * (D.M ^ D.natB * D.q₁) : ℕ) : 𝔸f D.E) * u.val := by have hnat : (algebraMap (NumberField.RingOfIntegers D.E) (Ô D.E) ↑(ϑ.normQ * D.M ^ D.natB) : 𝔸f D.E) = ((ϑ.normQ * D.M ^ D.natB : ℕ) : 𝔸f D.E) := by simp have hu : u.val = star (gridModulus ϑ).generator.val * star (P.α D.towerExp).val * (gridModulus ϑ).generator⁻¹.val * (P.α D.towerExp)⁻¹.val := by simp only [u, coe_divStar, _root_.mul_inv_rev, Units.val_mul, ← star_inv, Units.coe_star, star_mul', star_star] ring dsimp only [a] rw [hnat, hu] simp only [star_mul', star_natCast, Nat.cast_mul, Nat.cast_pow] ring have hstar_a_eq : star a = ((ϑ.normQ * (D.M ^ D.natB * D.q₁) : ℕ) : 𝔸f D.E) * (u⁻¹).val := by rw [ha_eq, star_mul', star_natCast] rfl have hdet : (((((gridModulus ϑ).flipScalar Unit).val ^ D.m)⁻¹.map f).det : ℂ_[p]) = (f u.val ^ D.m)⁻¹ := by have h1 : ((((gridModulus ϑ).flipScalar Unit).val.map f).det : ℂ_[p]) = f u.val := by change ((((gridModulus ϑ).flipScalar Unit).val : Matrix Unit Unit (𝔸f D.E)).map f).det = f u.val rw [Matrix.det_unique, Matrix.map_apply] congr 1 rw [map_inv, map_pow, map_inv, map_pow, Units.val_inv_eq_inv_val, Units.val_pow_eq_pow_val, h1] have hnorm (c : 𝔸f D.E) (v : unitary (𝔸f D.E)) (hc : c = ((ϑ.normQ * (D.M ^ D.natB * D.q₁) : ℕ) : 𝔸f D.E) * v.val) : ‖((D.M ^ D.natB * D.q₁ : ℕ) : ℂ_[p]) * f v.val‖ = ‖f c‖ := by symm rw [hc, map_mul, map_natCast, Nat.cast_mul ϑ.normQ, mul_assoc, norm_mul, hp.norm_natCast_eq_one, one_mul] obtain ⟨k, rfl | rfl⟩ := l.eq_nat_or_neg · have h_eq : ‖((D.M ^ D.natB * D.q₁) ^ (D.m * (k : ℤ).natAbs) : ℕ) * (((((gridModulus ϑ).flipScalar Unit).val ^ D.m)⁻¹.map f).det ^ (k : ℤ))⁻¹.val‖ = ‖f a‖ ^ (D.m * k) := by rw [Int.natAbs_natCast, Nat.cast_pow, Units.val_inv_eq_inv_val, Units.val_zpow_eq_zpow_val, zpow_natCast, hdet, inv_pow, inv_inv, ← pow_mul, ← mul_pow, norm_pow, hnorm a u ha_eq] rw [h_eq] exact pow_le_one₀ (norm_nonneg _) (norm_adeleExtension_le_one _ (generator_inv_mul_normQ_mul_star_mem ϑ)) · have h_eq : ‖((D.M ^ D.natB * D.q₁) ^ (D.m * (-(k : ℤ)).natAbs) : ℕ) * (((((gridModulus ϑ).flipScalar Unit).val ^ D.m)⁻¹.map f).det ^ (-(k : ℤ)))⁻¹.val‖ = ‖f (star a)‖ ^ (D.m * k) := by rw [Int.natAbs_neg, Int.natAbs_natCast, Nat.cast_pow, Units.val_inv_eq_inv_val, Units.val_zpow_eq_zpow_val, _root_.zpow_neg, zpow_natCast, inv_inv, hdet, inv_pow, ← pow_mul, ← inv_pow, ← (show f (u⁻¹).val = (f u.val)⁻¹ from map_units_inv f (Unitary.toUnits u)), ← mul_pow, norm_pow, hnorm (star a) u⁻¹ hstar_a_eq] rw [h_eq] exact pow_le_one₀ (norm_nonneg _) (norm_adeleExtension_le_one _ (star_mem_Ô (generator_inv_mul_normQ_mul_star_mem ϑ))) end Denominators /-- The pairing `lastPathPairing v' v = v' ⬝ᵥ lastPathBranching *ᵥ v` of the two halves at the middle of the last path, given by an integer branching matrix, is cleared by one natural number `N ≠ 0` with `log N ≤ x ^ 98 * b ^ 2`. For every twist `ϑ` and every prime `p` prime to the norm `ϑ.normQ` of its places, if `v'` has gauge at most `1` at `g` and `v` at the block point `lastPathBlockPoint ϑ g = diag (g, u ^ m)`, with `u` the flip scalar of the modulus `gridModulus ϑ`, then `N` times the pairing of `v'` and `v`, read `p`-adically by `ιₚ`, is integral. -/ lemma exists_norm_mul_lastPathPairing_le_one : ∃ N ≠ (0 : ℕ), log N ≤ D.x ^ 98 * D.b ^ 2 ∧ ∀ {ϑ : D.MFoldTwist} {p : ℕ} [Fact p.Prime] [PadicPlace p], p.Coprime ϑ.normQ → ∀ {g : Gf D.E (D.LastPathIndex false D.m)} {v' : D.LastPathVector false D.m} {v : D.LastPathVector true D.m}, weylGauge (D.lastPathColumns false) (D.lastPathDetExp false D.m) g v' ≤ 1 → weylGauge (D.lastPathColumns true) (D.lastPathDetExp true D.m) (lastPathBlockPoint ϑ g) v ≤ 1 → ‖ιₚ (N * D.lastPathPairing v' v)‖ ≤ 1 := by -- By equivariance the pairing is the inverse of the character `∏ τ, det u' ^ L τ` at -- `u' = (flipScalar ^ m)⁻¹` times the pairing of the translated vectors, which have integral -- entries; the product of the numbers `N τ` clears the character. obtain ⟨L, h_equiv, hL⟩ := D.exists_lastPathBranching_equivariant have hL_le (τ : D.Φ) : (L τ).natAbs ≤ D.natB * D.r ^ 4 + ⌈20 * D.b⌉₊ := (hL τ).trans (add_le_add (boxes_lastPathColumns_le_natB_mul true le_rfl) (natAbs_lastPathDetExp_le true le_rfl τ)) let N (τ : D.Φ) : ℕ := (D.M ^ D.natB * D.q₁) ^ (D.m * (L τ).natAbs) have h_log : log (∏ τ, N τ : ℕ) ≤ D.x ^ 98 * D.b ^ 2 := calc _ = ∑ τ, D.m * (L τ).natAbs * (D.natB * log D.M + (log P.q₀ + log (towerDeg D.towerExp))) := by simp [N, log_prod, log_mul, NeZero.ne, -Nat.cast_natAbs] _ ≤ _ := by grw [hL_le] rw [sum_const, card_univ, nsmul_eq_mul] exact D.le_of_hasLogBound (by scale_grind D) refine ⟨∏ τ, N τ, by simp [N, NeZero.ne, prod_eq_zero_iff], h_log, fun {ϑ p _ _} hp g v' v hv' hv ↦ ?_⟩ let f (τ : D.Φ) : 𝔸f D.E →+* ℂ_[p] := adeleExtension (weightEmbedding ιₚ τ) let u' : Gf D.E Unit := ((gridModulus ϑ).flipScalar ^ D.m)⁻¹ let χ (τ : D.Φ) : ℂ_[p]ˣ := (u'.val.map (f τ)).det ^ L τ let w' : WeylIndex (D.LastPathIndex false D.m) (D.lastPathColumns false) → ℂ_[p] := weylRep (D.lastPathColumns false) (D.lastPathDetExp false D.m) (fun τ ↦ g⁻¹.1.map (f τ)) *ᵥ ιₚ ∘ v' let w : WeylIndex (D.LastPathIndex true D.m) (D.lastPathColumns true) → ℂ_[p] := weylRep (D.lastPathColumns true) (D.lastPathDetExp true D.m) (fun τ ↦ (U.block (D.gridDiagEquiv D.m) (g⁻¹, u')).val.map (f τ)) *ᵥ ιₚ ∘ v have hw' : ∀ i, ‖w' i‖ ≤ 1 := (pi_norm_le_iff_of_nonneg one_pos.le).1 hv' have hw : ∀ i, ‖w i‖ ≤ 1 := by simpa [u', weylGauge, lastPathBlockPoint, ← map_inv, pi_norm_le_iff_of_nonneg] using hv -- Elements of norm at most `1` form a subring, which contains the entries of `w'` and `w`. have h_int : ‖w' ⬝ᵥ D.lastPathBranching.map (↑) *ᵥ w‖ ≤ 1 := NormedField.valuation.integer.sum_mem fun i _ ↦ mul_mem (hw' i) (sum_mem fun k _ ↦ mul_mem (by simp) (hw k)) have h_char : w' ⬝ᵥ D.lastPathBranching.map (↑) *ᵥ w = (∏ τ, χ τ : ℂ_[p]ˣ) * ιₚ (D.lastPathPairing v' v) := (h_equiv _ _ f g⁻¹ u' _ _).trans <| by congr 1 simp only [LinearMap.compl₂_apply, Matrix.mulVecLin_apply, dotProductBilin_apply_apply, dotProduct, mulVec, map_sum, map_mul, map_intCast, Matrix.map_apply, Function.comp_apply] calc _ = (∏ τ, ‖N τ * (χ τ)⁻¹.val‖) * ‖w' ⬝ᵥ D.lastPathBranching.map (↑) *ᵥ w‖ := by rw [h_char, ← norm_prod, ← norm_mul, ← mul_assoc, Units.coe_prod, ← prod_mul_distrib] simp only [mul_assoc, Units.inv_mul, mul_one, map_mul, map_natCast, map_prod, Nat.cast_prod] _ ≤ 1 := (mul_le_of_le_one_left (norm_nonneg _) (prod_le_one₀ (fun _ _ ↦ norm_nonneg _) fun τ _ ↦ norm_mul_det_flipScalar_zpow_le_one hp τ (L τ))).trans h_int /-- There is a natural number `0 < N ≤ exp (x ^ 99 * b ^ 2)`, with `x = D.x` and `b = D.b` the size parameters of the data, such that for every twist `ϑ`, path datum `Ψ` on the last path, pair of forms `y` fixed by the levels at the outer ends of the two halves and prime `p` prime to the norm `ϑ.normQ` of the places of `ϑ`: if both forms, read as algebraic forms by `lastPathToAlgForm`, have gauge at most `1` at every point, then `N * lastPathPeriod Ψ y` lies in `embValRing`, the ring of `p`-integral complex numbers. -/ lemma exists_mul_lastPathPeriod_mem_embValRing : ∃ N ≠ (0 : ℕ), N ≤ exp (D.x ^ 99 * D.b ^ 2) ∧ ∀ {ϑ : D.MFoldTwist} {n : ℕ} {Ψ : EdgeTuple ϑ → ℂ} {y : ∀ z : Bool, D.GridForm z 0 D.m} {p : ℕ} [Fact p.Prime] [PadicPlace p], IsPathDatum n (TwoGridPath.last D.m).edges Ψ → FixedByOuterLevels ϑ y → p.Coprime ϑ.normQ → (∀ (z : Bool) (g : Gf D.E (D.LastPathIndex z 0)), weylGauge (D.lastPathColumns z) (D.lastPathDetExp z 0) g ((D.lastPathToAlgForm z (y z)).val g) ≤ 1) → N * lastPathPeriod Ψ y ∈ embValRing := by -- By `exists_lastPathPeriod_mem_smul_norm_le` the sum `lastPathPeriod Ψ y` consists of branching -- pairings of vectors got from `y` by `m` lifts each. Here `d = liftDenominator` clears each lift -- and `M` clears the pairing, so `N = M * d ^ (2 * m)`. obtain ⟨M, hM_ne, hM_le, h_pair⟩ := D.exists_norm_mul_lastPathPairing_le_one let d : ℕ := D.liftDenominator have hd_ne : d ≠ 0 := by simp [d, liftDenominator, NeZero.ne] have h_log_d : log d ≤ 2 * Core.numInfPlaces D.E * (2 * D.n D.m * (2 * D.n D.m)) * (D.natB * log D.M) + D.natB * D.r ^ 4 * (D.natB * log D.M + log P.d) := by simp [d, liftDenominator, log_mul, NeZero.ne] have h_log : log (M * (d ^ D.m * d ^ D.m) : ℕ) ≤ D.x ^ 99 * D.b ^ 2 := calc _ = log M + (D.m * log d + D.m * log d) := by simp [log_mul, hM_ne, hd_ne] _ ≤ _ := by grw [hM_le, h_log_d] exact D.le_of_hasLogBound (by scale_grind D) refine ⟨M * (d ^ D.m * d ^ D.m), by simp [hM_ne, hd_ne], le_exp_of_log_le h_log, fun {ϑ n Ψ y p _ _} hΨ hy hp h_int ↦ ?_⟩ -- After `j` lifts, `d ^ j • v` has gauge at most `1`. let IsCleared (z : Bool) (j : ℕ) (g : Gf D.E (D.LastPathIndex z j)) (v : D.LastPathVector z j) : Prop := weylGauge (D.lastPathColumns z) (D.lastPathDetExp z j) g ((d : ℂ) ^ j • v) ≤ 1 have h_lift (S : EdgeTuple ϑ) (z : Bool) (j : ℕ) (hj : j < D.m) (g : Gf D.E (D.LastPathIndex z j)) (h : Gf D.E (D.LastPathIndex z (j + 1))) (v : D.LastPathVector z j) (hv : IsCleared z j g v) : IsCleared z (j + 1) h ((lastPathKernel ϑ z j).jetMap ((lastPathKernel ϑ z j).ω (g, h) (lastPathEdgeDatum S z j)) v) := le_trans (by simpa [pow_succ, mul_smul] using liftDenominator_smul_lastPathEdgeDatum_mem_raises hp S z hj g h ((d : ℂ) ^ j • v)) hv have h_end {g : Gf D.E (D.LastPathIndex false D.m)} {v' : D.LastPathVector false D.m} {v : D.LastPathVector true D.m} (hv' : IsCleared false D.m g v') (hv : IsCleared true D.m (lastPathBlockPoint ϑ g) v) : ‖ιₚ ((M * (d ^ D.m * d ^ D.m) : ℕ) * D.lastPathPairing v' v)‖ ≤ 1 := by simpa [mul_assoc] using h_pair hp hv' hv obtain ⟨L, -, h_sum⟩ := exists_lastPathPeriod_mem_smul_norm_le hΨ hy IsCleared ιₚ h_lift (fun z g ↦ by simpa [IsCleared] using h_int z g) h_end -- The numbers that `N` makes integral form an additive group, so it contains this multiple sum. let A : AddSubgroup ℂ := embValRing.toAddSubgroup.comap (AddMonoidHom.mulLeft ((M * (d ^ D.m * d ^ D.m) : ℕ) : ℂ)) exact A.nsmul_subset .rfl h_sum /-! ### Sizes on the last path -/ /-- For the trivial twist, the class numbers of the levels along the last path are at most `exp (x ^ 99 * b ^ 2)`. -/ lemma card_stdClasses_lastPathLevel_le (z : Bool) {j : ℕ} (hj : j ≤ D.m) : Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) ≤ exp (D.x ^ 99 * D.b ^ 2) := by have h_level : principalLevel _ (1 * D.M ^ D.natB : ℕ) ≤ lastPathLevel (1 : D.MFoldTwist) z j := by unfold lastPathLevel rw [← show (1 : D.MFoldTwist).normQ = 1 by simp [toAutChar_one_and_toTwist_one_and_Q_one]] exact Modulus.principalLevel_le_levelOfSubgroup normQ_mul_M_pow_mem_modulus refine (D.card_stdClasses_le_exp_mul_log _ (card_lastPathIndex_le z hj) h_level).trans ?_ simpa using D.le_of_hasLogBound /-- For the trivial twist, the theta kernel `lastPathKernel 1 z j` lifts forms from the `j`-th to the next space of the half `z` of the last path. Let `S` be a tuple of matrices on the edges. The operator by which the datum `lastPathEdgeDatum S z j` of this edge carries a value `v` at the point `g` to a value at `h` multiplies the norm `√(weylNormSq ·)` of the `σ`-conjugate of `v` by at most `exp (x ^ 99 * b ^ 2)`, for each `σ` in `Aut(ℂ)`. -/ lemma sqrt_weylNormSq_lastPathKernel_le (σ : ℂ ≃+* ℂ) (S : EdgeTuple (1 : D.MFoldTwist)) (z : Bool) {j : ℕ} (hj : j < D.m) (g : Gf D.E (D.LastPathIndex z j)) (h : Gf D.E (D.LastPathIndex z (j + 1))) (v : D.LastPathVector z j) : √(weylNormSq (σ ∘ (lastPathKernel 1 z j).jetMap ((lastPathKernel 1 z j).ω (g, h) (lastPathEdgeDatum S z j)) v)) ≤ exp (D.x ^ 99 * D.b ^ 2) * √(weylNormSq (σ ∘ v)) := by have h_liftWeight := D.isLiftWeight_lastPathColumns z j -- The datum is the indicator of one matrix, so the operator bound for jets applies with size `1`. apply (P.sqrt_weylNormSq_schurJet_le_of_isVacuumCombination (P.isVacuumCombination_of_isAdmissibleCombination (P.isAdmissibleCombination_vacuumDatum_indicator (S (rowEdge z j D.m)))) g h 1 h_liftWeight v).trans simp_rw [Parameters.jetSizeBound, schurGrowthExponent, sum_range, ← sum_prod_type'] -- Each row length is at most their sum, the number of boxes. have h_row (q : D.Φ × Fin (card (D.LastPathIndex z j))) : diagramWeight (rankAt fun _ : D.Φ ↦ D.LastPathIndex z (j + 1)) (D.lastPathColumns z) (q.1, q.2.val) ≤ D.natB * D.r ^ 4 := (single_le_sum (by simp) (mem_univ q)).trans (h_liftWeight.1.sum_diagramWeight_eq_boxes.trans_le (boxes_lastPathColumns_le_natB_mul z hj)) grw [le_abs_self (log (‖σ 1‖ ^ 2 / P.bigOmega D.towerExp)), one_mul, h_row] gcongr -- 'le_of_hasLogBound' uses these two bounds for the ranks as local instances. have := D.hasLogUpper_of_le (card_lastPathIndex_le z hj) have := D.hasLogUpper_of_le (card_lastPathIndex_le z hj.le) simpa using D.le_of_hasLogBound (by scale_grind D) /-- Conjugates of the branching pairing `D.lastPathPairing v' v` are bounded by the branching constant `((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3` times the norms of `σ ∘ v'` and `σ ∘ v`. -/ private lemma norm_map_lastPathPairing_le (σ : ℂ ≃+* ℂ) (v' : D.LastPathVector false D.m) (v : D.LastPathVector true D.m) : ‖σ (D.lastPathPairing v' v)‖ ≤ (((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 : ℕ) * √(weylNormSq (σ ∘ v')) * √(weylNormSq (σ ∘ v)) := calc _ = ‖(σ ∘ v') ⬝ᵥ D.lastPathBranching.map (↑) *ᵥ (σ ∘ v)‖ := by simp only [LinearMap.compl₂_apply, Matrix.mulVecLin_apply, dotProductBilin_apply_apply, dotProduct, mulVec, map_sum, map_mul, map_intCast, Matrix.map_apply, Function.comp_apply] _ ≤ _ := D.norm_dotProduct_lastPathBranching_mulVec_le (boxes_lastPathColumns_le_natB_mul true le_rfl) _ _ /-- For the trivial twist, a number `L` of terms at most `lastPathBound 1 * edgeMatrixCountBound 1 ^ (2 * D.m)` times the branching factor `((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3` is at most `exp (D.x ^ 199 * D.b ^ 2)`. -/ private lemma natCast_mul_natB_pow_le_exp {L : ℕ} (hL : L ≤ lastPathBound (1 : D.MFoldTwist) * edgeMatrixCountBound (1 : D.MFoldTwist) ^ (2 * D.m)) : (L : ℝ) * (((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 : ℕ) ≤ exp (D.x ^ 199 * D.b ^ 2) := by have h_normQ : (1 : D.MFoldTwist).normQ = 1 := by simp [toAutChar_one_and_toTwist_one_and_Q_one] grw [hL] refine le_exp_of_log_le ?_ rw [log_mul (by simp [lastPathBound, NeZero.ne]) (by simp [NeZero.ne]), lastPathBound, Nat.cast_mul, Nat.cast_mul, log_mul (by simp [NeZero.ne]) (by simp [NeZero.ne]), log_mul (by simp [NeZero.ne]) (by simp [NeZero.ne])] simp only [vectorCountBound, edgeMatrixCountBound, card_residueRing_twistModulus, prod_q_chosenPlace, h_normQ, mul_one, Nat.cast_pow, log_pow, Nat.cast_mul, Nat.cast_ofNat] exact D.le_of_hasLogBound (by scale_grind D) /-- For the trivial twist, the number of terms in `exists_lastPathPeriod_mem_smul_norm_le` times the branching and lift growth factors is at most `exp (D.x ^ 200 * D.b ^ 2)`. -/ private lemma lastPathPeriod_const_le {L : ℕ} (hL : L ≤ lastPathBound (1 : D.MFoldTwist) * edgeMatrixCountBound (1 : D.MFoldTwist) ^ (2 * D.m)) : ((L * ∏ z : Bool, ∏ j ∈ range (D.m + (!z).toNat), Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) : ℕ) : ℝ) * ((((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 : ℕ) * exp (D.x ^ 99 * D.b ^ 2) ^ D.m * exp (D.x ^ 99 * D.b ^ 2) ^ D.m) ≤ exp (D.x ^ 200 * D.b ^ 2) := by let G : ℝ := exp (D.x ^ 99 * D.b ^ 2) let C : ℕ := ((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 have h_prod (z : Bool) (k : ℕ) (hk : k ≤ D.m + 1) : ∏ j ∈ range k, (Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) : ℝ) ≤ G ^ k := calc _ ≤ ∏ _j ∈ range k, G := by gcongr with j hj exact D.card_stdClasses_lastPathLevel_le z (Nat.le_of_lt_succ ((mem_range.1 hj).trans_le hk)) _ = G ^ k := by rw [prod_const, card_range] have hn_le : ((L * ∏ z : Bool, ∏ j ∈ range (D.m + (!z).toNat), Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) : ℕ) : ℝ) ≤ L * (G ^ D.m * G ^ (D.m + 1)) := by grw [← h_prod true D.m (by simp), ← h_prod false (D.m + 1) le_rfl] simp [-Nat.card_eq_fintype_card] have hG : G ^ (D.m + (D.m + 1) + D.m + D.m) = exp ((D.m + (D.m + 1) + D.m + D.m : ℕ) * (D.x ^ 99 * D.b ^ 2)) := (exp_natCast_mul _ _).symm calc _ ≤ L * (G ^ D.m * G ^ (D.m + 1)) * (C * G ^ D.m * G ^ D.m) := by gcongr _ = (L * C) * G ^ (D.m + (D.m + 1) + D.m + D.m) := by ring _ ≤ exp (D.x ^ 199 * D.b ^ 2) * exp ((D.m + (D.m + 1) + D.m + D.m : ℕ) * (D.x ^ 99 * D.b ^ 2)) := by rw [hG]; gcongr exact D.natCast_mul_natB_pow_le_exp hL _ = exp (D.x ^ 199 * D.b ^ 2 + (D.m + (D.m + 1) + D.m + D.m : ℕ) * (D.x ^ 99 * D.b ^ 2)) := (exp_add _ _).symm _ ≤ exp (D.x ^ 200 * D.b ^ 2) := exp_le_exp.2 <| D.le_of_hasLogBound (by scale_grind D) /-- Conjugates of `Ξ = lastPathPeriod Ψ y` for the trivial twist. Let `Ψ` be a path datum on the last path and `y` a pair of forms fixed by the levels at the outer ends of the two halves, whose values as algebraic forms have `σ`-conjugates of squared norm at most `B false` and `B true`. Then `‖σ Ξ‖` is at most `exp (x ^ 200 * b ^ 2) * √(B false) * √(B true)`, with `x = D.x` the length of the prime sum and `b = D.b` the weight at the `b`-places. -/ lemma norm_lastPathPeriod_le {Ψ : EdgeTuple (1 : D.MFoldTwist) → ℂ} {y : ∀ z : Bool, D.GridForm z 0 D.m} (hΨ : IsPathDatum (lastPathBound (1 : D.MFoldTwist)) (TwoGridPath.last D.m).edges Ψ) (hy : D.FixedByOuterLevels 1 y) (σ : ℂ ≃+* ℂ) {B : Bool → ℝ} (hB : ∀ (z : Bool) (g : Gf D.E (D.LastPathIndex z 0)), weylNormSq (σ ∘ (D.lastPathToAlgForm z (y z)).val g) ≤ B z) : ‖σ (lastPathPeriod Ψ y)‖ ≤ exp (D.x ^ 200 * D.b ^ 2) * √(B false) * √(B true) := by -- By `exists_lastPathPeriod_mem_smul_norm_le` the sum `lastPathPeriod Ψ y` consists of branching -- pairings of vectors got from `y` by `m` lifts each. Each lift costs a factor `G` in norm and -- each class number is at most `G`. let G : ℝ := exp (D.x ^ 99 * D.b ^ 2) -- After `j` lifts the norm is at most `G ^ j` times its bound at the start. let IsSmall (z : Bool) (j : ℕ) (v : D.LastPathVector z j) : Prop := √(weylNormSq (σ ∘ v)) ≤ G ^ j * √(B z) have h_lift (S : EdgeTuple (1 : D.MFoldTwist)) (z : Bool) (j : ℕ) (hj : j < D.m) (g : Gf D.E (D.LastPathIndex z j)) (h : Gf D.E (D.LastPathIndex z (j + 1))) (v : D.LastPathVector z j) (hv : IsSmall z j v) : IsSmall z (j + 1) ((lastPathKernel 1 z j).jetMap ((lastPathKernel 1 z j).ω (g, h) (lastPathEdgeDatum S z j)) v) := calc _ ≤ G * √(weylNormSq (σ ∘ v)) := D.sqrt_weylNormSq_lastPathKernel_le σ S z hj g h v _ ≤ G * (G ^ j * √(B z)) := by gcongr _ = G ^ (j + 1) * √(B z) := by ring let C : ℕ := ((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 let R : ℝ := C * (G ^ D.m * √(B false)) * (G ^ D.m * √(B true)) -- `C` bounds the branching pairing, so `R` bounds each term of the sum. have h_end {v' : D.LastPathVector false D.m} {v : D.LastPathVector true D.m} (hv' : IsSmall false D.m v') (hv : IsSmall true D.m v) : ‖σ (1 * D.lastPathPairing v' v)‖ ≤ R := by rw [one_mul] exact (D.norm_map_lastPathPairing_le σ v' v).trans <| mul_le_mul (mul_le_mul_of_nonneg_left hv' (Nat.cast_nonneg _)) hv (sqrt_nonneg _) (mul_nonneg (Nat.cast_nonneg _) (mul_nonneg (pow_nonneg (exp_pos _).le _) (sqrt_nonneg _))) obtain ⟨L, hL, h_sum⟩ := exists_lastPathPeriod_mem_smul_norm_le hΨ hy (fun z j _ ↦ IsSmall z j) σ.toRingHom h_lift (fun z g ↦ by simp [IsSmall, sqrt_le_sqrt, hB]) h_end -- The number of terms is `L` times the `2 * m + 1` class numbers of the nodes `j < m` of the -- half `true` and `j ≤ m` of the half `false`; `(!z).toNat` counts the extra node. let n : ℕ := L * ∏ z : Bool, ∏ j ∈ range (D.m + (!z).toNat), Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) obtain ⟨a, ha, ha_sum⟩ := Set.mem_nsmul_iff_sum.1 h_sum calc _ = ‖∑ i, σ (a i)‖ := by rw [← ha_sum, map_sum] _ ≤ n * R := (norm_sum_le_of_le univ fun i _ ↦ (by have h := ha i rw [Set.mem_ofPred_eq, one_mul] at h exact h : ‖σ (a i)‖ ≤ R)).trans_eq (by rw [sum_const, card_univ, Fintype.card_fin, nsmul_eq_mul]) _ = n * (C * G ^ D.m * G ^ D.m) * √(B false) * √(B true) := by ring _ ≤ exp (D.x ^ 200 * D.b ^ 2) * √(B false) * √(B true) := by grw [D.lastPathPeriod_const_le hL] /-! ### Going back through the turns -/ /-- There are constants `c ϑ`, path data `Ψ ϑ` on the last path, a number `β` and a restriction map `r` from `gridLevelForms` onto the forms on `Y₀` of principal level at the chosen places, such that the index of the level `levelY ϑ m` times the pairing of `y'` with the chain of lifts of `r φ` equals `β * Ξ / c ϑ`. Here `Ξ` is `lastPathPeriod` of `Ψ ϑ` at the pair `(y', φ)`, the sum over the tuples `S` of matrices on the last path of `Ψ ϑ S` times the integral of the pairing of the lifts of `y'` and `φ` along its two halves. `HasAbsUpToNormPower c f` says that `‖c ϑ‖²` is `C * ϑ.normQ ^ k * (f ϑ) ^ 2`, with `C` and `k` independent of `ϑ` and `ϑ.normQ` the product of the norms of the places in the set `Q` of `ϑ`, and `f` is the product over the `m ^ 2` turns of `turnRatio i j`, a product of ratios of Hecke values at the twist `ϑ`. -/ lemma exists_integral_lowerChainUpTo_eq_lastPathPeriod : ∃ c : D.MFoldTwist → ℂˣ, D.HasAbsUpToNormPower (fun ϑ : D.MFoldTwist ↦ c ϑ) (∏ i ∈ range D.m, ∏ j ∈ range D.m, D.turnRatio i j) ∧ ∃ Ψ : ∀ ϑ : D.MFoldTwist, EdgeTuple ϑ → ℂ, (∀ ϑ : D.MFoldTwist, IsPathDatum (lastPathBound ϑ) (TwoGridPath.last D.m).edges (Ψ ϑ)) ∧ ∃ (β : ℂ) (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)), r.range = ⊤ ∧ ∀ (ϑ : D.MFoldTwist) (y' : D.GridForm false 0 D.m) (φ : D.gridLevelForms D.m), stdLevelIndex (D.levelY ϑ D.m) * ∫ x : New.G D.E (D.signsY D.m), y' x * D.lowerChainUpTo ϑ D.m (r φ) x ∂(D.spaceY D.m).quotMeasure = β * (lastPathPeriod (Ψ ϑ) (fun z : Bool ↦ z.rec y' φ.val) / c ϑ) := by -- Start from the data of the first path and carry them through the turns to the last path; a -- multiple of the sum `lastPathPeriod` of the resulting data is then the period of the first -- path. obtain ⟨Ψ₀, hΨ₀, g, α, r, hr_onto, h_first⟩ := D.exists_isPathDatum_first obtain ⟨c, hc, h_turns⟩ := D.exists_transfersPeriods_first_last obtain ⟨Ψ, hΨ, h_back⟩ := h_turns _ Ψ₀ hΨ₀ obtain ⟨β, hβ⟩ : ∃ β : ℂ, ∀ x : D.PeriodTriple, gridPeriod (.first D.m) Ψ₀ g x = β * ((lastPathPeriod (Ψ x.1) fun z ↦ z.rec x.2.1 x.2.2) / triangleGLCard false x.1 D.m / c x.1) := h_back _ (D.isProportional_lastPathPeriod Ψ) g rw [prod_product' (range D.m) (range D.m) D.turnRatio] at hc refine ⟨c, hc, Ψ, hΨ, α * β, r, hr_onto, fun ϑ y' φ ↦ ?_⟩ have h_index : triangleGLCard false ϑ D.m = stdLevelIndex (D.levelY ϑ D.m) := LevelPlaces.card_GL_levelModulus (D.Y D.m) (D.levelPlaces ϑ) rw [h_first, hβ, ← h_index] field [show (triangleGLCard false ϑ D.m : ℂ) ≠ 0 from Nat.cast_ne_zero.2 Fintype.card_ne_zero] /-! ### Values of a form from its pairings -/ /-- The space of values of the algebraic forms on `Y_m` of the dual weight. -/ abbrev DualVector : Type := WeylIndex (D.Y D.m) (D.lastPathColumns false) → ℂ /-- The integer matrix of the invariant pairing of the dual weight on `Y_m`, that of the conjugate forms, with the weight on `Y_m`. -/ def dualPairing : Matrix (WeylIndex (D.Y D.m) (D.lastPathColumns false)) (WeylIndex (D.Y D.m) D.columnsY) ℤ := (exists_isDualPairing_of_isHCParam D.isHCParam_paramY (D.isHCParam_lastPathColumns false zero_le)).choose /-- The matrix `dualPairing` is a duality between the weight `(columnsY, lastEntry m)` on `Y_m` and its dual weight `(lastPathColumns false, lastPathDetExp false 0)` (columns of the diagram, exponent of the determinant), normalised at the highest vector of the parameter `paramY m` of `Y_m`. -/ lemma isDualPairing_dualPairing : IsDualPairing D.columnsY (D.lastPathColumns false) (D.lastEntry D.m) (D.lastPathDetExp false 0) (D.paramY D.m) D.dualPairing := (exists_isDualPairing_of_isHCParam D.isHCParam_paramY (D.isHCParam_lastPathColumns false zero_le)).choose_spec /-- The hook number of the dual of the weight on `Y_m`: the square norm of the highest weight polynomial for the pairing by differentiation, a positive integer. -/ abbrev dualHook : ℤ := hookNumber (D.lastPathColumns false) (rankAt fun _ : D.Φ ↦ D.Y D.m) /-- The product of the hook number of the dual weight, `exp (x ^ 99 * b ^ 2)` and `exp (x ^ 200 * b ^ 2)` is at most `exp (x ^ 201 * b ^ 2)`. -/ lemma dualHook_mul_exp_le : D.dualHook * exp (D.x ^ 99 * D.b ^ 2) * exp (D.x ^ 200 * D.b ^ 2) ≤ exp (D.x ^ 201 * D.b ^ 2) := by have h_hook : (D.dualHook : ℝ) ≤ (((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 : ℕ) := by exact_mod_cast hookNumber_le (boxes_lastPathColumns_le_natB_mul false zero_le) rw [mul_assoc, ← exp_add] grw [h_hook] refine le_exp_of_log_le ?_ rw [log_mul (by simp [NeZero.ne]) (exp_pos _).ne', log_exp, Nat.cast_pow, log_pow, Nat.cast_pow, log_pow] exact D.le_of_hasLogBound /-- Let `ζ` be a vector of the weight on `Y_m`. Suppose that its pairing by `dualPairing` with every integer vector `w` of the dual weight is `D.dualHook` times an element of `embValRing`. Then every coordinate of `ζ` is `p`-integral. -/ lemma mem_embValRing_of_dualPairing_eq_dualHook_mul {p : ℕ} [Fact p.Prime] [PadicPlace p] {ζ : WeylIndex (D.Y D.m) D.columnsY → ℂ} (hζ : ∀ w : WeylIndex (D.Y D.m) (D.lastPathColumns false) → ℤ, ∃ a ∈ embValRing, (fun k : WeylIndex (D.Y D.m) (D.lastPathColumns false) ↦ (w k : ℂ)) ⬝ᵥ D.dualPairing.map (↑) *ᵥ ζ = D.dualHook * a) (i : WeylIndex (D.Y D.m) D.columnsY) : ζ i ∈ embValRing := by -- The hook number times `ζ i` is the pairing of `ζ` with the `i`-th row of an integer matrix `C` -- with `C * dualPairing = dualHook • 1`. obtain ⟨C, hC⟩ : ∃ C : Matrix _ _ ℤ, ∀ v : WeylIndex (D.Y D.m) D.columnsY → ℂ, C.map (↑) *ᵥ D.dualPairing.map (↑) *ᵥ v = (D.dualHook : ℂ) • v := D.isDualPairing_dualPairing.exists_mul_eq_hookNumber obtain ⟨a, ha, h_pair⟩ := hζ (C i) have h_coord : (D.dualHook : ℂ) * ζ i = D.dualHook * a := (congrFun (hC ζ) i).symm.trans h_pair rwa [mul_left_cancel₀ (by simp) h_coord] /-- Let `σ` be an automorphism of `ℂ`, `ζ` a vector of the weight on `Y_m` and `K ≥ 0`. Suppose that for each `v : D.DualVector`, the `σ`-conjugate of the pairing `v ⬝ᵥ dualPairing *ᵥ ζ` has absolute value at most `K * √(weylNormSq (σ ∘ v))`. Then `weylNormSq (σ ∘ ζ) ≤ K ^ 2`. -/ lemma weylNormSq_le_of_dualPairing (σ : ℂ ≃+* ℂ) {ζ : WeylIndex (D.Y D.m) D.columnsY → ℂ} {K : ℝ} (hK : 0 ≤ K) (hζ : ∀ v : D.DualVector, ‖σ (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ ζ)‖ ≤ K * √(weylNormSq (σ ∘ v))) : weylNormSq (σ ∘ ζ) ≤ K ^ 2 := by -- The squared norm of `σ ∘ ζ` is its pairing with a vector `w` of the same norm. obtain ⟨w, hw_norm, hw_pair⟩ : ∃ w : D.DualVector, weylNormSq w = weylNormSq (σ ∘ ζ) ∧ ∀ u : D.DualVector, u ⬝ᵥ D.dualPairing.map (↑) *ᵥ (σ ∘ ζ) = gramForm w u := D.isDualPairing_dualPairing.exists_eq_gramForm (σ ∘ ζ) have h_eq : (weylNormSq w : ℂ) = σ ((σ.symm ∘ w) ⬝ᵥ D.dualPairing.map (↑) *ᵥ ζ) := calc _ = w ⬝ᵥ D.dualPairing.map (↑) *ᵥ (σ ∘ ζ) := (GL.coe_weylNormSq w).trans ((gramForm_apply w w).symm.trans (hw_pair w).symm) _ = _ := by simp only [dotProduct, mulVec, map_sum, map_mul, map_intCast, Matrix.map_apply, Function.comp_apply, RingEquiv.apply_symm_apply] have h_le : weylNormSq w ≤ K * √(weylNormSq w) := calc weylNormSq w = ‖(weylNormSq w : ℂ)‖ := by simp [abs_of_nonneg] _ ≤ K * √(weylNormSq w) := by rw [h_eq] simpa [Function.comp_def] using hζ (σ.symm ∘ w) have h_root : √(weylNormSq w) ≤ K := div_sqrt.ge.trans (div_le_of_le_mul₀ (sqrt_nonneg _) hK h_le) rw [← hw_norm] exact (sqrt_le_iff.1 h_root).2 section Delta variable {P : Parameters} {D : Data P} (ϑ : D.MFoldTwist) (x : Gf D.E (D.Y D.m)) (v : D.DualVector) /-- The algebraic form `δ_x(v)` of the dual weight on `Y_m`, of level `levelY ϑ m`, supported on the class of `x`. -/ def lastPathDelta : levelSpace (algFormRep (D.lastPathColumns false) (D.lastPathDetExp false 0)) (D.levelY ϑ D.m) := deltaForm stdEmbFin ((stdSpace D.E (D.Y D.m)).weightRep (D.lastPathColumns false) (D.lastPathDetExp false 0)) 1 x v /-- The form `δ_x(v)` as a conjugate form on `Y_m`. -/ def lastPathConjDelta : D.GridForm false 0 D.m := (D.lastPathToAlgForm false).symm (lastPathDelta ϑ x v).val lemma lastPathToAlgForm_lastPathConjDelta : D.lastPathToAlgForm false (lastPathConjDelta ϑ x v) = (lastPathDelta ϑ x v).val := (D.lastPathToAlgForm false).apply_symm_apply _ /-- Let `ϑ` be an `m`-fold twist, `x` a finite point of `Y_m`, `v` a vector of the dual weight, `δ = lastPathConjDelta ϑ x v` the delta form on `Y_m` with value `v` on the class of `x`, and `φ` a form in `gridLevelForms`. Then the pair `(δ, φ)` satisfies `FixedByOuterLevels ϑ`: as algebraic forms, `δ` is fixed by the integral points of `Y_m` congruent to `1` modulo `gridModulus ϑ`, and `φ` by the level `lastPathLevel ϑ true 0` of `Ỹ^m_0`, the integral points congruent to `1` modulo the part of that modulus that does not depend on `ϑ`. -/ lemma fixedByOuterLevels_lastPathConjDelta (φ : D.gridLevelForms D.m) : FixedByOuterLevels ϑ fun z : Bool ↦ z.rec (lastPathConjDelta ϑ x v) φ.val := by -- `lastPathLevel ϑ false 0` is the principal level of `gridModulus ϑ`, which lies in `levelY`. have h_level : lastPathLevel ϑ false 0 ≤ D.levelY ϑ D.m := by refine Subgroup.map_mono fun k hk ↦ funext fun i ↦ Units.ext ?_ -- Reduction modulo the place of index `i` factors through reduction modulo `gridModulus ϑ`. have h_red : (gridModulus ϑ).reductionGL k = 1 := hk have h_place : (D.levelPlaces ϑ.toTameChar).placeAt i ∈ (gridModulus ϑ).places := places_levelModulus.ge ⟨i, rfl⟩ exact (Rows.reductionGL_map_modulusResidue _ h_place k).symm.trans <| by rw [h_red, Units.val_one, Matrix.map_one _ (map_zero _) (map_one _)] rfl let e := (D.gridSpace 0 true 0 D.m).algFormEquiv (D.isHCParam_lastPathColumns true zero_le) (principalLevel (D.LastPathIndex true 0) D.gridLevelGen) have h_symm : (e.symm φ).val = D.lastPathToAlgForm true φ.val := rfl refine Bool.forall_bool.2 ⟨?_, ?_⟩ · change D.lastPathToAlgForm false (lastPathConjDelta ϑ x v) ∈ _ rw [lastPathToAlgForm_lastPathConjDelta] exact fun k ↦ (lastPathDelta ϑ x v).property ⟨k.val, h_level k.property⟩ · change D.lastPathToAlgForm true φ.val ∈ _ rw [← h_symm] exact fun k ↦ (e.symm φ).property ⟨k.val, lastPathLevel_le_principalLevel ϑ true 0 k.property⟩ /-- Pairing with a delta form reads a value. Let `ϑ` be an `m`-fold twist, `x` a finite point of `Y_m`, `v` a vector of the dual weight and `y` a form on `Y₀`. The index of the level times the integral of the delta form `δ_x(v) = lastPathConjDelta ϑ x v` against the chain of lifts `lowerChainUpTo ϑ m y` is the pairing of `v` with the value at `x` of `lowerChain ϑ y`, the same chain with values in algebraic forms, divided by the dimension of the weight. The division by the dimension of the weight is the factor in Schur's orthogonality relations for matrix coefficients of irreducible representations of compact groups, here for the weight on `Y_m` paired with its dual. -/ lemma integral_lastPathConjDelta_mul (y : D.principalForms (D.spaceY 0)) : stdLevelIndex (D.levelY ϑ D.m) * ∫ g : New.G D.E (D.signsY D.m), lastPathConjDelta ϑ x v g * D.lowerChainUpTo ϑ D.m y g ∂(D.spaceY D.m).quotMeasure = (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ (D.lowerChain ϑ y).val x) / card (WeylIndex (D.Y D.m) D.columnsY) := by have h_fix (k : Gf D.E (D.Y D.m)) (hk : k ∈ D.levelY ϑ D.m) : algFormRep D.columnsY (D.lastEntry D.m) k (D.lowerChain ϑ y) = D.lowerChain ϑ y := (D.lowerChainAtLevel ϑ y).algFormRep_eq_self_of_mem hk -- The integral is a class sum, which the delta form reduces to its term at `x`. let L (g : Gf D.E (D.Y D.m)) : D.DualVector →+ ℂ := .mk' (fun w ↦ w ⬝ᵥ D.dualPairing.map (↑) *ᵥ (D.lowerChain ϑ y).val g) fun w w' ↦ add_dotProduct w w' _ let f (g : Gf D.E (D.Y D.m)) : ℂ := L g ((lastPathDelta ϑ x v).val.val g) have h_integral : ∫ g : New.G D.E (D.signsY D.m), lastPathConjDelta ϑ x v g * D.lowerChainUpTo ϑ D.m y g ∂(D.spaceY D.m).quotMeasure = (card (WeylIndex (D.Y D.m) D.columnsY) * stdLevelIndex (D.levelY ϑ D.m) : ℂ)⁻¹ * classIntegral stdRatPoints (D.levelY ϑ D.m) f := by have h_chain : (D.lowerChainUpTo ϑ D.m y).val = ofAlgForm (D.paramY D.m) (D.signsY D.m) (D.lowerChain ϑ y) := (ofAlgForm_toAlgForm D.isHCParam_paramY (D.lowerChainUpTo ϑ D.m y)).symm have h_delta : (lastPathConjDelta ϑ x v).val = ofAlgForm (-D.paramY D.m) (D.signsY D.m) (lastPathDelta ϑ x v).val := rfl let B (g : Gf D.E (D.Y D.m)) : (WeylIndex (D.Y D.m) D.columnsY → ℂ) →ₗ[ℂ] ℂ := (dotProductBilin ℂ ℂ).compl₂ (D.dualPairing.map (↑)).mulVecLin ((lastPathDelta ϑ x v).1.1 g) have h_f : (fun g ↦ B g ((D.lowerChain ϑ y).val g)) = f := funext fun g ↦ by simp only [B, f, L, AddMonoidHom.mk'_apply, LinearMap.compl₂_apply, Matrix.mulVecLin_apply, dotProductBilin_apply_apply] refine (MeasureTheory.integral_congr_ae (.of_forall fun (g : New.G D.E (D.signsY D.m)) ↦ congrArg₂ (· * ·) (congrFun h_delta g) (congrFun h_chain g))).trans ?_ rw [← h_f] exact integral_mul_eq_classIntegral (V := D.spaceY D.m) D.isHCParam_paramY (D.levelY ϑ D.m) (isAutomorphic_algFormCoeff (lastPathDelta ϑ x v).val) B (D.isDualPairing_dualPairing.ofAlgForm_eq_bilin (D.signsY D.m) (lastPathDelta ϑ x v).val) have h_sum : classSum stdRatPoints (D.levelY ϑ D.m) f = L x v := by refine classSum_deltaForm L fun γ k ↦ ?_ have h_value : (D.lowerChain ϑ y).val ((stdSpace D.E (D.Y D.m)).embFin γ * x * k.val) = (stdSpace D.E (D.Y D.m)).weightRep D.columnsY (D.lastEntry D.m) γ ((D.lowerChain ϑ y).val x) := (congrFun (congrArg Subtype.val (h_fix k.val k.property)) _).trans ((D.lowerChain ϑ y).property.2 γ x) simp only [MonoidHom.one_apply, one_smul, L, AddMonoidHom.mk'_apply, h_value] exact D.isDualPairing_dualPairing.invariant ℂ _ v ((D.lowerChain ϑ y).val x) rw [h_integral, classIntegral_eq_classSum, h_sum] · simp [L, field, -Fintype.card_pi] · intro k hk g have h_left : (lastPathDelta ϑ x v).val.val (g * k) = (lastPathDelta ϑ x v).val.val g := (congrFun (congrArg Subtype.val ((lastPathDelta ϑ x v).property ⟨k, hk⟩)) g).trans (one_smul ℂ _) have h_right : (D.lowerChain ϑ y).val (g * k) = (D.lowerChain ϑ y).val g := congrFun (congrArg Subtype.val (h_fix k hk)) g simp only [f, L, AddMonoidHom.mk'_apply, h_left, h_right] /-- If `x` is integral above `p` and `w` is an integer vector, then the delta form `δ_x(w)` has `p`-adic gauge at most `1` at every point. -/ lemma weylGauge_lastPathConjDelta_le_one {p : ℕ} [Fact p.Prime] [PadicPlace p] (hx : x ∈ integralAbove (D.Y D.m) p) (w : WeylIndex (D.Y D.m) (D.lastPathColumns false) → ℤ) (g : Gf D.E (D.Y D.m)) : weylGauge (D.lastPathColumns false) (D.lastPathDetExp false 0) g ((D.lastPathToAlgForm false (lastPathConjDelta ϑ x fun i ↦ w i)).val g) ≤ 1 := by rw [lastPathToAlgForm_lastPathConjDelta] refine (weylGauge_deltaForm_le (n := D.Y D.m) (by simp)).trans ?_ simp [IsUltrametricDist.norm_intCast_le_one, weylGauge_le_one_iff, hx] /-- The conjugates of the values of the delta form `δ_x(v)` are no longer than those of `v`, because the level `levelY ϑ m` is sufficiently small. -/ lemma weylNormSq_lastPathConjDelta_le (σ : ℂ ≃+* ℂ) (g : Gf D.E (D.Y D.m)) : weylNormSq (σ ∘ (D.lastPathToAlgForm false (lastPathConjDelta ϑ x v)).val g) ≤ weylNormSq (σ ∘ v) := by rw [lastPathToAlgForm_lastPathConjDelta] refine (weylNormSq_deltaForm_le (n := D.Y D.m) (by simp) σ x v g).trans ?_ simp [D.classAut_eq_bot_of_le_chosenLevel (levelY_le_chosenLevel ..) (card_lastPathIndex_le false zero_le : card (D.LastPathIndex false 0) ≤ 2 * D.n D.m)] end Delta /-- There are constants `c ϑ`, whose modulus is, up to a constant and a fixed power of the norm `ϑ.normQ` of the places of `ϑ`, the product over the `m ^ 2` turns of `turnRatio`, functions `Ψ ϑ` of the matrices on the edges that are path data on the last path, a number `β` and a restriction map `r` from `gridLevelForms` onto the forms on `Y₀`, such that the pairing of `v` with the value at `x` of `(c ϑ / c 1) • lowerChain ϑ (r φ)` is `β` times `lastPathPeriod` at the pair `(δ_x(v), φ)`: the sum over the tuples `S` of `Ψ ϑ S` times the integrated pairing of the lifts of `φ` and of the delta form `δ_x(v) = lastPathConjDelta ϑ x v` along the two halves of the last path. -/ lemma exists_dualPairing_eq_mul_lastPathPeriod : ∃ c : D.MFoldTwist → ℂˣ, D.HasAbsUpToNormPower (fun ϑ : D.MFoldTwist ↦ c ϑ) (∏ i ∈ range D.m, ∏ j ∈ range D.m, D.turnRatio i j) ∧ ∃ Ψ : ∀ ϑ : D.MFoldTwist, EdgeTuple ϑ → ℂ, (∀ ϑ : D.MFoldTwist, IsPathDatum (lastPathBound ϑ) (TwoGridPath.last D.m).edges (Ψ ϑ)) ∧ ∃ (β : ℂ) (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)), r.range = ⊤ ∧ ∀ (ϑ : D.MFoldTwist) (φ : D.gridLevelForms D.m) (x : Gf D.E (D.Y D.m)) (v : D.DualVector), v ⬝ᵥ D.dualPairing.map (↑) *ᵥ ((c ϑ / c 1 : ℂ) • D.lowerChain ϑ (r φ)).val x = β * lastPathPeriod (Ψ ϑ) fun z : Bool ↦ z.rec (lastPathConjDelta ϑ x v) φ.val := by obtain ⟨c, hc, Ψ, hΨ, β, r, hr_onto, h_period⟩ := D.exists_integral_lowerChainUpTo_eq_lastPathPeriod refine ⟨c, hc, Ψ, hΨ, card (WeylIndex (D.Y D.m) D.columnsY) * β / c 1, r, hr_onto, fun ϑ φ x v ↦ ?_⟩ have h_value : (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ (D.lowerChain ϑ (r φ)).val x) / card (WeylIndex (D.Y D.m) D.columnsY) = β * (lastPathPeriod (Ψ ϑ) (fun z ↦ z.rec (lastPathConjDelta ϑ x v) φ.val) / c ϑ) := (integral_lastPathConjDelta_mul ϑ x v (r φ)).symm.trans (h_period ϑ _ φ) simpa [field, mul_comm (c ϑ : ℂ), mulVec_smul, -Fintype.card_pi] using h_value /-! ### Integrality and size of the values -/ /-- There are constants `c ϑ` whose modulus is, up to a constant and a fixed power of the norm `ϑ.normQ` of the places of `ϑ`, the product of the ratios `turnRatio`, a restriction map `r` from `gridLevelForms` onto the forms on `Y₀` and a number `s ≠ 0` with two properties. (a) If the algebraic form `lastPathToAlgForm true φ` of `φ` has `p`-integral values at a prime `p` that does not divide `ϑ.normQ`, then `(c ϑ / c 1) • lowerChainAtLevel ϑ (s • r φ)` is in `integralForms`, the forms with `p`-integral values. (b) For the trivial twist and `σ` in `Aut(ℂ)`, if the `σ`-conjugates of the values of that algebraic form have squared norm `weylNormSq` at most `B`, then those of `lowerChain 1 (s • r φ)` have squared norm at most `exp (2 * x ^ 201 * b ^ 2) * B`. -/ lemma exists_lowerChain_integral_and_weylNormSq_le : ∃ c : D.MFoldTwist → ℂˣ, D.HasAbsUpToNormPower (fun ϑ : D.MFoldTwist ↦ c ϑ) (∏ i ∈ range D.m, ∏ j ∈ range D.m, D.turnRatio i j) ∧ ∃ (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)) (s : ℂ), r.range = ⊤ ∧ s ≠ 0 ∧ (∀ (ϑ : D.MFoldTwist) (p : ℕ) [Fact p.Prime] (place : PadicPlace p) (φ : D.gridLevelForms D.m), p.Coprime ϑ.normQ → GaugeLe 1 1 (D.lastPathToAlgForm true φ.val) → (c ϑ / c 1 : ℂ) • D.lowerChainAtLevel ϑ (s • r φ) ∈ integralForms (l := p) place) ∧ ∀ (σ : ℂ ≃+* ℂ) (φ : D.gridLevelForms D.m) (B : ℝ), (∀ g : Gf D.E (D.LastPathIndex true 0), weylNormSq (σ ∘ (D.lastPathToAlgForm true φ.val).val g) ≤ B) → ∀ g : Gf D.E (D.Y D.m), weylNormSq (σ ∘ (D.lowerChain .one (s • r φ)).val g) ≤ exp (2 * D.x ^ 201 * D.b ^ 2) * B := by obtain ⟨c, hc, Ψ, hΨ, β, r, hr_onto, h_period⟩ := D.exists_dualPairing_eq_mul_lastPathPeriod obtain ⟨N, hN_ne, hN_le, h_integral⟩ := D.exists_mul_lastPathPeriod_mem_embValRing -- If `β = 0` all pairings vanish and `s = 1`, `ε = 0` will do; otherwise `s` turns `β` into the -- hook number times `N`. let s : ℂ := if β = 0 then 1 else D.dualHook * N / β let ε : ℂ := if β = 0 then 0 else 1 have hs_ne : s ≠ 0 := by by_cases hβ0 : β = 0 · simp [s, hβ0] · simp [s, hβ0, hN_ne] have hs : s * β = D.dualHook * (ε * N) := by by_cases hβ0 : β = 0 <;> simp [s, ε, hβ0] let Ξ (ϑ : D.MFoldTwist) (φ : D.gridLevelForms D.m) (x : Gf D.E (D.Y D.m)) (v : D.DualVector) : ℂ := lastPathPeriod (Ψ ϑ) fun z ↦ z.rec (lastPathConjDelta ϑ x v) φ.val have h_pair (ϑ : D.MFoldTwist) (φ : D.gridLevelForms D.m) (x : Gf D.E (D.Y D.m)) (v : D.DualVector) : v ⬝ᵥ D.dualPairing.map (↑) *ᵥ ((c ϑ / c 1 : ℂ) • D.lowerChain ϑ (s • r φ)).val x = D.dualHook * (ε * (N * Ξ ϑ φ x v)) := calc _ = s * (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ ((c ϑ / c 1 : ℂ) • D.lowerChain ϑ (r φ)).1 x) := by rw [map_smul, smul_comm, Submodule.coe_smul_of_tower, Pi.smul_apply, mulVec_smul, dotProduct_smul, smul_eq_mul] _ = s * (β * Ξ ϑ φ x v) := by rw [h_period] _ = _ := by rw [← mul_assoc, hs, mul_assoc, mul_assoc] refine ⟨c, hc, r, s, hr_onto, hs_ne, fun ϑ p _ _ φ hp hφ ↦ ?_, fun σ φ B hB x ↦ ?_⟩ · -- (a) At integral points the delta forms of integral vectors are integral. have hε_int : ε ∈ embValRing := by by_cases hβ0 : β = 0 <;> simp [ε, hβ0] have hΞ_int {x : Gf D.E (D.Y D.m)} (hx : x ∈ integralAbove (D.Y D.m) p) (w : WeylIndex (D.Y D.m) (D.lastPathColumns false) → ℤ) : N * Ξ ϑ φ x (fun i ↦ w i) ∈ embValRing := by refine h_integral (hΨ ϑ) (fixedByOuterLevels_lastPathConjDelta ϑ x _ φ) hp (Bool.forall_bool.2 ⟨weylGauge_lastPathConjDelta_le_one ϑ x hx w, fun g ↦ ?_⟩) simpa only [mul_one] using hφ g exact weylGauge_le_one_of_integralAbove _ fun x hx ↦ D.mem_embValRing_of_dualPairing_eq_dualHook_mul fun w ↦ ⟨_, mul_mem hε_int (hΞ_int hx w), h_pair ϑ φ x _⟩ -- (b) The conjugates of the sum `Ξ` for delta forms are small. have hΞ_le (v : D.DualVector) : ‖σ (Ξ 1 φ x v)‖ ≤ exp (D.x ^ 200 * D.b ^ 2) * √(weylNormSq (σ ∘ v)) * √B := D.norm_lastPathPeriod_le (hΨ 1) (fixedByOuterLevels_lastPathConjDelta 1 x v φ) σ (B := fun z ↦ if z then B else weylNormSq (σ ∘ v)) (Bool.forall_bool.2 ⟨weylNormSq_lastPathConjDelta_le 1 x v σ, hB⟩) have hε_le : ‖σ ε‖ ≤ 1 := by by_cases hβ0 : β = 0 <;> simp [ε, hβ0] have h_hook : (0 : ℝ) ≤ D.dualHook := mod_cast hookNumber_pos.le have h_pair_le (v : D.DualVector) : ‖σ (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ (D.lowerChain .one (s • r φ)).val x)‖ ≤ exp (D.x ^ 201 * D.b ^ 2) * √B * √(weylNormSq (σ ∘ v)) := calc _ = ‖σ (D.dualHook * (ε * (N * Ξ 1 φ x v)))‖ := by rw [← h_pair, div_self (c 1).ne_zero, one_smul] rfl _ = D.dualHook * ‖σ ε‖ * N * ‖σ (Ξ 1 φ x v)‖ := by simp [abs_of_nonneg h_hook, mul_assoc] _ ≤ D.dualHook * 1 * exp (D.x ^ 99 * D.b ^ 2) * (exp (D.x ^ 200 * D.b ^ 2) * √(weylNormSq (σ ∘ v)) * √B) := by gcongr exact hΞ_le v _ = D.dualHook * exp (D.x ^ 99 * D.b ^ 2) * exp (D.x ^ 200 * D.b ^ 2) * √B * √(weylNormSq (σ ∘ v)) := by ring _ ≤ _ := by grw [D.dualHook_mul_exp_le] refine (D.weylNormSq_le_of_dualPairing σ (by positivity) h_pair_le).trans_eq ?_ rw [mul_pow, sq_sqrt ((weylNormSq_nonneg _).trans (hB 1)), ← exp_natCast_mul, Nat.cast_ofNat, ← mul_assoc] /-- The space `gridLevelForms` of forms of level `J(𝔟)` on `Ỹ^m_0`, the space at the outer end of the half `true` of the last path, is spanned by the forms `φ` whose algebraic forms `lastPathToAlgForm true φ` are short: their values are integral at every prime and all conjugates of the values have squared norm at most `exp (x ^ 99 * b ^ 2)`, with `x = D.x` the length of the prime sum and `b = D.b` the weight at the `b`-places. -/ lemma span_isShort_eq_top_gridLevelForms : span ℂ {φ : D.gridLevelForms D.m | IsShort (exp (D.x ^ 99 * D.b ^ 2)) (D.lastPathToAlgForm true φ.val)} = ⊤ := by -- Transport along the isomorphism `e` between algebraic forms and forms of level `gridLevelGen`. let e : _ ≃ₗ[ℂ] D.gridLevelForms D.m := (D.gridSpace 0 true 0 D.m).algFormEquiv (D.isHCParam_lastPathColumns true zero_le) (principalLevel (D.LastPathIndex true 0) D.gridLevelGen) have h_card := D.card_lastPathIndex_le true zero_le rw [← e.range, e.range_eq_map, ← New.span_isShort_eq_top (D.classAut_eq_bot_of_le_chosenLevel (D.principalLevel_le_chosenLevel piM_dvd_gridLevelGen) h_card) P.conductor_mem_differentIdeal (by grw [boxes_lastPathColumns_le_natB_mul true zero_le, h_card]) _, map_span, LinearEquiv.coe_coe, e.image_eq_preimage_symm] · rfl · grw [shortBasisConst, h_card] exact le_exp_of_log_le D.le_of_hasLogBound /-- The space of forms on `Y₀` of principal level at the chosen places is spanned by auxiliary forms with integral and small lifts. There are constants `c ϑ`, whose modulus is, up to a constant and a fixed power of the norm `ϑ.normQ` of the places of `ϑ`, the product of the ratios `turnRatio`, such that this space is spanned by the forms `y` with two properties: for all twists `ϑ`, `(c ϑ / c 1) • lowerChainAtLevel ϑ y` has values integral at every prime not dividing `ϑ.normQ`, and all conjugates of the values of `lowerChain 1 y`, the chain of lifts for the trivial twist, have squared norm `weylNormSq` at most `exp (x ^ 202 * b ^ 2)`, with `x = D.x` the length of the prime sum and `b = D.b` the weight at the `b`-places. -/ lemma exists_span_short_lifts_eq_top : ∃ c : D.MFoldTwist → ℂˣ, D.HasAbsUpToNormPower (fun ϑ : D.MFoldTwist ↦ c ϑ) (∏ i ∈ range D.m, ∏ j ∈ range D.m, D.turnRatio i j) ∧ span ℂ {y : D.principalForms (D.spaceY 0) | (∀ (ϑ : D.MFoldTwist) (l : ℕ) [Fact l.Prime] (place : PadicPlace l), l.Coprime ϑ.normQ → (c ϑ / c 1 : ℂ) • D.lowerChainAtLevel ϑ y ∈ integralForms (l := l) place) ∧ ∀ (σ : ℂ ≃+* ℂ) (g : Gf D.E (D.Y D.m)), weylNormSq (σ ∘ (D.lowerChain .one y).val g) ≤ exp (D.x ^ 202 * D.b ^ 2)} = ⊤ := by -- Short forms `φ` span and `r` is onto, so the forms `s • r φ` span. obtain ⟨c, hc, r, s, hr_onto, hs_ne, h_integral, h_norm⟩ := D.exists_lowerChain_integral_and_weylNormSq_le refine ⟨c, hc, eq_top_mono ?_ hr_onto⟩ rw [r.range_eq_map, ← D.span_isShort_eq_top_gridLevelForms, map_span_le] intro φ hφ refine (smul_mem_iff _ hs_ne).1 (subset_span ⟨fun ϑ p _ place hp ↦ h_integral ϑ p place φ hp (hφ.1 p), fun σ g ↦ ?_⟩) calc _ ≤ exp (2 * D.x ^ 201 * D.b ^ 2) * exp (D.x ^ 99 * D.b ^ 2) := h_norm σ φ _ (hφ.2 σ) g _ = exp (2 * D.x ^ 201 * D.b ^ 2 + D.x ^ 99 * D.b ^ 2) := by rw [exp_add] _ ≤ _ := exp_le_exp.2 D.le_of_hasLogBound end New.Data end