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

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.Ring.IsFormallyReal |
| 4 | import Mathlib.Data.Rat.Cast.OfScientific |
| 5 | import Mathlib.Tactic.PNatToNat |
| 6 | import Std.Tactic.BVDecide.Normalize.Bool |
| 7 | public import New.Determinant.AuxiliaryForms.LastPath |
| 8 | public import New.Determinant.AuxiliaryForms.Turns |
| 9 | public import New.UpperBound.Kernels.ThetaLiftGauge |
| 10 | public import New.UpperBound.Objects.RowChain |
| 11 | public import New.UpperBound.Size.ShortColumns |
| 12 | import New.Determinant.AuxiliaryForms.DiagonalTurns |
| 13 | import New.Determinant.AuxiliaryForms.FirstPath |
| 14 | import New.OneLift.ComparisonOperator.FirstFactors |
| 15 | import New.UpperBound.Size.Estimates |
| 16 | |
| 17 | /-! |
| 18 | # Denominators and sizes on the last path, and the auxiliary forms |
| 19 | |
| 20 | Let `Ξ = New.Data.lastPathPeriod Ψ y` be the sum attached to the last path. Its denominators are |
| 21 | small at the primes that do not divide `Nm Q` and, for the trivial twist, its conjugates are small. |
| 22 | Going back through the turns to the first path, and reading the values of a form from its pairings |
| 23 | with delta forms, we get integrality and size for the chain of lifts from `Y₀` to `Y_m` on the |
| 24 | restrictions of short forms. Throughout, `ϑ` is an `m`-fold twist, `Q` is its finite set of places, |
| 25 | `ϑ.normQ` is `Nm Q`, and sizes are measured by the parameters `x = D.x` and `b = D.b`. The |
| 26 | modulus `𝔪 = gridModulus ϑ` of the twist is the product of the chosen places to the power |
| 27 | `D.natB` (the number `b` as a natural number), times `Q`. The other numbers of the data that occur |
| 28 | are the level `D.M`, the order `D.q₁` of the root of unity that generates `E` over |
| 29 | `K = ℚ(√-P.d)`, the prime `P.d`, the ranks `D.n j` and the parameter `D.r`; at most |
| 30 | `D.natB * D.r ^ 4` boxes occur in each diagram of a weight on the last path. |
| 31 | |
| 32 | ## Main definitions and results |
| 33 | |
| 34 | * `New.Data.exists_mul_lastPathPeriod_mem_embValRing`, `New.Data.norm_lastPathPeriod_le`: |
| 35 | denominators and conjugates of `Ξ`. |
| 36 | * `New.Data.exists_integral_lowerChainUpTo_eq_lastPathPeriod`: the index of the level times the |
| 37 | pairing with the chain of lifts of a restriction is a constant multiple of `Ξ` divided by the |
| 38 | constants of the turns. |
| 39 | * `New.Data.exists_dualPairing_eq_mul_lastPathPeriod`: the values of the chain of lifts, read by |
| 40 | delta forms, with one constant for all twists, points and forms. |
| 41 | * `New.Data.exists_span_short_lifts_eq_top`: the space of forms on `Y₀` is spanned by forms with two |
| 42 | properties: for every twist their scaled lifts are integral at the primes not dividing `Nm Q`, and |
| 43 | for the trivial twist the conjugates of their lifts are small. The passage to target forms is |
| 44 | `New.Data.exists_span_isAuxiliaryForm_eq_top`, in `New.Determinant.Twist.LongForms`. |
| 45 | |
| 46 | Notions from other files: |
| 47 | * `New.Data.lastPathPeriod Ψ y`: the sum over the tuples of matrices `S` of `Ψ S` times the pairing |
| 48 | of the lifts of the two forms `y` along the halves of the last path, integrated over the finite |
| 49 | points of `Y^m_m`. |
| 50 | * `New.Data.gridLevelForms m`: the forms of level `J(𝔟)` on `Ỹ^m_0`, where the half `true` of the |
| 51 | last path starts; `𝔟` is generated by `New.Data.gridLevelGen`. |
| 52 | * `New.Data.levelY ϑ m`: the level `J(𝔪₀)` on `Y_m`, where `𝔪₀` is the product of the chosen places |
| 53 | and `Q`. |
| 54 | * `New.weylGauge κ e g v`: the largest `p`-adic absolute value of a coordinate of `g⁻¹ v`. |
| 55 | * `New.weylNormSq v`: the squared norm of `v` for the integral Gram matrix of the Weyl module. |
| 56 | * `New.Data.lowerChain ϑ`: the chain of lifts, that is the composite of the `m` theta lifts from |
| 57 | `Y₀` to `Y_m`, with values in algebraic forms. `New.Data.lowerChainAtLevel ϑ` is the same map with |
| 58 | values in the forms of the last level and its character; `levelY ϑ m` fixes these forms. |
| 59 | -/ |
| 60 | |
| 61 | @[expose] public section |
| 62 | |
| 63 | noncomputable section |
| 64 | |
| 65 | namespace New.Data |
| 66 | |
| 67 | open Real Matrix Fintype Submodule LevelPlaces.LevelForm Space Rows Finset Function |
| 68 | |
| 69 | variable {P : Parameters} (D : Data P) |
| 70 | |
| 71 | variable {D} in |
| 72 | /-- The bound for the number of roots of unity in a value of the data on the last path: that for |
| 73 | the first path, times one factor for each of the `m ^ 2` turns. Here `vectorCountBound ϑ` bounds the |
| 74 | number of column vectors modulo `𝔪` at a node of the grids and `edgeMatrixCountBound ϑ` the number |
| 75 | of matrices modulo `𝔪` at an edge. -/ |
| 76 | abbrev lastPathBound (ϑ : D.MFoldTwist) : ℕ := |
| 77 | vectorCountBound ϑ ^ D.m ^ 2 * edgeMatrixCountBound ϑ ^ (2 * D.m) |
| 78 | |
| 79 | /-! ### Denominators on the last path -/ |
| 80 | |
| 81 | /-- A product of powers of `M` and `P.d` that, at the primes not dividing `Nm Q`, clears the |
| 82 | denominators of each kernel on the last path. The first factor takes the datum of an edge to |
| 83 | standard data, and the second pays for the boxes of the diagram: `2 * D.n D.m` bounds the ranks on |
| 84 | that path and `D.natB * D.r ^ 4` the numbers of boxes. -/ |
| 85 | def liftDenominator : ℕ := |
| 86 | (D.M ^ D.natB) ^ (2 * Core.numInfPlaces D.E * (2 * D.n D.m * (2 * D.n D.m))) * |
| 87 | (D.M ^ D.natB * P.d) ^ (D.natB * D.r ^ 4) |
| 88 | |
| 89 | section Denominators |
| 90 | |
| 91 | variable {D} |
| 92 | |
| 93 | /-- Let `p` be a prime that does not divide the product `ϑ.normQ` of the norms of the set `Q` of |
| 94 | places of the `m`-fold twist `ϑ`, and fix an embedding of `ℂ` into `ℂ_[p]` (`PadicPlace p`). The |
| 95 | half `z` of the last path is a sequence of `m + 1` spaces, and the theta kernel |
| 96 | `lastPathKernel ϑ z j` lifts forms from the `j`-th to the next. For a tuple `S` of matrices on the |
| 97 | edges, the finite datum `lastPathEdgeDatum S z j` of this lift, multiplied by the number |
| 98 | `liftDenominator`, lies in `raises 1 1 1` of the kernel. The first two `1`s are translations of the |
| 99 | source point and of the target point, here trivial, and the third is a factor: for all finite points |
| 100 | `g` of the source and `h` of the target, the lift from `g` to `h` does not increase `p`-adic |
| 101 | gauges. -/ |
| 102 | lemma liftDenominator_smul_lastPathEdgeDatum_mem_raises {ϑ : D.MFoldTwist} {p : ℕ} [Fact p.Prime] |
| 103 | [PadicPlace p] (hp : p.Coprime ϑ.normQ) (S : EdgeTuple ϑ) (z : Bool) {j : ℕ} (hj : j < D.m) : |
| 104 | (D.liftDenominator : ℂ) • lastPathEdgeDatum S z j ∈ (lastPathKernel ϑ z j).raises 1 1 1 := by |
| 105 | have h_dvd : (D.M ^ D.natB) ^ |
| 106 | (2 * Core.numInfPlaces D.E * card (D.LastPathIndex z (j + 1) × D.LastPathIndex z j)) * |
| 107 | (D.M ^ D.natB * P.d) ^ boxes (D.lastPathColumns z) (card (D.LastPathIndex z (j + 1))) ∣ |
| 108 | D.liftDenominator := by |
| 109 | grw [card_prod, boxes_lastPathColumns_le_natB_mul z hj, card_lastPathIndex_le z hj, |
| 110 | card_lastPathIndex_le z hj.le, liftDenominator] |
| 111 | unfold lastPathKernel |
| 112 | exact P.smul_mem_raises_of_dvd (lastPathEdgeDatum S z j) |
| 113 | (P.smul_vacuumDatum_mem_standardData normQ_mul_M_pow_mem_modulus |
| 114 | (by simp [ite_mem, Pi.single_apply]) hp) |
| 115 | embValRing.one_mem h_dvd |
| 116 | |
| 117 | /-- Let `t` be the idele that generates the modulus `𝔪 = gridModulus ϑ` of the `m`-fold twist `ϑ` |
| 118 | and `α = P.α D.towerExp` the fixed idele of the CM field `D.E`, for which `q₁ * α` and `α⁻¹` are |
| 119 | integral, with `q₁ = P.q₁ D.towerExp`. Write `star` for complex conjugation on the finite adeles of |
| 120 | `D.E`, `normQ` for the product of the norms of the places in the set `Q` of `ϑ`, `M = D.M` for the |
| 121 | level and `natB = D.natB` for the exponent of the chosen places in `𝔪`. The flip scalar |
| 122 | `u = star (t * α) / (t * α)` becomes an integral adele after multiplication by |
| 123 | `normQ * M ^ natB * q₁`. -/ |
| 124 | lemma generator_inv_mul_normQ_mul_star_mem (ϑ : D.MFoldTwist) : |
| 125 | (gridModulus ϑ).generator⁻¹.val * |
| 126 | algebraMap (NumberField.RingOfIntegers D.E) (Ô D.E) ↑(ϑ.normQ * D.M ^ D.natB) * |
| 127 | (star ((gridModulus ϑ).generator.val * (P.q₁ D.towerExp * (P.α D.towerExp).val)) * |
| 128 | (P.α D.towerExp)⁻¹.val) ∈ |
| 129 | Ô D.E := by |
| 130 | -- `t`, `q₁ * α` and `α⁻¹` are integral, and `t` divides `normQ * M ^ natB`. |
| 131 | have h_red : (gridModulus ϑ).reduction (algebraMap (NumberField.RingOfIntegers D.E) (Ô D.E) |
| 132 | ↑(ϑ.normQ * D.M ^ D.natB)) = 0 := |
| 133 | (Modulus.reduction_eq_zero_iff _).2 (Ideal.mem_map_of_mem _ normQ_mul_M_pow_mem_modulus) |
| 134 | rw [Modulus.reduction_eq_zero_iff_generator_inv_mul_mem] at h_red |
| 135 | exact mul_mem h_red (mul_mem |
| 136 | (star_mem_Ô (mul_mem (gridModulus ϑ).generator_mem P.q₁_mul_alpha_mem)) P.inv_alpha_mem) |
| 137 | |
| 138 | /-- Let `ϑ` be an `m`-fold twist, `ϑ.normQ` the product of the norms of its places, and `p` a prime |
| 139 | that does not divide it. Let `u` be the flip scalar `star (t * α) / (t * α)` of the modulus |
| 140 | `gridModulus ϑ` (`t` generates the modulus, `α` is a fixed idele), as a `1 × 1` matrix (index type |
| 141 | `Unit`) over the finite adeles. For an infinite place `τ : D.Φ` of the CM field `D.E`, map the |
| 142 | matrix `(u ^ m)⁻¹` to `ℂ_[p]`. The map is the component at the prime above `p` of the embedding |
| 143 | `weightEmbedding ιₚ τ`. Let `δ` be the determinant of the image. For every integer `l`, the product |
| 144 | of `(M ^ natB * q₁) ^ (m * |l|)` and `(δ ^ l)⁻¹` has absolute value at most `1`. -/ |
| 145 | lemma norm_mul_det_flipScalar_zpow_le_one {ϑ : D.MFoldTwist} {p : ℕ} [Fact p.Prime] [PadicPlace p] |
| 146 | (hp : p.Coprime ϑ.normQ) (τ : D.Φ) (l : ℤ) : |
| 147 | ‖((D.M ^ D.natB * D.q₁) ^ (D.m * l.natAbs) : ℕ) * |
| 148 | (((((gridModulus ϑ).flipScalar Unit).val ^ D.m)⁻¹.map |
| 149 | (adeleExtension (weightEmbedding ιₚ τ))).det ^ l)⁻¹.val‖ ≤ 1 := by |
| 150 | -- According to the sign of `l`, the number has the norm of a power of the integral adele `a` or |
| 151 | -- of its conjugate, because `ϑ.normQ` is a `p`-adic unit. |
| 152 | let f : 𝔸f D.E →+* ℂ_[p] := adeleExtension (weightEmbedding ιₚ τ) |
| 153 | let u : unitary (𝔸f D.E) := divStar (star ((gridModulus ϑ).generator * P.α D.towerExp)) |
| 154 | let a : 𝔸f D.E := (gridModulus ϑ).generator⁻¹.val * |
| 155 | algebraMap (NumberField.RingOfIntegers D.E) (Ô D.E) ↑(ϑ.normQ * D.M ^ D.natB) * |
| 156 | (star ((gridModulus ϑ).generator.val * (P.q₁ D.towerExp * (P.α D.towerExp).val)) * |
| 157 | (P.α D.towerExp)⁻¹.val) |
| 158 | have ha_eq : a = ((ϑ.normQ * (D.M ^ D.natB * D.q₁) : ℕ) : 𝔸f D.E) * u.val := by |
| 159 | have hnat : (algebraMap (NumberField.RingOfIntegers D.E) (Ô D.E) |
| 160 | ↑(ϑ.normQ * D.M ^ D.natB) : 𝔸f D.E) = ((ϑ.normQ * D.M ^ D.natB : ℕ) : 𝔸f D.E) := by |
| 161 | simp |
| 162 | have hu : u.val = star (gridModulus ϑ).generator.val * star (P.α D.towerExp).val * |
| 163 | (gridModulus ϑ).generator⁻¹.val * (P.α D.towerExp)⁻¹.val := by |
| 164 | simp only [u, coe_divStar, _root_.mul_inv_rev, Units.val_mul, ← star_inv, Units.coe_star, |
| 165 | star_mul', star_star] |
| 166 | ring |
| 167 | dsimp only [a] |
| 168 | rw [hnat, hu] |
| 169 | simp only [star_mul', star_natCast, Nat.cast_mul, Nat.cast_pow] |
| 170 | ring |
| 171 | have hstar_a_eq : star a = ((ϑ.normQ * (D.M ^ D.natB * D.q₁) : ℕ) : 𝔸f D.E) * (u⁻¹).val := by |
| 172 | rw [ha_eq, star_mul', star_natCast] |
| 173 | rfl |
| 174 | have hdet : (((((gridModulus ϑ).flipScalar Unit).val ^ D.m)⁻¹.map f).det : ℂ_[p]) = |
| 175 | (f u.val ^ D.m)⁻¹ := by |
| 176 | have h1 : ((((gridModulus ϑ).flipScalar Unit).val.map f).det : ℂ_[p]) = f u.val := by |
| 177 | change ((((gridModulus ϑ).flipScalar Unit).val : Matrix Unit Unit (𝔸f D.E)).map f).det = |
| 178 | f u.val |
| 179 | rw [Matrix.det_unique, Matrix.map_apply] |
| 180 | congr 1 |
| 181 | rw [map_inv, map_pow, map_inv, map_pow, Units.val_inv_eq_inv_val, Units.val_pow_eq_pow_val, h1] |
| 182 | have hnorm (c : 𝔸f D.E) (v : unitary (𝔸f D.E)) |
| 183 | (hc : c = ((ϑ.normQ * (D.M ^ D.natB * D.q₁) : ℕ) : 𝔸f D.E) * v.val) : |
| 184 | ‖((D.M ^ D.natB * D.q₁ : ℕ) : ℂ_[p]) * f v.val‖ = ‖f c‖ := by |
| 185 | symm |
| 186 | rw [hc, map_mul, map_natCast, Nat.cast_mul ϑ.normQ, mul_assoc, norm_mul, |
| 187 | hp.norm_natCast_eq_one, one_mul] |
| 188 | obtain ⟨k, rfl | rfl⟩ := l.eq_nat_or_neg |
| 189 | · have h_eq : ‖((D.M ^ D.natB * D.q₁) ^ (D.m * (k : ℤ).natAbs) : ℕ) * |
| 190 | (((((gridModulus ϑ).flipScalar Unit).val ^ D.m)⁻¹.map f).det ^ (k : ℤ))⁻¹.val‖ = |
| 191 | ‖f a‖ ^ (D.m * k) := by |
| 192 | rw [Int.natAbs_natCast, Nat.cast_pow, Units.val_inv_eq_inv_val, Units.val_zpow_eq_zpow_val, |
| 193 | zpow_natCast, hdet, inv_pow, inv_inv, ← pow_mul, ← mul_pow, norm_pow, hnorm a u ha_eq] |
| 194 | rw [h_eq] |
| 195 | exact pow_le_one₀ (norm_nonneg _) |
| 196 | (norm_adeleExtension_le_one _ (generator_inv_mul_normQ_mul_star_mem ϑ)) |
| 197 | · have h_eq : ‖((D.M ^ D.natB * D.q₁) ^ (D.m * (-(k : ℤ)).natAbs) : ℕ) * |
| 198 | (((((gridModulus ϑ).flipScalar Unit).val ^ D.m)⁻¹.map f).det ^ (-(k : ℤ)))⁻¹.val‖ = |
| 199 | ‖f (star a)‖ ^ (D.m * k) := by |
| 200 | rw [Int.natAbs_neg, Int.natAbs_natCast, Nat.cast_pow, Units.val_inv_eq_inv_val, |
| 201 | Units.val_zpow_eq_zpow_val, _root_.zpow_neg, zpow_natCast, inv_inv, hdet, inv_pow, |
| 202 | ← pow_mul, ← inv_pow, |
| 203 | ← (show f (u⁻¹).val = (f u.val)⁻¹ from map_units_inv f (Unitary.toUnits u)), |
| 204 | ← mul_pow, norm_pow, hnorm (star a) u⁻¹ hstar_a_eq] |
| 205 | rw [h_eq] |
| 206 | exact pow_le_one₀ (norm_nonneg _) |
| 207 | (norm_adeleExtension_le_one _ (star_mem_Ô (generator_inv_mul_normQ_mul_star_mem ϑ))) |
| 208 | |
| 209 | end Denominators |
| 210 | |
| 211 | /-- The pairing `lastPathPairing v' v = v' ⬝ᵥ lastPathBranching *ᵥ v` of the two halves at the |
| 212 | middle of the last path, given by an integer branching matrix, is cleared by one natural number |
| 213 | `N ≠ 0` with `log N ≤ x ^ 98 * b ^ 2`. For every twist `ϑ` and every prime `p` prime to the norm |
| 214 | `ϑ.normQ` of its places, if `v'` has gauge at most `1` at `g` and `v` at the block point |
| 215 | `lastPathBlockPoint ϑ g = diag (g, u ^ m)`, with `u` the flip scalar of the modulus `gridModulus ϑ`, |
| 216 | then `N` times the pairing of `v'` and `v`, read `p`-adically by `ιₚ`, is integral. -/ |
| 217 | lemma exists_norm_mul_lastPathPairing_le_one : ∃ N ≠ (0 : ℕ), |
| 218 | log N ≤ D.x ^ 98 * D.b ^ 2 ∧ |
| 219 | ∀ {ϑ : D.MFoldTwist} {p : ℕ} [Fact p.Prime] [PadicPlace p], p.Coprime ϑ.normQ → |
| 220 | ∀ {g : Gf D.E (D.LastPathIndex false D.m)} {v' : D.LastPathVector false D.m} |
| 221 | {v : D.LastPathVector true D.m}, |
| 222 | weylGauge (D.lastPathColumns false) (D.lastPathDetExp false D.m) g v' ≤ 1 → |
| 223 | weylGauge (D.lastPathColumns true) (D.lastPathDetExp true D.m) (lastPathBlockPoint ϑ g) v ≤ |
| 224 | 1 → |
| 225 | ‖ιₚ (N * D.lastPathPairing v' v)‖ ≤ 1 := by |
| 226 | -- By equivariance the pairing is the inverse of the character `∏ τ, det u' ^ L τ` at |
| 227 | -- `u' = (flipScalar ^ m)⁻¹` times the pairing of the translated vectors, which have integral |
| 228 | -- entries; the product of the numbers `N τ` clears the character. |
| 229 | obtain ⟨L, h_equiv, hL⟩ := D.exists_lastPathBranching_equivariant |
| 230 | have hL_le (τ : D.Φ) : (L τ).natAbs ≤ D.natB * D.r ^ 4 + ⌈20 * D.b⌉₊ := |
| 231 | (hL τ).trans (add_le_add (boxes_lastPathColumns_le_natB_mul true le_rfl) |
| 232 | (natAbs_lastPathDetExp_le true le_rfl τ)) |
| 233 | let N (τ : D.Φ) : ℕ := (D.M ^ D.natB * D.q₁) ^ (D.m * (L τ).natAbs) |
| 234 | have h_log : log (∏ τ, N τ : ℕ) ≤ D.x ^ 98 * D.b ^ 2 := |
| 235 | calc _ = ∑ τ, D.m * (L τ).natAbs * |
| 236 | (D.natB * log D.M + (log P.q₀ + log (towerDeg D.towerExp))) := by |
| 237 | simp [N, log_prod, log_mul, NeZero.ne, -Nat.cast_natAbs] |
| 238 | _ ≤ _ := by |
| 239 | grw [hL_le] |
| 240 | rw [sum_const, card_univ, nsmul_eq_mul] |
| 241 | exact D.le_of_hasLogBound (by scale_grind D) |
| 242 | refine ⟨∏ τ, N τ, by simp [N, NeZero.ne, prod_eq_zero_iff], h_log, |
| 243 | fun {ϑ p _ _} hp g v' v hv' hv ↦ ?_⟩ |
| 244 | let f (τ : D.Φ) : 𝔸f D.E →+* ℂ_[p] := adeleExtension (weightEmbedding ιₚ τ) |
| 245 | let u' : Gf D.E Unit := ((gridModulus ϑ).flipScalar ^ D.m)⁻¹ |
| 246 | let χ (τ : D.Φ) : ℂ_[p]ˣ := (u'.val.map (f τ)).det ^ L τ |
| 247 | let w' : WeylIndex (D.LastPathIndex false D.m) (D.lastPathColumns false) → ℂ_[p] := |
| 248 | weylRep (D.lastPathColumns false) (D.lastPathDetExp false D.m) (fun τ ↦ g⁻¹.1.map (f τ)) *ᵥ ιₚ ∘ |
| 249 | v' |
| 250 | let w : WeylIndex (D.LastPathIndex true D.m) (D.lastPathColumns true) → ℂ_[p] := |
| 251 | weylRep (D.lastPathColumns true) (D.lastPathDetExp true D.m) |
| 252 | (fun τ ↦ (U.block (D.gridDiagEquiv D.m) (g⁻¹, u')).val.map (f τ)) *ᵥ ιₚ ∘ v |
| 253 | have hw' : ∀ i, ‖w' i‖ ≤ 1 := (pi_norm_le_iff_of_nonneg one_pos.le).1 hv' |
| 254 | have hw : ∀ i, ‖w i‖ ≤ 1 := by |
| 255 | simpa [u', weylGauge, lastPathBlockPoint, ← map_inv, pi_norm_le_iff_of_nonneg] using hv |
| 256 | -- Elements of norm at most `1` form a subring, which contains the entries of `w'` and `w`. |
| 257 | have h_int : ‖w' ⬝ᵥ D.lastPathBranching.map (↑) *ᵥ w‖ ≤ 1 := |
| 258 | NormedField.valuation.integer.sum_mem fun i _ ↦ |
| 259 | mul_mem (hw' i) (sum_mem fun k _ ↦ mul_mem (by simp) (hw k)) |
| 260 | have h_char : w' ⬝ᵥ D.lastPathBranching.map (↑) *ᵥ w = (∏ τ, χ τ : ℂ_[p]ˣ) * ιₚ |
| 261 | (D.lastPathPairing v' v) := |
| 262 | (h_equiv _ _ f g⁻¹ u' _ _).trans <| by |
| 263 | congr 1 |
| 264 | simp only [LinearMap.compl₂_apply, Matrix.mulVecLin_apply, dotProductBilin_apply_apply, |
| 265 | dotProduct, mulVec, map_sum, map_mul, map_intCast, Matrix.map_apply, Function.comp_apply] |
| 266 | calc _ = (∏ τ, ‖N τ * (χ τ)⁻¹.val‖) * ‖w' ⬝ᵥ D.lastPathBranching.map (↑) *ᵥ w‖ := by |
| 267 | rw [h_char, ← norm_prod, ← norm_mul, ← mul_assoc, Units.coe_prod, ← prod_mul_distrib] |
| 268 | simp only [mul_assoc, Units.inv_mul, mul_one, map_mul, map_natCast, map_prod, |
| 269 | Nat.cast_prod] |
| 270 | _ ≤ 1 := (mul_le_of_le_one_left (norm_nonneg _) |
| 271 | (prod_le_one₀ (fun _ _ ↦ norm_nonneg _) fun τ _ ↦ |
| 272 | norm_mul_det_flipScalar_zpow_le_one hp τ (L τ))).trans h_int |
| 273 | |
| 274 | /-- There is a natural number `0 < N ≤ exp (x ^ 99 * b ^ 2)`, with `x = D.x` and `b = D.b` the size |
| 275 | parameters of the data, such that for every twist `ϑ`, path datum `Ψ` on the last path, pair of |
| 276 | forms `y` fixed by the levels at the outer ends of the two halves and prime `p` prime to the norm |
| 277 | `ϑ.normQ` of the places of `ϑ`: if both forms, read as algebraic forms by `lastPathToAlgForm`, have |
| 278 | gauge at most `1` at every point, then `N * lastPathPeriod Ψ y` lies in `embValRing`, the ring of |
| 279 | `p`-integral complex numbers. -/ |
| 280 | lemma exists_mul_lastPathPeriod_mem_embValRing : ∃ N ≠ (0 : ℕ), |
| 281 | N ≤ exp (D.x ^ 99 * D.b ^ 2) ∧ |
| 282 | ∀ {ϑ : D.MFoldTwist} {n : ℕ} {Ψ : EdgeTuple ϑ → ℂ} {y : ∀ z : Bool, D.GridForm z 0 D.m} |
| 283 | {p : ℕ} [Fact p.Prime] [PadicPlace p], |
| 284 | IsPathDatum n (TwoGridPath.last D.m).edges Ψ → FixedByOuterLevels ϑ y → |
| 285 | p.Coprime ϑ.normQ → |
| 286 | (∀ (z : Bool) (g : Gf D.E (D.LastPathIndex z 0)), |
| 287 | weylGauge (D.lastPathColumns z) (D.lastPathDetExp z 0) g |
| 288 | ((D.lastPathToAlgForm z (y z)).val g) ≤ 1) → |
| 289 | N * lastPathPeriod Ψ y ∈ embValRing := by |
| 290 | -- By `exists_lastPathPeriod_mem_smul_norm_le` the sum `lastPathPeriod Ψ y` consists of branching |
| 291 | -- pairings of vectors got from `y` by `m` lifts each. Here `d = liftDenominator` clears each lift |
| 292 | -- and `M` clears the pairing, so `N = M * d ^ (2 * m)`. |
| 293 | obtain ⟨M, hM_ne, hM_le, h_pair⟩ := D.exists_norm_mul_lastPathPairing_le_one |
| 294 | let d : ℕ := D.liftDenominator |
| 295 | have hd_ne : d ≠ 0 := by simp [d, liftDenominator, NeZero.ne] |
| 296 | have h_log_d : log d ≤ 2 * Core.numInfPlaces D.E * (2 * D.n D.m * (2 * D.n D.m)) * |
| 297 | (D.natB * log D.M) + D.natB * D.r ^ 4 * (D.natB * log D.M + log P.d) := by |
| 298 | simp [d, liftDenominator, log_mul, NeZero.ne] |
| 299 | have h_log : log (M * (d ^ D.m * d ^ D.m) : ℕ) ≤ D.x ^ 99 * D.b ^ 2 := |
| 300 | calc _ = log M + (D.m * log d + D.m * log d) := by simp [log_mul, hM_ne, hd_ne] |
| 301 | _ ≤ _ := by |
| 302 | grw [hM_le, h_log_d] |
| 303 | exact D.le_of_hasLogBound (by scale_grind D) |
| 304 | refine ⟨M * (d ^ D.m * d ^ D.m), by simp [hM_ne, hd_ne], le_exp_of_log_le h_log, |
| 305 | fun {ϑ n Ψ y p _ _} hΨ hy hp h_int ↦ ?_⟩ |
| 306 | -- After `j` lifts, `d ^ j • v` has gauge at most `1`. |
| 307 | let IsCleared (z : Bool) (j : ℕ) (g : Gf D.E (D.LastPathIndex z j)) (v : D.LastPathVector z j) : |
| 308 | Prop := |
| 309 | weylGauge (D.lastPathColumns z) (D.lastPathDetExp z j) g ((d : ℂ) ^ j • v) ≤ 1 |
| 310 | have h_lift (S : EdgeTuple ϑ) (z : Bool) (j : ℕ) (hj : j < D.m) (g : Gf D.E (D.LastPathIndex z j)) |
| 311 | (h : Gf D.E (D.LastPathIndex z (j + 1))) (v : D.LastPathVector z j) (hv : IsCleared z j g v) : |
| 312 | IsCleared z (j + 1) h |
| 313 | ((lastPathKernel ϑ z j).jetMap ((lastPathKernel ϑ z j).ω (g, h) (lastPathEdgeDatum S z j)) |
| 314 | v) := |
| 315 | le_trans (by simpa [pow_succ, mul_smul] using |
| 316 | liftDenominator_smul_lastPathEdgeDatum_mem_raises hp S z hj g h ((d : ℂ) ^ j • v)) hv |
| 317 | have h_end {g : Gf D.E (D.LastPathIndex false D.m)} {v' : D.LastPathVector false D.m} |
| 318 | {v : D.LastPathVector true D.m} (hv' : IsCleared false D.m g v') |
| 319 | (hv : IsCleared true D.m (lastPathBlockPoint ϑ g) v) : |
| 320 | ‖ιₚ ((M * (d ^ D.m * d ^ D.m) : ℕ) * D.lastPathPairing v' v)‖ ≤ 1 := by |
| 321 | simpa [mul_assoc] using h_pair hp hv' hv |
| 322 | obtain ⟨L, -, h_sum⟩ := exists_lastPathPeriod_mem_smul_norm_le hΨ hy IsCleared ιₚ h_lift |
| 323 | (fun z g ↦ by simpa [IsCleared] using h_int z g) h_end |
| 324 | -- The numbers that `N` makes integral form an additive group, so it contains this multiple sum. |
| 325 | let A : AddSubgroup ℂ := embValRing.toAddSubgroup.comap |
| 326 | (AddMonoidHom.mulLeft ((M * (d ^ D.m * d ^ D.m) : ℕ) : ℂ)) |
| 327 | exact A.nsmul_subset .rfl h_sum |
| 328 | |
| 329 | /-! ### Sizes on the last path -/ |
| 330 | |
| 331 | /-- For the trivial twist, the class numbers of the levels along the last path are at most |
| 332 | `exp (x ^ 99 * b ^ 2)`. -/ |
| 333 | lemma card_stdClasses_lastPathLevel_le (z : Bool) {j : ℕ} (hj : j ≤ D.m) : |
| 334 | Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) ≤ exp (D.x ^ 99 * D.b ^ 2) := by |
| 335 | have h_level : principalLevel _ (1 * D.M ^ D.natB : ℕ) ≤ lastPathLevel (1 : D.MFoldTwist) z |
| 336 | j := by |
| 337 | unfold lastPathLevel |
| 338 | rw [← show (1 : D.MFoldTwist).normQ = 1 by simp [toAutChar_one_and_toTwist_one_and_Q_one]] |
| 339 | exact Modulus.principalLevel_le_levelOfSubgroup normQ_mul_M_pow_mem_modulus |
| 340 | refine (D.card_stdClasses_le_exp_mul_log _ (card_lastPathIndex_le z hj) h_level).trans ?_ |
| 341 | simpa using D.le_of_hasLogBound |
| 342 | |
| 343 | /-- For the trivial twist, the theta kernel `lastPathKernel 1 z j` lifts forms from the `j`-th to |
| 344 | the next space of the half `z` of the last path. Let `S` be a tuple of matrices on the edges. The |
| 345 | operator by which the datum `lastPathEdgeDatum S z j` of this edge carries a value `v` at the point |
| 346 | `g` to a value at `h` multiplies the norm `√(weylNormSq ·)` of the `σ`-conjugate of `v` by at most |
| 347 | `exp (x ^ 99 * b ^ 2)`, for each `σ` in `Aut(ℂ)`. -/ |
| 348 | lemma sqrt_weylNormSq_lastPathKernel_le (σ : ℂ ≃+* ℂ) (S : EdgeTuple (1 : D.MFoldTwist)) (z : Bool) |
| 349 | {j : ℕ} (hj : j < D.m) (g : Gf D.E (D.LastPathIndex z j)) |
| 350 | (h : Gf D.E (D.LastPathIndex z (j + 1))) (v : D.LastPathVector z j) : |
| 351 | √(weylNormSq |
| 352 | (σ ∘ (lastPathKernel 1 z j).jetMap |
| 353 | ((lastPathKernel 1 z j).ω (g, h) (lastPathEdgeDatum S z j)) v)) ≤ |
| 354 | exp (D.x ^ 99 * D.b ^ 2) * √(weylNormSq (σ ∘ v)) := by |
| 355 | have h_liftWeight := D.isLiftWeight_lastPathColumns z j |
| 356 | -- The datum is the indicator of one matrix, so the operator bound for jets applies with size `1`. |
| 357 | apply (P.sqrt_weylNormSq_schurJet_le_of_isVacuumCombination |
| 358 | (P.isVacuumCombination_of_isAdmissibleCombination |
| 359 | (P.isAdmissibleCombination_vacuumDatum_indicator (S (rowEdge z j D.m)))) g h 1 h_liftWeight |
| 360 | v).trans |
| 361 | simp_rw [Parameters.jetSizeBound, schurGrowthExponent, sum_range, ← sum_prod_type'] |
| 362 | -- Each row length is at most their sum, the number of boxes. |
| 363 | have h_row (q : D.Φ × Fin (card (D.LastPathIndex z j))) : |
| 364 | diagramWeight (rankAt fun _ : D.Φ ↦ D.LastPathIndex z (j + 1)) (D.lastPathColumns z) |
| 365 | (q.1, q.2.val) ≤ |
| 366 | D.natB * D.r ^ 4 := |
| 367 | (single_le_sum (by simp) (mem_univ q)).trans |
| 368 | (h_liftWeight.1.sum_diagramWeight_eq_boxes.trans_le |
| 369 | (boxes_lastPathColumns_le_natB_mul z hj)) |
| 370 | grw [le_abs_self (log (‖σ 1‖ ^ 2 / P.bigOmega D.towerExp)), one_mul, h_row] |
| 371 | gcongr |
| 372 | -- 'le_of_hasLogBound' uses these two bounds for the ranks as local instances. |
| 373 | have := D.hasLogUpper_of_le (card_lastPathIndex_le z hj) |
| 374 | have := D.hasLogUpper_of_le (card_lastPathIndex_le z hj.le) |
| 375 | simpa using D.le_of_hasLogBound (by scale_grind D) |
| 376 | |
| 377 | /-- Conjugates of the branching pairing `D.lastPathPairing v' v` are bounded by the branching |
| 378 | constant `((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3` times the norms of `σ ∘ v'` and |
| 379 | `σ ∘ v`. -/ |
| 380 | private lemma norm_map_lastPathPairing_le (σ : ℂ ≃+* ℂ) |
| 381 | (v' : D.LastPathVector false D.m) (v : D.LastPathVector true D.m) : |
| 382 | ‖σ (D.lastPathPairing v' v)‖ ≤ |
| 383 | (((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 : ℕ) * |
| 384 | √(weylNormSq (σ ∘ v')) * √(weylNormSq (σ ∘ v)) := |
| 385 | calc _ = ‖(σ ∘ v') ⬝ᵥ D.lastPathBranching.map (↑) *ᵥ (σ ∘ v)‖ := by |
| 386 | simp only [LinearMap.compl₂_apply, Matrix.mulVecLin_apply, dotProductBilin_apply_apply, |
| 387 | dotProduct, mulVec, map_sum, map_mul, map_intCast, Matrix.map_apply, |
| 388 | Function.comp_apply] |
| 389 | _ ≤ _ := D.norm_dotProduct_lastPathBranching_mulVec_le |
| 390 | (boxes_lastPathColumns_le_natB_mul true le_rfl) _ _ |
| 391 | |
| 392 | /-- For the trivial twist, a number `L` of terms at most |
| 393 | `lastPathBound 1 * edgeMatrixCountBound 1 ^ (2 * D.m)` times the branching factor |
| 394 | `((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3` is at most `exp (D.x ^ 199 * D.b ^ 2)`. -/ |
| 395 | private lemma natCast_mul_natB_pow_le_exp {L : ℕ} |
| 396 | (hL : L ≤ lastPathBound (1 : D.MFoldTwist) * |
| 397 | edgeMatrixCountBound (1 : D.MFoldTwist) ^ (2 * D.m)) : |
| 398 | (L : ℝ) * (((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 : ℕ) ≤ |
| 399 | exp (D.x ^ 199 * D.b ^ 2) := by |
| 400 | have h_normQ : (1 : D.MFoldTwist).normQ = 1 := by |
| 401 | simp [toAutChar_one_and_toTwist_one_and_Q_one] |
| 402 | grw [hL] |
| 403 | refine le_exp_of_log_le ?_ |
| 404 | rw [log_mul (by simp [lastPathBound, NeZero.ne]) (by simp [NeZero.ne]), lastPathBound, |
| 405 | Nat.cast_mul, Nat.cast_mul, |
| 406 | log_mul (by simp [NeZero.ne]) (by simp [NeZero.ne]), |
| 407 | log_mul (by simp [NeZero.ne]) (by simp [NeZero.ne])] |
| 408 | simp only [vectorCountBound, edgeMatrixCountBound, card_residueRing_twistModulus, |
| 409 | prod_q_chosenPlace, h_normQ, mul_one, Nat.cast_pow, log_pow, Nat.cast_mul, |
| 410 | Nat.cast_ofNat] |
| 411 | exact D.le_of_hasLogBound (by scale_grind D) |
| 412 | |
| 413 | /-- For the trivial twist, the number of terms in `exists_lastPathPeriod_mem_smul_norm_le` times |
| 414 | the branching and lift growth factors is at most `exp (D.x ^ 200 * D.b ^ 2)`. -/ |
| 415 | private lemma lastPathPeriod_const_le {L : ℕ} |
| 416 | (hL : L ≤ lastPathBound (1 : D.MFoldTwist) * |
| 417 | edgeMatrixCountBound (1 : D.MFoldTwist) ^ (2 * D.m)) : |
| 418 | ((L * ∏ z : Bool, ∏ j ∈ range (D.m + (!z).toNat), |
| 419 | Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) : ℕ) : ℝ) * |
| 420 | ((((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 : ℕ) * |
| 421 | exp (D.x ^ 99 * D.b ^ 2) ^ D.m * exp (D.x ^ 99 * D.b ^ 2) ^ D.m) ≤ |
| 422 | exp (D.x ^ 200 * D.b ^ 2) := by |
| 423 | let G : ℝ := exp (D.x ^ 99 * D.b ^ 2) |
| 424 | let C : ℕ := ((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 |
| 425 | have h_prod (z : Bool) (k : ℕ) (hk : k ≤ D.m + 1) : |
| 426 | ∏ j ∈ range k, (Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) : ℝ) ≤ |
| 427 | G ^ k := |
| 428 | calc _ ≤ ∏ _j ∈ range k, G := by |
| 429 | gcongr with j hj |
| 430 | exact D.card_stdClasses_lastPathLevel_le z |
| 431 | (Nat.le_of_lt_succ ((mem_range.1 hj).trans_le hk)) |
| 432 | _ = G ^ k := by rw [prod_const, card_range] |
| 433 | have hn_le : |
| 434 | ((L * ∏ z : Bool, ∏ j ∈ range (D.m + (!z).toNat), |
| 435 | Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) : ℕ) : ℝ) ≤ |
| 436 | L * (G ^ D.m * G ^ (D.m + 1)) := by |
| 437 | grw [← h_prod true D.m (by simp), ← h_prod false (D.m + 1) le_rfl] |
| 438 | simp [-Nat.card_eq_fintype_card] |
| 439 | have hG : G ^ (D.m + (D.m + 1) + D.m + D.m) = |
| 440 | exp ((D.m + (D.m + 1) + D.m + D.m : ℕ) * (D.x ^ 99 * D.b ^ 2)) := |
| 441 | (exp_natCast_mul _ _).symm |
| 442 | calc _ ≤ L * (G ^ D.m * G ^ (D.m + 1)) * (C * G ^ D.m * G ^ D.m) := by gcongr |
| 443 | _ = (L * C) * G ^ (D.m + (D.m + 1) + D.m + D.m) := by ring |
| 444 | _ ≤ exp (D.x ^ 199 * D.b ^ 2) * |
| 445 | exp ((D.m + (D.m + 1) + D.m + D.m : ℕ) * (D.x ^ 99 * D.b ^ 2)) := by |
| 446 | rw [hG]; gcongr |
| 447 | exact D.natCast_mul_natB_pow_le_exp hL |
| 448 | _ = exp (D.x ^ 199 * D.b ^ 2 + |
| 449 | (D.m + (D.m + 1) + D.m + D.m : ℕ) * (D.x ^ 99 * D.b ^ 2)) := (exp_add _ _).symm |
| 450 | _ ≤ exp (D.x ^ 200 * D.b ^ 2) := exp_le_exp.2 <| D.le_of_hasLogBound (by scale_grind D) |
| 451 | |
| 452 | /-- Conjugates of `Ξ = lastPathPeriod Ψ y` for the trivial twist. Let `Ψ` be a path datum on the |
| 453 | last path and `y` a pair of forms fixed by the levels at the outer ends of the two halves, whose |
| 454 | values as algebraic forms have `σ`-conjugates of squared norm at most `B false` and `B true`. Then |
| 455 | `‖σ Ξ‖` is at most `exp (x ^ 200 * b ^ 2) * √(B false) * √(B true)`, with `x = D.x` the length of |
| 456 | the prime sum and `b = D.b` the weight at the `b`-places. -/ |
| 457 | lemma norm_lastPathPeriod_le {Ψ : EdgeTuple (1 : D.MFoldTwist) → ℂ} |
| 458 | {y : ∀ z : Bool, D.GridForm z 0 D.m} |
| 459 | (hΨ : IsPathDatum (lastPathBound (1 : D.MFoldTwist)) (TwoGridPath.last D.m).edges Ψ) |
| 460 | (hy : D.FixedByOuterLevels 1 y) (σ : ℂ ≃+* ℂ) {B : Bool → ℝ} |
| 461 | (hB : ∀ (z : Bool) (g : Gf D.E (D.LastPathIndex z 0)), |
| 462 | weylNormSq (σ ∘ (D.lastPathToAlgForm z (y z)).val g) ≤ B z) : |
| 463 | ‖σ (lastPathPeriod Ψ y)‖ ≤ exp (D.x ^ 200 * D.b ^ 2) * √(B false) * √(B true) := by |
| 464 | -- By `exists_lastPathPeriod_mem_smul_norm_le` the sum `lastPathPeriod Ψ y` consists of branching |
| 465 | -- pairings of vectors got from `y` by `m` lifts each. Each lift costs a factor `G` in norm and |
| 466 | -- each class number is at most `G`. |
| 467 | let G : ℝ := exp (D.x ^ 99 * D.b ^ 2) |
| 468 | -- After `j` lifts the norm is at most `G ^ j` times its bound at the start. |
| 469 | let IsSmall (z : Bool) (j : ℕ) (v : D.LastPathVector z j) : Prop := |
| 470 | √(weylNormSq (σ ∘ v)) ≤ G ^ j * √(B z) |
| 471 | have h_lift (S : EdgeTuple (1 : D.MFoldTwist)) (z : Bool) (j : ℕ) (hj : j < D.m) |
| 472 | (g : Gf D.E (D.LastPathIndex z j)) (h : Gf D.E (D.LastPathIndex z (j + 1))) |
| 473 | (v : D.LastPathVector z j) |
| 474 | (hv : IsSmall z j v) : |
| 475 | IsSmall z (j + 1) |
| 476 | ((lastPathKernel 1 z j).jetMap ((lastPathKernel 1 z j).ω (g, h) (lastPathEdgeDatum S z j)) |
| 477 | v) := |
| 478 | calc _ ≤ G * √(weylNormSq (σ ∘ v)) := D.sqrt_weylNormSq_lastPathKernel_le σ S z hj g h v |
| 479 | _ ≤ G * (G ^ j * √(B z)) := by gcongr |
| 480 | _ = G ^ (j + 1) * √(B z) := by ring |
| 481 | let C : ℕ := ((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 |
| 482 | let R : ℝ := C * (G ^ D.m * √(B false)) * (G ^ D.m * √(B true)) |
| 483 | -- `C` bounds the branching pairing, so `R` bounds each term of the sum. |
| 484 | have h_end {v' : D.LastPathVector false D.m} {v : D.LastPathVector true D.m} |
| 485 | (hv' : IsSmall false D.m v') (hv : IsSmall true D.m v) : |
| 486 | ‖σ (1 * D.lastPathPairing v' v)‖ ≤ R := by |
| 487 | rw [one_mul] |
| 488 | exact (D.norm_map_lastPathPairing_le σ v' v).trans <| |
| 489 | mul_le_mul (mul_le_mul_of_nonneg_left hv' (Nat.cast_nonneg _)) hv (sqrt_nonneg _) |
| 490 | (mul_nonneg (Nat.cast_nonneg _) (mul_nonneg (pow_nonneg (exp_pos _).le _) (sqrt_nonneg _))) |
| 491 | obtain ⟨L, hL, h_sum⟩ := exists_lastPathPeriod_mem_smul_norm_le hΨ hy (fun z j _ ↦ IsSmall z j) |
| 492 | σ.toRingHom h_lift (fun z g ↦ by simp [IsSmall, sqrt_le_sqrt, hB]) h_end |
| 493 | -- The number of terms is `L` times the `2 * m + 1` class numbers of the nodes `j < m` of the |
| 494 | -- half `true` and `j ≤ m` of the half `false`; `(!z).toNat` counts the extra node. |
| 495 | let n : ℕ := L * ∏ z : Bool, ∏ j ∈ range (D.m + (!z).toNat), |
| 496 | Nat.card (StdClasses (lastPathLevel (1 : D.MFoldTwist) z j)) |
| 497 | obtain ⟨a, ha, ha_sum⟩ := Set.mem_nsmul_iff_sum.1 h_sum |
| 498 | calc _ = ‖∑ i, σ (a i)‖ := by rw [← ha_sum, map_sum] |
| 499 | _ ≤ n * R := |
| 500 | (norm_sum_le_of_le univ fun i _ ↦ (by |
| 501 | have h := ha i |
| 502 | rw [Set.mem_ofPred_eq, one_mul] at h |
| 503 | exact h : ‖σ (a i)‖ ≤ R)).trans_eq |
| 504 | (by rw [sum_const, card_univ, Fintype.card_fin, nsmul_eq_mul]) |
| 505 | _ = n * (C * G ^ D.m * G ^ D.m) * √(B false) * √(B true) := by ring |
| 506 | _ ≤ exp (D.x ^ 200 * D.b ^ 2) * √(B false) * √(B true) := by grw [D.lastPathPeriod_const_le hL] |
| 507 | |
| 508 | /-! ### Going back through the turns -/ |
| 509 | |
| 510 | /-- There are constants `c ϑ`, path data `Ψ ϑ` on the last path, a number `β` and a restriction map |
| 511 | `r` from `gridLevelForms` onto the forms on `Y₀` of principal level at the chosen places, such that |
| 512 | the index of the level `levelY ϑ m` times the pairing of `y'` with the chain of lifts of `r φ` |
| 513 | equals `β * Ξ / c ϑ`. Here `Ξ` is `lastPathPeriod` of `Ψ ϑ` at the pair `(y', φ)`, the sum over the |
| 514 | tuples `S` of matrices on the last path of `Ψ ϑ S` times the integral of the pairing of the lifts of |
| 515 | `y'` and `φ` along its two halves. `HasAbsUpToNormPower c f` says that `‖c ϑ‖²` is |
| 516 | `C * ϑ.normQ ^ k * (f ϑ) ^ 2`, with `C` and `k` independent of `ϑ` and `ϑ.normQ` the product of the |
| 517 | norms of the places in the set `Q` of `ϑ`, and `f` is the product over the `m ^ 2` turns of |
| 518 | `turnRatio i j`, a product of ratios of Hecke values at the twist `ϑ`. -/ |
| 519 | lemma exists_integral_lowerChainUpTo_eq_lastPathPeriod : ∃ c : D.MFoldTwist → ℂˣ, |
| 520 | D.HasAbsUpToNormPower (fun ϑ : D.MFoldTwist ↦ c ϑ) |
| 521 | (∏ i ∈ range D.m, ∏ j ∈ range D.m, D.turnRatio i j) ∧ |
| 522 | ∃ Ψ : ∀ ϑ : D.MFoldTwist, EdgeTuple ϑ → ℂ, |
| 523 | (∀ ϑ : D.MFoldTwist, IsPathDatum (lastPathBound ϑ) (TwoGridPath.last D.m).edges (Ψ ϑ)) ∧ |
| 524 | ∃ (β : ℂ) (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)), |
| 525 | r.range = ⊤ ∧ |
| 526 | ∀ (ϑ : D.MFoldTwist) (y' : D.GridForm false 0 D.m) (φ : D.gridLevelForms D.m), |
| 527 | stdLevelIndex (D.levelY ϑ D.m) * |
| 528 | ∫ x : New.G D.E (D.signsY D.m), |
| 529 | y' x * D.lowerChainUpTo ϑ D.m (r φ) x ∂(D.spaceY D.m).quotMeasure = |
| 530 | β * (lastPathPeriod (Ψ ϑ) (fun z : Bool ↦ z.rec y' φ.val) / c ϑ) := by |
| 531 | -- Start from the data of the first path and carry them through the turns to the last path; a |
| 532 | -- multiple of the sum `lastPathPeriod` of the resulting data is then the period of the first |
| 533 | -- path. |
| 534 | obtain ⟨Ψ₀, hΨ₀, g, α, r, hr_onto, h_first⟩ := D.exists_isPathDatum_first |
| 535 | obtain ⟨c, hc, h_turns⟩ := D.exists_transfersPeriods_first_last |
| 536 | obtain ⟨Ψ, hΨ, h_back⟩ := h_turns _ Ψ₀ hΨ₀ |
| 537 | obtain ⟨β, hβ⟩ : ∃ β : ℂ, ∀ x : D.PeriodTriple, gridPeriod (.first D.m) Ψ₀ g x = |
| 538 | β * ((lastPathPeriod (Ψ x.1) fun z ↦ z.rec x.2.1 x.2.2) / triangleGLCard false x.1 D.m / c |
| 539 | x.1) := |
| 540 | h_back _ (D.isProportional_lastPathPeriod Ψ) g |
| 541 | rw [prod_product' (range D.m) (range D.m) D.turnRatio] at hc |
| 542 | refine ⟨c, hc, Ψ, hΨ, α * β, r, hr_onto, fun ϑ y' φ ↦ ?_⟩ |
| 543 | have h_index : triangleGLCard false ϑ D.m = stdLevelIndex (D.levelY ϑ D.m) := |
| 544 | LevelPlaces.card_GL_levelModulus (D.Y D.m) (D.levelPlaces ϑ) |
| 545 | rw [h_first, hβ, ← h_index] |
| 546 | field [show (triangleGLCard false ϑ D.m : ℂ) ≠ 0 from Nat.cast_ne_zero.2 Fintype.card_ne_zero] |
| 547 | |
| 548 | /-! ### Values of a form from its pairings -/ |
| 549 | |
| 550 | /-- The space of values of the algebraic forms on `Y_m` of the dual weight. -/ |
| 551 | abbrev DualVector : Type := WeylIndex (D.Y D.m) (D.lastPathColumns false) → ℂ |
| 552 | |
| 553 | /-- The integer matrix of the invariant pairing of the dual weight on `Y_m`, that of the conjugate |
| 554 | forms, with the weight on `Y_m`. -/ |
| 555 | def dualPairing : Matrix (WeylIndex (D.Y D.m) (D.lastPathColumns false)) |
| 556 | (WeylIndex (D.Y D.m) D.columnsY) ℤ := |
| 557 | (exists_isDualPairing_of_isHCParam D.isHCParam_paramY |
| 558 | (D.isHCParam_lastPathColumns false zero_le)).choose |
| 559 | |
| 560 | /-- The matrix `dualPairing` is a duality between the weight `(columnsY, lastEntry m)` on `Y_m` and |
| 561 | its dual weight `(lastPathColumns false, lastPathDetExp false 0)` (columns of the diagram, exponent |
| 562 | of the determinant), normalised at the highest vector of the parameter `paramY m` of `Y_m`. -/ |
| 563 | lemma isDualPairing_dualPairing : IsDualPairing D.columnsY (D.lastPathColumns false) |
| 564 | (D.lastEntry D.m) (D.lastPathDetExp false 0) (D.paramY D.m) D.dualPairing := |
| 565 | (exists_isDualPairing_of_isHCParam D.isHCParam_paramY |
| 566 | (D.isHCParam_lastPathColumns false zero_le)).choose_spec |
| 567 | |
| 568 | /-- The hook number of the dual of the weight on `Y_m`: the square norm of the highest weight |
| 569 | polynomial for the pairing by differentiation, a positive integer. -/ |
| 570 | abbrev dualHook : ℤ := hookNumber (D.lastPathColumns false) (rankAt fun _ : D.Φ ↦ D.Y D.m) |
| 571 | |
| 572 | /-- The product of the hook number of the dual weight, `exp (x ^ 99 * b ^ 2)` and |
| 573 | `exp (x ^ 200 * b ^ 2)` is at most `exp (x ^ 201 * b ^ 2)`. -/ |
| 574 | lemma dualHook_mul_exp_le : |
| 575 | D.dualHook * exp (D.x ^ 99 * D.b ^ 2) * exp (D.x ^ 200 * D.b ^ 2) ≤ |
| 576 | exp (D.x ^ 201 * D.b ^ 2) := by |
| 577 | have h_hook : (D.dualHook : ℝ) ≤ (((D.natB * D.r ^ 4) ^ (D.natB * D.r ^ 4)) ^ 3 : ℕ) := by |
| 578 | exact_mod_cast hookNumber_le (boxes_lastPathColumns_le_natB_mul false zero_le) |
| 579 | rw [mul_assoc, ← exp_add] |
| 580 | grw [h_hook] |
| 581 | refine le_exp_of_log_le ?_ |
| 582 | rw [log_mul (by simp [NeZero.ne]) (exp_pos _).ne', log_exp, Nat.cast_pow, log_pow, |
| 583 | Nat.cast_pow, log_pow] |
| 584 | exact D.le_of_hasLogBound |
| 585 | |
| 586 | /-- Let `ζ` be a vector of the weight on `Y_m`. Suppose that its pairing by `dualPairing` with every |
| 587 | integer vector `w` of the dual weight is `D.dualHook` times an element of `embValRing`. Then every |
| 588 | coordinate of `ζ` is `p`-integral. -/ |
| 589 | lemma mem_embValRing_of_dualPairing_eq_dualHook_mul {p : ℕ} [Fact p.Prime] [PadicPlace p] |
| 590 | {ζ : WeylIndex (D.Y D.m) D.columnsY → ℂ} |
| 591 | (hζ : ∀ w : WeylIndex (D.Y D.m) (D.lastPathColumns false) → ℤ, ∃ a ∈ embValRing, |
| 592 | (fun k : WeylIndex (D.Y D.m) (D.lastPathColumns false) ↦ (w k : ℂ)) ⬝ᵥ |
| 593 | D.dualPairing.map (↑) *ᵥ ζ = D.dualHook * a) |
| 594 | (i : WeylIndex (D.Y D.m) D.columnsY) : ζ i ∈ embValRing := by |
| 595 | -- The hook number times `ζ i` is the pairing of `ζ` with the `i`-th row of an integer matrix `C` |
| 596 | -- with `C * dualPairing = dualHook • 1`. |
| 597 | obtain ⟨C, hC⟩ : ∃ C : Matrix _ _ ℤ, ∀ v : WeylIndex (D.Y D.m) D.columnsY → ℂ, |
| 598 | C.map (↑) *ᵥ D.dualPairing.map (↑) *ᵥ v = (D.dualHook : ℂ) • v := |
| 599 | D.isDualPairing_dualPairing.exists_mul_eq_hookNumber |
| 600 | obtain ⟨a, ha, h_pair⟩ := hζ (C i) |
| 601 | have h_coord : (D.dualHook : ℂ) * ζ i = D.dualHook * a := (congrFun (hC ζ) i).symm.trans h_pair |
| 602 | rwa [mul_left_cancel₀ (by simp) h_coord] |
| 603 | |
| 604 | |
| 605 | /-- Let `σ` be an automorphism of `ℂ`, `ζ` a vector of the weight on `Y_m` and `K ≥ 0`. Suppose that |
| 606 | for each `v : D.DualVector`, the `σ`-conjugate of the pairing `v ⬝ᵥ dualPairing *ᵥ ζ` has absolute |
| 607 | value at most `K * √(weylNormSq (σ ∘ v))`. Then `weylNormSq (σ ∘ ζ) ≤ K ^ 2`. -/ |
| 608 | lemma weylNormSq_le_of_dualPairing (σ : ℂ ≃+* ℂ) {ζ : WeylIndex (D.Y D.m) D.columnsY → ℂ} {K : ℝ} |
| 609 | (hK : 0 ≤ K) |
| 610 | (hζ : ∀ v : D.DualVector, |
| 611 | ‖σ (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ ζ)‖ ≤ K * √(weylNormSq (σ ∘ v))) : |
| 612 | weylNormSq (σ ∘ ζ) ≤ K ^ 2 := by |
| 613 | -- The squared norm of `σ ∘ ζ` is its pairing with a vector `w` of the same norm. |
| 614 | obtain ⟨w, hw_norm, hw_pair⟩ : ∃ w : D.DualVector, weylNormSq w = weylNormSq (σ ∘ ζ) ∧ |
| 615 | ∀ u : D.DualVector, u ⬝ᵥ D.dualPairing.map (↑) *ᵥ (σ ∘ ζ) = gramForm w u := |
| 616 | D.isDualPairing_dualPairing.exists_eq_gramForm (σ ∘ ζ) |
| 617 | have h_eq : (weylNormSq w : ℂ) = σ ((σ.symm ∘ w) ⬝ᵥ D.dualPairing.map (↑) *ᵥ ζ) := |
| 618 | calc _ = w ⬝ᵥ D.dualPairing.map (↑) *ᵥ (σ ∘ ζ) := |
| 619 | (GL.coe_weylNormSq w).trans ((gramForm_apply w w).symm.trans (hw_pair w).symm) |
| 620 | _ = _ := by |
| 621 | simp only [dotProduct, mulVec, map_sum, map_mul, map_intCast, Matrix.map_apply, |
| 622 | Function.comp_apply, RingEquiv.apply_symm_apply] |
| 623 | have h_le : weylNormSq w ≤ K * √(weylNormSq w) := |
| 624 | calc weylNormSq w = ‖(weylNormSq w : ℂ)‖ := by simp [abs_of_nonneg] |
| 625 | _ ≤ K * √(weylNormSq w) := by |
| 626 | rw [h_eq] |
| 627 | simpa [Function.comp_def] using hζ (σ.symm ∘ w) |
| 628 | have h_root : √(weylNormSq w) ≤ K := |
| 629 | div_sqrt.ge.trans (div_le_of_le_mul₀ (sqrt_nonneg _) hK h_le) |
| 630 | rw [← hw_norm] |
| 631 | exact (sqrt_le_iff.1 h_root).2 |
| 632 | |
| 633 | section Delta |
| 634 | |
| 635 | variable {P : Parameters} {D : Data P} (ϑ : D.MFoldTwist) (x : Gf D.E (D.Y D.m)) (v : D.DualVector) |
| 636 | |
| 637 | /-- The algebraic form `δ_x(v)` of the dual weight on `Y_m`, of level `levelY ϑ m`, supported on the |
| 638 | class of `x`. -/ |
| 639 | def lastPathDelta : |
| 640 | levelSpace (algFormRep (D.lastPathColumns false) (D.lastPathDetExp false 0)) (D.levelY ϑ D.m) := |
| 641 | deltaForm stdEmbFin |
| 642 | ((stdSpace D.E (D.Y D.m)).weightRep (D.lastPathColumns false) (D.lastPathDetExp false 0)) 1 x v |
| 643 | |
| 644 | /-- The form `δ_x(v)` as a conjugate form on `Y_m`. -/ |
| 645 | def lastPathConjDelta : D.GridForm false 0 D.m := |
| 646 | (D.lastPathToAlgForm false).symm (lastPathDelta ϑ x v).val |
| 647 | |
| 648 | lemma lastPathToAlgForm_lastPathConjDelta : |
| 649 | D.lastPathToAlgForm false (lastPathConjDelta ϑ x v) = (lastPathDelta ϑ x v).val := |
| 650 | (D.lastPathToAlgForm false).apply_symm_apply _ |
| 651 | |
| 652 | /-- Let `ϑ` be an `m`-fold twist, `x` a finite point of `Y_m`, `v` a vector of the dual weight, |
| 653 | `δ = lastPathConjDelta ϑ x v` the delta form on `Y_m` with value `v` on the class of `x`, and `φ` a |
| 654 | form in `gridLevelForms`. Then the pair `(δ, φ)` satisfies `FixedByOuterLevels ϑ`: as algebraic |
| 655 | forms, `δ` is fixed by the integral points of `Y_m` congruent to `1` modulo `gridModulus ϑ`, and `φ` |
| 656 | by the level `lastPathLevel ϑ true 0` of `Ỹ^m_0`, the integral points congruent to `1` modulo the |
| 657 | part of that modulus that does not depend on `ϑ`. -/ |
| 658 | lemma fixedByOuterLevels_lastPathConjDelta (φ : D.gridLevelForms D.m) : |
| 659 | FixedByOuterLevels ϑ fun z : Bool ↦ z.rec (lastPathConjDelta ϑ x v) φ.val := by |
| 660 | -- `lastPathLevel ϑ false 0` is the principal level of `gridModulus ϑ`, which lies in `levelY`. |
| 661 | have h_level : lastPathLevel ϑ false 0 ≤ D.levelY ϑ D.m := by |
| 662 | refine Subgroup.map_mono fun k hk ↦ funext fun i ↦ Units.ext ?_ |
| 663 | -- Reduction modulo the place of index `i` factors through reduction modulo `gridModulus ϑ`. |
| 664 | have h_red : (gridModulus ϑ).reductionGL k = 1 := hk |
| 665 | have h_place : (D.levelPlaces ϑ.toTameChar).placeAt i ∈ (gridModulus ϑ).places := |
| 666 | places_levelModulus.ge ⟨i, rfl⟩ |
| 667 | exact (Rows.reductionGL_map_modulusResidue _ h_place k).symm.trans <| by |
| 668 | rw [h_red, Units.val_one, Matrix.map_one _ (map_zero _) (map_one _)] |
| 669 | rfl |
| 670 | let e := (D.gridSpace 0 true 0 D.m).algFormEquiv (D.isHCParam_lastPathColumns true zero_le) |
| 671 | (principalLevel (D.LastPathIndex true 0) D.gridLevelGen) |
| 672 | have h_symm : (e.symm φ).val = D.lastPathToAlgForm true φ.val := rfl |
| 673 | refine Bool.forall_bool.2 ⟨?_, ?_⟩ |
| 674 | · change D.lastPathToAlgForm false (lastPathConjDelta ϑ x v) ∈ _ |
| 675 | rw [lastPathToAlgForm_lastPathConjDelta] |
| 676 | exact fun k ↦ (lastPathDelta ϑ x v).property ⟨k.val, h_level k.property⟩ |
| 677 | · change D.lastPathToAlgForm true φ.val ∈ _ |
| 678 | rw [← h_symm] |
| 679 | exact fun k ↦ (e.symm φ).property ⟨k.val, lastPathLevel_le_principalLevel ϑ true 0 k.property⟩ |
| 680 | |
| 681 | /-- Pairing with a delta form reads a value. Let `ϑ` be an `m`-fold twist, `x` a finite point of |
| 682 | `Y_m`, `v` a vector of the dual weight and `y` a form on `Y₀`. The index of the level times the |
| 683 | integral of the delta form `δ_x(v) = lastPathConjDelta ϑ x v` against the chain of lifts |
| 684 | `lowerChainUpTo ϑ m y` is the pairing of `v` with the value at `x` of `lowerChain ϑ y`, the same |
| 685 | chain with values in algebraic forms, divided by the dimension of the weight. |
| 686 | |
| 687 | The division by the dimension of the weight is the factor in Schur's orthogonality relations for |
| 688 | matrix coefficients of irreducible representations of compact groups, here for the weight on `Y_m` |
| 689 | paired with its dual. -/ |
| 690 | lemma integral_lastPathConjDelta_mul (y : D.principalForms (D.spaceY 0)) : |
| 691 | stdLevelIndex (D.levelY ϑ D.m) * |
| 692 | ∫ g : New.G D.E (D.signsY D.m), |
| 693 | lastPathConjDelta ϑ x v g * D.lowerChainUpTo ϑ D.m y g ∂(D.spaceY D.m).quotMeasure = |
| 694 | (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ (D.lowerChain ϑ y).val x) / |
| 695 | card (WeylIndex (D.Y D.m) D.columnsY) := by |
| 696 | have h_fix (k : Gf D.E (D.Y D.m)) (hk : k ∈ D.levelY ϑ D.m) : |
| 697 | algFormRep D.columnsY (D.lastEntry D.m) k (D.lowerChain ϑ y) = D.lowerChain ϑ y := |
| 698 | (D.lowerChainAtLevel ϑ y).algFormRep_eq_self_of_mem hk |
| 699 | -- The integral is a class sum, which the delta form reduces to its term at `x`. |
| 700 | let L (g : Gf D.E (D.Y D.m)) : D.DualVector →+ ℂ := |
| 701 | .mk' (fun w ↦ w ⬝ᵥ D.dualPairing.map (↑) *ᵥ (D.lowerChain ϑ y).val g) fun w w' ↦ |
| 702 | add_dotProduct w w' _ |
| 703 | let f (g : Gf D.E (D.Y D.m)) : ℂ := L g ((lastPathDelta ϑ x v).val.val g) |
| 704 | have h_integral : ∫ g : New.G D.E (D.signsY D.m), |
| 705 | lastPathConjDelta ϑ x v g * D.lowerChainUpTo ϑ D.m y g ∂(D.spaceY D.m).quotMeasure = |
| 706 | (card (WeylIndex (D.Y D.m) D.columnsY) * stdLevelIndex (D.levelY ϑ D.m) : ℂ)⁻¹ * |
| 707 | classIntegral stdRatPoints (D.levelY ϑ D.m) f := by |
| 708 | have h_chain : (D.lowerChainUpTo ϑ D.m y).val = |
| 709 | ofAlgForm (D.paramY D.m) (D.signsY D.m) (D.lowerChain ϑ y) := |
| 710 | (ofAlgForm_toAlgForm D.isHCParam_paramY (D.lowerChainUpTo ϑ D.m y)).symm |
| 711 | have h_delta : (lastPathConjDelta ϑ x v).val = |
| 712 | ofAlgForm (-D.paramY D.m) (D.signsY D.m) (lastPathDelta ϑ x v).val := rfl |
| 713 | let B (g : Gf D.E (D.Y D.m)) : (WeylIndex (D.Y D.m) D.columnsY → ℂ) →ₗ[ℂ] ℂ := |
| 714 | (dotProductBilin ℂ ℂ).compl₂ (D.dualPairing.map (↑)).mulVecLin ((lastPathDelta ϑ x v).1.1 g) |
| 715 | have h_f : (fun g ↦ B g ((D.lowerChain ϑ y).val g)) = f := |
| 716 | funext fun g ↦ by |
| 717 | simp only [B, f, L, AddMonoidHom.mk'_apply, LinearMap.compl₂_apply, Matrix.mulVecLin_apply, |
| 718 | dotProductBilin_apply_apply] |
| 719 | refine (MeasureTheory.integral_congr_ae (.of_forall fun (g : New.G D.E (D.signsY D.m)) ↦ |
| 720 | congrArg₂ (· * ·) (congrFun h_delta g) (congrFun h_chain g))).trans ?_ |
| 721 | rw [← h_f] |
| 722 | exact integral_mul_eq_classIntegral (V := D.spaceY D.m) D.isHCParam_paramY (D.levelY ϑ D.m) |
| 723 | (isAutomorphic_algFormCoeff (lastPathDelta ϑ x v).val) B |
| 724 | (D.isDualPairing_dualPairing.ofAlgForm_eq_bilin (D.signsY D.m) (lastPathDelta ϑ x v).val) |
| 725 | have h_sum : classSum stdRatPoints (D.levelY ϑ D.m) f = L x v := by |
| 726 | refine classSum_deltaForm L fun γ k ↦ ?_ |
| 727 | have h_value : (D.lowerChain ϑ y).val ((stdSpace D.E (D.Y D.m)).embFin γ * x * k.val) = |
| 728 | (stdSpace D.E (D.Y D.m)).weightRep D.columnsY (D.lastEntry D.m) γ |
| 729 | ((D.lowerChain ϑ y).val x) := |
| 730 | (congrFun (congrArg Subtype.val (h_fix k.val k.property)) _).trans |
| 731 | ((D.lowerChain ϑ y).property.2 γ x) |
| 732 | simp only [MonoidHom.one_apply, one_smul, L, AddMonoidHom.mk'_apply, h_value] |
| 733 | exact D.isDualPairing_dualPairing.invariant ℂ _ v ((D.lowerChain ϑ y).val x) |
| 734 | rw [h_integral, classIntegral_eq_classSum, h_sum] |
| 735 | · simp [L, field, -Fintype.card_pi] |
| 736 | · intro k hk g |
| 737 | have h_left : (lastPathDelta ϑ x v).val.val (g * k) = (lastPathDelta ϑ x v).val.val g := |
| 738 | (congrFun (congrArg Subtype.val ((lastPathDelta ϑ x v).property ⟨k, hk⟩)) g).trans |
| 739 | (one_smul ℂ _) |
| 740 | have h_right : (D.lowerChain ϑ y).val (g * k) = (D.lowerChain ϑ y).val g := |
| 741 | congrFun (congrArg Subtype.val (h_fix k hk)) g |
| 742 | simp only [f, L, AddMonoidHom.mk'_apply, h_left, h_right] |
| 743 | |
| 744 | /-- If `x` is integral above `p` and `w` is an integer vector, then the delta form `δ_x(w)` has |
| 745 | `p`-adic gauge at most `1` at every point. -/ |
| 746 | lemma weylGauge_lastPathConjDelta_le_one {p : ℕ} [Fact p.Prime] [PadicPlace p] |
| 747 | (hx : x ∈ integralAbove (D.Y D.m) p) |
| 748 | (w : WeylIndex (D.Y D.m) (D.lastPathColumns false) → ℤ) (g : Gf D.E (D.Y D.m)) : |
| 749 | weylGauge (D.lastPathColumns false) (D.lastPathDetExp false 0) g |
| 750 | ((D.lastPathToAlgForm false (lastPathConjDelta ϑ x fun i ↦ w i)).val g) ≤ 1 := by |
| 751 | rw [lastPathToAlgForm_lastPathConjDelta] |
| 752 | refine (weylGauge_deltaForm_le (n := D.Y D.m) (by simp)).trans ?_ |
| 753 | simp [IsUltrametricDist.norm_intCast_le_one, weylGauge_le_one_iff, hx] |
| 754 | |
| 755 | /-- The conjugates of the values of the delta form `δ_x(v)` are no longer than those of `v`, because |
| 756 | the level `levelY ϑ m` is sufficiently small. -/ |
| 757 | lemma weylNormSq_lastPathConjDelta_le (σ : ℂ ≃+* ℂ) (g : Gf D.E (D.Y D.m)) : |
| 758 | weylNormSq (σ ∘ (D.lastPathToAlgForm false (lastPathConjDelta ϑ x v)).val g) ≤ |
| 759 | weylNormSq (σ ∘ v) := by |
| 760 | rw [lastPathToAlgForm_lastPathConjDelta] |
| 761 | refine (weylNormSq_deltaForm_le (n := D.Y D.m) (by simp) σ x v g).trans ?_ |
| 762 | simp [D.classAut_eq_bot_of_le_chosenLevel (levelY_le_chosenLevel ..) |
| 763 | (card_lastPathIndex_le false zero_le : card (D.LastPathIndex false 0) ≤ 2 * D.n D.m)] |
| 764 | |
| 765 | end Delta |
| 766 | |
| 767 | /-- There are constants `c ϑ`, whose modulus is, up to a constant and a fixed power of the norm |
| 768 | `ϑ.normQ` of the places of `ϑ`, the product over the `m ^ 2` turns of `turnRatio`, functions `Ψ ϑ` |
| 769 | of the matrices on the edges that are path data on the last path, a number `β` and a restriction map |
| 770 | `r` from `gridLevelForms` onto the forms on `Y₀`, such that the pairing of `v` with the value at `x` |
| 771 | of `(c ϑ / c 1) • lowerChain ϑ (r φ)` is `β` times `lastPathPeriod` at the pair `(δ_x(v), φ)`: the |
| 772 | sum over the tuples `S` of `Ψ ϑ S` times the integrated pairing of the lifts of `φ` and of the delta |
| 773 | form `δ_x(v) = lastPathConjDelta ϑ x v` along the two halves of the last path. -/ |
| 774 | lemma exists_dualPairing_eq_mul_lastPathPeriod : ∃ c : D.MFoldTwist → ℂˣ, |
| 775 | D.HasAbsUpToNormPower (fun ϑ : D.MFoldTwist ↦ c ϑ) |
| 776 | (∏ i ∈ range D.m, ∏ j ∈ range D.m, D.turnRatio i j) ∧ |
| 777 | ∃ Ψ : ∀ ϑ : D.MFoldTwist, EdgeTuple ϑ → ℂ, |
| 778 | (∀ ϑ : D.MFoldTwist, IsPathDatum (lastPathBound ϑ) (TwoGridPath.last D.m).edges (Ψ ϑ)) ∧ |
| 779 | ∃ (β : ℂ) (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)), |
| 780 | r.range = ⊤ ∧ |
| 781 | ∀ (ϑ : D.MFoldTwist) (φ : D.gridLevelForms D.m) (x : Gf D.E (D.Y D.m)) |
| 782 | (v : D.DualVector), |
| 783 | v ⬝ᵥ D.dualPairing.map (↑) *ᵥ ((c ϑ / c 1 : ℂ) • D.lowerChain ϑ (r φ)).val x = |
| 784 | β * lastPathPeriod (Ψ ϑ) fun z : Bool ↦ z.rec (lastPathConjDelta ϑ x v) φ.val := by |
| 785 | obtain ⟨c, hc, Ψ, hΨ, β, r, hr_onto, h_period⟩ := |
| 786 | D.exists_integral_lowerChainUpTo_eq_lastPathPeriod |
| 787 | refine ⟨c, hc, Ψ, hΨ, card (WeylIndex (D.Y D.m) D.columnsY) * β / c 1, r, hr_onto, |
| 788 | fun ϑ φ x v ↦ ?_⟩ |
| 789 | have h_value : |
| 790 | (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ (D.lowerChain ϑ (r φ)).val x) / card |
| 791 | (WeylIndex (D.Y D.m) D.columnsY) = |
| 792 | β * (lastPathPeriod (Ψ ϑ) (fun z ↦ z.rec (lastPathConjDelta ϑ x v) φ.val) / c ϑ) := |
| 793 | (integral_lastPathConjDelta_mul ϑ x v (r φ)).symm.trans (h_period ϑ _ φ) |
| 794 | simpa [field, mul_comm (c ϑ : ℂ), mulVec_smul, -Fintype.card_pi] using h_value |
| 795 | |
| 796 | /-! ### Integrality and size of the values -/ |
| 797 | |
| 798 | /-- There are constants `c ϑ` whose modulus is, up to a constant and a fixed power of the norm |
| 799 | `ϑ.normQ` of the places of `ϑ`, the product of the ratios `turnRatio`, a restriction map `r` from |
| 800 | `gridLevelForms` onto the forms on `Y₀` and a number `s ≠ 0` with two properties. (a) If the |
| 801 | algebraic form `lastPathToAlgForm true φ` of `φ` has `p`-integral values at a prime `p` that does |
| 802 | not divide `ϑ.normQ`, then `(c ϑ / c 1) • lowerChainAtLevel ϑ (s • r φ)` is in `integralForms`, the |
| 803 | forms with `p`-integral values. (b) For the trivial twist and `σ` in `Aut(ℂ)`, if the `σ`-conjugates |
| 804 | of the values of that algebraic form have squared norm `weylNormSq` at most `B`, then those of |
| 805 | `lowerChain 1 (s • r φ)` have squared norm at most `exp (2 * x ^ 201 * b ^ 2) * B`. -/ |
| 806 | lemma exists_lowerChain_integral_and_weylNormSq_le : ∃ c : D.MFoldTwist → ℂˣ, |
| 807 | D.HasAbsUpToNormPower (fun ϑ : D.MFoldTwist ↦ c ϑ) |
| 808 | (∏ i ∈ range D.m, ∏ j ∈ range D.m, D.turnRatio i j) ∧ |
| 809 | ∃ (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)) (s : ℂ), |
| 810 | r.range = ⊤ ∧ s ≠ 0 ∧ |
| 811 | (∀ (ϑ : D.MFoldTwist) (p : ℕ) [Fact p.Prime] (place : PadicPlace p) |
| 812 | (φ : D.gridLevelForms D.m), |
| 813 | p.Coprime ϑ.normQ → GaugeLe 1 1 (D.lastPathToAlgForm true φ.val) → |
| 814 | (c ϑ / c 1 : ℂ) • D.lowerChainAtLevel ϑ (s • r φ) ∈ integralForms (l := p) place) ∧ |
| 815 | ∀ (σ : ℂ ≃+* ℂ) (φ : D.gridLevelForms D.m) (B : ℝ), |
| 816 | (∀ g : Gf D.E (D.LastPathIndex true 0), |
| 817 | weylNormSq (σ ∘ (D.lastPathToAlgForm true φ.val).val g) ≤ B) → |
| 818 | ∀ g : Gf D.E (D.Y D.m), |
| 819 | weylNormSq (σ ∘ (D.lowerChain .one (s • r φ)).val g) ≤ |
| 820 | exp (2 * D.x ^ 201 * D.b ^ 2) * B := by |
| 821 | obtain ⟨c, hc, Ψ, hΨ, β, r, hr_onto, h_period⟩ := |
| 822 | D.exists_dualPairing_eq_mul_lastPathPeriod |
| 823 | obtain ⟨N, hN_ne, hN_le, h_integral⟩ := D.exists_mul_lastPathPeriod_mem_embValRing |
| 824 | -- If `β = 0` all pairings vanish and `s = 1`, `ε = 0` will do; otherwise `s` turns `β` into the |
| 825 | -- hook number times `N`. |
| 826 | let s : ℂ := if β = 0 then 1 else D.dualHook * N / β |
| 827 | let ε : ℂ := if β = 0 then 0 else 1 |
| 828 | have hs_ne : s ≠ 0 := by |
| 829 | by_cases hβ0 : β = 0 |
| 830 | · simp [s, hβ0] |
| 831 | · simp [s, hβ0, hN_ne] |
| 832 | have hs : s * β = D.dualHook * (ε * N) := by |
| 833 | by_cases hβ0 : β = 0 <;> simp [s, ε, hβ0] |
| 834 | let Ξ (ϑ : D.MFoldTwist) (φ : D.gridLevelForms D.m) (x : Gf D.E (D.Y D.m)) |
| 835 | (v : D.DualVector) : ℂ := |
| 836 | lastPathPeriod (Ψ ϑ) fun z ↦ z.rec (lastPathConjDelta ϑ x v) φ.val |
| 837 | have h_pair (ϑ : D.MFoldTwist) (φ : D.gridLevelForms D.m) (x : Gf D.E (D.Y D.m)) |
| 838 | (v : D.DualVector) : |
| 839 | v ⬝ᵥ D.dualPairing.map (↑) *ᵥ ((c ϑ / c 1 : ℂ) • D.lowerChain ϑ (s • r φ)).val x = |
| 840 | D.dualHook * (ε * (N * Ξ ϑ φ x v)) := |
| 841 | calc _ = s * (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ ((c ϑ / c 1 : ℂ) • D.lowerChain ϑ (r φ)).1 x) := by |
| 842 | rw [map_smul, smul_comm, Submodule.coe_smul_of_tower, Pi.smul_apply, mulVec_smul, |
| 843 | dotProduct_smul, smul_eq_mul] |
| 844 | _ = s * (β * Ξ ϑ φ x v) := by rw [h_period] |
| 845 | _ = _ := by rw [← mul_assoc, hs, mul_assoc, mul_assoc] |
| 846 | refine ⟨c, hc, r, s, hr_onto, hs_ne, fun ϑ p _ _ φ hp hφ ↦ ?_, fun σ φ B hB x ↦ ?_⟩ |
| 847 | · -- (a) At integral points the delta forms of integral vectors are integral. |
| 848 | have hε_int : ε ∈ embValRing := by by_cases hβ0 : β = 0 <;> simp [ε, hβ0] |
| 849 | have hΞ_int {x : Gf D.E (D.Y D.m)} (hx : x ∈ integralAbove (D.Y D.m) p) |
| 850 | (w : WeylIndex (D.Y D.m) (D.lastPathColumns false) → ℤ) : |
| 851 | N * Ξ ϑ φ x (fun i ↦ w i) ∈ embValRing := by |
| 852 | refine h_integral (hΨ ϑ) (fixedByOuterLevels_lastPathConjDelta ϑ x _ φ) hp (Bool.forall_bool.2 |
| 853 | ⟨weylGauge_lastPathConjDelta_le_one ϑ x hx w, fun g ↦ ?_⟩) |
| 854 | simpa only [mul_one] using hφ g |
| 855 | exact weylGauge_le_one_of_integralAbove _ fun x hx ↦ |
| 856 | D.mem_embValRing_of_dualPairing_eq_dualHook_mul fun w ↦ |
| 857 | ⟨_, mul_mem hε_int (hΞ_int hx w), h_pair ϑ φ x _⟩ |
| 858 | -- (b) The conjugates of the sum `Ξ` for delta forms are small. |
| 859 | have hΞ_le (v : D.DualVector) : |
| 860 | ‖σ (Ξ 1 φ x v)‖ ≤ exp (D.x ^ 200 * D.b ^ 2) * √(weylNormSq (σ ∘ v)) * √B := |
| 861 | D.norm_lastPathPeriod_le (hΨ 1) (fixedByOuterLevels_lastPathConjDelta 1 x v φ) σ |
| 862 | (B := fun z ↦ if z then B else weylNormSq (σ ∘ v)) |
| 863 | (Bool.forall_bool.2 ⟨weylNormSq_lastPathConjDelta_le 1 x v σ, hB⟩) |
| 864 | have hε_le : ‖σ ε‖ ≤ 1 := by by_cases hβ0 : β = 0 <;> simp [ε, hβ0] |
| 865 | have h_hook : (0 : ℝ) ≤ D.dualHook := mod_cast hookNumber_pos.le |
| 866 | have h_pair_le (v : D.DualVector) : |
| 867 | ‖σ (v ⬝ᵥ D.dualPairing.map (↑) *ᵥ (D.lowerChain .one (s • r φ)).val x)‖ ≤ |
| 868 | exp (D.x ^ 201 * D.b ^ 2) * √B * √(weylNormSq (σ ∘ v)) := |
| 869 | calc _ = ‖σ (D.dualHook * (ε * (N * Ξ 1 φ x v)))‖ := by |
| 870 | rw [← h_pair, div_self (c 1).ne_zero, one_smul] |
| 871 | rfl |
| 872 | _ = D.dualHook * ‖σ ε‖ * N * ‖σ (Ξ 1 φ x v)‖ := by |
| 873 | simp [abs_of_nonneg h_hook, mul_assoc] |
| 874 | _ ≤ D.dualHook * 1 * exp (D.x ^ 99 * D.b ^ 2) * |
| 875 | (exp (D.x ^ 200 * D.b ^ 2) * √(weylNormSq (σ ∘ v)) * √B) := by |
| 876 | gcongr |
| 877 | exact hΞ_le v |
| 878 | _ = D.dualHook * exp (D.x ^ 99 * D.b ^ 2) * exp (D.x ^ 200 * D.b ^ 2) * √B * |
| 879 | √(weylNormSq (σ ∘ v)) := by ring |
| 880 | _ ≤ _ := by grw [D.dualHook_mul_exp_le] |
| 881 | refine (D.weylNormSq_le_of_dualPairing σ (by positivity) h_pair_le).trans_eq ?_ |
| 882 | rw [mul_pow, sq_sqrt ((weylNormSq_nonneg _).trans (hB 1)), ← exp_natCast_mul, Nat.cast_ofNat, |
| 883 | ← mul_assoc] |
| 884 | |
| 885 | /-- The space `gridLevelForms` of forms of level `J(𝔟)` on `Ỹ^m_0`, the space at the outer end of |
| 886 | the half `true` of the last path, is spanned by the forms `φ` whose algebraic forms |
| 887 | `lastPathToAlgForm true φ` are short: their values are integral at every prime and all conjugates of |
| 888 | the values have squared norm at most `exp (x ^ 99 * b ^ 2)`, with `x = D.x` the length of the prime |
| 889 | sum and `b = D.b` the weight at the `b`-places. -/ |
| 890 | lemma span_isShort_eq_top_gridLevelForms : span ℂ {φ : D.gridLevelForms D.m | |
| 891 | IsShort (exp (D.x ^ 99 * D.b ^ 2)) (D.lastPathToAlgForm true φ.val)} = ⊤ := by |
| 892 | -- Transport along the isomorphism `e` between algebraic forms and forms of level `gridLevelGen`. |
| 893 | let e : _ ≃ₗ[ℂ] D.gridLevelForms D.m := |
| 894 | (D.gridSpace 0 true 0 D.m).algFormEquiv (D.isHCParam_lastPathColumns true zero_le) |
| 895 | (principalLevel (D.LastPathIndex true 0) D.gridLevelGen) |
| 896 | have h_card := D.card_lastPathIndex_le true zero_le |
| 897 | rw [← e.range, e.range_eq_map, ← New.span_isShort_eq_top |
| 898 | (D.classAut_eq_bot_of_le_chosenLevel (D.principalLevel_le_chosenLevel piM_dvd_gridLevelGen) |
| 899 | h_card) P.conductor_mem_differentIdeal |
| 900 | (by grw [boxes_lastPathColumns_le_natB_mul true zero_le, h_card]) _, |
| 901 | map_span, LinearEquiv.coe_coe, e.image_eq_preimage_symm] |
| 902 | · rfl |
| 903 | · grw [shortBasisConst, h_card] |
| 904 | exact le_exp_of_log_le D.le_of_hasLogBound |
| 905 | |
| 906 | /-- The space of forms on `Y₀` of principal level at the chosen places is spanned by auxiliary forms |
| 907 | with integral and small lifts. There are constants `c ϑ`, whose modulus is, up to a constant and a |
| 908 | fixed power of the norm `ϑ.normQ` of the places of `ϑ`, the product of the ratios `turnRatio`, such |
| 909 | that this space is spanned by the forms `y` with two properties: for all twists `ϑ`, |
| 910 | `(c ϑ / c 1) • lowerChainAtLevel ϑ y` has values integral at every prime not dividing `ϑ.normQ`, and |
| 911 | all conjugates of the values of `lowerChain 1 y`, the chain of lifts for the trivial twist, have |
| 912 | squared norm `weylNormSq` at most `exp (x ^ 202 * b ^ 2)`, with `x = D.x` the length of the prime |
| 913 | sum and `b = D.b` the weight at the `b`-places. -/ |
| 914 | lemma exists_span_short_lifts_eq_top : ∃ c : D.MFoldTwist → ℂˣ, |
| 915 | D.HasAbsUpToNormPower (fun ϑ : D.MFoldTwist ↦ c ϑ) |
| 916 | (∏ i ∈ range D.m, ∏ j ∈ range D.m, D.turnRatio i j) ∧ |
| 917 | span ℂ {y : D.principalForms (D.spaceY 0) | |
| 918 | (∀ (ϑ : D.MFoldTwist) (l : ℕ) [Fact l.Prime] (place : PadicPlace l), l.Coprime ϑ.normQ → |
| 919 | (c ϑ / c 1 : ℂ) • D.lowerChainAtLevel ϑ y ∈ integralForms (l := l) place) ∧ |
| 920 | ∀ (σ : ℂ ≃+* ℂ) (g : Gf D.E (D.Y D.m)), |
| 921 | weylNormSq (σ ∘ (D.lowerChain .one y).val g) ≤ exp (D.x ^ 202 * D.b ^ 2)} = ⊤ := by |
| 922 | -- Short forms `φ` span and `r` is onto, so the forms `s • r φ` span. |
| 923 | obtain ⟨c, hc, r, s, hr_onto, hs_ne, h_integral, h_norm⟩ := |
| 924 | D.exists_lowerChain_integral_and_weylNormSq_le |
| 925 | refine ⟨c, hc, eq_top_mono ?_ hr_onto⟩ |
| 926 | rw [r.range_eq_map, ← D.span_isShort_eq_top_gridLevelForms, map_span_le] |
| 927 | intro φ hφ |
| 928 | refine (smul_mem_iff _ hs_ne).1 (subset_span |
| 929 | ⟨fun ϑ p _ place hp ↦ h_integral ϑ p place φ hp (hφ.1 p), fun σ g ↦ ?_⟩) |
| 930 | calc _ ≤ exp (2 * D.x ^ 201 * D.b ^ 2) * exp (D.x ^ 99 * D.b ^ 2) := |
| 931 | h_norm σ φ _ (hφ.2 σ) g |
| 932 | _ = exp (2 * D.x ^ 201 * D.b ^ 2 + D.x ^ 99 * D.b ^ 2) := by rw [exp_add] |
| 933 | _ ≤ _ := exp_le_exp.2 D.le_of_hasLogBound |
| 934 | |
| 935 | end New.Data |
| 936 | |
| 937 | end |