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

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.Order.Star.Int |
| 4 | import Mathlib.Algebra.Ring.IsFormallyReal |
| 5 | import Std.Tactic.BVDecide.Normalize.Bool |
| 6 | public import TauCeti.Analysis.InnerProductSpace.ArrowTriangle |
| 7 | public import New.Determinant.Chain.Moduli |
| 8 | public import New.Determinant.Chain.TriangleLifts |
| 9 | public import New.Determinant.Chain.TriangleNorms |
| 10 | import Lib.General.Groups.IndexOfProduct |
| 11 | import New.Determinant.Exchange.OneSquare |
| 12 | |
| 13 | /-! |
| 14 | # Norms along the chain of theta lifts and injectivity of ι_ϑ |
| 15 | |
| 16 | This file proves the two commutation relations in the squares of the triangle of lifts and |
| 17 | computes the adjoints of descents. With these, the lifts satisfy the conditions |
| 18 | `TauCeti.IsArrowTriangle`. This file then compares the chain ι_ϑ (`New.Data.lowerChainAtLevel`) |
| 19 | with the weighted chain of the triangle `z = false`. Here J_M is the principal level at the chosen |
| 20 | places `New.Data.chosenPlace`, and Q is the product of the places of the twist ϑ. The weighted |
| 21 | chain `TauCeti.ArrowTriangle.weightedChain` composes the lifts `New.Data.triangleLift`, each |
| 22 | multiplied by N_n = `New.Data.triangleGLCard` false ϑ n, an order of GL over a residue ring. |
| 23 | |
| 24 | The node `(i, n)` of a triangle is the space of the interval `[i + 1, i + n]`: it has the stem and |
| 25 | the blocks `i + 1, …, i + n`. The nodes `(i, 0)` are the empty intervals; they carry the space at |
| 26 | `(0, 0)` negated `i` times. The lift `triangleLift` goes along a right pair and adds the last block. |
| 27 | The descent `triangleTransposedLift` is a transposed lift along a left pair and removes the first |
| 28 | block; it stands for the adjoint of the map that adds this block. The ascent `triangleReversedLift` |
| 29 | is a transposed lift along the reversed pair and adds the first block. The flag `z = false` selects |
| 30 | the chain Y₀, …, Y_m, and `z = true` the second chain, which is untwisted, has blocks of length |
| 31 | `t - 1` and starts from Y₀ plus a line. |
| 32 | |
| 33 | ## Main definitions and results |
| 34 | |
| 35 | * `New.Data.exists_triangleLift_triangleTransposedLift_comm`, |
| 36 | `New.Data.exists_triangleTransposedLift_adjoint_comm`: the two commutation relations, with the |
| 37 | moduli of their constants. |
| 38 | * `New.Data.exists_isTriangle`: with suitable descents these data satisfy the conditions |
| 39 | `TauCeti.IsArrowTriangle`; for `z = false` also `TauCeti.ArrowTriangle.HasSquareModuli`, with |
| 40 | the ratios of Hecke values `New.Data.quotientRatio` as moduli. |
| 41 | * `New.Data.inner_lowerChainAtLevel`: inner products of lifts are a multiple of those along the |
| 42 | chain. |
| 43 | * `New.Data.lowerChainAtLevel_injective`: ι_ϑ is injective, because the chain is. |
| 44 | |
| 45 | Notions from other files: |
| 46 | * `New.Data.RowIndex`, `New.Data.Y`: The basis index set of Y₀: e₁, …, e_ϱ, the indices of X₀, a |
| 47 | middle vector, and e*₁, …, e*_ϱ. The basis index set of Y_j: the block `RowIndex`, then j blocks |
| 48 | of t indices each. |
| 49 | * `New.Data.MFoldTwist`: a twist ϑ whose tame part ψ has ψ_wⁿ non-trivial for all places w in its |
| 50 | set Q and 1 ≤ n ≤ m. |
| 51 | * `New.Data.chosenLevel`, `New.Data.lastLevel`: The level J_M consists of the elements of |
| 52 | K₀ = `New.stdLevel` that are 1 modulo the chosen places `New.Data.chosenPlace`. The level J_ϑ(Y_m) |
| 53 | on Y_m consists of those elements of J_M that are block upper triangular modulo Q. |
| 54 | * `New.Data.triangleModulus`, `New.Data.triangleGLCard`: the modulus 𝔪 of the triangle, and the |
| 55 | order of the general linear group of a node modulo 𝔪. A lift times this order is the lift for the |
| 56 | measure that gives the principal level of 𝔪 the volume 1. |
| 57 | * `New.Data.HasAbsUpToNormPower c f`: `‖c ϑ‖²` is `(f ϑ)²` times a constant, possibly zero, and a |
| 58 | fixed integral power of the norm of Q. |
| 59 | |
| 60 | ## Relation to the literature |
| 61 | |
| 62 | The chain of m theta lifts from U(Y_0) to the definite U(Y_m), mostly outside the range of Rallis's |
| 63 | formula, is injective at level J_M. On target forms its Gram form is that of a product of m Hecke |
| 64 | operators times a scalar whose modulus is a product of ratios of Hecke values. The norm and |
| 65 | injectivity of a single cuspidal theta lift, also below Weil's range, are known in the literature. |
| 66 | Related work: Gan–Qiu–Takeda, Regularized Siegel–Weil formula and Rallis inner product formula (Thm |
| 67 | 1.3), 2014; Bruinier–Funke, Injectivity of the Kudla–Millson lift, 2010; He, Compositions of theta |
| 68 | correspondences, 2005. |
| 69 | -/ |
| 70 | |
| 71 | @[expose] public section |
| 72 | |
| 73 | noncomputable section |
| 74 | |
| 75 | section TriangleArrows |
| 76 | |
| 77 | open MeasureTheory Matrix Complex ComplexConjugate Fintype LinearMap |
| 78 | |
| 79 | namespace New |
| 80 | |
| 81 | open TauCeti.ArrowTriangle |
| 82 | |
| 83 | open Rows Exchange WeilData Space Modulus SiegelWeil ComplexInnerProductSpace |
| 84 | |
| 85 | namespace Data |
| 86 | |
| 87 | attribute [local implicit_reducible] Data.GridIndex BlockIndex kernelPair |
| 88 | |
| 89 | /-! ### The two squares -/ |
| 90 | |
| 91 | /-- The two diagonals of the square with nodes `(i, n + 1)`, `(i, n + 2)`, `(i + 1, n)` and |
| 92 | `(i + 1, n + 1)` have the same number of negative signs. -/ |
| 93 | lemma negCount_gridSigns_add {P : Parameters} (D : Data P) (z : Bool) {i n : ℕ} : |
| 94 | negCount (D.gridSigns z i 0 (n + 1)) + negCount (D.gridSigns z (i + 1) 0 (n + 1)) = |
| 95 | negCount (D.gridSigns z i 0 (n + 1 + 1)) + negCount (D.gridSigns z (i + 1) 0 n) := by |
| 96 | simp_rw [negCount_gridSigns_eq_sum, ← Finset.sum_add_distrib] |
| 97 | -- compare the parities of the exponents of `-1` entry by entry |
| 98 | refine Finset.sum_congr rfl fun x _ ↦ ?_ |
| 99 | grind [entrySign_eq_ite] |
| 100 | |
| 101 | /-- Fewer than half of the signs `gridSigns` at the node `(0, n + 1)`, taken with the offsets `i` |
| 102 | and `i + 1`, are negative; both have the index set `GridIndex z 0 (n + 1)`. Only base entries can be |
| 103 | negative: the added blocks have sign `+1`. -/ |
| 104 | lemma negCount_gridSigns_add_lt {P : Parameters} (D : Data P) (z : Bool) {i n : ℕ} : |
| 105 | negCount (D.gridSigns z i 0 (n + 1)) + negCount (D.gridSigns z (i + 1) 0 (n + 1)) < |
| 106 | card (D.GridIndex z 0 (n + 1)) := by |
| 107 | have h_neg (j : ℕ) : negCount (D.gridSigns z j 0 (n + 1)) ≤ D.r + z.toNat := by |
| 108 | simpa [negCount_gridSigns_eq_sum] using Finset.card_filter_le (.range (D.r + z.toNat)) _ |
| 109 | have h_block : D.r + z.toNat < D.t - z.toNat := by grind [D.r_add_six_le_t, z.toNat_le] |
| 110 | rw [card_gridIndex] |
| 111 | nlinarith [h_neg i, h_neg (i + 1)] |
| 112 | |
| 113 | /-- The ranks along a row of the triangle form an arithmetic progression. -/ |
| 114 | lemma card_gridIndex_add_card_gridIndex {P : Parameters} (D : Data P) (z : Bool) (n : ℕ) : |
| 115 | card (D.GridIndex z 0 n) + card (D.GridIndex z 0 (n + 1 + 1)) = |
| 116 | 2 * card (D.GridIndex z 0 (n + 1)) := by |
| 117 | simp +arith [card_gridIndex, add_mul] |
| 118 | |
| 119 | /-- Let `1 ≤ j ≤ D.m` (`LiftIndex`), and let `quotientPair j` be the pair of the quotient of two |
| 120 | characters of the chain at distance `j`, of weight `-c τ = -j * D.gap` at the place `τ`. The rank in |
| 121 | column `j` of the triangle is at most `c τ`. -/ |
| 122 | lemma card_gridIndex_le_quotientPair_negWeight {P : Parameters} (D : Data P) (z : Bool) |
| 123 | (j : D.LiftIndex) (τ : NumberField.InfinitePlace D.E) : |
| 124 | card (D.GridIndex z 0 j) ≤ (D.quotientPair j).negWeight τ := by |
| 125 | change card (D.GridIndex z 0 j) ≤ j.val * (2 * D.halfGap) |
| 126 | rw [card_gridIndex] |
| 127 | nlinarith [D.k_add_t_add_one_le_halfGap, D.r_add_six_le_t, j.prop.1, z.toNat_le, |
| 128 | D.t.sub_le z.toNat] |
| 129 | |
| 130 | /-- The character of a square of the triangle `z`. Let `1 ≤ n + 1 ≤ D.m` (`LiftIndex`), and let `p`, |
| 131 | `q`, `r` be index types of hermitian spaces, with `card p + card q = card r` even. The character |
| 132 | `gridChar` of U(1)(𝔸) that the lift adding the block `n + i + 2` has at an end of index type `p`, |
| 133 | times the character `leftPairChar` of the left pairs of row `i` at an end of index type `q`, is |
| 134 | `ν * ϑ ^ (n + 1)` times the splitting character `upsilonU1` to the power `card r / 2` (`rankTwist`). |
| 135 | Here `ν`, the character of `quotientPair (n + 1)`, is the quotient of `untwistedLiftChar` at |
| 136 | `j + n + 1` by that at `j`, for any `j`, and `ϑ` is replaced by the trivial twist if `z = true` |
| 137 | (`triangleTwist`). -/ |
| 138 | lemma gridChar_mul_leftPairChar {P : Parameters} (D : Data P) (z : Bool) (ϑ : D.MFoldTwist) |
| 139 | {i n : ℕ} (hn : n + 1 ∈ D.LiftIndex) {p q r : Type} [Fintype p] [Fintype q] [Fintype r] |
| 140 | (h_card : card p + card q = card r) (h_even : Even (card r)) : |
| 141 | D.gridChar ϑ (!z) (n + i + 1) p * D.leftPairChar z ϑ i q = |
| 142 | rankTwist ((D.quotientPair ⟨n + 1, hn⟩).character * (triangleTwist ϑ z).toAutChar ^ (n + 1)) |
| 143 | r := by |
| 144 | -- Written additively, the identity compares the exponent of each basic character. |
| 145 | apply_fun Additive.ofMul |
| 146 | cases z |
| 147 | all_goals |
| 148 | simp [quotientPair, leftPairChar, rankTwist, gridChar, liftChar, untwistedLiftChar, |
| 149 | TameChar.pow, |
| 150 | toAutChar_one_and_toTwist_one_and_Q_one] |
| 151 | match_scalars <;> grind |
| 152 | |
| 153 | /-- The square law for point data around the square with nodes `(i, n + 1)`, `(i, n + 2)`, |
| 154 | `(i + 1, n)` and `(i + 1, n + 1)` of the triangle `z`, for `i + n + 1 < D.m`. The transposed lifts |
| 155 | `triangleTransposedLift` go from `(i, j + 1)` to `(i + 1, j)` and are formed with polynomials `Φ₀`, |
| 156 | `Φ₁` that make edges along the left pairs at `(i, n)`, `(i, n + 1)` (`IsLeftPair`). Let `ν` be the |
| 157 | character of `quotientPair (n + 1)`, of weight `-negWeight`, replace `ϑ` by the trivial twist if |
| 158 | `z = true`, and let `(ν * ϑ ^ (n + 1))⁻¹` be tamely ramified exactly at the modulus, where it is |
| 159 | given by the character `χ ϑ` of the residue ring (`IsTameFor`). Apply a linear form `L` to the two |
| 160 | composites around the square, each edge having as datum the indicator function of a block of the |
| 161 | matrix `ξ` or `η`. These functions `A ξ`, `B η` satisfy `SquareLaw` with constant `κ / c`: both |
| 162 | transform by `χ ϑ ∘ det`, and `∑ g B = κ / c * ∑ f A` whenever `f`, `g` are supported on the last |
| 163 | rows of `k⁻¹` and the first columns of `k`, for invertible `k`, with values there in the ratio |
| 164 | `χ ϑ (det k)` (`AreMatched`); `swapFirstTwo` reorders the blocks of indices. Here `‖c‖ ^ 2` is a |
| 165 | constant times `lValueProd`, the product of the `|L(k, (ν * ϑ ^ (n + 1))⁻¹)| ^ 2` off the modulus |
| 166 | for `k` from `1` to the block length `D.t - z.toNat`, times a power of the residue cardinalities at |
| 167 | the modulus. -/ |
| 168 | lemma exists_squareLaw_triangleTransposedLift {P : Parameters} (D : Data P) (z : Bool) {i n : ℕ} |
| 169 | (h_lt : i + (n + 1) < D.m) (hn : n + 1 ∈ D.LiftIndex) |
| 170 | {Φ₀ : D.EdgePoly z n (n + 1)} {Φ₁ : D.EdgePoly z (n + 1) (n + 1 + 1)} |
| 171 | (h_pair₀ : D.IsLeftPair z i n Φ₀) (h_pair₁ : D.IsLeftPair z i (n + 1) Φ₁) |
| 172 | {χ : ∀ ϑ : D.MFoldTwist, MulChar (triangleModulus z ϑ).ResidueRing ℂ} |
| 173 | (h_tame : ∀ ϑ : D.MFoldTwist, IsTameFor (triangleModulus z ϑ) |
| 174 | ((D.quotientPair ⟨n + 1, hn⟩).character * (triangleTwist ϑ z).toAutChar ^ (n + 1))⁻¹ |
| 175 | (fun τ : NumberField.InfinitePlace D.E ↦ (D.quotientPair ⟨n + 1, hn⟩).negWeight τ) (χ ϑ)) : |
| 176 | ∃ (C : ℝ) (κ : ℂ), ∀ ϑ : D.MFoldTwist, ∃ c ≠ (0 : ℂ), |
| 177 | ‖c‖ ^ 2 = C * lValueProd (triangleModulus z ϑ).places |
| 178 | ((D.quotientPair ⟨n + 1, hn⟩).character * (triangleTwist ϑ z).toAutChar ^ (n + 1))⁻¹ |
| 179 | (D.t - z.toNat) ∧ |
| 180 | ∀ (y : D.TriangleForm z i (n + 1)) (L : D.TriangleForm z (i + 1) (n + 1) →ₗ[ℂ] ℂ), |
| 181 | SquareLaw (χ ϑ) |
| 182 | (swapFirstTwo : D.GridIndex z 0 n ⊕ D.GridIndex z 0 (n + 1 + 1) ≃ |
| 183 | D.GridIndex z 0 (n + 1) ⊕ D.GridIndex z 0 (n + 1)) (κ / c) |
| 184 | (fun ξ ↦ L (D.triangleTransposedLift z ϑ i (n + 1) Φ₁ (Pi.single ξ.toCols₂ 1) |
| 185 | (D.triangleDatumLift z ϑ i (n + 1) (Pi.single ξ.toCols₁ 1) y))) |
| 186 | (fun η ↦ L (D.triangleDatumLift z ϑ (i + 1) n (Pi.single η.toRows₂ 1) |
| 187 | (D.triangleTransposedLift z ϑ i n Φ₀ (Pi.single η.toRows₁ 1) y))) := by |
| 188 | have h_upper := D.isEdgeFamily_triangleKernel z h_lt |
| 189 | -- the upper and the lower lift have the same character, of index `n + i + 1` |
| 190 | simp only [triangleDatumLift, n.succ_add] at h_upper ⊢ |
| 191 | refine one_square_identity_of_isEdgeFamily _ _ _ _ h_pair₁ h_upper |
| 192 | (D.isEdgeFamily_triangleKernel z (i := i + 1) (by lia)) h_pair₀ swapFirstTwo ?signs |
| 193 | (D.t - z.toNat) ?rank ?range (fun τ ↦ ?weight) h_tame ?chars |
| 194 | case signs => rw [negCount_sumElim, negCount_gridSigns_add] |
| 195 | case rank => simp +arith [card_gridIndex, add_mul] |
| 196 | case range => |
| 197 | rw [negCount_sumElim, card_sum] |
| 198 | have := D.negCount_gridSigns_add_lt z (i := i) (n := n) |
| 199 | lia |
| 200 | case weight => |
| 201 | rw [card_sum] |
| 202 | have := D.card_gridIndex_le_quotientPair_negWeight z ⟨n + 1, hn⟩ τ |
| 203 | lia |
| 204 | case chars => |
| 205 | intro ϑ p q _ _ h_card |
| 206 | rw [inv_inv] |
| 207 | exact D.gridChar_mul_leftPairChar z ϑ hn (by simpa using h_card) (by simp) |
| 208 | |
| 209 | /-- The first commutation relation, in the square with nodes `(i, n + 1)`, `(i, n + 2)`, |
| 210 | `(i + 1, n)`, `(i + 1, n + 1)` of the triangle `z`, for `i + n + 1 < D.m`, the number of lifts of |
| 211 | the data `D`. The transposed lifts `triangleTransposedLift` go from `(i, j + 1)` to `(i + 1, j)` and |
| 212 | are formed with polynomials at infinity `Φ₀`, `Φ₁` that make edges along the left pairs at `(i, n)`, |
| 213 | `(i, n + 1)` (`IsLeftPair`). For every twist `ϑ` and function `Ψ` on matrices modulo the modulus, |
| 214 | the transposed lift with datum `Ψ` followed by the lift, weighted by the group order |
| 215 | `triangleGLCard z ϑ n`, is a multiple of the lift followed by the transposed lift with datum |
| 216 | `nextDatum Ψ`, weighted by `triangleGLCard z ϑ (n + 2)`. The factor is `conj (β ϑ)⁻¹`, which is `0` |
| 217 | where `β ϑ = 0`. For `z = false`, `‖β ϑ‖²` is the square of `quotientRatio`, a product of ratios of |
| 218 | Hecke values, times a constant and a fixed power of the norm of the modulus Q of `ϑ`. -/ |
| 219 | theorem exists_triangleLift_triangleTransposedLift_comm {P : Parameters} (D : Data P) (z : Bool) |
| 220 | {i n : ℕ} (h_lt : i + (n + 1) < D.m) {Φ₀ : D.EdgePoly z n (n + 1)} |
| 221 | {Φ₁ : D.EdgePoly z (n + 1) (n + 1 + 1)} (h_pair₀ : D.IsLeftPair z i n Φ₀) |
| 222 | (h_pair₁ : D.IsLeftPair z i (n + 1) Φ₁) : |
| 223 | ∃ β : D.MFoldTwist → ℂ, |
| 224 | (∀ (ϑ : D.MFoldTwist) (Ψ : D.EdgeDatum z ϑ n (n + 1)) (y : D.TriangleForm z i (n + 1)) |
| 225 | (x : D.TriangleForm z (i + 1) (n + 1)), |
| 226 | triangleGLCard z ϑ n * ⟪x, D.triangleLift z ϑ (i + 1) n |
| 227 | (D.triangleTransposedLift z ϑ i n Φ₀ Ψ y)⟫ = |
| 228 | conj (β ϑ)⁻¹ * triangleGLCard z ϑ (n + 2) * |
| 229 | ⟪x, D.triangleTransposedLift z ϑ i (n + 1) Φ₁ (nextDatum Ψ) |
| 230 | (D.triangleLift z ϑ i (n + 1) y)⟫) ∧ |
| 231 | (z = false → D.HasAbsUpToNormPower β (D.quotientRatio (i + 1) (i + 1 + n + 1))) := by |
| 232 | -- Expand both finite data in point data, for which the square law holds, and apply |
| 233 | -- `SquareLaw.sum_eq_nextDatum`. |
| 234 | let dist : D.LiftIndex := ⟨n + 1, n.succ_pos, by omega⟩ |
| 235 | let ν : D.CriticalPair := D.quotientPair dist |
| 236 | choose C κ c _hc_ne hc_norm h_law using |
| 237 | D.exists_squareLaw_triangleTransposedLift z h_lt dist.prop h_pair₀ h_pair₁ |
| 238 | fun ϑ : D.MFoldTwist ↦ ν.isTameFor_inv_mul_pow (isRamified_quotientPair dist) |
| 239 | (D.triangleExponent z) dist (triangleTwist ϑ z) |
| 240 | refine ⟨fun ϑ ↦ conj (c ϑ / κ), fun ϑ Ψ y x ↦ ?_, ?_⟩ |
| 241 | · rw [D.triangleTransposedLift_eq_sum z ϑ Φ₀, D.triangleTransposedLift_eq_sum z ϑ Φ₁] |
| 242 | simp only [map_sum, map_smul, inner_sum, inner_smul_right, map_inv₀, conj_conj, inv_div] |
| 243 | simpa [triangleLift_eq_triangleDatumLift] using! (h_law ϑ y (innerₛₗ ℂ x)).sum_eq_nextDatum Ψ |
| 244 | · rintro rfl |
| 245 | have h_ratio : D.quotientRatio (i + 1) (i + 1 + n + 1) = |
| 246 | fun ϑ ↦ D.lRatioProd ν.character ν.z (ϑ.pow dist) := |
| 247 | funext (quotientRatio_add_eq_lRatioProd dist (i + 1)) |
| 248 | rw [h_ratio] |
| 249 | refine ν.hasAbsUpToNormPower_of_norm_sq_eq_lValueProd 1 dist (C := C / ‖κ‖ ^ 2) fun ϑ ↦ ?_ |
| 250 | have h_norm : ‖c ϑ‖ ^ 2 = |
| 251 | C * lValueProd (D.twistModulus ϑ 1).places (ν.character * ϑ.toAutChar ^ dist.val)⁻¹ ν.z := |
| 252 | hc_norm ϑ |
| 253 | rw [RCLike.norm_conj, norm_div, div_pow, h_norm, div_mul_eq_mul_div] |
| 254 | |
| 255 | /-- The square law for point data in the square with reversed pairs of the triangle `z = false` (the |
| 256 | twisted one), for `i + n + 1 < D.m`. The reversed lifts `triangleReversedLift` go from `(i + 1, j)` |
| 257 | to `(i, j + 1)` and are formed with polynomials `Φ₀`, `Φ₁` that make edges along the reversed pairs |
| 258 | at `(i, n)`, `(i, n + 1)` (`IsReversedPair`). Let `ν` be the character of `quotientPair (n + 1)`, of |
| 259 | weight `-negWeight`, and let `(ν * ϑ ^ (n + 1))⁻¹` be tamely ramified exactly at the modulus, where |
| 260 | it is given by the character `χ ϑ` of the residue ring (`IsTameFor`). Apply a linear form `L` to the |
| 261 | two composites from `(i + 1, n)` to `(i, n + 2)`, each edge having as datum the indicator function |
| 262 | of a block of the matrix `ξ` or `η`. These functions `A ξ`, `B η` satisfy `SquareLaw` with constant |
| 263 | `κ / c`: both transform by `χ ϑ ∘ det`, and `∑ g B = κ / c * ∑ f A` for all functions `f`, `g` |
| 264 | matched by `χ ϑ` (`AreMatched`). Here `‖c‖ ^ 2` does not depend on `ϑ`. -/ |
| 265 | lemma exists_squareLaw_triangleReversedLift {P : Parameters} (D : Data P) {i n : ℕ} |
| 266 | (h_lt : i + (n + 1) < D.m) (hn : n + 1 ∈ D.LiftIndex) |
| 267 | {Φ₀ : D.EdgePoly false (n + 1) n} {Φ₁ : D.EdgePoly false (n + 1 + 1) (n + 1)} |
| 268 | (h_rev₀ : D.IsReversedPair false i n Φ₀) (h_rev₁ : D.IsReversedPair false i (n + 1) Φ₁) |
| 269 | {χ : ∀ ϑ : D.MFoldTwist, MulChar (triangleModulus false ϑ).ResidueRing ℂ} |
| 270 | (h_tame : ∀ ϑ : D.MFoldTwist, IsTameFor (triangleModulus false ϑ) |
| 271 | ((D.quotientPair ⟨n + 1, hn⟩).character * ϑ.toAutChar ^ (n + 1))⁻¹ |
| 272 | (fun τ : NumberField.InfinitePlace D.E ↦ (D.quotientPair ⟨n + 1, hn⟩).negWeight τ) (χ ϑ)) : |
| 273 | ∃ (C : ℝ) (κ : ℂ), ∀ ϑ : D.MFoldTwist, ∃ c ≠ (0 : ℂ), ‖c‖ ^ 2 = C ∧ |
| 274 | ∀ (y : D.TriangleForm false (i + 1) n) (L : D.TriangleForm false i (n + 1 + 1) →ₗ[ℂ] ℂ), |
| 275 | SquareLaw (χ ϑ) |
| 276 | (swapFirstTwo : D.GridIndex false 0 (n + 1) ⊕ D.GridIndex false 0 (n + 1) ≃ |
| 277 | D.GridIndex false 0 n ⊕ D.GridIndex false 0 (n + 1 + 1)) (κ / c) |
| 278 | (fun ξ ↦ L (D.triangleReversedLift false ϑ i (n + 1) Φ₁ (Pi.single ξ.toCols₂ 1) |
| 279 | (D.triangleDatumLift false ϑ (i + 1) n (Pi.single ξ.toCols₁ 1) y))) |
| 280 | (fun η ↦ L (D.triangleDatumLift false ϑ i (n + 1) (Pi.single η.toRows₂ 1) |
| 281 | (D.triangleReversedLift false ϑ i n Φ₀ (Pi.single η.toRows₁ 1) y))) := by |
| 282 | have h_ranks : card (D.GridIndex false 0 n ⊕ D.GridIndex false 0 (n + 1 + 1)) = |
| 283 | 2 * card (D.GridIndex false 0 (n + 1)) := by |
| 284 | rw [card_sum, card_gridIndex_add_card_gridIndex] |
| 285 | have h_upper := D.isEdgeFamily_triangleKernel false h_lt |
| 286 | -- the upper and the lower lift have the same character, of index `n + i + 1` |
| 287 | simp only [triangleDatumLift, n.succ_add] at h_upper ⊢ |
| 288 | have h_square := one_square_identity_of_isEdgeFamily (gridSpace ..) (gridSpace ..) (gridSpace ..) |
| 289 | (gridSpace ..) h_rev₁ |
| 290 | (D.isEdgeFamily_triangleKernel false (i := i + 1) (by lia)) h_upper h_rev₀ swapFirstTwo ?signs 0 |
| 291 | rfl |
| 292 | ?range (fun τ ↦ ?weight) h_tame ?chars |
| 293 | case signs => rw [negCount_sumElim, add_comm, ← negCount_gridSigns_add, add_comm] |
| 294 | case range => |
| 295 | rw [h_ranks, negCount_sumElim, add_comm (negCount _), ← negCount_gridSigns_add] |
| 296 | linarith only [D.negCount_gridSigns_add_lt false (i := i) (n := n)] |
| 297 | case weight => grind [D.card_gridIndex_le_quotientPair_negWeight false ⟨n + 1, hn⟩ τ] |
| 298 | case chars => |
| 299 | intro ϑ p q _ _ h_card |
| 300 | rw [inv_inv, ← add_assoc] |
| 301 | exact D.gridChar_mul_leftPairChar false ϑ hn (by simpa using h_card) (by aesop) |
| 302 | -- the two middle spaces have equal rank, so the product of `L`-values is empty |
| 303 | have h_empty (S : Set (FinPlace D.E)) (ν : AutChar D.E) : lValueProd S ν 0 = 1 := by |
| 304 | simp [lValueProd] |
| 305 | simpa only [h_empty, mul_one] using! h_square |
| 306 | |
| 307 | /-- If `‖c ϑ‖ ^ 2` is the inverse of a fixed power of the number of elements of the residue ring of |
| 308 | `triangleModulus false ϑ`, then `c` has modulus `1` in the sense of `HasAbsUpToNormPower`. -/ |
| 309 | lemma HasAbsUpToNormPower.of_norm_sq_mul_card_pow_eq_one {P : Parameters} {D : Data P} |
| 310 | {c : D.MFoldTwist → ℂ} {k : ℕ} |
| 311 | (hc : ∀ ϑ : D.MFoldTwist, ‖c ϑ‖ ^ 2 * card (triangleModulus false ϑ).ResidueRing ^ k = 1) : |
| 312 | D.HasAbsUpToNormPower c 1 := by |
| 313 | refine .of_norm_sq_eq_mul_card_zpow 1 1 (-k) fun ϑ ↦ ?_ |
| 314 | rw [one_mul, _root_.zpow_neg, _root_.zpow_natCast] |
| 315 | exact eq_inv_of_mul_eq_one_left (hc ϑ) |
| 316 | |
| 317 | /-- The commutation relation in the square with reversed pairs of the triangle `z = false` (the |
| 318 | twisted one), for `i + n + 1 < D.m`, the number of lifts of the data `D`. The reversed lifts |
| 319 | `triangleReversedLift` go from `(i + 1, j)` to `(i, j + 1)`. They are formed with polynomials `Φ₀`, |
| 320 | `Φ₁` that make edges along the reversed pairs at `(i, n)`, `(i, n + 1)` (`IsReversedPair`), and with |
| 321 | `fourierDatum`, the Fourier transform of the complex conjugate, of a datum `Ψ` and of its extension |
| 322 | `nextDatum Ψ` to the next column. The reversed lift followed by the lift is `γ ϑ` times the lift |
| 323 | followed by the reversed lift, where `‖γ ϑ‖²` is a constant times a fixed power of the norm of the |
| 324 | modulus Q of the twist `ϑ` (`HasAbsUpToNormPower γ 1`). -/ |
| 325 | theorem exists_triangleLift_triangleReversedLift_comm {P : Parameters} (D : Data P) {i n : ℕ} |
| 326 | (h_lt : i + (n + 1) < D.m) {Φ₀ : D.EdgePoly false (n + 1) n} |
| 327 | {Φ₁ : D.EdgePoly false (n + 1 + 1) (n + 1)} (h_rev₀ : D.IsReversedPair false i n Φ₀) |
| 328 | (h_rev₁ : D.IsReversedPair false i (n + 1) Φ₁) : |
| 329 | ∃ γ : D.MFoldTwist → ℂ, D.HasAbsUpToNormPower γ 1 ∧ |
| 330 | ∀ (ϑ : D.MFoldTwist) (Ψ : D.EdgeDatum false ϑ n (n + 1)) (y : D.TriangleForm false (i + 1) n) |
| 331 | (x : D.TriangleForm false i (n + 1 + 1)), |
| 332 | ⟪x, D.triangleLift false ϑ i (n + 1) |
| 333 | (D.triangleReversedLift false ϑ i n Φ₀ (D.fourierDatum false ϑ Ψ) y)⟫ = |
| 334 | γ ϑ * ⟪x, D.triangleReversedLift false ϑ i (n + 1) Φ₁ |
| 335 | (D.fourierDatum false ϑ (nextDatum Ψ)) |
| 336 | (D.triangleLift false ϑ (i + 1) n y)⟫ := by |
| 337 | -- The modulus is squarefree, so the tame character `χ ϑ` is primitive. Expand both Fourier |
| 338 | -- transforms in point data and apply `SquareLaw.exists_sum_matrixFourier_eq_sum_nextDatum`. |
| 339 | let dist : D.LiftIndex := ⟨n + 1, n.succ_pos, by omega⟩ |
| 340 | let ν : D.CriticalPair := D.quotientPair dist |
| 341 | let χ (ϑ : D.MFoldTwist) : MulChar (triangleModulus false ϑ).ResidueRing ℂ := |
| 342 | ((triangleModulus false ϑ).charOfTamePart (ν.tamePart * ϑ.tamePart ^ (n + 1)))⁻¹ |
| 343 | have h_tame (ϑ : D.MFoldTwist) : IsTameFor (triangleModulus false ϑ) |
| 344 | (ν.character * ϑ.toAutChar ^ (n + 1))⁻¹ (fun τ ↦ ν.negWeight τ) (χ ϑ) := |
| 345 | ν.isTameFor_inv_mul_pow (isRamified_quotientPair dist) 1 dist ϑ |
| 346 | choose C κ c _hc_ne hc_norm h_law using |
| 347 | D.exists_squareLaw_triangleReversedLift h_lt dist.prop h_rev₀ h_rev₁ h_tame |
| 348 | choose γ hγ h_fourier using fun ϑ : D.MFoldTwist ↦ |
| 349 | SquareLaw.exists_sum_matrixFourier_eq_sum_nextDatum (D.Y n) (Fin D.t) |
| 350 | (isPrimitive_primAddChar _) |
| 351 | (isPrimitiveMulChar_of_isTameFor (h_tame ϑ)) |
| 352 | refine ⟨γ * fun ϑ ↦ κ / c ϑ, ?_, fun ϑ Ψ y x ↦ ?_⟩ |
| 353 | · have h_gauss : D.HasAbsUpToNormPower γ 1 := .of_norm_sq_mul_card_pow_eq_one hγ |
| 354 | have h_exchange : D.HasAbsUpToNormPower (fun ϑ ↦ κ / c ϑ) 1 := |
| 355 | .of_norm_sq_eq_mul_card_zpow 1 (‖κ‖ ^ 2 / C) 0 (by simp [hc_norm, div_pow]) |
| 356 | simpa using h_gauss.mul h_exchange |
| 357 | · rw [D.triangleReversedLift_eq_sum false ϑ Φ₀, D.triangleReversedLift_eq_sum false ϑ Φ₁] |
| 358 | simpa [inner_sum, inner_smul_right, triangleLift_eq_triangleDatumLift] using! |
| 359 | h_fourier ϑ Ψ (h_law ϑ y (innerₛₗ ℂ x)) |
| 360 | |
| 361 | /-! ### Adjoints of descents and the triangle conditions -/ |
| 362 | |
| 363 | /-- The scalar matrix `Modulus.flipScalar` of the modulus of the triangle, a central element of the |
| 364 | finite adelic unitary group of a node in column `n`. Reversing a theta kernel translates by it. -/ |
| 365 | abbrev reversalScalar {P : Parameters} (D : Data P) (z : Bool) (ϑ : D.MFoldTwist) (n : ℕ) : |
| 366 | Gf D.E (D.GridIndex z 0 n) := |
| 367 | (triangleModulus z ϑ).flipScalar (D.GridIndex z 0 n) |
| 368 | |
| 369 | /-- Reversal of the theta kernel of a left pair of the triangle `z = false` (the twisted one), |
| 370 | between the hermitian spaces `V`, `W` at the nodes `(i + 1, n)`, `(i, n + 1)`, with the characters |
| 371 | `χ ϑ n`, `χ ϑ (n + 1)` given by `leftPairChar`. The kernel `modKernel` depends on a datum `Ψ`, a |
| 372 | function on matrices modulo the modulus (`EdgeDatum`), and a polynomial `Φ` at infinity |
| 373 | (`EdgePoly`). Its conjugate is `τ ϑ ≠ 0` times the kernel from `W` to `V` with datum |
| 374 | `fourierDatum Ψ`, the Fourier transform of the conjugate of `Ψ`, and with the signed transpose |
| 375 | `flipPoly` of the conjugate of `Φ`, translated by the scalar matrix `reversalScalar`. Here `‖τ ϑ‖²` |
| 376 | is a constant times a fixed power of the norm of the modulus Q of `ϑ`. -/ |
| 377 | lemma exists_conj_modKernel_leftPair_eq {P : Parameters} (D : Data P) (i n : ℕ) : |
| 378 | let V : Space D.E (D.GridIndex false 0 n) (D.gridSigns false (i + 1) 0 n) := |
| 379 | D.gridSpace (i + 1) false 0 n |
| 380 | let W : Space D.E (D.GridIndex false 0 (n + 1)) (D.gridSigns false i 0 (n + 1)) := |
| 381 | D.gridSpace i false 0 (n + 1) |
| 382 | let χ (ϑ : D.MFoldTwist) (j : ℕ) : AutChar D.E := |
| 383 | D.leftPairChar false ϑ i (D.GridIndex false 0 j) |
| 384 | ∃ τ : D.MFoldTwist → ℂ, D.HasAbsUpToNormPower τ 1 ∧ (∀ ϑ : D.MFoldTwist, τ ϑ ≠ 0) ∧ |
| 385 | ∀ (ϑ : D.MFoldTwist) (Ψ : D.EdgeDatum false ϑ n (n + 1)) (Φ : D.EdgePoly false n (n + 1)) |
| 386 | (g : New.G D.E (D.gridSigns false (i + 1) 0 n)) |
| 387 | (h : New.G D.E (D.gridSigns false i 0 (n + 1))), |
| 388 | conj (modKernel V W (χ ϑ n) (χ ϑ (n + 1)) (triangleModulus false ϑ) Ψ Φ g h) = |
| 389 | τ ϑ * modKernel W V (χ ϑ (n + 1)) (χ ϑ n) (triangleModulus false ϑ) |
| 390 | (D.fourierDatum false ϑ Ψ) (flipPoly (D.gridSigns false (i + 1) 0 n) |
| 391 | (D.gridSigns false i 0 (n + 1)) (Φ.map conj)) h |
| 392 | (g * (1, D.reversalScalar false ϑ n)) := by |
| 393 | intro V W χ |
| 394 | choose τ h_norm h_swap using fun ϑ : D.MFoldTwist ↦ |
| 395 | exists_conj_modKernel_eq_swap (triangleModulus false ϑ) V W (χ ϑ n) (χ ϑ (n + 1)) |
| 396 | refine ⟨τ, .of_norm_sq_mul_card_pow_eq_one h_norm, fun ϑ ↦ ?_, h_swap⟩ |
| 397 | simpa using left_ne_zero_of_mul_eq_one (h_norm ϑ) |
| 398 | |
| 399 | /-- In the triangle `z = false` (the twisted one), let `Φ` make an edge along the left pair from |
| 400 | `(i + 1, n)` to `(i, n + 1)` (`IsLeftPair`) and `Φ'` in the other direction (`IsReversedPair`). The |
| 401 | adjoint of `triangleTransposedLift` with `Φ` and datum `Ψ`, from forms at `(i, n + 1)` to forms at |
| 402 | `(i + 1, n)`, is `c ϑ` times the following map: right translation (`triangleRep`) by the inverse of |
| 403 | the scalar matrix `reversalScalar`, then `triangleReversedLift` with `Φ'` and `fourierDatum Ψ`, the |
| 404 | Fourier transform of the conjugate of `Ψ`. Here `‖c ϑ‖²` is a constant times a fixed power of the |
| 405 | norm of the modulus Q of the twist `ϑ`. -/ |
| 406 | lemma exists_inner_triangleTransposedLift_eq {P : Parameters} (D : Data P) {i n : ℕ} |
| 407 | {Φ : D.EdgePoly false n (n + 1)} {Φ' : D.EdgePoly false (n + 1) n} |
| 408 | (hΦ : D.IsLeftPair false i n Φ) (hΦ' : D.IsReversedPair false i n Φ') : |
| 409 | ∃ c : D.MFoldTwist → ℂ, D.HasAbsUpToNormPower c 1 ∧ |
| 410 | ∀ (ϑ : D.MFoldTwist) (Ψ : D.EdgeDatum false ϑ n (n + 1)) (x : D.TriangleForm false i (n + 1)) |
| 411 | (y : D.TriangleForm false (i + 1) n), |
| 412 | ⟪D.triangleTransposedLift false ϑ i n Φ Ψ x, y⟫ = |
| 413 | c ϑ * ⟪x, D.triangleReversedLift false ϑ i n Φ' (D.fourierDatum false ϑ Ψ) |
| 414 | (D.triangleRep false (i + 1) n (D.reversalScalar false ϑ n)⁻¹ y)⟫ := by |
| 415 | -- Reverse the kernel of the descent, and trade the transposed polynomial for `Φ'` and `κ`. |
| 416 | obtain ⟨turn, h_turn_modulus, -, h_turn⟩ := D.exists_conj_modKernel_leftPair_eq i n |
| 417 | let Q : D.EdgePoly false (n + 1) n := |
| 418 | flipPoly (D.gridSigns false (i + 1) 0 n) (D.gridSigns false i 0 (n + 1)) (Φ.map conj) |
| 419 | obtain ⟨κ, hκ⟩ := hΦ'.petersson_lift_eq_mul_inner_modTransposedLift Q |
| 420 | refine ⟨turn * fun _ ↦ conj κ, by simpa using h_turn_modulus.mul (.const (conj κ)), |
| 421 | fun ϑ Ψ x y ↦ ?_⟩ |
| 422 | let u : Gf D.E (D.GridIndex false 0 n) := D.reversalScalar false ϑ n |
| 423 | let y' : D.TriangleForm false (i + 1) n := D.triangleRep false (i + 1) n u⁻¹ y |
| 424 | -- `L` is the lift of the conjugate of `x` along the reversed pair |
| 425 | let L : New.G D.E (D.gridSigns false (i + 1) 0 n) → ℂ := Space.lift |
| 426 | (pairThetaKer (D.gridSpace i false 0 (n + 1)) (D.gridSpace (i + 1) false 0 n) |
| 427 | (D.leftPairChar false ϑ i (D.GridIndex false 0 (n + 1))) |
| 428 | (D.leftPairChar false ϑ i (D.GridIndex false 0 n))) |
| 429 | (modDatum _ _ (triangleModulus false ϑ) (D.fourierDatum false ϑ Ψ) (Fock.polyVector _ Q)) |
| 430 | (star x.val) |
| 431 | have h_conj (g : New.G D.E (D.gridSigns false (i + 1) 0 n)) : |
| 432 | conj ((D.triangleTransposedLift false ϑ i n Φ Ψ x).val g) = turn ϑ * L (g * (1, u)) := by |
| 433 | refine (congrArg conj (hΦ.modTransposedLift_apply _ _ ϑ Ψ x g)).trans ?_ |
| 434 | simp [L, Q, u, lift_modDatum_apply, conj_integral_mul (h_turn ϑ Ψ Φ g)] |
| 435 | have h_trade : (D.gridSpace (i + 1) false 0 n).petersson y'.val (star L) = |
| 436 | κ * ⟪D.triangleReversedLift false ϑ i n Φ' (D.fourierDatum false ϑ Ψ) y', x⟫ := |
| 437 | hκ ϑ _ _ (triangleModulus false ϑ) (D.fourierDatum false ϑ Ψ) x y' |
| 438 | calc ⟪D.triangleTransposedLift false ϑ i n Φ Ψ x, y⟫ |
| 439 | = ⟪formRep _ _ u⁻¹ (D.triangleTransposedLift false ϑ i n Φ Ψ x), y'⟫ := |
| 440 | (inner_formRep u⁻¹ _ y).symm |
| 441 | _ = turn ϑ * (D.gridSpace (i + 1) false 0 n).petersson (star L) y'.val := by |
| 442 | simp [inner_eq_petersson, petersson, formRep_apply, h_conj, mul_assoc, integral_const_mul, |
| 443 | Prod.mk_one_one] |
| 444 | _ = turn ϑ * conj κ * ⟪x, D.triangleReversedLift false ϑ i n Φ' (D.fourierDatum false ϑ Ψ) |
| 445 | y'⟫ := by |
| 446 | rw [← conj_petersson, h_trade, map_mul, inner_conj_symm, mul_assoc] |
| 447 | |
| 448 | /-- In the triangle `z = false` (the twisted one), let `Φ` make an edge along the left pair from |
| 449 | `(i + 1, n)` to `(i, n + 1)` (`IsLeftPair`) and `Φ'` in the other direction (`IsReversedPair`). |
| 450 | Right translation (`triangleRep`) by the inverse of the scalar matrix `reversalScalar`, followed by |
| 451 | `triangleReversedLift` with `Φ'` and `fourierDatum Ψ`, the Fourier transform of the conjugate of |
| 452 | `Ψ`, is `c ϑ` times the adjoint of `triangleTransposedLift` with `Φ` and `Ψ`. Here `‖c ϑ‖²` is a |
| 453 | constant times a fixed power of the norm of the modulus Q of the twist `ϑ`. -/ |
| 454 | lemma exists_inner_triangleReversedLift_eq {P : Parameters} (D : Data P) {i n : ℕ} |
| 455 | {Φ : D.EdgePoly false n (n + 1)} {Φ' : D.EdgePoly false (n + 1) n} |
| 456 | (hΦ : D.IsLeftPair false i n Φ) (hΦ' : D.IsReversedPair false i n Φ') : |
| 457 | ∃ c : D.MFoldTwist → ℂ, D.HasAbsUpToNormPower c 1 ∧ |
| 458 | ∀ (ϑ : D.MFoldTwist) (Ψ : D.EdgeDatum false ϑ n (n + 1)) (x : D.TriangleForm false i (n + 1)) |
| 459 | (y : D.TriangleForm false (i + 1) n), |
| 460 | ⟪x, D.triangleReversedLift false ϑ i n Φ' (D.fourierDatum false ϑ Ψ) |
| 461 | (D.triangleRep false (i + 1) n (D.reversalScalar false ϑ n)⁻¹ y)⟫ = |
| 462 | c ϑ * ⟪D.triangleTransposedLift false ϑ i n Φ Ψ x, y⟫ := by |
| 463 | -- Write `Φ'` as the transpose of the conjugate of some `Q`, reverse the kernel, and trade `Q` for |
| 464 | -- `Φ`. |
| 465 | obtain ⟨Q, hQ⟩ := |
| 466 | exists_flipPoly_map_conj_eq (D.gridSigns false (i + 1) 0 n) (D.gridSigns false i 0 (n + 1)) Φ' |
| 467 | obtain ⟨turn, h_turn_modulus, h_turn_ne, h_turn⟩ := D.exists_conj_modKernel_leftPair_eq i n |
| 468 | obtain ⟨κ, hκ⟩ := hΦ.petersson_lift_eq_mul_inner_modTransposedLift Q |
| 469 | refine ⟨turn⁻¹ * fun _ ↦ κ, by simpa using h_turn_modulus.inv.mul (.const κ), |
| 470 | fun ϑ Ψ x y ↦ ?_⟩ |
| 471 | let A : D.TriangleForm false i (n + 1) := |
| 472 | D.triangleReversedLift false ϑ i n Φ' (D.fourierDatum false ϑ Ψ) |
| 473 | (D.triangleRep false (i + 1) n (D.reversalScalar false ϑ n)⁻¹ y) |
| 474 | -- `L` is the lift of the conjugate of `y` along the left pair, with the polynomial `Q` |
| 475 | let L : New.G D.E (D.gridSigns false i 0 (n + 1)) → ℂ := Space.lift |
| 476 | (pairThetaKer (D.gridSpace (i + 1) false 0 n) (D.gridSpace i false 0 (n + 1)) |
| 477 | (D.leftPairChar false ϑ i (D.GridIndex false 0 n)) |
| 478 | (D.leftPairChar false ϑ i (D.GridIndex false 0 (n + 1)))) |
| 479 | (modDatum _ _ (triangleModulus false ϑ) Ψ (Fock.polyVector _ Q)) (star y.val) |
| 480 | have h_conj (h : New.G D.E (D.gridSigns false i 0 (n + 1))) : |
| 481 | conj (L h) = turn ϑ * A.val h := by |
| 482 | -- write both sides as integrals, conjugate under the integral and reverse the kernel |
| 483 | refine .trans ?_ (congrArg _ (hΦ'.modTransposedLift_formRep_inv_apply _ _ ϑ _ _ y h).symm) |
| 484 | simp [L, lift_modDatum_apply, conj_integral_mul (fun g ↦ h_turn ϑ Ψ Q g h), hQ] |
| 485 | rw [Pi.mul_apply, Pi.inv_apply, mul_assoc, eq_inv_mul_iff_mul_eq₀ (h_turn_ne ϑ)] |
| 486 | calc turn ϑ * ⟪x, A⟫ = (D.gridSpace i false 0 (n + 1)).petersson x.val (star L) := by |
| 487 | simp [inner_eq_petersson, petersson, h_conj, mul_left_comm _ (turn ϑ), integral_const_mul] |
| 488 | _ = κ * ⟪D.triangleTransposedLift false ϑ i n Φ Ψ x, y⟫ := |
| 489 | hκ ϑ _ _ (triangleModulus false ϑ) Ψ y x |
| 490 | |
| 491 | /-- Let `i + n < D.m`, the number of lifts of the data `D`. The theta lift `triangleLift` for the |
| 492 | twist `ϑ`, from forms at the node `(i, n)` of the triangle `z` to forms at `(i, n + 1)`, commutes up |
| 493 | to a scalar of absolute value `1` with the right translations (`triangleRep`) by the inverses of the |
| 494 | scalar matrices `reversalScalar` in the finite adelic unitary groups of the two nodes. -/ |
| 495 | lemma exists_triangleLift_reversalScalar_eq {P : Parameters} (D : Data P) (z : Bool) |
| 496 | (ϑ : D.MFoldTwist) {i n : ℕ} (h_lt : i + n < D.m) : |
| 497 | ∃ η : ℂ, ‖η‖ = 1 ∧ ∀ y : D.TriangleForm z i n, |
| 498 | D.triangleLift z ϑ i n (D.triangleRep z i n (D.reversalScalar z ϑ n)⁻¹ y) = |
| 499 | η • D.triangleRep z i (n + 1) (D.reversalScalar z ϑ (n + 1))⁻¹ |
| 500 | (D.triangleLift z ϑ i n y) := by |
| 501 | -- The central pair acts on the datum of the lift through the character `pairChar`, so the lift |
| 502 | -- intertwines the two translations up to a value of that character. |
| 503 | have h_arrow := (D.isEdgeFamily_triangleKernel z h_lt).isArrow_lift (D.gridSpace i z 0 n) |
| 504 | (D.gridSpace i z 0 (n + 1)) (pointDatum (triangleModulus z ϑ).ResidueRing) ϑ |
| 505 | obtain ⟨η, hη, h_law⟩ : ∃ η : ℂ, ‖η‖ = 1 ∧ ∀ f : D.TriangleForm z i n, |
| 506 | D.triangleRep z i (n + 1) (D.reversalScalar z ϑ (n + 1)) (D.triangleLift z ϑ i n f) = |
| 507 | η • D.triangleLift z ϑ i n (D.triangleRep z i n (D.reversalScalar z ϑ n) f) := |
| 508 | ⟨pairChar _ _ _, Circle.norm_coe _, h_arrow.formRep_formLift_of_eq_smul |
| 509 | (pairWeil_flipScalar (𝔪 := triangleModulus z ϑ) ..)⟩ |
| 510 | refine ⟨η, hη, fun y ↦ ?_⟩ |
| 511 | apply ((D.triangleRep z i (n + 1)).apply_bijective (D.reversalScalar z ϑ (n + 1))).injective |
| 512 | rw [h_law, map_smul, Representation.self_inv_apply, Representation.self_inv_apply] |
| 513 | |
| 514 | /-- For `i + n < D.m`, every form `x` at the node `(i, n + 1)` has an image `x'` at the node |
| 515 | `(i, n)` under the adjoint of the lift `triangleLift`. -/ |
| 516 | lemma exists_inner_triangleLift_eq {P : Parameters} (D : Data P) (z : Bool) (ϑ : D.MFoldTwist) |
| 517 | {i n : ℕ} (h_lt : i + n < D.m) (x : D.TriangleForm z i (n + 1)) : |
| 518 | ∃ x' : D.TriangleForm z i n, ∀ y : D.TriangleForm z i n, |
| 519 | ⟪D.triangleLift z ϑ i n y, x⟫ = ⟪y, x'⟫ := by |
| 520 | have h_edge := D.isEdgeFamily_triangleKernel z h_lt |
| 521 | obtain ⟨h_source, h_target, -⟩ := D.isEdgeFamily_triangleKernel z h_lt |
| 522 | exact ⟨_, (h_edge.isArrow_lift _ _ _ ϑ).inner_formLift_adjoint (h_edge.isArrow_swap _ _ _ ϑ) |
| 523 | (h_target _).2 (h_source true).2 x⟩ |
| 524 | |
| 525 | /-- The second commutation relation in adjoint form, in the triangle `z = false` (the twisted one), |
| 526 | for `i + n + 1 < D.m`, the number of lifts of the data `D`. The transposed lifts |
| 527 | `triangleTransposedLift` go from `(i, j + 1)` to `(i + 1, j)` and are formed with polynomials `Φ₀`, |
| 528 | `Φ₁` that make edges along the left pairs at `(i, n)`, `(i, n + 1)` (`IsLeftPair`). Let `x'` be the |
| 529 | image of `x` under the adjoint of `triangleLift` from `(i, n + 1)` to `(i, n + 2)`. Take the |
| 530 | transposed lift of `x` with `nextDatum Ψ`, the extension of the datum `Ψ` to the next column, and |
| 531 | apply the adjoint of `triangleLift` from `(i + 1, n)` to `(i + 1, n + 1)`. Up to a factor |
| 532 | `conj (κ ϑ)` this is the transposed lift of `x'` with `Ψ`, where `‖κ ϑ‖²` is a constant times a |
| 533 | fixed power of the norm of the modulus Q of the twist `ϑ` (`HasAbsUpToNormPower κ 1`). -/ |
| 534 | theorem exists_triangleTransposedLift_adjoint_comm {P : Parameters} (D : Data P) {i n : ℕ} |
| 535 | (h_lt : i + (n + 1) < D.m) {Φ₀ : D.EdgePoly false n (n + 1)} |
| 536 | {Φ₁ : D.EdgePoly false (n + 1) (n + 1 + 1)} (h_pair₀ : D.IsLeftPair false i n Φ₀) |
| 537 | (h_pair₁ : D.IsLeftPair false i (n + 1) Φ₁) : |
| 538 | ∃ κ : D.MFoldTwist → ℂ, D.HasAbsUpToNormPower κ 1 ∧ |
| 539 | ∀ (ϑ : D.MFoldTwist) (Ψ : D.EdgeDatum false ϑ n (n + 1)) |
| 540 | (x : D.TriangleForm false i (n + 1 + 1)) (x' : D.TriangleForm false i (n + 1)), |
| 541 | (∀ y : D.TriangleForm false i (n + 1), ⟪D.triangleLift false ϑ i (n + 1) y, x⟫ = ⟪y, x'⟫) → |
| 542 | ∀ y : D.TriangleForm false (i + 1) n, ⟪D.triangleTransposedLift false ϑ i n Φ₀ Ψ x', y⟫ = |
| 543 | κ ϑ * ⟪D.triangleTransposedLift false ϑ i (n + 1) Φ₁ (nextDatum Ψ) x, |
| 544 | D.triangleLift false ϑ (i + 1) n y⟫ := by |
| 545 | -- Turn the first descent into a reversed lift, commute it with the lift, and turn it back. |
| 546 | obtain ⟨Φ₀', h_rev₀⟩ := D.exists_isReversedPair (i := i) (n := n) false h_lt.le |
| 547 | obtain ⟨Φ₁', h_rev₁⟩ := D.exists_isReversedPair false h_lt |
| 548 | obtain ⟨c₀, hc₀, h_descent⟩ := D.exists_inner_triangleTransposedLift_eq h_pair₀ h_rev₀ |
| 549 | obtain ⟨c₁, hc₁, h_ascent⟩ := D.exists_inner_triangleReversedLift_eq h_pair₁ h_rev₁ |
| 550 | obtain ⟨γ, hγ, h_comm⟩ := D.exists_triangleLift_triangleReversedLift_comm h_lt h_rev₀ h_rev₁ |
| 551 | choose η hη h_shift using fun ϑ : D.MFoldTwist ↦ |
| 552 | D.exists_triangleLift_reversalScalar_eq (i := i + 1) (n := n) false ϑ |
| 553 | (lt_of_eq_of_lt (Nat.add_right_comm i 1 n) h_lt) |
| 554 | have hη' : D.HasAbsUpToNormPower η 1 := ⟨1, 0, by simp [hη]⟩ |
| 555 | refine ⟨c₀ * γ * η * c₁, by simpa using ((hc₀.mul hγ).mul hη').mul hc₁, |
| 556 | fun ϑ Ψ x x' h_adj y ↦ ?_⟩ |
| 557 | let A₀ : D.TriangleForm false (i + 1) n →ₗ[ℂ] D.TriangleForm false i (n + 1) := |
| 558 | D.triangleReversedLift false ϑ i n Φ₀' (D.fourierDatum false ϑ Ψ) |
| 559 | let A₁ : D.TriangleForm false (i + 1) (n + 1) →ₗ[ℂ] D.TriangleForm false i (n + 1 + 1) := |
| 560 | D.triangleReversedLift false ϑ i (n + 1) Φ₁' (D.fourierDatum false ϑ (nextDatum Ψ)) |
| 561 | let y' : D.TriangleForm false (i + 1) n := |
| 562 | D.triangleRep false (i + 1) n (D.reversalScalar false ϑ n)⁻¹ y |
| 563 | calc ⟪D.triangleTransposedLift false ϑ i n Φ₀ Ψ x', y⟫ = c₀ ϑ * ⟪x', A₀ y'⟫ := h_descent ϑ Ψ x' y |
| 564 | _ = c₀ ϑ * ⟪x, D.triangleLift false ϑ i (n + 1) (A₀ y')⟫ := by |
| 565 | rw [← inner_conj_symm x', ← h_adj, inner_conj_symm] |
| 566 | _ = c₀ ϑ * (γ ϑ * ⟪x, A₁ (D.triangleLift false ϑ (i + 1) n y')⟫) := by rw [h_comm] |
| 567 | _ = c₀ ϑ * (γ ϑ * (η ϑ * (c₁ ϑ * ⟪D.triangleTransposedLift false ϑ i (n + 1) Φ₁ (nextDatum Ψ) x, |
| 568 | D.triangleLift false ϑ (i + 1) n y⟫))) := by |
| 569 | rw [h_shift, map_smul, inner_smul_right, h_ascent] |
| 570 | _ = _ := by simp only [Pi.mul_apply, mul_assoc] |
| 571 | |
| 572 | /-- Let `triangleTransposedLift z ϑ i 0 Φ Ψ` be adjoint to `triangleLift z ϑ i 0` up to |
| 573 | `formNegEquiv`. If the copy of `v` in row `i + 1` is the transposed lift of the lift of the copy of |
| 574 | the base form `y` in row `i`, then `⟪v, x⟫ = ⟪a y, a x⟫` for `a = triangleFirstLift`, so `v` is a |
| 575 | base form and `v = 0` only if `y = 0`. -/ |
| 576 | private lemma mem_triangleBase_of_eq_triangleTransposedLift {P : Parameters} (D : Data P) |
| 577 | {z : Bool} {i : ℕ} (h : i < D.m) {ϑ : D.MFoldTwist} {Φ : D.EdgePoly z 0 (0 + 1)} |
| 578 | {Ψ : D.EdgeDatum z ϑ 0 (0 + 1)} |
| 579 | (h_adj : ∀ (y : D.TriangleForm z i 0) (x : D.TriangleForm z i 1), |
| 580 | ⟪x, D.triangleLift z ϑ i 0 y⟫ = |
| 581 | ⟪D.triangleTransposedLift z ϑ i 0 Φ Ψ x, formNegEquiv _ _ y⟫) |
| 582 | {y : D.triangleBase z} {v : D.TriangleForm z 0 0} |
| 583 | (hv : D.triangleNegEquiv z (i + 1) v = |
| 584 | D.triangleTransposedLift z ϑ i 0 Φ Ψ (D.triangleLift z ϑ i 0 (D.triangleEmbedding z i y))) : |
| 585 | v ∈ D.triangleBase z ∧ (v = 0 → y = 0) := by |
| 586 | have h_pair (x : D.TriangleForm z 0 0) : |
| 587 | ⟪v, x⟫ = ⟪D.triangleFirstLift z ϑ i y, D.triangleFirstLift z ϑ i x⟫ := by |
| 588 | rw [← (D.triangleNegEquiv z (i + 1)).inner_map_map, hv] |
| 589 | exact (h_adj (D.triangleNegEquiv z i x) _).symm |
| 590 | obtain ⟨C, h_lift⟩ := D.exists_hasSum_inner_triangleFirstLift z i h |
| 591 | obtain ⟨h_level, -⟩ := h_lift ϑ y |
| 592 | exact h_level v h_pair |
| 593 | |
| 594 | /-- There are linear maps `d`, the descents, from `(i, n + 1)` to `(i + 1, n)` with the following |
| 595 | properties. With the theta lifts `triangleLift` from `(i, n)` to `(i, n + 1)`, the group orders |
| 596 | `triangleGLCard` as weights and the embeddings `triangleEmbedding` at `(i, 0)` of the forms at |
| 597 | `(0, 0)` fixed by the base level, they form a `TauCeti.IsArrowTriangle` of size `D.m`: each square |
| 598 | commutes up to a constant, on the copies of the base forms the first lift is adjoint to the first |
| 599 | descent, and their composite maps the copy in row `i` injectively to that in row `i + 1`. For |
| 600 | `z = false` the squares satisfy `HasSquareModuli`: their constants have the moduli `quotientRatio` |
| 601 | in the sense of `HasAbsUpToNormPower`, and the descent of the adjoint image of a form under the |
| 602 | upper lift is a multiple of the adjoint image of its descent under the lower lift, by a constant of |
| 603 | modulus `1` in the sense of `HasAbsUpToNormPower`. -/ |
| 604 | theorem exists_isTriangle {P : Parameters} (D : Data P) (z : Bool) : |
| 605 | ∃ d : D.MFoldTwist → ∀ i n : ℕ, D.TriangleForm z i (n + 1) →ₗ[ℂ] D.TriangleForm z (i + 1) n, |
| 606 | TauCeti.IsArrowTriangle D.m (fun ϑ n ↦ (D.triangleGLCard z ϑ n : ℝ)) |
| 607 | (D.triangleLift z) d (D.triangleEmbedding z) ∧ |
| 608 | (z = false → |
| 609 | HasSquareModuli D.m (fun ϑ n ↦ (D.triangleGLCard z ϑ n : ℝ)) |
| 610 | D.HasAbsUpToNormPower D.quotientRatio (D.triangleLift z) d) := by |
| 611 | -- The datum at `n = 0` makes the descent the adjoint of the lift; `nextDatum` gives the others. |
| 612 | choose! Φ h_left_pair using fun (i n : ℕ) (h : i + n < D.m) ↦ D.exists_isLeftPair z h |
| 613 | have h_adjoint_datum (i : ℕ) (h : i + 0 < D.m) (ϑ : D.MFoldTwist) : |
| 614 | ∃ Ψ : D.EdgeDatum z ϑ 0 1, ∀ (y : D.TriangleForm z i 0) (x : D.TriangleForm z i 1), |
| 615 | ⟪x, D.triangleLift z ϑ i 0 y⟫ = ⟪D.triangleTransposedLift z ϑ i 0 (Φ i 0) Ψ x, |
| 616 | formNegEquiv _ _ y⟫ := |
| 617 | (D.isEdgeFamily_triangleKernel z h).exists_inner_modLift_eq_inner_modTransposedLift |
| 618 | (D.gridSpace i z 0 0) |
| 619 | (D.gridSpace i z 0 (0 + 1)) (h_left_pair i 0 h) ϑ |
| 620 | (pointDatum (triangleModulus z ϑ).ResidueRing) |
| 621 | choose! Ψ₀ h_adjoint using h_adjoint_datum |
| 622 | -- the datum of the descent at `(i, n)` is defined by recursion on `n` |
| 623 | let e (ϑ : D.MFoldTwist) (i : ℕ) : ∀ n : ℕ, D.EdgeDatum z ϑ n (n + 1) := |
| 624 | Nat.rec (Ψ₀ i ϑ) fun _ ↦ nextDatum |
| 625 | let d (ϑ : D.MFoldTwist) (i n : ℕ) : D.TriangleForm z i (n + 1) →ₗ[ℂ] D.TriangleForm z (i + 1) |
| 626 | n := |
| 627 | D.triangleTransposedLift z ϑ i n (Φ i n) (e ϑ i n) |
| 628 | -- the first commutation relation |
| 629 | have h_square (i n : ℕ) (h : i + (n + 1) < D.m) : ∃ β : D.MFoldTwist → ℂ, |
| 630 | SquareCommutes (fun ϑ n ↦ (D.triangleGLCard z ϑ n : ℝ)) (D.triangleLift z) d i n β ∧ |
| 631 | (z = false → D.HasAbsUpToNormPower β (D.quotientRatio (i + 1) (i + 1 + n + 1))) := by |
| 632 | obtain ⟨β, h_comm, hβ⟩ := |
| 633 | D.exists_triangleLift_triangleTransposedLift_comm z h (h_left_pair i n h.le) |
| 634 | (h_left_pair i (n + 1) h) |
| 635 | refine ⟨β, squareCommutes_iff.2 (fun ϑ y ↦ ext_inner_left ℂ fun x ↦ ?_), hβ⟩ |
| 636 | rw [inner_smul_right, inner_smul_right, div_eq_inv_mul, ← map_inv₀] |
| 637 | -- the datum `e ϑ i (n + 1)` is by definition `nextDatum (e ϑ i n)` |
| 638 | simpa only [RCLike.ofReal_natCast] using! h_comm ϑ (e ϑ i n) y x |
| 639 | -- Nonzero weights, commuting squares, adjointness, return to the base and injectivity. |
| 640 | refine ⟨d, ⟨fun ϑ n ↦ by exact_mod_cast (NeZero.ne (D.triangleGLCard z ϑ n)), |
| 641 | fun i n h ↦ ?_, fun i h ϑ y ↦ ?_, fun i h ϑ y ↦ ?_, fun i h ϑ y hy ↦ ?_⟩, ?_⟩ |
| 642 | · obtain ⟨β, h_comm, -⟩ := h_square i n h |
| 643 | exact ⟨β, h_comm⟩ |
| 644 | · -- the adjointness holds by the choice of the datum at `n = 0` |
| 645 | exact h_adjoint i h ϑ (D.triangleEmbedding z i y) |
| 646 | · obtain ⟨v, hv⟩ := (D.triangleNegEquiv z (i + 1)).surjective |
| 647 | (d ϑ i 0 (D.triangleLift z ϑ i 0 (D.triangleEmbedding z i y))) |
| 648 | obtain ⟨hv_mem, -⟩ := mem_triangleBase_of_eq_triangleTransposedLift D h (h_adjoint i h ϑ) hv |
| 649 | exact ⟨⟨v, hv_mem⟩, hv⟩ |
| 650 | · obtain ⟨-, h_inj⟩ := mem_triangleBase_of_eq_triangleTransposedLift D h (h_adjoint i h ϑ) |
| 651 | (by rw [hy, map_zero] : D.triangleNegEquiv z (i + 1) 0 = d ϑ i 0 (D.triangleLift z ϑ i 0 _)) |
| 652 | exact h_inj rfl |
| 653 | · rintro rfl |
| 654 | refine ⟨.one, .mul, fun i n h ↦ ?_, fun i n h ↦ ?_⟩ |
| 655 | · obtain ⟨β, h_comm, hβ⟩ := h_square i n h |
| 656 | exact ⟨β, hβ rfl, h_comm⟩ |
| 657 | · -- the second commutation relation |
| 658 | obtain ⟨κ, hκ, h_adj⟩ := |
| 659 | D.exists_triangleTransposedLift_adjoint_comm h (h_left_pair i n h.le) |
| 660 | (h_left_pair i (n + 1) h) |
| 661 | refine ⟨κ, hκ, squareAdjoint_iff.2 fun ϑ x ↦ ?_⟩ |
| 662 | obtain ⟨x', hx'⟩ := D.exists_inner_triangleLift_eq false ϑ h x |
| 663 | exact ⟨x', hx', h_adj ϑ (e ϑ i n) x x' hx'⟩ |
| 664 | |
| 665 | end Data |
| 666 | |
| 667 | end New |
| 668 | |
| 669 | end TriangleArrows |
| 670 | |
| 671 | namespace New.Data |
| 672 | |
| 673 | open Finset Fintype Exchange Subgroup LevelPlaces TauCeti.ArrowTriangle |
| 674 | |
| 675 | /-- The index set `D.Y 1` has two blocks: `blockNumber 1` is `0` on `RowIndex` and `1` on `Fin D.t`. |
| 676 | In `GL (D.Y 1)` over a commutative ring, the group of block upper triangular matrices (`parabolic`) |
| 677 | has the same index as the opposite parabolic `rangeParabolic` of the first block. -/ |
| 678 | lemma index_rangeParabolic_inl_eq {P : Parameters} (D : Data P) (R : Type) [CommRing R] : |
| 679 | (rangeParabolic (R := R) (.inl : D.RowIndex ↪ D.Y 1)).index = |
| 680 | (parabolic (R := R) (blockNumber (R := D.RowIndex) (T := Fin D.t) 1)).index := by |
| 681 | rw [index_rangeParabolic] |
| 682 | congr 1 |
| 683 | -- both groups consist of the matrices with the same vanishing block |
| 684 | exact ext fun _ ↦ forall₂_congr fun a b ↦ |
| 685 | imp_congr_left (by cases a <;> cases b <;> simp! [lt_iff_le_and_ne]) |
| 686 | |
| 687 | /-- The index of the level `New.Data.lastLevel` ϑ in K₀ is the product of the orders of the full |
| 688 | `GL (D.Y D.m)` over the residue fields at the chosen places and of the indices of the block upper |
| 689 | triangular groups over the residue fields at the places of ϑ. -/ |
| 690 | lemma stdLevelIndex_lastLevel_eq_prod {P : Parameters} (D : Data P) (ϑ : D.MFoldTwist) : |
| 691 | stdLevelIndex (D.lastLevel ϑ) = |
| 692 | (∏ i : (D.levelPlaces ϑ).ChosenIndex, |
| 693 | Nat.card (GL (D.Y D.m) (ResField ((D.levelPlaces ϑ).chosenPlace i)))) * |
| 694 | ∏ w : (D.levelPlaces ϑ).TwistIndex, |
| 695 | (parabolic (R := ResField ((D.levelPlaces ϑ).twistPlace w)) |
| 696 | (blockNumber (R := D.RowIndex) (T := Fin D.t) D.m)).index := by |
| 697 | simp +instances [lastResidueLevel, relIndex_levelOf, Seesaw.index_pi_univ, placeAt, |
| 698 | -Nat.card_eq_fintype_card] |
| 699 | |
| 700 | /-- The weight `triangleGLCard false ϑ n` is the product of the orders of the general linear group |
| 701 | of the node `(0, n)` over the residue fields at the chosen places and at the places of ϑ. -/ |
| 702 | lemma triangleGLCard_false_eq_prod {P : Parameters} (D : Data P) (ϑ : D.MFoldTwist) (n : ℕ) : |
| 703 | D.triangleGLCard false ϑ n = |
| 704 | (∏ i : (D.levelPlaces ϑ).ChosenIndex, |
| 705 | Nat.card (GL (D.GridIndex false 0 n) (ResField ((D.levelPlaces ϑ).chosenPlace i)))) * |
| 706 | ∏ w : (D.levelPlaces ϑ).TwistIndex, |
| 707 | Nat.card (GL (D.GridIndex false 0 n) (ResField ((D.levelPlaces ϑ).twistPlace w))) := by |
| 708 | simp +instances [triangleGLCard, triangleModulus, LevelPlaces.card_GL_levelModulus, |
| 709 | relIndex_levelOf, Nat.card_pi, placeAt, -Nat.card_eq_fintype_card, |
| 710 | -Bool.cond_eq_ite] |
| 711 | |
| 712 | /-- Let m = `D.m` be the number of lifts of the data `D`. There are a constant C and an integer k |
| 713 | such that [K₀ : J] = C·N(Q)^k·δ(ϑ)^m·N_m / (N₀·N₁^m) for every twist ϑ whose tame part has |
| 714 | non-trivial powers up to m at all places of its set Q (`MFoldTwist`). Here N(Q) is the number of |
| 715 | elements of the residue ring of `twistModulus ϑ 0`, the product of the places in Q. The group |
| 716 | K₀ = `New.stdLevel` consists of the integral points, J = `lastLevel ϑ`, and |
| 717 | N_n = `triangleGLCard false ϑ n` is the order of a general linear group over a finite ring, so the |
| 718 | denominator is not zero. The number δ(ϑ) is the `gramFactor` of `descentPair ϑ 1`, a pair of spaces |
| 719 | W and V of ranks r and r + t: the index in K₀ of the level `DescentPair.levelGroup` on V, times |
| 720 | |GL_r| modulo Q and N(Q)^(tr), over |GL_r| modulo the prime divisors `chosenPlace` of `D.piM`. -/ |
| 721 | lemma exists_stdLevelIndex_lastLevel_eq {P : Parameters} (D : Data P) : |
| 722 | ∃ (C : ℂ) (k : ℤ), ∀ ϑ : D.MFoldTwist, |
| 723 | (stdLevelIndex (D.lastLevel ϑ) : ℂ) = |
| 724 | C * Fintype.card (D.twistModulus ϑ 0).ResidueRing ^ k * (D.descentPair ϑ 1).gramFactor ^ D.m |
| 725 | * |
| 726 | D.triangleGLCard false ϑ D.m / |
| 727 | (D.triangleGLCard false ϑ 0 * D.triangleGLCard false ϑ 1 ^ D.m) := by |
| 728 | -- Every quantity is a product over the chosen places times a product over `TwistIndex`. The |
| 729 | -- former factors do not depend on `ϑ`; the constant (values at the trivial twist) absorbs |
| 730 | -- them. At `w ∈ TwistIndex`, counting the flag groups leaves a fixed power of the number of |
| 731 | -- elements of the residue field at `w`. |
| 732 | choose k card_parab using exists_card_parabolic_blockNumber_eq D.RowIndex (Fin D.t) |
| 733 | refine ⟨D.triangleGLCard false 1 0 * |
| 734 | (D.triangleGLCard false 1 1 / (D.descentPair .one 1).gramFactor) ^ D.m, |
| 735 | (k 1 - D.t * card D.RowIndex) * D.m - k D.m, fun ϑ ↦ ?_⟩ |
| 736 | let κ (w : (D.levelPlaces ϑ).TwistIndex) : Type := ResField ((D.levelPlaces ϑ).twistPlace w) |
| 737 | -- Lagrange's theorem for the flag group in `GL (D.GridIndex false 0 n)` over the residue field at |
| 738 | -- `w ∈ TwistIndex`. |
| 739 | have card_GL_eq (n : ℕ) (w : (D.levelPlaces ϑ).TwistIndex) : |
| 740 | (parabolic (R := κ w) (blockNumber (R := D.RowIndex) (T := Fin D.t) n)).index * |
| 741 | (Nat.card (GL D.RowIndex (κ w)) * Nat.card (GL (Fin D.t) (κ w)) ^ n * |
| 742 | Nat.card (κ w) ^ k n) = |
| 743 | Nat.card (GL (D.GridIndex false 0 n) (κ w)) := by |
| 744 | rw [← card_parab] |
| 745 | exact index_mul_card _ |
| 746 | -- The trivial twist has empty `TwistIndex`. |
| 747 | have no_places : (univ : Finset (D.levelPlaces .one).TwistIndex) = ∅ := |
| 748 | univ_eq_empty_iff.2 ⟨nofun⟩ |
| 749 | simp only [D.stdLevelIndex_lastLevel_eq_prod ϑ, D.triangleGLCard_false_eq_prod] |
| 750 | -- Write both sides as products over the places, replace the orders of |
| 751 | -- `GL (D.GridIndex false 0 1)` and `GL (D.GridIndex false 0 D.m)` at `w ∈ TwistIndex` by the flag |
| 752 | -- count, and clear denominators. The index that enters `DescentPair.gramFactor` is that of the |
| 753 | -- flag group of `D.GridIndex false 0 1`. |
| 754 | simp +instances [κ, index_rangeParabolic_inl_eq, no_places, ← card_GL_eq 1, ← card_GL_eq D.m, |
| 755 | DescentPair.gramFactor, descentPair, DescentPair.rankDiff, descentResidueLevel, |
| 756 | card_levelModulus_residueRing, card_ResField, relIndex_levelOf, Nat.card_pi, |
| 757 | Seesaw.index_pi_univ, |
| 758 | div_pow, prod_eq_zero_iff, zpow_sub₀, zpow_add₀, zpow_mul, prod_pow, |
| 759 | -Nat.card_eq_fintype_card, prod_mul_distrib, IsDedekindDomain.HeightOneSpectrum.ne_bot] |
| 760 | field_simp [prod_eq_zero_iff, NeZero.ne, index_ne_zero_of_finite, |
| 761 | IsDedekindDomain.HeightOneSpectrum.ne_bot] |
| 762 | -- The factors at the chosen places for `ϑ` and for the trivial twist agree by definition. |
| 763 | ring! |
| 764 | |
| 765 | /-- Let m = `D.m` be the number of lifts of the data `D`, let ϑ be an m-fold twist, and let x, y be |
| 766 | forms on Y₀ = `spaceY 0` fixed by J_M, the principal level at the prime divisors of `D.piM` |
| 767 | (`principalForms`). Their images ι_ϑ x and ι_ϑ y (`lowerChainAtLevel`) are algebraic forms on the |
| 768 | definite space Y_m, and their inner product, a sum over the classes of the level, is |
| 769 | [K₀ : J]·d·⟨u x, u y⟩. Here J = `lastLevel ϑ`, [K₀ : J] = `stdLevelIndex J`, d is the dimension of |
| 770 | the weight on Y_m with column counts `columnsY`, the cardinality of `WeylIndex`, and u is the chain |
| 771 | of m lifts Y₀ → Y_m of the triangle, each multiplied by its weight `triangleGLCard`. -/ |
| 772 | lemma inner_lowerChainAtLevel {P : Parameters} (D : Data P) (ϑ : D.MFoldTwist) |
| 773 | (x y : D.principalForms (D.spaceY 0)) : |
| 774 | let u : D.TriangleForm false 0 0 →ₗ[ℂ] D.TriangleForm false 0 D.m := |
| 775 | weightedChain (fun ϑ n ↦ (D.triangleGLCard false ϑ n : ℝ)) (D.triangleLift false) ϑ 0 D.m |
| 776 | inner ℂ (D.lowerChainAtLevel ϑ x) (D.lowerChainAtLevel ϑ y) = |
| 777 | stdLevelIndex (D.lastLevel ϑ) * Fintype.card (WeylIndex (D.Y D.m) D.columnsY) * |
| 778 | inner ℂ (u x.val) (u y.val) := by |
| 779 | intro u |
| 780 | -- `erw`: the space `gridSpace 0 false 0 D.m` of the chain is `spaceY D.m` only by unfolding |
| 781 | rw [LevelForm.inner_eq_petersson (D.spaceY _) D.isHCParam_paramY] |
| 782 | -- The function of the algebraic form `D.lowerChainAtLevel ϑ v` is the chain of lifts of `v`: the |
| 783 | -- weights of the lifts, indices of principal levels, are the orders `D.triangleGLCard false ϑ`. |
| 784 | have h_chain (v : D.principalForms (D.spaceY 0)) : |
| 785 | ofAlgForm (D.paramY D.m) (D.signsY D.m) (D.lowerChainAtLevel ϑ v).val = (u v.val).val := by |
| 786 | simpa [u, weightedChain_eq_compUpTo, triangleGLCard, triangleModulus, |
| 787 | LevelPlaces.card_GL_levelModulus] |
| 788 | using! Space.ofAlgForm_toAlgForm D.isHCParam_paramY _ |
| 789 | simp_rw [h_chain, Space.inner_eq_petersson] |
| 790 | -- `stdLevelIndex` is by definition the relative index of the level in K₀ |
| 791 | rfl |
| 792 | |
| 793 | /-- For every m-fold twist ϑ, the chain ι_ϑ (`New.Data.lowerChainAtLevel`) from forms of level J_M |
| 794 | on U(Y₀) to forms of level `New.Data.lastLevel` ϑ on U(Y_m) is injective. -/ |
| 795 | @[simp] |
| 796 | lemma lowerChainAtLevel_injective {P : Parameters} (D : Data P) (ϑ : D.MFoldTwist) : |
| 797 | Function.Injective (D.lowerChainAtLevel ϑ) := by |
| 798 | -- If `D.lowerChainAtLevel ϑ y = 0`, the chain of lifts of `y` vanishes |
| 799 | -- (`inner_lowerChainAtLevel`); chains are injective. |
| 800 | obtain ⟨d, h_triangle, -⟩ := D.exists_isTriangle false |
| 801 | refine (injective_iff_map_eq_zero (D.lowerChainAtLevel ϑ)).2 fun y hy ↦ ?_ |
| 802 | have h_chain : weightedChain (fun ϑ n ↦ (D.triangleGLCard false ϑ n : ℝ)) (D.triangleLift false) |
| 803 | ϑ 0 D.m y.val = 0 := by |
| 804 | simpa [hy, relIndex_ne_zero_of_isLevel, -Fintype.card_pi] using D.inner_lowerChainAtLevel ϑ y y |
| 805 | exact h_triangle.eq_zero_of_weightedChain_eq_zero D.m 0 (by simp) y h_chain |
| 806 | |
| 807 | end New.Data |
| 808 | |
| 809 | end |