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 Std.Tactic.BVDecide.Normalize.Bool |
| 4 | public import New.Determinant.AuxiliaryForms.PathData |
| 5 | import Lib.Adelic.AutomorphicForms.Cuspidality |
| 6 | import Lib.Adelic.Unitary.RationalPoints |
| 7 | import New.Determinant.Chain.Moduli |
| 8 | import New.OneLift.ComparisonOperator.ExchangeData |
| 9 | import New.OneLift.ComparisonOperator.GluedLattices |
| 10 | import New.UpperBound.Seesaw.LevelIdeles |
| 11 | |
| 12 | /-! |
| 13 | # Periods on the diagonal and path data on the first path |
| 14 | |
| 15 | The first path goes from `Ỹ^m_0` to `Ỹ^0_0 = Y₀ ⊕ E ẽ₀` and from `Y₀` to `Y_m`. Its spaces are the |
| 16 | nodes `(z, 0, i)`, the first columns of the two grids: `(false, 0, i)` is `Y_i` and `(true, 0, i)` |
| 17 | is `Ỹ^i_0`. A form on `Ỹ^m_0` and a conjugate form on `Y_m` move down these columns by transposed |
| 18 | lifts and meet at `i = 0`. The product `Ψ¹` of the point data of the edges computes the period of |
| 19 | the two iterated transposed lifts `New.Data.transposedChain`. The sum `Ψ⁰` of the translates of |
| 20 | `Ψ¹`, weighted by the characters of the edges, is a path datum, and its period is the number of |
| 21 | translates times that of `Ψ¹`. |
| 22 | |
| 23 | ## Main definitions and results |
| 24 | |
| 25 | * `New.Data.exists_petersson_eq_diagonalPeriodForm`: the period with a form on `Ỹ^0_0`, as a |
| 26 | functional of the form on `Y₀`, is a Petersson product. |
| 27 | * `New.Data.diagonalPeriodForm_tupleAction`: translating the matrices by a family that is `1` at |
| 28 | the ends and `diag(g, 1)` at `(0, 0)` of the `Ỹ`, `g` being its member at `(0, 0)` of the `Y`, |
| 29 | multiplies the period by the characters of the edges. |
| 30 | * `New.Data.firstPointDatum`, `New.Data.firstPathDatum`: the functions `Ψ¹` and `Ψ⁰`. |
| 31 | * `New.Data.exists_isPathDatum_diagonalPeriodForm_eq`: the period of the iterated transposed lifts |
| 32 | is a constant times the period of path data on the first path. |
| 33 | |
| 34 | Notions from other files: |
| 35 | * `New.Data.triangleModulus`: the modulus `𝔪₀ = π_M Q` for the chain of the `Y` and `𝔟 = π_M ^ b` |
| 36 | for that of the `Ỹ`, with `π_M = D.piM`. `New.Data.gridModulus` is `𝔪 = 𝔟Q`, where `Q` comes |
| 37 | from the twist `ϑ`. `New.Data.triangleGLCard` is the index `n_𝔪₀(Y_i)` or `n_𝔟(Ỹ^i_0)`. |
| 38 | * `New.Data.levelIndex`: the index of the level `New.Data.nodeLevel` at a node, which is the level |
| 39 | `𝔪` at the `Y_i` and the level `𝔟` elsewhere. |
| 40 | * `New.Data.diagonalPeriodForm`: the period of a conjugate form on `Y^j_j` and a form on `Ỹ^j_j` |
| 41 | along the embedding of unitary groups, shifted on the line by a scalar from the twist, at a real |
| 42 | point. |
| 43 | * `New.Data.EdgeTuple`: a matrix modulo `𝔪` for each pair of nodes. A `NodeFamily` of invertible |
| 44 | matrices acts on it by `New.Data.tupleAction`; `New.Data.edgeCharProd` is the product of the |
| 45 | characters of the edges at the determinants of such a family. |
| 46 | * `New.GridPath.formMap`: the composite of the maps by the matrices of a tuple along a path. |
| 47 | -/ |
| 48 | |
| 49 | @[expose] public section |
| 50 | |
| 51 | noncomputable section |
| 52 | |
| 53 | namespace New.Data |
| 54 | |
| 55 | /-! |
| 56 | ## Periods on the diagonal and translates along the first column |
| 57 | |
| 58 | The period of a conjugate form on `Y^j_j` and a form on `Ỹ^j_j` does not see a common translation. |
| 59 | -/ |
| 60 | section GridStart |
| 61 | |
| 62 | open Function Matrix Fintype Finset Exchange Rows Ideal Quotient Space Gf LevelPlaces |
| 63 | |
| 64 | variable {P : Parameters} |
| 65 | |
| 66 | /-- The mean of the indicator of the invertible matrices over a finite ring is the share of |
| 67 | invertible matrices. -/ |
| 68 | lemma finMean_isUnit_indicator {n R : Type} [Fintype n] [DecidableEq n] [CommRing R] [Fintype R] |
| 69 | [DecidablePred fun x : Matrix n n R ↦ IsUnit x] [Fintype (GL n R)] : |
| 70 | finMean (fun x : Matrix n n R ↦ if IsUnit x then (1 : ℂ) else 0) = |
| 71 | card (GL n R) / card R ^ card n ^ 2 := by |
| 72 | simp [finMean, card_congr of.symm, sq, pow_mul, ↓finsum_eq_sum_of_fintype, |
| 73 | (card_congr (.ofInjective _ Units.val_injective)).trans (card_subtype IsUnit)] |
| 74 | |
| 75 | /-- Reduction modulo `𝔪₀ = π_M Q` from the residue ring of `𝔪 = 𝔟Q` (`reduceToTriangle ϑ false`, for |
| 76 | the grid of the `Y`) is a local homomorphism, because the two moduli have the same primes. -/ |
| 77 | instance (D : Data P) (ϑ : D.MFoldTwist) : IsLocalHom (reduceToTriangle ϑ false) where |
| 78 | -- A unit modulo an ideal `I` is a unit modulo `I ^ D.natB`, which lies in the ideal of `𝔪`. |
| 79 | map_nonunit := Quot.ind fun _ h ↦ |
| 80 | ((isUnit_mk_pow_iff_isUnit_mk _ (NeZero.ne D.natB)).2 h).map |
| 81 | (factor (by simp [levelModulus, mul_pow, mul_mono, pow_le_self NeZero.out])) |
| 82 | |
| 83 | /-- Let `π_M = D.piM`, let `Q` be the product of the places of a twist `ϑ`, and put `𝔪₀ = π_M Q` and |
| 84 | `𝔪 = π_M ^ D.natB * Q` (`gridModulus ϑ`). For the space `Y_j` at the node `(false, 0, j)`, the order |
| 85 | `triangleGLCard false ϑ j` of `GL(Y_j)` modulo `𝔪₀` is a number `C`, the same for all `ϑ`, times |
| 86 | `levelIndex ϑ false 0 j`. -/ |
| 87 | lemma exists_triangleGLCard_eq_mul_levelIndex (D : Data P) (j : ℕ) : |
| 88 | ∃ C : ℂ, ∀ ϑ : D.MFoldTwist, D.triangleGLCard false ϑ j = C * levelIndex ϑ false 0 j := by |
| 89 | -- Both sides count invertible matrices, the left one modulo `𝔪₀` and the right one modulo `𝔪`. |
| 90 | refine ⟨(card (D.triangleModulus false 1).ResidueRing / card (D.gridModulus 1).ResidueRing) ^ |
| 91 | card (D.Y j) ^ 2, fun ϑ ↦ ?_⟩ |
| 92 | let R₀ : Type := (D.triangleModulus false ϑ).ResidueRing |
| 93 | let R : Type := (gridModulus ϑ).ResidueRing |
| 94 | -- The level at `Y_j` is trivial by definition. |
| 95 | have h_index : levelIndex ϑ false 0 j = card (GL (D.Y j) R) := |
| 96 | congrArg Nat.cast (Subgroup.index_bot.trans Nat.card_eq_fintype_card) |
| 97 | -- The reduction from `𝔪` to `𝔪₀` is onto and local, so it keeps the share of invertible |
| 98 | -- matrices, which is the mean of their indicator. |
| 99 | have h_share : (D.triangleGLCard false ϑ j : ℂ) / card R₀ ^ card (D.Y j) ^ 2 = |
| 100 | card (GL (D.Y j) R) / card R ^ card (D.Y j) ^ 2 := by |
| 101 | let π := (reduceToTriangle ϑ false).mapMatrix (m := D.Y j) |
| 102 | have h_surj : Surjective (reduceToTriangle ϑ false) := factor_surjective _ |
| 103 | have h_unit (x : Matrix (D.Y j) (D.Y j) R) : IsUnit (π x) ↔ IsUnit x := by |
| 104 | simp [π, isUnit_iff_isUnit_det, ← RingHom.map_det, -RingHom.mapMatrix_apply] |
| 105 | calc _ = finMean fun x ↦ if IsUnit (π x) then (1 : ℂ) else 0 := |
| 106 | finMean_isUnit_indicator.symm.trans (finMean_comp_surjective π.toAddMonoidHom |
| 107 | h_surj.comp_left.comp_left fun x ↦ if IsUnit x then 1 else 0).symm |
| 108 | _ = _ := by simpa only [h_unit] using finMean_isUnit_indicator |
| 109 | -- In the ratio of the norms of `𝔪₀` and `𝔪` the factor from the primes of `ϑ` cancels. |
| 110 | have h_ratio : (card (D.triangleModulus false 1).ResidueRing / card |
| 111 | (D.gridModulus 1).ResidueRing : ℂ) = |
| 112 | card R₀ / card R := by simp [R₀, R, card_residueRing_twistModulus, mul_div_mul_right, |
| 113 | prod_eq_zero_iff, IsDedekindDomain.HeightOneSpectrum.ne_bot] |
| 114 | rw [h_index, h_ratio, div_pow, div_mul_comm, ← h_share, div_mul_cancel₀ _ (by simp)] |
| 115 | |
| 116 | /-- The period of a conjugate form `y` on `Y^j_j` (grid `false`) and a form `φ` on `Ỹ^j_j` (grid |
| 117 | `true`) at the real point `g` does not change when `y` is translated by a finite adelic point `u` of |
| 118 | the unitary group and `φ` by the block matrix `diag(u, 1)`. -/ |
| 119 | lemma diagonalPeriodForm_formRep (D : Data P) (ϑ : D.MFoldTwist) {j : ℕ} {hj : j ≤ D.m} |
| 120 | {g : GInf D.E (D.gridSigns true 0 j j)} (u : Gf D.E (D.GridIndex false j j)) |
| 121 | (y : D.GridForm false j j) (φ : D.GridForm true j j) : |
| 122 | diagonalPeriodForm ϑ hj g |
| 123 | ((D.gridSpace 0 false j j).formRep (D.gridKernel false j j true) u y) |
| 124 | ((D.gridSpace 0 true j j).formRep (D.gridKernel true j j true) |
| 125 | (U.block (D.gridDiagEquiv j) (u, 1)) φ) = |
| 126 | diagonalPeriodForm ϑ hj g y φ := by |
| 127 | -- Both periods are integrals of `F`, the left one translated by `u`; `F` is invariant under the |
| 128 | -- rational points, so its integral does not change. |
| 129 | let ι (x : New.G D.E (D.gridSigns false 0 j j)) : New.G D.E (D.gridSigns true 0 j j) := |
| 130 | .reindex (D.gridDiagEquiv j) (D.sumElim_gridSigns_comp_gridDiagEquiv_symm hj) |
| 131 | (.sum (x, 1, (gridModulus ϑ).flipScalar ^ j)) |
| 132 | let F (x : New.G D.E (D.gridSigns false 0 j j)) : ℂ := y.val x * φ.val (ι x * (g, 1)) |
| 133 | have h_rat : (gridSpace 0 false j j).Γ.FixesLeft F := fun γ hγ x ↦ by |
| 134 | let γ' : New.G D.E (D.gridSigns true 0 j j) := |
| 135 | .reindex (D.gridDiagEquiv j) (D.sumElim_gridSigns_comp_gridDiagEquiv_symm hj) (.sum (γ, 1)) |
| 136 | -- Membership in `Γ` is rationality; the block sum with `1` keeps it. |
| 137 | have hγ' : γ' ∈ (gridSpace 0 true j j).Γ := by |
| 138 | simp only [γ', gridSpace_diag hj, mem_Gamma_iff_range, Space.reindex, Space.sum, ← map_inv, |
| 139 | reindex_equiv (D.gridDiagEquiv j)] at hγ ⊢ |
| 140 | simpa [-coe_units_inv, -RingHom.mem_range, fromBlocks_multiply] using hγ |
| 141 | have h_mul : ι (γ * x) = γ' * ι x := by |
| 142 | have h_pair : (γ * x, ((1, (gridModulus ϑ).flipScalar ^ j) : |
| 143 | G D.E (fun _ : Unit ↦ (-1) ^ j))) = |
| 144 | (γ, 1) * (x, (1, (gridModulus ϑ).flipScalar ^ j)) := |
| 145 | Prod.ext rfl (one_mul _).symm |
| 146 | exact (congrArg (G.reindex (D.gridDiagEquiv j) |
| 147 | (D.sumElim_gridSigns_comp_gridDiagEquiv_symm hj)) |
| 148 | ((congrArg G.sum h_pair).trans (G.sum.map_mul _ _))).trans |
| 149 | ((G.reindex (D.gridDiagEquiv j) |
| 150 | (D.sumElim_gridSigns_comp_gridDiagEquiv_symm hj)).map_mul _ _) |
| 151 | simp only [F, h_mul, mul_assoc, y.property.rat_mul _ hγ, φ.property.rat_mul _ hγ'] |
| 152 | have h_cont : Continuous F := |
| 153 | y.property.continuous.mul (φ.property.continuous.comp |
| 154 | (((G.continuous_reindex _ _).comp |
| 155 | (G.isClosedEmbedding_sum.continuous.comp |
| 156 | (continuous_id.prodMk continuous_const))).mul_const _)) |
| 157 | have h_int (y : D.GridForm false j j) (φ : D.GridForm true j j) : diagonalPeriodForm ϑ hj g y φ = |
| 158 | ∫ x, y.val x * φ.val (ι x * (g, 1)) ∂(D.gridSpace 0 false j j).quotMeasure := by |
| 159 | simp [periodPairing, ι] |
| 160 | have h_mul (x) : ι (x * (1, u)) = ι x * (1, U.block (D.gridDiagEquiv j) (u, 1)) := by |
| 161 | refine Prod.ext ?_ ?_ |
| 162 | · simp [ι, Prod.mul_def] |
| 163 | rfl |
| 164 | · refine .trans ?_ ((U.block _).map_mul (x.2, (gridModulus ϑ).flipScalar Unit ^ j) (u, 1)) |
| 165 | simp |
| 166 | rfl |
| 167 | rw [h_int, h_int, ← (integral_comp_mul_right u h_rat h_cont).1] |
| 168 | simp only [F, h_mul] -- before `Prod.mul_def` takes the product in `h_mul` apart |
| 169 | simp [Prod.mul_def] |
| 170 | |
| 171 | /-- Let `𝔟` be `D.gridLevelGen = D.piM ^ D.natB`. A form `φ` in `D.gridLevelForms 0`, that is of |
| 172 | level `𝔟` on `Ỹ^0_0`, is fixed under `formRep` by the block matrix |
| 173 | `U.block (D.gridDiagEquiv 0) (u, 1)`, written `diag(u, 1)`, for every `u` on `Y₀` in |
| 174 | `principalLevel` of `𝔟`. -/ |
| 175 | lemma formRep_block_one_eq_self (D : Data P) (φ : D.gridLevelForms 0) |
| 176 | {u : Gf D.E (D.GridIndex false 0 0)} |
| 177 | (hu : u ∈ principalLevel (D.GridIndex false 0 0) D.gridLevelGen) : |
| 178 | (D.gridSpace 0 true 0 0).formRep (D.gridKernel true 0 0 true) |
| 179 | (U.block (D.gridDiagEquiv 0) (u, 1)) φ.val = φ.val := by |
| 180 | have h_mem : U.block (D.gridDiagEquiv 0) (u, 1) ∈ |
| 181 | principalLevel (D.GridIndex true 0 0) D.gridLevelGen := by |
| 182 | obtain ⟨hu_Kf, hu_entry⟩ := hu |
| 183 | refine ⟨by simpa [mem_stdLevel, reindex_equiv (D.gridDiagEquiv 0), Matrix.one_apply] |
| 184 | using hu_Kf, (D.gridDiagEquiv 0).surjective.forall₂.2 ?_⟩ |
| 185 | -- Off the block of `u` the entries are those of the identity, so there the witness is `0`. |
| 186 | rintro (i | i) (j | j) |
| 187 | · simpa [Matrix.one_apply] using hu_entry i j |
| 188 | · exact ⟨0, by simp⟩ |
| 189 | · exact ⟨0, by simp⟩ |
| 190 | · exact ⟨0, by simp⟩ |
| 191 | exact (φ.property ⟨_, h_mem⟩).trans (one_smul ℂ φ.val) |
| 192 | |
| 193 | /-- At the node `Y^0_0` of grid `Y`, the kernel `gridKernel false 0 0 true`, that of the conjugate |
| 194 | forms `GridForm false 0 0`, is the complex conjugate (`star`) of `gridKernel false 0 0 false`, the |
| 195 | kernel of the forms on `Y^0_0`. -/ |
| 196 | lemma gridKernel_zero_true_eq_star (D : Data P) : |
| 197 | D.gridKernel false 0 0 true = star (D.gridKernel false 0 0 false) := |
| 198 | (isConjKernelPair_gridKernel ⟨D.m.zero_le, D.m.zero_le⟩ false).right |
| 199 | |
| 200 | /-- Let `u` lie in `stdLevel` and in `J_M = D.chosenLevel`. Then some `v` in `stdLevel` makes |
| 201 | `u * v` of principal level `𝔟 = D.gridLevelGen`, and `v` has the level |
| 202 | `levelOf (D.levelPlaces ϑ).placeAt ⊥` of the twist `ϑ`. -/ |
| 203 | private lemma exists_mul_mem_principalLevel (D : Data P) (ϑ : D.MFoldTwist) |
| 204 | (u : stdLevel D.E (D.GridIndex false 0 0)) (hu : u.val ∈ D.chosenLevel) : |
| 205 | ∃ v : stdLevel D.E (D.GridIndex false 0 0), |
| 206 | (u * v).val ∈ principalLevel (D.GridIndex false 0 0) D.gridLevelGen ∧ |
| 207 | v.val ∈ levelOf (D.levelPlaces ϑ).placeAt ⊥ := by |
| 208 | -- Take `v` supported on the places of `𝔟` and their conjugates, with `u * v` of level `𝔟`. |
| 209 | -- Then `v` lies in `J_M` and is trivial at the places of `ϑ`, so it has level `𝔪₀`. |
| 210 | obtain ⟨v, hv_supp, hv_red⟩ := exists_reductionGL_eq ((D.gridModulus 1).reductionGL u)⁻¹ |
| 211 | have huv : (u * v).val ∈ principalLevel (D.GridIndex false 0 0) D.gridLevelGen := |
| 212 | (Modulus.mem_principalLevel_iff gridModulus_one_ideal (u * v)).2 (by simp [hv_red]) |
| 213 | have hv_chosen : v.val ∈ D.chosenLevel := (D.chosenLevel.mul_mem_cancel_left hu).1 |
| 214 | (D.principalLevel_le_chosenLevel piM_dvd_gridLevelGen huv) |
| 215 | refine ⟨v, huv, D.chosenLevel_inf_trivialOn_le ϑ ⟨hv_chosen, ?_⟩⟩ |
| 216 | -- At the primes of `ϑ` it is trivial: they are none of those on which it is supported. |
| 217 | have h_disjoint : |
| 218 | Disjoint (↑ϑ.Q : Set (FinPlace D.E)).conjClosure (D.gridModulus 1).places := |
| 219 | Set.disjoint_left.2 fun w hw ↦ by |
| 220 | simp [places_twistModulus, IsChosen, toAutChar_one_and_toTwist_one_and_Q_one, |
| 221 | (normQ_mem_and_notMem_of_mem_Q D ϑ.toTwist.toTameChar hw).2] |
| 222 | exact Gf.supportedOn_le_trivialOn_of_disjoint h_disjoint.conjClosure_right.symm hv_supp |
| 223 | |
| 224 | /-- Let `P : Parameters`, `D : Data P`, `g : GInf D.E (D.gridSigns true 0 0 0)`, |
| 225 | `φ : D.gridLevelForms 0`, and `ϑ : D.MFoldTwist`. Let |
| 226 | `y : (D.gridSpace 0 false 0 0).Form (D.gridKernel false 0 0 false)` be invariant under the level |
| 227 | `levelOf (D.levelPlaces ϑ).placeAt ⊥` for the representation |
| 228 | `ρ = (D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 false)`, and let |
| 229 | `u : Gf D.E (D.GridIndex false 0 0)` lie in `D.chosenLevel`. Then the period |
| 230 | `diagonalPeriodForm 1 zero_le g` of `conjForm D.gridKernel_zero_true_eq_star (ρ u y)` and `φ` |
| 231 | equals `diagonalPeriodForm ϑ zero_le g (conjForm D.gridKernel_zero_true_eq_star y) φ`. -/ |
| 232 | private lemma diagonalPeriodForm_conjForm_formRep_eq (D : Data P) |
| 233 | (g : GInf D.E (D.gridSigns true 0 0 0)) (φ : D.gridLevelForms 0) (ϑ : D.MFoldTwist) |
| 234 | {y : (D.gridSpace 0 false 0 0).Form (D.gridKernel false 0 0 false)} |
| 235 | (hy : y ∈ levelSpace ((D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 false)) |
| 236 | (levelOf (D.levelPlaces ϑ).placeAt ⊥)) |
| 237 | {u : Gf D.E (D.GridIndex false 0 0)} (hu : u ∈ D.chosenLevel) : |
| 238 | diagonalPeriodForm 1 zero_le g |
| 239 | (conjForm D.gridKernel_zero_true_eq_star |
| 240 | ((D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 false) u y)) φ = |
| 241 | diagonalPeriodForm ϑ zero_le g (conjForm D.gridKernel_zero_true_eq_star y) φ := by |
| 242 | -- Translation by `J_M` does not change the period of the conjugate of `y` and `φ`. |
| 243 | let ρ := (D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 false) |
| 244 | lift u to stdLevel D.E (D.GridIndex false 0 0) using levelOf_le_stdLevel hu |
| 245 | obtain ⟨v, huv, hv⟩ := D.exists_mul_mem_principalLevel ϑ u hu |
| 246 | -- So `v` fixes `y`, and `(u * v, 1)` fixes `φ`. |
| 247 | calc diagonalPeriodForm 1 zero_le g (conjForm D.gridKernel_zero_true_eq_star (ρ u y)) φ |
| 248 | _ = diagonalPeriodForm ϑ zero_le g ((D.gridSpace 0 false 0 0).formRep |
| 249 | (D.gridKernel false 0 0 true) (u * v).val |
| 250 | (conjForm D.gridKernel_zero_true_eq_star y)) φ := by |
| 251 | have h_form : conjForm D.gridKernel_zero_true_eq_star (ρ u y) = |
| 252 | (D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 true) (u * v).val |
| 253 | (conjForm D.gridKernel_zero_true_eq_star y) := by |
| 254 | have h_uv : ρ u y = ρ (u * v).val y := by |
| 255 | rw [Subgroup.coe_mul, map_mul, mul_apply_eq_comp, |
| 256 | (hy ⟨v.val, hv⟩).trans (one_smul ℂ y)] |
| 257 | rw [h_uv, ← formRep_conjForm D.gridKernel_zero_true_eq_star] |
| 258 | have h_diag : diagonalPeriodForm 1 zero_le g = diagonalPeriodForm ϑ zero_le g := by |
| 259 | simp only [diagonalPeriodForm, pow_zero] |
| 260 | rw [h_diag, h_form] |
| 261 | _ = _ := by rw [← diagonalPeriodForm_formRep D ϑ (u * v).val |
| 262 | (conjForm D.gridKernel_zero_true_eq_star y), formRep_block_one_eq_self D φ huv] |
| 263 | |
| 264 | /-- The period with a form `φ` on `Ỹ^0_0`, as a functional of the forms `y` on `Y₀`, is a Petersson |
| 265 | product. The chosen places are the prime divisors of `π_M = D.piM`, and `J_M = D.chosenLevel` is the |
| 266 | group of integral points that reduce to `1` at them. The family `(D.levelPlaces ϑ).placeAt` adds the |
| 267 | places of the modulus `Q` of a twist `ϑ`, so its level `levelOf … ⊥` is the level `𝔪₀ = π_M Q`. The |
| 268 | space `gridLevelForms 0` consists of the forms on `Ỹ^0_0` of principal level `𝔟 = π_M ^ D.natB`. At |
| 269 | a real point `g` there is a linear map `periodRepr` from it to the forms on `Y₀` of level `J_M` such |
| 270 | that, for every `ϑ` and every form `y` on `Y₀` of level `𝔪₀`, the Petersson product of `y` and |
| 271 | `periodRepr φ` is the period at `g` of the conjugate of `y` and `φ`. -/ |
| 272 | lemma exists_petersson_eq_diagonalPeriodForm (D : Data P) |
| 273 | (g : GInf D.E (D.gridSigns true 0 0 0)) : |
| 274 | ∃ periodRepr : D.gridLevelForms 0 →ₗ[ℂ] |
| 275 | levelSpace ((D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 false)) D.chosenLevel, |
| 276 | ∀ (φ : D.gridLevelForms 0) (ϑ : D.MFoldTwist), |
| 277 | ∀ y ∈ levelSpace ((D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 false)) |
| 278 | (levelOf (D.levelPlaces ϑ).placeAt ⊥), |
| 279 | (D.gridSpace 0 false 0 0).petersson y (periodRepr φ) = |
| 280 | diagonalPeriodForm ϑ zero_le g (conjForm D.gridKernel_zero_true_eq_star y) φ := by |
| 281 | -- `periodRepr φ` represents the functional `conjPeriod φ`, the conjugate of the period, on the |
| 282 | -- finite-dimensional space of forms of level `J_M`. For `y` of level `𝔪₀`, translation by `J_M` |
| 283 | -- changes neither side of the identity (`diagonalPeriodForm_conjForm_formRep_eq`), so `y` may be |
| 284 | -- replaced by its mean over `J_M`. |
| 285 | let ρ := (D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 false) |
| 286 | have he_cusp : IsCuspKernel 0 (D.gridKernel false 0 0 false) := |
| 287 | (isConjKernelPair_gridKernel ⟨D.m.zero_le, D.m.zero_le⟩ false).left |
| 288 | have he_star : D.gridKernel false 0 0 true = star (D.gridKernel false 0 0 false) := |
| 289 | D.gridKernel_zero_true_eq_star |
| 290 | have : IsSmoothRep ρ := ⟨fun y ↦ by |
| 291 | obtain ⟨K, hK⟩ := y.property.exists_level |
| 292 | filter_upwards [K.mem_nhds_one] with k hk using Subtype.ext (funext (hK k hk))⟩ |
| 293 | have : Module.Finite ℂ (levelSpace ρ D.chosenLevel) := |
| 294 | finite_levelSpace he_cusp ⟨D.chosenLevel, isOpen_levelOf⟩ |
| 295 | let conjPeriod := (diagonalPeriodForm 1 zero_le g ∘ₛₗ conjForm he_star).flip.compr₂ₛₗ |
| 296 | (starLinearEquiv ℂ).toLinearMap |
| 297 | have conjPeriod_apply (φ : D.GridForm true 0 0) (y) : |
| 298 | conjPeriod φ y = star (diagonalPeriodForm 1 zero_le g (conjForm he_star y) φ) := rfl |
| 299 | let periodRepr : D.gridLevelForms 0 →ₗ[ℂ] levelSpace ρ D.chosenLevel := |
| 300 | LinearMap.applyₗ 1 ∘ₗ LinearMap.adjoint.toLinearMap ∘ₛₗ |
| 301 | conjPeriod.domRestrict₁₂ (D.gridLevelForms 0) (levelSpace ρ D.chosenLevel) |
| 302 | -- `periodRepr φ` is the value at `1` of the adjoint of the functional `conjPeriod φ`. |
| 303 | have h_repr (φ : D.gridLevelForms 0) (y : levelSpace ρ D.chosenLevel) : |
| 304 | innerₛₗ ℂ (periodRepr φ).val y = conjPeriod φ y := |
| 305 | (((conjPeriod φ).domRestrict (levelSpace ρ D.chosenLevel)).adjoint_inner_left y 1).trans |
| 306 | (by simp) |
| 307 | refine ⟨periodRepr, fun φ ϑ y hy ↦ star_injective ?_⟩ |
| 308 | have h_petersson (u : Gf D.E (D.GridIndex false 0 0)) (hu : u ∈ D.chosenLevel) : |
| 309 | innerₛₗ ℂ (periodRepr φ).val (ρ u y) = |
| 310 | star ((D.gridSpace 0 false 0 0).petersson y (periodRepr φ)) := by |
| 311 | have h_fix : ρ u (periodRepr φ).val = (periodRepr φ).val := |
| 312 | ((periodRepr φ).property ⟨u, hu⟩).trans (one_smul ℂ (periodRepr φ).val) |
| 313 | simpa [ρ, h_fix] using! inner_formRep u (periodRepr φ).val y |
| 314 | have h_period (u : Gf D.E (D.GridIndex false 0 0)) (hu : u ∈ D.chosenLevel) : |
| 315 | conjPeriod φ (ρ u y) = star (diagonalPeriodForm ϑ zero_le g (conjForm he_star y) φ) := |
| 316 | (conjPeriod_apply φ (ρ u y)).trans |
| 317 | (congrArg star (diagonalPeriodForm_conjForm_formRep_eq D g φ ϑ hy hu)) |
| 318 | calc |
| 319 | _ = innerₛₗ ℂ (periodRepr φ).val (compactMean ρ D.chosenLevel y) := |
| 320 | (map_compactMean_of_const _ h_petersson).symm |
| 321 | _ = conjPeriod φ (compactMean ρ D.chosenLevel y) := h_repr φ ⟨_, compactMean_mem_levelSpace y⟩ |
| 322 | _ = _ := map_compactMean_of_const _ h_period |
| 323 | |
| 324 | /-- Put `m = D.m` and `𝔪 = gridModulus ϑ`. Let `S` be a tuple of matrices modulo `𝔪`, one for each |
| 325 | pair of nodes, and `F` a form at the end `(z, 0, m)` of the first column. Let the family `g` of |
| 326 | invertible matrices modulo `𝔪` be `1` at that end, and let `k` be an integral lift of `g (z, 0, b)`, |
| 327 | equal to `1` if `b = m`. Translate `S` by `g`, map `F` down the column to `(z, 0, b)` by `formMap`, |
| 328 | and translate the image on the right by `k`. The result is the image of `F` for `S` times |
| 329 | `edgeCharProd g`, the product over the edges from `p` to `q` of the column of their characters at |
| 330 | `det (g q) / det (g p)`. -/ |
| 331 | lemma formRep_formMap_column_tupleAction {D : Data P} {ϑ : D.MFoldTwist} {g : NodeFamily ϑ} |
| 332 | {z : Bool} {b : ℕ} (hb : b ≤ D.m) |
| 333 | (hg_end : g (z, 0, D.m) = 1) (S : EdgeTuple ϑ) (F : D.GridForm z 0 D.m) |
| 334 | (k : stdLevel D.E (D.NodeIndex (z, 0, b))) (hk : g (z, 0, b) = (gridModulus ϑ).reductionGL k) |
| 335 | (hk_end : b = D.m → k = 1) : |
| 336 | (D.gridSpace 0 z 0 b).formRep (D.gridKernel z 0 b true) k.val |
| 337 | ((GridPath.column hb).formMap (tupleAction g S) z F) = |
| 338 | edgeCharProd g ((GridPath.column hb).edges z) • (GridPath.column hb).formMap S z F := by |
| 339 | -- Downward induction on `b`: across the edge from `(0, b)` to `(0, b + 1)` the translation by |
| 340 | -- `k` becomes one by a lift `u` of `g (z, 0, b + 1)`, at the price of the character of the edge. |
| 341 | induction hb using Nat.decreasingInduction with |
| 342 | | self => |
| 343 | rw [GridPath.column_self, GridPath.formMap, GridPath.edges, edgeCharProd, Finset.prod_empty, |
| 344 | one_smul, hk_end rfl, OneMemClass.coe_one, map_one] |
| 345 | rfl |
| 346 | | of_succ b hb ih => |
| 347 | let u : stdLevel D.E (D.NodeIndex (z, 0, b + 1)) := |
| 348 | if b + 1 = D.m then 1 else Rows.liftMod (g (z, 0, b + 1)) |
| 349 | have hu : g (z, 0, b + 1) = (gridModulus ϑ).reductionGL u := by |
| 350 | dsimp only [u] |
| 351 | split_ifs with h |
| 352 | · rw [h, hg_end, map_one] |
| 353 | · exact (reductionGL_liftMod _).symm |
| 354 | have h_edge (x : D.GridForm z 0 (b + 1)) : |
| 355 | (D.gridSpace 0 z 0 b).formRep (D.gridKernel z 0 b true) k.val |
| 356 | (transposedMove (tupleAction g S (columnEdge z 0 b)) x) = |
| 357 | edgeCharProd g {columnEdge z 0 b} • transposedMove (S (columnEdge z 0 b)) |
| 358 | ((D.gridSpace 0 z 0 (b + 1)).formRep (D.gridKernel z 0 (b + 1) true) u.val x) := by |
| 359 | simp only [tupleAction, hk, hu] |
| 360 | -- The Weil representation moves the translations from the matrix to the two forms. |
| 361 | refine ((D.isEdgeFamily_grid_succ_right (z := z) id zero_le hb).isArrow_modDatum.2 |
| 362 | |>.formRep_formLift_of_eq_smul (pairWeil_modDatum_single k u) _).trans ?_ |
| 363 | simp [gridChar_det, edgeCharProd, hk, hu, div_eq_mul_inv] |
| 364 | rfl -- Both sides are the transposed lift that defines `transposedMove`. |
| 365 | have he : columnEdge z 0 b ∉ (GridPath.column hb).edges z := by |
| 366 | intro h_mem |
| 367 | obtain ⟨-, -, h_le, -⟩ := GridPath.eq_and_le_of_mem_edges h_mem |
| 368 | simp at h_le |
| 369 | simp only [GridPath.column_of_lt hb, GridPath.formMap, GridPath.edges, LinearMap.comp_apply] |
| 370 | rw [h_edge, ih u hu (ite_eq_left ·), map_smul, smul_smul, edgeCharProd, prod_singleton, |
| 371 | edgeCharProd, edgeCharProd, prod_insert he] |
| 372 | |
| 373 | /-- Let `g` be a family of invertible matrices modulo `gridModulus ϑ`, one at each node, that is `1` |
| 374 | at the ends `(z, 0, D.m)` of both first columns and is the block matrix `diag(g (false, 0, 0), 1)` |
| 375 | at `(true, 0, 0)`. Map a conjugate form `y'` on `Y_m` and a form `φ` on `Ỹ^m_0` down these columns |
| 376 | by the matrices `S`, and take the period at the real point `gInf`. Replacing the matrix from `p` to |
| 377 | `q` by `(g q)⁻¹ * S (p, q) * g p` multiplies this period by `edgeCharProd`, the product over the |
| 378 | edges of both columns of their characters at `det (g q) / det (g p)`. -/ |
| 379 | lemma diagonalPeriodForm_tupleAction {D : Data P} {ϑ : D.MFoldTwist} {g : NodeFamily ϑ} |
| 380 | (hg_end : ∀ z : Bool, g (z, 0, D.m) = 1) |
| 381 | (hg_diag : g (true, 0, 0) = blockInlGL (D.gridDiagEquiv 0) (g (false, 0, 0))) |
| 382 | (gInf : GInf D.E (D.gridSigns true 0 0 0)) (y' : D.GridForm false 0 D.m) |
| 383 | (φ : D.GridForm true 0 D.m) (S : EdgeTuple ϑ) : |
| 384 | diagonalPeriodForm ϑ zero_le gInf |
| 385 | ((GridPath.column D.m.zero_le).formMap (tupleAction g S) false y') |
| 386 | ((GridPath.column D.m.zero_le).formMap (tupleAction g S) true φ) = |
| 387 | edgeCharProd g (TwoGridPath.first D.m).edges * diagonalPeriodForm ϑ zero_le gInf |
| 388 | ((GridPath.column D.m.zero_le).formMap S false y') |
| 389 | ((GridPath.column D.m.zero_le).formMap S true φ) := by |
| 390 | -- A lift `u` of `g (false, 0, 0)` translates both forms, and the period does not see it. |
| 391 | let u : stdLevel D.E (D.GridIndex false 0 0) := Rows.liftMod (g (false, 0, 0)) |
| 392 | have hu : (gridModulus ϑ).reductionGL u = g (false, 0, 0) := reductionGL_liftMod _ |
| 393 | obtain ⟨h_block, h_red⟩ := map_block_eq_blockGL (gridModulus ϑ).reduction (D.gridDiagEquiv 0) u 1 |
| 394 | let u' : stdLevel D.E (D.GridIndex true 0 0) := |
| 395 | ⟨U.block (D.gridDiagEquiv 0) (u.val, 1), h_block⟩ |
| 396 | have hu' : g (true, 0, 0) = (gridModulus ϑ).reductionGL u' := by |
| 397 | refine hg_diag.trans (.trans ?_ h_red.symm) |
| 398 | simp [← hu, Modulus.reductionGL] |
| 399 | have hm : 0 ≠ D.m := by simp [m_eq_two_mul_varrho_add_two] |
| 400 | let p : GridPath 0 D.m 0 0 := .column D.m.zero_le |
| 401 | have h_char : edgeCharProd g (TwoGridPath.first D.m).edges = |
| 402 | edgeCharProd g (p.edges false) * edgeCharProd g (p.edges true) := |
| 403 | prod_union (p.disjoint_edges_of_ne p Bool.false_ne_true) |
| 404 | have h_false : (D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 true) u.val |
| 405 | (p.formMap (tupleAction g S) false y') = |
| 406 | edgeCharProd g (p.edges false) • p.formMap S false y' := |
| 407 | formRep_formMap_column_tupleAction _ (hg_end false) S y' u hu.symm (absurd · hm) |
| 408 | have h_true : (D.gridSpace 0 true 0 0).formRep (D.gridKernel true 0 0 true) |
| 409 | (U.block (D.gridDiagEquiv 0) (u.val, 1)) |
| 410 | (p.formMap (tupleAction g S) true φ) = |
| 411 | edgeCharProd g (p.edges true) • p.formMap S true φ := |
| 412 | formRep_formMap_column_tupleAction _ (hg_end true) S φ u' hu' (absurd · hm) |
| 413 | rw [← diagonalPeriodForm_formRep D ϑ u.val, h_false, h_true, h_char, |
| 414 | LinearMap.map_smul₂, map_smul, smul_smul, smul_eq_mul] |
| 415 | |
| 416 | end GridStart |
| 417 | |
| 418 | /-! |
| 419 | ## Path data on the first path |
| 420 | |
| 421 | The product `Ψ¹` of the point data of the edges is symmetrized to the path datum `Ψ⁰`, the sum of |
| 422 | its translates. |
| 423 | -/ |
| 424 | |
| 425 | section GridFirstColumns |
| 426 | |
| 427 | open Function Matrix Fintype Finset Exchange Rows Subgroup MulAction Equiv |
| 428 | |
| 429 | variable {P : Parameters} {D : Data P} |
| 430 | |
| 431 | /-- For a set `w` of pairs of nodes, `tuplesOn ϑ w` is the set of tuples of matrices modulo |
| 432 | `gridModulus ϑ`, one for each pair of nodes, that are zero outside `w`. A tuple on the union of |
| 433 | disjoint sets `w` and `w'` is glued by `Finset.piecewise` from a tuple on `w` and one on `w'`, so a |
| 434 | sum over tuples on the union is a double sum. -/ |
| 435 | lemma sum_tuplesOn_union {ϑ : D.MFoldTwist} {w w' : Finset (GridNode × GridNode)} |
| 436 | (hw : Disjoint w w') (F : EdgeTuple ϑ → ℂ) : |
| 437 | ∑ S ∈ tuplesOn ϑ (w ∪ w'), F S = |
| 438 | ∑ S ∈ tuplesOn ϑ w, ∑ S' ∈ tuplesOn ϑ w', F (w.piecewise S S') := by |
| 439 | rw [sum_tuplesOn_union_updateFinset hw] |
| 440 | refine sum_congr rfl fun S hS ↦ ?_ |
| 441 | rw [sum_tuplesOn] |
| 442 | refine sum_congr rfl fun y _ ↦ congrArg F (funext fun e ↦ ?_) |
| 443 | by_cases he : e ∈ w |
| 444 | · simp [updateFinset, he, disjoint_left.mp hw he] |
| 445 | · simp [updateFinset, he, mem_tuplesOn.mp hS e he] |
| 446 | |
| 447 | /-- The edges of the column from `(0, m)` down to `(0, b)` in the grid `z` are those from `(0, i)` |
| 448 | to `(0, i + 1)` with `b ≤ i < m`. -/ |
| 449 | lemma edges_column {z : Bool} {b : ℕ} (hb : b ≤ D.m) : |
| 450 | (GridPath.column hb).edges z = (Ico b D.m).image (columnEdge z 0) := by |
| 451 | induction hb using Nat.decreasingInduction with |
| 452 | | self => simp [GridPath.column_self, GridPath.edges] |
| 453 | | of_succ b hb ih => |
| 454 | simp [GridPath.column_of_lt hb, GridPath.edges, ih, ← insert_Ico_add_one_left_eq_Ico hb] |
| 455 | |
| 456 | /-- An edge lies on the first path exactly when it is an edge of the first column of a grid. -/ |
| 457 | lemma mem_edges_first {e : GridNode × GridNode} : |
| 458 | e ∈ (TwoGridPath.first D.m).edges ↔ ∃ z : Bool, ∃ i < D.m, columnEdge z 0 i = e := by |
| 459 | simp [TwoGridPath.edges, TwoGridPath.first, edges_column] |
| 460 | |
| 461 | /-! ### The point data -/ |
| 462 | |
| 463 | /-- The point datum of the edge from `(0, b)` to `(0, b + 1)`, regarded modulo `𝔪`: the |
| 464 | indicator of the matrices that reduce to the standard inclusion modulo `𝔪₀` in the grid of the |
| 465 | `Y` and modulo `𝔟` in that of the `Ỹ`. -/ |
| 466 | def edgePointDatum {ϑ : D.MFoldTwist} (z : Bool) (b : ℕ) |
| 467 | (y : Matrix (D.NodeIndex (z, 0, b + 1)) (D.NodeIndex (z, 0, b)) (gridModulus ϑ).ResidueRing) : |
| 468 | ℂ := |
| 469 | pointDatum (triangleModulus z ϑ).ResidueRing (y.map (reduceToTriangle ϑ z)) |
| 470 | |
| 471 | /-- The product of the point data `edgePointDatum` of the edges from `(0, b)` to `(0, m)` in the |
| 472 | grid `z`, at the matrices of `S`: the indicator that each of these matrices reduces to the standard |
| 473 | inclusion modulo `triangleModulus z ϑ`. -/ |
| 474 | def columnPointDatum {ϑ : D.MFoldTwist} (z : Bool) (b : ℕ) (S : EdgeTuple ϑ) : ℂ := |
| 475 | ∏ i ∈ Ico b D.m, edgePointDatum z i (S (columnEdge z 0 i)) |
| 476 | |
| 477 | /-- The product `Ψ¹` of the point data of the edges of the first path. -/ |
| 478 | def firstPointDatum {ϑ : D.MFoldTwist} (S : EdgeTuple ϑ) : ℂ := |
| 479 | columnPointDatum false 0 S * columnPointDatum true 0 S |
| 480 | |
| 481 | /-- The product of the point data from `(0, b)` to `(0, m)` depends only on the matrices of the |
| 482 | edges between these two nodes. -/ |
| 483 | lemma columnPointDatum_congr {ϑ : D.MFoldTwist} {z : Bool} {b : ℕ} {S S' : EdgeTuple ϑ} |
| 484 | (hS : ∀ i ∈ Ico b D.m, S (columnEdge z 0 i) = S' (columnEdge z 0 i)) : |
| 485 | columnPointDatum z b S = columnPointDatum z b S' := |
| 486 | prod_congr rfl fun i hi ↦ by rw [hS i hi] |
| 487 | |
| 488 | /-- A value of `Ψ¹` is `0` or `1`, so it is a sum of at most one root of unity. -/ |
| 489 | lemma isSumOfRootsOfUnity_firstPointDatum {ϑ : D.MFoldTwist} (S : EdgeTuple ϑ) : |
| 490 | IsSumOfRootsOfUnity 1 (firstPointDatum S) := by |
| 491 | by_cases hS : firstPointDatum S = 0 |
| 492 | · simpa only [hS] using IsSumOfRootsOfUnity.zero |
| 493 | have h_one (z : Bool) (hz : columnPointDatum z 0 S ≠ 0) : columnPointDatum z 0 S = 1 := |
| 494 | prod_eq_one fun i hi ↦ by |
| 495 | have h_eq : (S (columnEdge z 0 i)).map (reduceToTriangle ϑ z) = |
| 496 | inclMatrix (triangleModulus z ϑ).ResidueRing .inl := |
| 497 | Pi.support_single_subset (prod_ne_zero_iff.1 hz i hi) |
| 498 | exact (congrArg (pointDatum (triangleModulus z ϑ).ResidueRing) h_eq).trans |
| 499 | (Pi.single_eq_same _ _) |
| 500 | rw [firstPointDatum, h_one _ (left_ne_zero_of_mul hS), h_one _ (right_ne_zero_of_mul hS), mul_one] |
| 501 | exact .of_isOfFinOrder .one |
| 502 | |
| 503 | /-- Let `y` be a matrix modulo `𝔪 = gridModulus ϑ` from the space `Y_b` at the node `(false, 0, b)` |
| 504 | to `Y_(b+1)`. If `edgePointDatum false b y` is nonzero, that is, `y` reduces to the standard |
| 505 | inclusion modulo `𝔪₀ = triangleModulus false ϑ`, then `y` has a left inverse modulo `𝔪`, because |
| 506 | `𝔪₀` and `𝔪` have the same primes. -/ |
| 507 | lemma hasLeftInv_of_edgePointDatum_ne_zero {ϑ : D.MFoldTwist} {b : ℕ} |
| 508 | {y : Matrix (D.NodeIndex (false, 0, b + 1)) (D.NodeIndex (false, 0, b)) |
| 509 | (gridModulus ϑ).ResidueRing} (hy : edgePointDatum false b y ≠ 0) : HasLeftInv y := by |
| 510 | let u : D.NodeIndex (false, 0, b) ↪ D.NodeIndex (false, 0, b + 1) := .inl |
| 511 | have h_red : y.map (reduceToTriangle ϑ false) = inclMatrix _ u := Pi.support_single_subset hy |
| 512 | refine HasLeftInv.of_map_mul_eq_one (reduceToTriangle ϑ false) (inclMatrix _ u)ᵀ ?_ |
| 513 | rw [transpose_map, map_inclMatrix, h_red, inclMatrix_transpose_mul_self u] |
| 514 | |
| 515 | /-! ### The period -/ |
| 516 | |
| 517 | /-- Both `pointTransposedLift` and `transposedMove y` are transposed theta lifts from forms at |
| 518 | `(0, b + 1)` to forms at `(0, b)` of the grid `z`. The datum of the first is the indicator of the |
| 519 | inclusion matrix modulo `triangleModulus z ϑ`, scaled by the order `triangleGLCard z ϑ b`; that of |
| 520 | the second is the indicator of the single matrix `y` modulo `𝔪`. The first is `triangleGLCard z ϑ b` |
| 521 | times the sum of the second over `y`, weighted by the point datum `edgePointDatum` of the edge. -/ |
| 522 | lemma pointTransposedLift_eq_sum {ϑ : D.MFoldTwist} {z : Bool} {b : ℕ} : |
| 523 | pointTransposedLift ϑ z b = (triangleGLCard z ϑ b : ℂ) • |
| 524 | ∑ y : Matrix (D.NodeIndex (z, 0, b + 1)) (D.NodeIndex (z, 0, b)) (gridModulus ϑ).ResidueRing, |
| 525 | edgePointDatum z b y • transposedMove (ϑ := ϑ) y := by |
| 526 | -- Pull the datum back along the reduction from `𝔪`, then expand it in indicator functions; |
| 527 | -- `rfl` identifies the pullback with `edgePointDatum` and each summand with `transposedMove`. |
| 528 | have h_datum (v) : |
| 529 | modDatum (D.gridSpace 0 z 0 b) (D.gridSpace 0 z 0 (b + 1)) (triangleModulus z ϑ) |
| 530 | (pointDatum (triangleModulus z ϑ).ResidueRing) v = |
| 531 | ∑ y : Matrix (D.NodeIndex (z, 0, b + 1)) (D.NodeIndex (z, 0, b)) |
| 532 | (gridModulus ϑ).ResidueRing, |
| 533 | edgePointDatum z b y • |
| 534 | modDatum (D.gridSpace 0 z 0 b) (D.gridSpace 0 z 0 (b + 1)) (gridModulus ϑ) |
| 535 | (Pi.single y 1) v := |
| 536 | (modDatum_factor (gridModulus_ideal_le_triangleModulus_ideal ϑ z) |
| 537 | (pointDatum (triangleModulus z ϑ).ResidueRing) v).symm.trans |
| 538 | (modDatum_eq_sum (D.gridSpace 0 z 0 b) (D.gridSpace 0 z 0 (b + 1)) (edgePointDatum z b) v) |
| 539 | dsimp only [pointTransposedLift, modTransposedLift] |
| 540 | rw [h_datum, map_sum] |
| 541 | simp only [map_smul] |
| 542 | rfl |
| 543 | |
| 544 | /-- Let `b ≤ m = D.m` and take the first column of the grid `z` from `(0, m)` down to `(0, b)`. With |
| 545 | `π_M = D.piM`, `𝔟 = π_M ^ D.natB` and `Q` the product of the places of `ϑ`, the modulus |
| 546 | `triangleModulus z ϑ` is `π_M Q` for `false` and `𝔟` for `true`, and `triangleGLCard z ϑ i` is the |
| 547 | order of `GL` of the node `(0, i)` modulo it. The composite `transposedChain ϑ z b` of the |
| 548 | transposed theta lifts `pointTransposedLift` along the column is the product of these orders, |
| 549 | `b ≤ i < m`, times a sum over the tuples `S` of matrices modulo `𝔪 = 𝔟Q` on its edges: the composite |
| 550 | `formMap` of the transposed lifts whose data are the single matrices of `S`, weighted by the |
| 551 | indicator `columnPointDatum z b S` that each matrix reduces to the standard inclusion modulo |
| 552 | `triangleModulus z ϑ`. -/ |
| 553 | lemma transposedChain_eq_sum {ϑ : D.MFoldTwist} {z : Bool} {b : ℕ} (hb : b ≤ D.m) : |
| 554 | transposedChain ϑ z b = (∏ i ∈ Ico b D.m, (triangleGLCard z ϑ i : ℂ)) • |
| 555 | ∑ S ∈ tuplesOn ϑ ((GridPath.column hb).edges z), |
| 556 | columnPointDatum z b S • (GridPath.column hb).formMap S z := by |
| 557 | induction hb using Nat.decreasingInduction with |
| 558 | | self => simp [transposedChain_self, GridPath.column_self, GridPath.edges, GridPath.formMap, |
| 559 | tuplesOn_empty, columnPointDatum] |
| 560 | | of_succ b hb ih => |
| 561 | -- The factors and the maps of the later edges do not see the matrix `y` of the new edge. |
| 562 | let M := Matrix (D.NodeIndex (z, 0, b + 1)) (D.NodeIndex (z, 0, b)) (gridModulus ϑ).ResidueRing |
| 563 | have h_new : columnEdge z 0 b ∉ (GridPath.column hb).edges z := by simp [edges_column] |
| 564 | have h_datum (S : EdgeTuple ϑ) (y : M) : |
| 565 | columnPointDatum z b (update S (columnEdge z 0 b) y) = |
| 566 | edgePointDatum z b y * columnPointDatum z (b + 1) S := by |
| 567 | rw [columnPointDatum, prod_eq_prod_Ico_succ_bot hb, update_self] |
| 568 | exact congrArg _ (columnPointDatum_congr fun i hi ↦ update_of_ne (fun h ↦ by |
| 569 | have : i = b := congrArg (fun e : GridNode × GridNode ↦ e.1.2.2) h |
| 570 | have := (mem_Ico.1 hi).1 |
| 571 | omega) _ _) |
| 572 | have h_map (S : EdgeTuple ϑ) (y : M) : |
| 573 | (GridPath.column hb).formMap (update S (columnEdge z 0 b) y) z = |
| 574 | (GridPath.column hb).formMap S z := |
| 575 | GridPath.formMap_congr _ fun e he ↦ update_of_ne (ne_of_mem_of_not_mem he h_new) _ _ |
| 576 | rw [transposedChain_of_lt ϑ hb, ih, pointTransposedLift_eq_sum, GridPath.column_of_lt hb, |
| 577 | GridPath.edges, sum_tuplesOn_insert h_new, prod_eq_prod_Ico_succ_bot hb] |
| 578 | ext φ : 1 |
| 579 | simp only [GridPath.formMap, h_datum, h_map, update_self, LinearMap.comp_apply, |
| 580 | LinearMap.smul_apply, LinearMap.sum_apply, map_sum, map_smul, smul_sum, smul_smul] |
| 581 | refine sum_congr rfl fun _ _ ↦ sum_congr rfl fun _ _ ↦ ?_ |
| 582 | rw [mul_comm (_ * _), mul_mul_mul_comm] |
| 583 | |
| 584 | /-- In the grid of the `Ỹ` the iterated transposed lifts `transposedChain` along the first column do |
| 585 | not depend on the twist. -/ |
| 586 | lemma transposedChain_one_true_eq_transposedChain {b : ℕ} (ϑ : D.MFoldTwist) (hb : b ≤ D.m) : |
| 587 | D.transposedChain 1 true b = transposedChain ϑ true b := by |
| 588 | induction hb using Nat.decreasingInduction with |
| 589 | | self => rw [transposedChain_self, transposedChain_self] |
| 590 | | of_succ b hb ih => |
| 591 | have h_step : D.pointTransposedLift 1 true b = D.pointTransposedLift ϑ true b := by |
| 592 | have h_char : gridChar 1 (!true) b = gridChar ϑ (!true) b := by |
| 593 | funext n _ |
| 594 | simp only [gridChar, Bool.not_true, Bool.cond_false] |
| 595 | dsimp only [pointTransposedLift, triangleGLCard, triangleModulus, triangleTwist, |
| 596 | Bool.cond_true, Bool.cond_false] |
| 597 | rw [h_char] |
| 598 | rw [transposedChain_of_lt 1 hb, transposedChain_of_lt ϑ hb, ih, h_step] |
| 599 | |
| 600 | /-- Let `ϑ` be an m-fold twist (`MFoldTwist`), `y'` a conjugate form on `Y_m` and `φ` a form on |
| 601 | `Ỹ^m_0`. Move them to `Y₀` and `Ỹ^0_0` by `transposedChain`, the composites of transposed theta |
| 602 | lifts down the first columns of the two grids `Y` (`false`) and `Ỹ` (`true`). The pairing of the |
| 603 | images by a bilinear form `B` equals a product times a sum. The product runs over `i < D.m` and both |
| 604 | grids `z` of `triangleGLCard z ϑ i`, the order of `GL` at the node `(z, 0, i)` modulo |
| 605 | `triangleModulus z ϑ`. The sum runs over the tuples `S ∈ tuplesOn ϑ` of matrices on the edges of the |
| 606 | first path `TwoGridPath.first D.m`, which goes down both first columns. Its term is |
| 607 | `firstPointDatum S`, the indicator that each matrix reduces to the standard inclusion modulo |
| 608 | `triangleModulus z ϑ`, times `B` of the two forms mapped down the columns by `S` (`formMap`). -/ |
| 609 | lemma pairing_transposedChain_eq_sum {ϑ : D.MFoldTwist} |
| 610 | (B : D.GridForm false 0 0 →ₗ[ℂ] D.GridForm true 0 0 →ₗ[ℂ] ℂ) |
| 611 | (y' : D.GridForm false 0 D.m) (φ : D.GridForm true 0 D.m) : |
| 612 | B (transposedChain ϑ false 0 y') (D.transposedChain 1 true 0 φ) = |
| 613 | (∏ i ∈ range D.m, (triangleGLCard false ϑ i : ℂ) * triangleGLCard true ϑ i) * |
| 614 | ∑ S ∈ tuplesOn ϑ (TwoGridPath.first D.m).edges, firstPointDatum S * |
| 615 | B ((GridPath.column D.m.zero_le).formMap S false y') |
| 616 | ((GridPath.column D.m.zero_le).formMap S true φ) := by |
| 617 | set p : GridPath 0 D.m 0 0 := .column D.m.zero_le |
| 618 | have h_disjoint : Disjoint (p.edges false) (p.edges true) := |
| 619 | p.disjoint_edges_of_ne p Bool.false_ne_true |
| 620 | have h_glue_true (S S' : EdgeTuple ϑ) : |
| 621 | ∀ e ∈ p.edges true, (p.edges false).piecewise S S' e = S' e := |
| 622 | fun e he ↦ piecewise_eq_of_notMem _ _ _ (disjoint_right.1 h_disjoint he) |
| 623 | have h_mem (z : Bool) : ∀ i ∈ Ico 0 D.m, columnEdge z 0 i ∈ p.edges z := by |
| 624 | simp +contextual [p, edges_column] |
| 625 | -- Of a tuple glued from `S` and `S'` the column of the `Y` sees `S`, that of the `Ỹ` sees `S'`. |
| 626 | have h_datum (S S' : EdgeTuple ϑ) : firstPointDatum ((p.edges false).piecewise S S') = |
| 627 | columnPointDatum false 0 S * columnPointDatum true 0 S' := by |
| 628 | rw [firstPointDatum, columnPointDatum_congr fun i hi ↦ h_glue_true S S' _ (h_mem true i hi), |
| 629 | columnPointDatum_congr fun i hi ↦ piecewise_eq_of_mem _ _ _ (h_mem false i hi)] |
| 630 | have h_formMap_false (S S' : EdgeTuple ϑ) : |
| 631 | p.formMap ((p.edges false).piecewise S S') false = p.formMap S false := |
| 632 | p.formMap_congr fun e ↦ piecewise_eq_of_mem _ S S' |
| 633 | have h_sum : ∑ S ∈ tuplesOn ϑ (p.edges false ∪ p.edges true), |
| 634 | firstPointDatum S * B (p.formMap S false y') (p.formMap S true φ) = |
| 635 | B ((∑ S ∈ tuplesOn ϑ (p.edges false), columnPointDatum false 0 S • p.formMap S false) y') |
| 636 | ((∑ S ∈ tuplesOn ϑ (p.edges true), columnPointDatum true 0 S • p.formMap S true) φ) := by |
| 637 | rw [sum_tuplesOn_union h_disjoint, sum_comm] |
| 638 | simp only [h_datum, h_formMap_false, p.formMap_congr (h_glue_true _ _), LinearMap.coe_sum, |
| 639 | Finset.sum_apply, LinearMap.smul_apply, map_sum, map_smul, smul_eq_mul, mul_sum, mul_assoc] |
| 640 | exact sum_congr rfl fun _ _ ↦ sum_congr rfl fun _ _ ↦ mul_left_comm _ _ _ |
| 641 | rw [show (TwoGridPath.first D.m).edges = p.edges false ∪ p.edges true from rfl, h_sum, |
| 642 | transposedChain_one_true_eq_transposedChain ϑ zero_le, transposedChain_eq_sum zero_le, |
| 643 | transposedChain_eq_sum zero_le, |
| 644 | range_eq_Ico] |
| 645 | rw [prod_mul_distrib, LinearMap.smul_apply, map_smul, LinearMap.smul_apply, LinearMap.smul_apply, |
| 646 | map_smul, smul_eq_mul, smul_eq_mul, mul_assoc] |
| 647 | |
| 648 | /-! ### Invariance -/ |
| 649 | |
| 650 | /-- Let `k` be an invertible matrix modulo `gridModulus ϑ = 𝔟Q` in the level `nodeLevel` at a node |
| 651 | `(z, 0, i)` of the first column: the trivial subgroup for `z = false`, the kernel of reduction |
| 652 | modulo `𝔟` for `z = true`. Then `k` reduces to `1` under `reduceToTriangle ϑ z`, the reduction |
| 653 | modulo `π_M Q` for `z = false` and modulo `𝔟` for `z = true`, and for any `b` the character |
| 654 | `edgeChar` of the edge from `(z, 0, b)` to `(z, 0, b + 1)` is `1` at the determinant of `k`. -/ |
| 655 | lemma map_eq_one_and_edgeChar_eq_one_of_mem_nodeLevel {ϑ : D.MFoldTwist} {z : Bool} {b i : ℕ} |
| 656 | {k : GL (D.NodeIndex (z, 0, i)) (gridModulus ϑ).ResidueRing} |
| 657 | (hk : k ∈ nodeLevel ϑ (z, 0, i)) : |
| 658 | k.map (reduceToTriangle ϑ z) = 1 ∧ edgeChar ϑ (columnEdge z 0 b) k.val.det = 1 := by |
| 659 | cases z |
| 660 | · -- For `z = false` the level is trivial. |
| 661 | simp [show k = 1 by simpa [nodeLevel] using hk] |
| 662 | -- For `z = true` the character is untwisted, so it may be read at the modulus of the trivial |
| 663 | -- twist, where `k` is `1`. |
| 664 | replace hk : k.map (reduceToTriangle ϑ true) = 1 := by simpa [nodeLevel] using hk |
| 665 | obtain ⟨k₀, rfl⟩ := reductionGL_surjective k |
| 666 | have hk₀ : (D.gridModulus 1).reductionGL k₀ = 1 := |
| 667 | (Units.ext Modulus.factor_reductionGL).symm.trans hk |
| 668 | -- Both sides are the value at `k₀` of the adelic character `gridChar`, in which the twist |
| 669 | -- does not enter. |
| 670 | have h_char : edgeChar ϑ (columnEdge true 0 b) ((gridModulus ϑ).reductionGL k₀).val.det = |
| 671 | (D.gridModulus 1).charOfTamePart (gridTamePart 1 false b) |
| 672 | ((D.gridModulus 1).reductionGL k₀).val.det := |
| 673 | (gridChar_det (ϑ := ϑ) false b Unit 1 k₀).symm.trans (gridChar_det (ϑ := 1) false b Unit 1 k₀) |
| 674 | exact ⟨hk, by simp [h_char, hk₀]⟩ |
| 675 | |
| 676 | /-- Let `g` be a family of invertible matrices modulo `gridModulus ϑ`, one at each node, whose |
| 677 | members on the first path (the nodes `(z, 0, i)`, `i ≤ D.m`) lie in `nodeLevel`: they are `1` for |
| 678 | `z = false` and `1` modulo `D.piM ^ D.natB` for `z = true`. Then `g` fixes `Ψ¹ = firstPointDatum`, |
| 679 | the indicator that each matrix of the path reduces to the standard inclusion, under the action on |
| 680 | functions of tuples: the matrix from `p` to `q` becomes `(g q)⁻¹ * S (p, q) * g p`, and the value |
| 681 | is multiplied by the product of the characters of the edges at `det (g q) / det (g p)`. -/ |
| 682 | lemma firstPointDatum_invariant {ϑ : D.MFoldTwist} {g : NodeFamily ϑ} |
| 683 | (hg : ∀ z : Bool, ∀ i ≤ D.m, g (z, 0, i) ∈ nodeLevel ϑ (z, 0, i)) (S : EdgeTuple ϑ) : |
| 684 | edgeCharProd g (TwoGridPath.first D.m).edges * firstPointDatum (tupleAction g S) = |
| 685 | firstPointDatum S := by |
| 686 | have h_char : edgeCharProd g (TwoGridPath.first D.m).edges = 1 := prod_eq_one fun e he ↦ by |
| 687 | obtain ⟨z, i, hi, rfl⟩ := mem_edges_first.1 he |
| 688 | simp [(map_eq_one_and_edgeChar_eq_one_of_mem_nodeLevel (hg z i hi.le)).2, |
| 689 | (map_eq_one_and_edgeChar_eq_one_of_mem_nodeLevel (hg z (i + 1) hi)).2] |
| 690 | have h_red (z : Bool) (j : ℕ) (hj : j ≤ D.m) : (g (z, 0, j)).map (reduceToTriangle ϑ z) = 1 := |
| 691 | (map_eq_one_and_edgeChar_eq_one_of_mem_nodeLevel (b := 0) (hg z j hj)).1 |
| 692 | have h_column (z : Bool) : columnPointDatum z 0 (tupleAction g S) = columnPointDatum z 0 S := by |
| 693 | refine prod_congr rfl fun i hi ↦ ?_ |
| 694 | replace hi : i < D.m := (mem_Ico.1 hi).2 |
| 695 | -- `-coe_units_inv` keeps the inverse a unit, so that the map passes through it. |
| 696 | simp [edgePointDatum, tupleAction, Matrix.map_mul, -coe_units_inv, |
| 697 | ← GeneralLinearGroup.val_map_apply, h_red z i hi.le, h_red z (i + 1) hi] |
| 698 | simp [h_char, firstPointDatum, h_column] |
| 699 | |
| 700 | /-- The cosets of the level `nodeLevel` at a node form a finite type. -/ |
| 701 | instance fintypeQuotientNodeLevel {ϑ : D.MFoldTwist} (z : Bool) (a b : ℕ) : |
| 702 | Fintype (GL (D.GridIndex z a b) (gridModulus ϑ).ResidueRing ⧸ nodeLevel ϑ (z, a, b)) := |
| 703 | .ofFinite _ |
| 704 | |
| 705 | /-- A coset of the level `nodeLevel` for each of the spaces `Y_i` and `Ỹ^i_0` with `i < m`: of the |
| 706 | level `𝔪` at `Y_i` and of the level `𝔟` at `Ỹ^i_0`. -/ |
| 707 | abbrev LevelCosets (ϑ : D.MFoldTwist) : Type := |
| 708 | ∀ p : Bool × Fin D.m, |
| 709 | GL (D.NodeIndex (p.1, 0, p.2)) (gridModulus ϑ).ResidueRing ⧸ nodeLevel ϑ (p.1, 0, p.2) |
| 710 | |
| 711 | /-- Representatives of the cosets `x`, extended by `1` to the other spaces. -/ |
| 712 | def LevelCosets.out {ϑ : D.MFoldTwist} (x : LevelCosets ϑ) : NodeFamily ϑ |
| 713 | | (z, 0, i) => if h : i < D.m then (x (z, ⟨i, h⟩)).out else 1 |
| 714 | | _ => 1 |
| 715 | |
| 716 | private lemma LevelCosets.out_zero {ϑ : D.MFoldTwist} (x : LevelCosets ϑ) (z : Bool) (i : ℕ) : |
| 717 | x.out (z, 0, i) = if h : i < D.m then (x (z, ⟨i, h⟩)).out else 1 := rfl |
| 718 | |
| 719 | /-- The family by which the cosets `x` translate: the representatives, except that `Ỹ^0_0` |
| 720 | moves with `Y^0_0`. -/ |
| 721 | def LevelCosets.family {ϑ : D.MFoldTwist} (x : LevelCosets ϑ) : NodeFamily ϑ := |
| 722 | update x.out (true, 0, 0) (blockInlGL (D.gridDiagEquiv 0) (x.out (false, 0, 0))) |
| 723 | |
| 724 | /-- The sum `Ψ⁰` of the translates of `Ψ¹` over the coset families, each weighted by the |
| 725 | characters of the edges. The coset at `Ỹ^0_0` does not act, so each translate is counted a constant |
| 726 | number of times. -/ |
| 727 | def firstPathDatum (ϑ : D.MFoldTwist) (S : EdgeTuple ϑ) : ℂ := |
| 728 | ∑ x : LevelCosets ϑ, edgeCharProd x.family (TwoGridPath.first D.m).edges * |
| 729 | firstPointDatum (tupleAction x.family S) |
| 730 | |
| 731 | /-- Let `g` be an admissible family of invertible matrices modulo `gridModulus ϑ`: it is `1` at |
| 732 | `(false, 0, D.m)`, is `1` modulo `D.piM ^ D.natB` at `(true, 0, D.m)`, and at `(true, a, a)` is the |
| 733 | block sum of `g (false, a, a)` with `1`. Then `g` fixes `Ψ⁰ = firstPathDatum ϑ` under translation |
| 734 | of the matrices (`tupleAction`) followed by multiplication by the product `edgeCharProd` of the |
| 735 | characters of the edges, because `Ψ⁰` is the sum of the translates of the indicator |
| 736 | `firstPointDatum` over cosets of the levels `nodeLevel`, and `g` permutes these cosets. -/ |
| 737 | lemma firstPathDatum_invariant {ϑ : D.MFoldTwist} {g : NodeFamily ϑ} (hg : IsAdmissibleFamily g) |
| 738 | (S : EdgeTuple ϑ) : |
| 739 | edgeCharProd g (TwoGridPath.first D.m).edges * firstPathDatum ϑ (tupleAction g S) = |
| 740 | firstPathDatum ϑ S := by |
| 741 | obtain ⟨hg_end, hg_diag⟩ : (∀ z : Bool, g (z, 0, D.m) ∈ nodeLevel ϑ (z, 0, D.m)) ∧ |
| 742 | ∀ a : ℕ, g (true, a, a) = blockInlGL (D.gridDiagEquiv a) (g (false, a, a)) := hg |
| 743 | let σ : LevelCosets ϑ ≃ LevelCosets ϑ := piCongrRight fun p ↦ toPerm (g (p.1, 0, p.2)) |
| 744 | -- Reindex the translates by `σ`: the family of `σ x` and `g` times that of `x` differ by a |
| 745 | -- family in the levels, which fixes `Ψ¹`. |
| 746 | rw [firstPathDatum, firstPathDatum, mul_sum, |
| 747 | ← σ.sum_comp fun y ↦ _ * firstPointDatum (tupleAction y.family S)] |
| 748 | refine sum_congr rfl fun x _ ↦ ?_ |
| 749 | have h_coset (z : Bool) (i : ℕ) (hi : i ≤ D.m) : |
| 750 | ((σ x).out (z, 0, i))⁻¹ * (g (z, 0, i) * x.out (z, 0, i)) ∈ nodeLevel ϑ (z, 0, i) := by |
| 751 | obtain rfl | hi := hi.eq_or_lt |
| 752 | · rw [LevelCosets.out_zero, LevelCosets.out_zero, dite_eq_right (lt_irrefl _), |
| 753 | dite_eq_right (lt_irrefl _), inv_one, one_mul, mul_one] |
| 754 | exact hg_end z |
| 755 | · rw [LevelCosets.out_zero, LevelCosets.out_zero, dite_eq_left hi, dite_eq_left hi, |
| 756 | ← QuotientGroup.eq] |
| 757 | exact (QuotientGroup.out_eq' (σ x (z, ⟨i, hi⟩))).trans |
| 758 | (Quotient.mk_smul_out (nodeLevel ϑ (z, 0, i)) (g (z, 0, i)) (x (z, ⟨i, hi⟩))).symm |
| 759 | -- The level at `Y^0_0` is trivial, so the component at `Ỹ^0_0` is `1`. |
| 760 | have h_zero : ((σ x).out (false, 0, 0))⁻¹ * (g (false, 0, 0) * x.out (false, 0, 0)) = 1 := |
| 761 | mem_bot.1 (h_coset false 0 D.m.zero_le) |
| 762 | have h_level (z : Bool) (i : ℕ) (hi : i ≤ D.m) : |
| 763 | ((σ x).family⁻¹ * (g * x.family)) (z, 0, i) ∈ nodeLevel ϑ (z, 0, i) := by |
| 764 | by_cases h_corner : ((z, 0, i) : GridNode) = (true, 0, 0) |
| 765 | · cases h_corner |
| 766 | rw [Pi.mul_apply, Pi.inv_apply, Pi.mul_apply, LevelCosets.family, LevelCosets.family, |
| 767 | update_self, update_self, hg_diag 0, ← MonoidHom.map_mul (blockInlGL (D.gridDiagEquiv 0)), |
| 768 | ← MonoidHom.map_inv (blockInlGL (D.gridDiagEquiv 0)), |
| 769 | ← MonoidHom.map_mul (blockInlGL (D.gridDiagEquiv 0)), h_zero, MonoidHom.map_one] |
| 770 | exact one_mem _ |
| 771 | · rw [Pi.mul_apply, Pi.inv_apply, Pi.mul_apply, LevelCosets.family, LevelCosets.family, |
| 772 | update_of_ne h_corner, update_of_ne h_corner] |
| 773 | exact h_coset z i hi |
| 774 | rw [← firstPointDatum_invariant h_level (tupleAction (σ x).family S)] |
| 775 | simp only [← mul_assoc, ← edgeCharProd_mul, ← tupleAction_mul, mul_inv_cancel, one_mul] |
| 776 | |
| 777 | /-- The number of coset families `LevelCosets ϑ` is at most `edgeMatrixCountBound ϑ ^ (2 * D.m)`. |
| 778 | `edgeMatrixCountBound ϑ` bounds the number of matrices modulo `gridModulus ϑ` of an edge between |
| 779 | nodes of index at most `D.m`. -/ |
| 780 | lemma card_levelCosets_le {ϑ : D.MFoldTwist} : |
| 781 | card (LevelCosets ϑ) ≤ edgeMatrixCountBound ϑ ^ (2 * D.m) := by |
| 782 | rw [Fintype.card_pi] |
| 783 | refine (prod_le_pow_card univ _ (edgeMatrixCountBound ϑ) fun ⟨z, i⟩ _ ↦ ?_).trans_eq (by simp) |
| 784 | calc _ ≤ card (GL (D.NodeIndex (z, 0, i)) (gridModulus ϑ).ResidueRing) := |
| 785 | card_le_of_surjective _ QuotientGroup.mk_surjective |
| 786 | _ ≤ card (Matrix (D.NodeIndex (z, 0, i)) (D.NodeIndex (z, 0, i)) (gridModulus ϑ).ResidueRing) := |
| 787 | card_le_of_injective _ Units.val_injective |
| 788 | _ ≤ edgeMatrixCountBound ϑ := card_matrix_le_edgeMatrixCountBound (by simp) (by simp) |
| 789 | |
| 790 | /-- Put `m = D.m`. The function `Ψ⁰ = firstPathDatum ϑ`, the weighted sum of the translates of the |
| 791 | indicator `firstPointDatum`, is a path datum on the first path, the edges from `(z, 0, i)` to |
| 792 | `(z, 0, i + 1)` with `i < m`. Its values are sums of at most `N ^ (2 m)` roots of unity, where |
| 793 | `N = edgeMatrixCountBound ϑ` bounds the number of matrices modulo `gridModulus ϑ` between two nodes |
| 794 | with indices at most `m`. -/ |
| 795 | lemma isPathDatum_firstPathDatum (ϑ : D.MFoldTwist) : |
| 796 | IsPathDatum (edgeMatrixCountBound ϑ ^ (2 * D.m)) (TwoGridPath.first D.m).edges |
| 797 | (firstPathDatum ϑ) where |
| 798 | dependsOn S S' hS := by |
| 799 | have h_column (x : LevelCosets ϑ) (z : Bool) : columnPointDatum z 0 (tupleAction x.family S) = |
| 800 | columnPointDatum z 0 (tupleAction x.family S') := |
| 801 | columnPointDatum_congr fun i hi ↦ by |
| 802 | rw [tupleAction, tupleAction, hS _ (mem_edges_first.2 ⟨z, i, (mem_Ico.1 hi).2, rfl⟩)] |
| 803 | simp only [firstPathDatum, firstPointDatum, h_column] |
| 804 | invariant _ := firstPathDatum_invariant |
| 805 | hasLeftInv S hS e he h_vertical := by |
| 806 | -- Some translate of `Ψ¹` is nonzero at `S`, and translation keeps split injectivity. |
| 807 | obtain ⟨x, -, hx⟩ := exists_ne_zero_of_sum_ne_zero hS |
| 808 | obtain ⟨z, i, hi, rfl⟩ := mem_edges_first.1 he |
| 809 | obtain rfl : z = false := by simpa [IsVerticalEdge] using h_vertical |
| 810 | have h_false : columnPointDatum false 0 (tupleAction x.family S) ≠ 0 := |
| 811 | left_ne_zero_of_mul (right_ne_zero_of_mul hx) |
| 812 | obtain ⟨L, hL⟩ : HasLeftInv (tupleAction x.family S (columnEdge false 0 i)) := |
| 813 | hasLeftInv_of_edgePointDatum_ne_zero (prod_ne_zero_iff.1 h_false i (by simpa)) |
| 814 | refine ⟨(x.family (false, 0, i)).val * L * (x.family (false, 0, i + 1))⁻¹.val, ?_⟩ |
| 815 | -- Conjugate the equation of the left inverse `L` by the matrix at `(0, i)`. |
| 816 | simpa only [tupleAction, Matrix.mul_assoc, Matrix.mul_one, ← Units.val_mul, mul_inv_cancel, |
| 817 | Units.val_one] using congrArg |
| 818 | (fun M ↦ (x.family (false, 0, i)).val * M * (x.family (false, 0, i))⁻¹.val) hL |
| 819 | isSumOfRootsOfUnity S := by |
| 820 | have h_sum : IsSumOfRootsOfUnity (card (LevelCosets ϑ) * 1) (firstPathDatum ϑ S) := .sum fun x ↦ |
| 821 | (isSumOfRootsOfUnity_firstPointDatum _).mul_left (isOfFinOrder_edgeCharProd _ _) |
| 822 | exact h_sum.mono (by simpa using card_levelCosets_le) |
| 823 | |
| 824 | /-- For a tuple `S` of matrices let `periodAt S` be the period, for the twist `ϑ` and at the real |
| 825 | point `gInf`, of the images under `formMap S` down the first columns of a conjugate form `y'` on |
| 826 | `Y_m` and a form `φ` on `Ỹ^m_0`. The sum of `periodAt` over the tuples on the first path weighted by |
| 827 | `Ψ⁰` is the cardinality of `LevelCosets ϑ` times the sum weighted by `Ψ¹`, because every translate |
| 828 | of `Ψ¹` gives the same sum. -/ |
| 829 | lemma sum_firstPathDatum_mul {ϑ : D.MFoldTwist} (gInf : GInf D.E (D.gridSigns true 0 0 0)) |
| 830 | (y' : D.GridForm false 0 D.m) (φ : D.GridForm true 0 D.m) : |
| 831 | let periodAt (S : EdgeTuple ϑ) : ℂ := diagonalPeriodForm ϑ zero_le gInf |
| 832 | ((GridPath.column D.m.zero_le).formMap S false y') |
| 833 | ((GridPath.column D.m.zero_le).formMap S true φ) |
| 834 | ∑ S ∈ tuplesOn ϑ (TwoGridPath.first D.m).edges, firstPathDatum ϑ S * periodAt S = |
| 835 | card (LevelCosets ϑ) * ∑ S ∈ tuplesOn ϑ (TwoGridPath.first D.m).edges, |
| 836 | firstPointDatum S * periodAt S := by |
| 837 | intro periodAt |
| 838 | set pathEdges : Finset (GridNode × GridNode) := (TwoGridPath.first D.m).edges |
| 839 | have h_end (x : LevelCosets ϑ) (z : Bool) : x.family (z, 0, D.m) = 1 := by |
| 840 | have hne : ((z, 0, D.m) : GridNode) ≠ (true, 0, 0) := fun h ↦ by |
| 841 | have hm : D.m = 0 := congrArg (fun p : GridNode ↦ p.2.2) h |
| 842 | simp [m_eq_two_mul_varrho_add_two] at hm |
| 843 | rw [LevelCosets.family, update_of_ne hne, LevelCosets.out_zero, dite_eq_right (lt_irrefl _)] |
| 844 | have h_diag (x : LevelCosets ϑ) : |
| 845 | x.family (true, 0, 0) = blockInlGL (D.gridDiagEquiv 0) (x.family (false, 0, 0)) := by |
| 846 | simp [LevelCosets.family] |
| 847 | have h_period (x : LevelCosets ϑ) (S : EdgeTuple ϑ) : |
| 848 | periodAt (tupleAction x.family S) = edgeCharProd x.family pathEdges * periodAt S := |
| 849 | diagonalPeriodForm_tupleAction (h_end x) (h_diag x) gInf y' φ S |
| 850 | have h_translate (x : LevelCosets ϑ) : ∑ S ∈ tuplesOn ϑ pathEdges, |
| 851 | edgeCharProd x.family pathEdges * firstPointDatum (tupleAction x.family S) * periodAt S = |
| 852 | ∑ S ∈ tuplesOn ϑ pathEdges, firstPointDatum S * periodAt S := by |
| 853 | rw [← sum_tuplesOn_tupleAction x.family fun S ↦ firstPointDatum S * periodAt S] |
| 854 | refine sum_congr rfl fun S _ ↦ ?_ |
| 855 | rw [h_period, mul_left_comm, ← mul_assoc] |
| 856 | simp only [firstPathDatum, sum_mul] |
| 857 | rw [sum_comm, sum_eq_card_nsmul fun x _ ↦ h_translate x, card_univ, nsmul_eq_mul] |
| 858 | |
| 859 | /-- The number of coset families `LevelCosets` is the product of the indices `levelIndex` of the |
| 860 | levels of the nodes `(0, i)` in the grid of the `Y` and of the orders `triangleGLCard` in that of |
| 861 | the `Ỹ`, over `i < m`. -/ |
| 862 | lemma card_levelCosets_eq (ϑ : D.MFoldTwist) : (card (LevelCosets ϑ) : ℂ) = |
| 863 | ∏ i ∈ range D.m, levelIndex ϑ false 0 i * triangleGLCard true ϑ i := by |
| 864 | have h_index (z : Bool) (i : ℕ) : (card (GL (D.NodeIndex (z, 0, i)) (gridModulus ϑ).ResidueRing ⧸ |
| 865 | nodeLevel ϑ (z, 0, i)) : ℂ) = levelIndex ϑ z 0 i := by |
| 866 | rw [levelIndex, index_eq_card, Nat.card_eq_fintype_card] |
| 867 | have h_true (i : ℕ) : levelIndex ϑ true 0 i = triangleGLCard true ϑ i := |
| 868 | levelIndex_eq_card_GL_untwisted (Or.inl rfl) |
| 869 | rw [Fintype.card_pi, Nat.cast_prod, Fintype.prod_prod_type, Fintype.prod_bool, mul_comm] |
| 870 | simp only [h_index, h_true, prod_range, prod_mul_distrib] |
| 871 | |
| 872 | /-- Let `y'` be a conjugate form on `Y_m`, `φ` a form on `Ỹ^m_0`, and `g` a real point of the |
| 873 | unitary group of `Ỹ^0_0`. Move `y'` and `φ` down the first columns by the composites |
| 874 | `transposedChain` of transposed theta lifts, `y'` at the twist `ϑ` and `φ` at the trivial twist `1`. |
| 875 | The period at `g` of the images is a constant, independent of `ϑ`, times `gridPeriod` of |
| 876 | `Ψ⁰ = firstPathDatum` at `(ϑ, y', φ)`: the sum over the tuples `S` on the first path of `Ψ⁰ ϑ S` |
| 877 | times the period at `g` of the images of `y'` and `φ` under the matrices of `S`. -/ |
| 878 | lemma exists_diagonalPeriodForm_transposedChain_eq : |
| 879 | ∃ C : ℂ, ∀ (ϑ : D.MFoldTwist) (g : GInf D.E (D.gridSigns true 0 0 0)) |
| 880 | (y' : D.GridForm false 0 D.m) (φ : D.GridForm true 0 D.m), |
| 881 | diagonalPeriodForm ϑ zero_le g (transposedChain ϑ false 0 y') |
| 882 | (D.transposedChain 1 true 0 φ) = |
| 883 | C * gridPeriod (.first D.m) firstPathDatum g (ϑ, y', φ) := by |
| 884 | choose κ hκ using (D.exists_triangleGLCard_eq_mul_levelIndex : |
| 885 | ∀ j : ℕ, ∃ C : ℂ, ∀ ϑ : D.MFoldTwist, D.triangleGLCard false ϑ j = C * levelIndex ϑ false 0 j) |
| 886 | refine ⟨∏ i ∈ range D.m, κ i, fun ϑ g y' φ ↦ ?_⟩ |
| 887 | have h_period : gridPeriod (.first D.m) firstPathDatum g (ϑ, y', φ) = _ := |
| 888 | sum_firstPathDatum_mul g y' φ |
| 889 | -- The period of `Ψ⁰` is the number of coset families times that of `Ψ¹`. This number is the |
| 890 | -- product of the indices of the levels, and the orders for the `Y` are `κ i` times the indices. |
| 891 | rw [h_period, card_levelCosets_eq, pairing_transposedChain_eq_sum] |
| 892 | simp only [hκ, prod_mul_distrib, mul_assoc] |
| 893 | |
| 894 | /-- Put `m = D.m`; the first path `TwoGridPath.first m` consists of the edges from `(z, 0, i)` to |
| 895 | `(z, 0, i + 1)` with `i < m`. There are a constant `C` and, for each `m`-fold twist `ϑ`, a path |
| 896 | datum `Ψ ϑ` on the first path. They satisfy the following for a conjugate form `y'` on `Y^0_m`, a |
| 897 | form `φ` on `Ỹ^m_0` (`GridForm true 0 m`) and a point `g` of the archimedean unitary group `GInf` of |
| 898 | `Ỹ^0_0`. Move `y'` and `φ` down the first columns by the composites `transposedChain` of transposed |
| 899 | theta lifts, `y'` at `ϑ` and `φ` at the trivial twist `1`. The period `diagonalPeriodForm` at `g` of |
| 900 | the images is `C` times `gridPeriod`: the sum over the tuples `S` on the first path of `Ψ ϑ S` times |
| 901 | the period at `g` of the images of `y'` and `φ` under the matrices of `S`. -/ |
| 902 | lemma exists_isPathDatum_diagonalPeriodForm_eq : |
| 903 | ∃ (C : ℂ) (Ψ : ∀ ϑ : D.MFoldTwist, EdgeTuple ϑ → ℂ), ∀ ϑ : D.MFoldTwist, |
| 904 | IsPathDatum (edgeMatrixCountBound ϑ ^ (2 * D.m)) (TwoGridPath.first D.m).edges (Ψ ϑ) ∧ |
| 905 | ∀ (g : GInf D.E (D.gridSigns true 0 0 0)) (y' : D.GridForm false 0 D.m) |
| 906 | (φ : D.GridForm true 0 D.m), |
| 907 | diagonalPeriodForm ϑ zero_le g (transposedChain ϑ false 0 y') |
| 908 | (D.transposedChain 1 true 0 φ) = |
| 909 | C * gridPeriod (.first D.m) Ψ g (ϑ, y', φ) := by |
| 910 | obtain ⟨C, hC⟩ := exists_diagonalPeriodForm_transposedChain_eq (D := D) |
| 911 | exact ⟨C, firstPathDatum, fun ϑ ↦ ⟨isPathDatum_firstPathDatum ϑ, hC ϑ⟩⟩ |
| 912 | |
| 913 | end GridFirstColumns |
| 914 | |
| 915 | end New.Data |
| 916 | |
| 917 | end |