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 | public import TauCeti.Analysis.InnerProductSpace.ArrowTriangle |
| 4 | public import New.Determinant.AuxiliaryForms.GridFirstColumns |
| 5 | public import New.Determinant.Chain.TriangleLifts |
| 6 | public import New.Determinant.Chain.TriangleNorms |
| 7 | import New.Determinant.AuxiliaryForms.DeepLevelVanishing |
| 8 | import New.Determinant.Chain.ChainNorms |
| 9 | import New.OneLift.ComparisonOperator.ExchangeData |
| 10 | |
| 11 | /-! |
| 12 | # The maps `Θ^♭` and `res^♭`, and the first path |
| 13 | |
| 14 | The first path consists of the spaces `Ỹ^m_0, …, Ỹ^0_0` and `Y₀, …, Y_m`, which are hermitian spaces |
| 15 | over the CM field `D.E`. These are the nodes `(z, 0, i)`, the first columns of the two grids: |
| 16 | `(false, 0, i)` is `Y_i` and `(true, 0, i)` is `Ỹ^i_0`. The iterated transposed lifts |
| 17 | `New.Data.transposedChain` along such a column are the transposes of the chain of theta lifts |
| 18 | `TauCeti.ArrowTriangle.weightedChain`. In the grid of the `Ỹ` the composite of all `m` of them is |
| 19 | `Θ^♭ = D.transposedChain 1 true 0`. The letter `ϑ` stands for an `m`-fold twist (`D.MFoldTwist`): a |
| 20 | tame character whose powers up to the `m`-th are non-trivial at each place of its modulus `Q`. |
| 21 | |
| 22 | Notions from other files: |
| 23 | * `New.Data.GridForm` and `New.Data.TriangleForm`: in the grid of the `Y` (the Boolean `false`) the |
| 24 | conjugate forms and the forms at a node; in the grid of the `Ỹ` (the Boolean `true`) the forms and |
| 25 | the conjugate forms. |
| 26 | * `New.Data.triangleModulus`: the modulus of the point data along the first column of a grid. It is |
| 27 | `𝔪₀ = π_M Q` for the `Y` and `𝔟 = π_M ^ b` for the `Ỹ`, with `π_M = D.piM`. |
| 28 | * `New.Data.triangleGLCard`: the index `n_𝔪₀(Y_i)` or `n_𝔟(Ỹ^i_0)` of the level of that modulus. |
| 29 | Each lift and each transposed lift along the column is multiplied by the index of its smaller |
| 30 | space; for the `Ỹ` these factors are constants. |
| 31 | * `New.Data.principalForms`: the forms of the level `J_M = D.chosenLevel`, here on `Y₀`. |
| 32 | * `New.Data.lowerChainUpTo`: the chain of twisted lifts from `Y₀` to `Y_j`; for `j = m` it is `Θ_ϑ`. |
| 33 | |
| 34 | ## Main definitions and results |
| 35 | |
| 36 | * `New.Data.eq_zero_of_weightedChain_triangleLift_eq_zero`, |
| 37 | `New.Data.gridLevelForms_eq_map_transposedChain`: the chain of the `Ỹ` is injective on level `𝔟`, |
| 38 | and its transpose `Θ^♭` is onto that level. |
| 39 | * `New.Data.IsFlatRestriction`: the map `res^♭`, given by its pairings; |
| 40 | `New.Data.exists_isFlatRestriction_range_eq_top`: at a suitable real point it is onto. |
| 41 | * `New.Data.exists_isPathDatum_integral_eq`: the pairing with the lifts of a restriction is a |
| 42 | constant multiple of a period of path data on the first path. |
| 43 | |
| 44 | ## Relation to the literature |
| 45 | |
| 46 | See `New.Determinant.AuxiliaryForms.DeepLevelVanishing` for related work. |
| 47 | -/ |
| 48 | |
| 49 | @[expose] public section |
| 50 | |
| 51 | namespace New.Data |
| 52 | |
| 53 | open TauCeti.ArrowTriangle |
| 54 | |
| 55 | /-! ## Transposes of the chains of lifts, and surjectivity of `Θ^♭` -/ |
| 56 | |
| 57 | section DescentOnto |
| 58 | |
| 59 | open Space Submodule MeasureTheory Modulus |
| 60 | |
| 61 | variable {P : Parameters} (D : Data P) |
| 62 | |
| 63 | /-- Grid `z` is the grid of the `Y` for `z = false` and that of the `Ỹ` for `z = true`; its first |
| 64 | column has the nodes `0, …, m`. Let `χ = gridChar ϑ (!z) i n'` be the idele class character of |
| 65 | `U(1)` attached to the edge between the nodes `i` and `i + 1` of this column. It carries the twist |
| 66 | `ϑ ^ (i + 1)` for the `Y` and no twist for the `Ỹ`; the type `n'` enters only through the exponent |
| 67 | of the restriction `upsilonU1` to `U(1)` of the splitting character of the Weil representation. |
| 68 | Then `χ` is trivial on the determinant `detFin s u` of every finite integral point `u` of a unitary |
| 69 | group that is trivial modulo `triangleModulus z ϑ`, the ideal `π_M Q` for the `Y` and |
| 70 | `π_M ^ D.natB` for the `Ỹ`. The signs `s` are those of the hermitian form at the infinite places |
| 71 | and do not matter at the finite ones. -/ |
| 72 | lemma gridChar_detFin_eq_one (z : Bool) (ϑ : D.MFoldTwist) (i : ℕ) (n' : Type) [Fintype n'] |
| 73 | {n : Type} [Fintype n] [DecidableEq n] (s : n → ℤˣ) {u : stdLevel D.E n} |
| 74 | (hu : (triangleModulus z ϑ).reductionGL u = 1) : |
| 75 | (gridChar ϑ (!z) i n').val (detFin s u.val) = 1 := by |
| 76 | -- The tame part is trivial outside the modulus, so the value depends only on `u` modulo it. |
| 77 | have h_unramified (w : FinPlace D.E) (hw : w ∉ (triangleModulus z ϑ).places) : |
| 78 | gridTamePart ϑ (!z) i w = 1 := by |
| 79 | -- The places of the modulus are the chosen and twist places, outside which the part is trivial. |
| 80 | cases z <;> rw [Rows.places_levelModulus] at hw |
| 81 | · exact (D.descentPair (ϑ.pow (i + 1)) (i + 1)).tame_eq_one w hw |
| 82 | · exact (D.descentPair .one (i + 1)).tame_eq_one w hw |
| 83 | have h_value : ((gridChar ϑ (!z) i n').val (detFin s u.val) : ℂ) = |
| 84 | (triangleModulus z ϑ).charOfTamePart (gridTamePart ϑ (!z) i) |
| 85 | ((triangleModulus z ϑ).reductionGL u).val.det := |
| 86 | (gridChar_hasWeight ϑ (!z) i n').apply_det_eq_charOfTamePart h_unramified u |
| 87 | ext |
| 88 | simp [h_value, hu] |
| 89 | |
| 90 | /-- Let `S` and `T` be the hermitian spaces `D.gridSpace 0 z 0 i` and `D.gridSpace 0 z 0 (i + 1)` at |
| 91 | the nodes `i` and `i + 1` of the first column of the grid of the `Y` (`z = false`) or of the `Ỹ` |
| 92 | (`z = true`); the first argument `0`, the offset, selects the grids themselves. The product of their |
| 93 | adelic unitary groups acts on the data on `Hom(S, T)` by `New.pairWeil`, the Weil representation |
| 94 | times the characters `gridChar` of the edge on the two determinants. A pair `(u, u')` of finite |
| 95 | integral points that are trivial modulo the ideal `𝔫 = triangleModulus z ϑ` fixes the datum |
| 96 | `New.modDatum S T 𝔫 Ψ v`. This is the product of `v` at the infinite places, a vector of the Fock |
| 97 | model for the signs of `Hom(S, T)`, the function `Ψ` of matrices modulo `𝔫` at the places of `𝔫`, |
| 98 | and the vacuum elsewhere. -/ |
| 99 | lemma pairWeil_gridChar_modDatum_eq_self (z : Bool) (ϑ : D.MFoldTwist) (i : ℕ) |
| 100 | {u : stdLevel D.E (D.GridIndex z 0 i)} (hu : (triangleModulus z ϑ).reductionGL u = 1) |
| 101 | {u' : stdLevel D.E (D.GridIndex z 0 (i + 1))} (hu' : (triangleModulus z ϑ).reductionGL u' = 1) |
| 102 | (Ψ : Matrix (D.GridIndex z 0 (i + 1)) (D.GridIndex z 0 i) (triangleModulus z ϑ).ResidueRing → ℂ) |
| 103 | (v : Heisenberg.IsVacuum.Model |
| 104 | (Fock.realHeisenberg |
| 105 | (realSigns D.E (homSigns (D.gridSigns z 0 0 i) (D.gridSigns z 0 0 (i + 1)))))) : |
| 106 | pairWeil (D.gridSpace 0 z 0 i) (D.gridSpace 0 z 0 (i + 1)) |
| 107 | (gridChar ϑ (!z) i (D.GridIndex z 0 i)) (gridChar ϑ (!z) i (D.GridIndex z 0 (i + 1))) |
| 108 | ((1, u.val), 1, u'.val) |
| 109 | (modDatum (D.gridSpace 0 z 0 i) (D.gridSpace 0 z 0 (i + 1)) (triangleModulus z ϑ) Ψ v) = |
| 110 | modDatum (D.gridSpace 0 z 0 i) (D.gridSpace 0 z 0 (i + 1)) (triangleModulus z ϑ) Ψ v := by |
| 111 | -- The pair acts through its reduction modulo the modulus and through the two characters. |
| 112 | rw [pairWeil_modDatum_stdLevel, D.gridChar_detFin_eq_one z ϑ i _ _ hu, |
| 113 | D.gridChar_detFin_eq_one z ϑ i _ _ hu', hu, hu'] |
| 114 | simp |
| 115 | |
| 116 | /-- Let `φ` be an element of `GridForm z 0 D.m`: a conjugate form on `Y_m` for `z = false`, a form |
| 117 | on `Ỹ^m_0` for `z = true`. For a node `i < m` of that column, `transposedChain ϑ z i φ` is the image |
| 118 | of `φ` at the node `i` under the composite of the transposed theta lifts between neighbouring nodes, |
| 119 | a form with the weight `gridKernel z 0 i true`. Right translation `formRep` by a finite integral |
| 120 | point `u` that is trivial modulo `triangleModulus z ϑ` fixes this image. -/ |
| 121 | lemma formRep_transposedChain_eq_self (z : Bool) (ϑ : D.MFoldTwist) {i : ℕ} (hi_lt : i < D.m) |
| 122 | (φ : D.GridForm z 0 D.m) (u : stdLevel D.E (D.GridIndex z 0 i)) |
| 123 | (hu : (triangleModulus z ϑ).reductionGL u = 1) : |
| 124 | (D.gridSpace 0 z 0 i).formRep (D.gridKernel z 0 i true) u.val (transposedChain ϑ z i φ) = |
| 125 | transposedChain ϑ z i φ := by |
| 126 | -- The last transposed lift has a datum that `(u, 1)` fixes. |
| 127 | have h_pointLift_fixed (x : D.GridForm z 0 (i + 1)) : |
| 128 | (D.gridSpace 0 z 0 i).formRep (D.gridKernel z 0 i true) u.val (pointTransposedLift ϑ z i x) = |
| 129 | pointTransposedLift ϑ z i x := by |
| 130 | obtain ⟨-, h_arrow⟩ := (isEdgeFamily_grid_succ_right (z := z) id zero_le hi_lt).isArrow_modDatum |
| 131 | (i := ϑ) (S := D.gridSpace 0 z 0 i) (T := D.gridSpace 0 z 0 (i + 1)) |
| 132 | (Ψ := Exchange.pointDatum (triangleModulus z ϑ).ResidueRing) |
| 133 | -- As `(u, 1)` fixes the datum, `u` fixes every transposed lift. |
| 134 | have h_datum := D.pairWeil_gridChar_modDatum_eq_self z ϑ i hu (u' := 1) (map_one _) |
| 135 | simp only [pointTransposedLift, LinearMap.smul_apply, map_smul] |
| 136 | apply congrArg ((triangleGLCard z ϑ i : ℂ) • ·) |
| 137 | simpa using! h_arrow.formRep_formLift_of_eq_smul (c := 1) |
| 138 | ((h_datum _ _).trans (one_smul ℂ _).symm) x |
| 139 | rw [transposedChain_of_lt ϑ hi_lt, LinearMap.comp_apply, h_pointLift_fixed] |
| 140 | |
| 141 | /-- The space `TriangleForm z 0 i` consists of forms on `Y_i` for `z = false` and of conjugate forms |
| 142 | on `Ỹ^i_0` for `z = true`. For `0 < i ≤ m` let `y` be such a form at the node `0`. Its image under |
| 143 | the weighted chain of the `i` theta lifts `triangleLift` between neighbouring nodes, the one from |
| 144 | the node `b` multiplied by `triangleGLCard z ϑ b`, is fixed under right translation `triangleRep` by |
| 145 | every finite integral point `u` of the unitary group at the node `i` that is trivial modulo |
| 146 | `triangleModulus z ϑ`. -/ |
| 147 | lemma triangleRep_weightedChain_eq_self (z : Bool) (ϑ : D.MFoldTwist) {i : ℕ} (hi_ne : i ≠ 0) |
| 148 | (hi_le : i ≤ D.m) (y : D.TriangleForm z 0 0) (u : stdLevel D.E (D.GridIndex z 0 i)) |
| 149 | (hu : (triangleModulus z ϑ).reductionGL u = 1) : |
| 150 | D.triangleRep z 0 i u.val (weightedChain (fun ϑ n ↦ (D.triangleGLCard z ϑ n : ℝ)) |
| 151 | (D.triangleLift z) ϑ 0 i y) = |
| 152 | weightedChain (fun ϑ n ↦ (D.triangleGLCard z ϑ n : ℝ)) (D.triangleLift z) ϑ 0 i y := by |
| 153 | -- The last lift has a datum that `(1, u)` fixes. |
| 154 | obtain ⟨i, rfl⟩ : ∃ j : ℕ, i = j + 1 := Nat.exists_eq_succ_of_ne_zero hi_ne |
| 155 | have h_lift (x : D.TriangleForm z 0 i) : |
| 156 | D.triangleRep z 0 (i + 1) u.val (D.triangleLift z ϑ 0 i x) = D.triangleLift z ϑ 0 i x := by |
| 157 | obtain ⟨h_arrow, -⟩ := (isEdgeFamily_grid_succ_right (z := z) id zero_le hi_le).isArrow_modDatum |
| 158 | (i := ϑ) (S := D.gridSpace 0 z 0 i) (T := D.gridSpace 0 z 0 (i + 1)) |
| 159 | (Ψ := Exchange.pointDatum (triangleModulus z ϑ).ResidueRing) |
| 160 | -- As `(1, u)` fixes the datum, `u` fixes every lift. |
| 161 | have h_datum := D.pairWeil_gridChar_modDatum_eq_self z ϑ i (u := 1) (map_one _) hu |
| 162 | simpa using! h_arrow.formRep_formLift_of_eq_smul (c := 1) |
| 163 | ((h_datum _ _).trans (one_smul ℂ _).symm) x |
| 164 | rw [weightedChain_succ_apply, map_smul, h_lift] |
| 165 | |
| 166 | /-- For a node `i ≤ m`, let `U` be the image of `y` under the weighted chain of the `i` theta lifts |
| 167 | `triangleLift`, the one from the node `b` multiplied by `triangleGLCard z ϑ b`, the index at `b` of |
| 168 | the level of modulus `triangleModulus z ϑ`. Let `T b = transposedChain ϑ z b` be the composite of |
| 169 | the transposed lifts, equally weighted, from the node `m` to the node `b`; it acts on `φ`, which has |
| 170 | the conjugate weight to that of `y`. Then `∫ T i φ * U = ∫ T 0 φ * y`, each integral over the adelic |
| 171 | unitary group `New.G` of the node with its measure `quotMeasure` on the automorphic quotient. -/ |
| 172 | lemma integral_transposedChain_mul_weightedChain (z : Bool) (ϑ : D.MFoldTwist) {i : ℕ} |
| 173 | (hi_le : i ≤ D.m) (y : D.TriangleForm z 0 0) (φ : D.GridForm z 0 D.m) : |
| 174 | ∫ g : New.G D.E (D.gridSigns z 0 0 i), |
| 175 | transposedChain ϑ z i φ g * |
| 176 | weightedChain (fun ϑ n ↦ (D.triangleGLCard z ϑ n : ℝ)) (D.triangleLift z) ϑ 0 i y g |
| 177 | ∂(D.gridSpace 0 z 0 i).quotMeasure = |
| 178 | ∫ g : New.G D.E (D.gridSigns z 0 0 0), transposedChain ϑ z 0 φ g * y g |
| 179 | ∂(D.gridSpace 0 z 0 0).quotMeasure := by |
| 180 | -- Induction on `i`; the step uses the edge from node `i` to node `i + 1`. |
| 181 | induction i with |
| 182 | | zero => simp only [weightedChain_zero_apply] |
| 183 | | succ i ih => ?_ |
| 184 | obtain ⟨h_lift, h_transposed⟩ := |
| 185 | (isEdgeFamily_grid_succ_right (z := z) id zero_le hi_le).isArrow_modDatum |
| 186 | (i := ϑ) (S := D.gridSpace 0 z 0 i) (T := D.gridSpace 0 z 0 (i + 1)) |
| 187 | (Ψ := Exchange.pointDatum (triangleModulus z ϑ).ResidueRing) |
| 188 | -- The lift and the transposed lift along the edge carry the same weight. |
| 189 | have h_transpose (x : D.GridForm z 0 (i + 1)) (w : D.TriangleForm z 0 i) : |
| 190 | ∫ g, x g * ((triangleGLCard z ϑ i : ℂ) • D.triangleLift z ϑ 0 i w) g |
| 191 | ∂(D.gridSpace 0 z 0 (i + 1)).quotMeasure = |
| 192 | ∫ g, pointTransposedLift ϑ z i x g * w g ∂(D.gridSpace 0 z 0 i).quotMeasure := by |
| 193 | -- Move the weight inside the lift, transpose, and regroup it with the transposed lift. |
| 194 | rw [← map_smul] |
| 195 | refine (h_lift.integral_mul_formLift_swap h_transposed |
| 196 | ((triangleGLCard z ϑ i : ℂ) • w) x).trans ?_ |
| 197 | congr 1 with g |
| 198 | exact mul_right_comm (triangleGLCard z ϑ i : ℂ) (w g) _ |
| 199 | rw [weightedChain_succ_apply, RCLike.ofReal_natCast, h_transpose, ← ih (Nat.le_of_succ_le hi_le), |
| 200 | transposedChain_of_lt ϑ hi_le, LinearMap.comp_apply] |
| 201 | |
| 202 | /-- The grid of the `Ỹ` (the Boolean `true`) has the weight of the `Y` with the opposite sign, so |
| 203 | its `TriangleForm`s are conjugate forms; `D.triangleBase true` consists of those on `Ỹ^0_0` of level |
| 204 | `𝔟 = D.piM ^ D.natB`. The weighted chain of all `D.m` theta lifts `New.Data.triangleLift` from |
| 205 | `Ỹ^0_0` to `Ỹ^m_0`, for the trivial twist `1`, is injective on this space. -/ |
| 206 | lemma eq_zero_of_weightedChain_triangleLift_eq_zero {y : D.triangleBase true} |
| 207 | (hy : weightedChain (fun ϑ n ↦ (D.triangleGLCard true ϑ n : ℝ)) |
| 208 | (D.triangleLift true) 1 0 D.m y = 0) : |
| 209 | y = 0 := by |
| 210 | obtain ⟨d, h_triangle, -⟩ := D.exists_isTriangle true |
| 211 | exact h_triangle.eq_zero_of_weightedChain_eq_zero D.m 0 (by simp) y hy |
| 212 | |
| 213 | /-- Let `Ỹ^i_0` be the hermitian space at the node `(0, i)` of the grid of the `Ỹ` (the Boolean |
| 214 | `true`), and `D.gridLevelForms i` the forms of level `𝔟` on it: those fixed under right translation |
| 215 | by the finite integral points congruent to `1` modulo `𝔟 = D.piM ^ D.natB`, a power of the generator |
| 216 | of the product of the chosen places. For `i < m` the transposed theta lift from `Ỹ^(i+1)_0` to |
| 217 | `Ỹ^i_0` is weighted by the index of that level on `Ỹ^i_0`. The composite |
| 218 | `Θ^♭ = D.transposedChain 1 true 0` of all `D.m` of them, for the trivial twist `1`, maps forms of |
| 219 | level `𝔟` on `Ỹ^m_0` to forms of level `𝔟` on `Ỹ^0_0`. -/ |
| 220 | lemma map_transposedChain_le_gridLevelForms : |
| 221 | (D.gridLevelForms D.m).map (D.transposedChain 1 true 0) ≤ D.gridLevelForms 0 := by |
| 222 | rintro _ ⟨φ, -, rfl⟩ |
| 223 | refine mem_levelSpace_formRep_iff.2 fun k hk g ↦ ?_ |
| 224 | have h_fixed : (D.gridSpace 0 true 0 0).formRep (D.gridKernel true 0 0 true) k |
| 225 | (D.transposedChain 1 true 0 φ) = D.transposedChain 1 true 0 φ := |
| 226 | D.formRep_transposedChain_eq_self true 1 (Nat.pos_of_neZero D.m) φ ⟨k, hk.1⟩ |
| 227 | ((mem_principalLevel_iff gridModulus_one_ideal _).1 hk) |
| 228 | exact congrFun (congrArg Subtype.val h_fixed) g |
| 229 | |
| 230 | /-- Take the transposed theta lifts from `Ỹ^(i+1)_0` to `Ỹ^i_0` for `i < D.m`. Their composite |
| 231 | `Θ^♭ = D.transposedChain 1 true 0`, for the trivial twist `1`, maps the forms of level `𝔟` on |
| 232 | `Ỹ^m_0` onto those on `Ỹ^0_0`. -/ |
| 233 | lemma gridLevelForms_eq_map_transposedChain : |
| 234 | D.gridLevelForms 0 = (D.gridLevelForms D.m).map (D.transposedChain 1 true 0) := by |
| 235 | have : Module.Finite ℂ (D.gridLevelForms D.m) := finite_levelSpace |
| 236 | (isConjKernelPair_gridKernel (by simp) _).1 ⟨_, isOpen_principalLevel Fact.out⟩ |
| 237 | suffices orth_le : |
| 238 | ((D.gridLevelForms D.m).map (D.transposedChain 1 true 0))ᗮ ⊓ D.gridLevelForms 0 ≤ ⊥ by |
| 239 | simpa [le_bot_iff.1 orth_le] using |
| 240 | (sup_orthogonal_inf_of_hasOrthogonalProjection D.map_transposedChain_le_gridLevelForms).symm |
| 241 | rintro z ⟨hz_orth, hz_level⟩ |
| 242 | -- `y` is the conjugate of `z`, `U` its chain of lifts, and `φ` the conjugate of `U`. |
| 243 | let y : D.triangleBase true := ⟨conjForm (isConjKernelPair_gridKernel (by simp) true).2 z, |
| 244 | (conjForm_mem_levelSpace_iff _).2 hz_level⟩ |
| 245 | let U := weightedChain (fun ϑ n ↦ (D.triangleGLCard true ϑ n : ℝ)) (D.triangleLift true) 1 0 D.m y |
| 246 | let φ := conjForm (isConjKernelPair_gridKernel (by simp) false).2 U |
| 247 | have φ_mem : φ ∈ D.gridLevelForms D.m := |
| 248 | (conjForm_mem_levelSpace_iff _).2 fun k ↦ |
| 249 | (D.triangleRep_weightedChain_eq_self true 1 (NeZero.ne D.m) le_rfl y ⟨k.val, k.property.1⟩ |
| 250 | ((mem_principalLevel_iff gridModulus_one_ideal _).1 k.property)).trans |
| 251 | (one_smul ℂ U).symm |
| 252 | -- By transposition, `⟪U, U⟫ = ⟪z, Θ^♭ φ⟫ = 0`, so `U = 0` and hence `z = 0`. |
| 253 | have h := D.integral_transposedChain_mul_weightedChain true 1 le_rfl y φ |
| 254 | simp only [transposedChain_self, mul_comm (D.transposedChain 1 true 0 φ _)] at h |
| 255 | have hU : inner ℂ U U = 0 := |
| 256 | (h : inner ℂ U U = _).trans (inner_eq_zero_symm.1 (hz_orth _ ⟨φ, φ_mem, rfl⟩)) |
| 257 | exact Subtype.ext <| star_eq_zero.1 <| congrArg (fun x ↦ x.val.val) |
| 258 | (D.eq_zero_of_weightedChain_triangleLift_eq_zero (inner_self_eq_zero.1 hU)) |
| 259 | |
| 260 | end DescentOnto |
| 261 | |
| 262 | /-! |
| 263 | ## The first path |
| 264 | |
| 265 | Restrictions of forms that come from the definite space `Ỹ^m_0` reach every form of level `J_M` on |
| 266 | `Y₀`, and the pairing with the chain of lifts of such a restriction is a period of path data on the |
| 267 | first path. |
| 268 | -/ |
| 269 | |
| 270 | section FirstPath |
| 271 | |
| 272 | open MeasureTheory Function Exchange Space Submodule |
| 273 | |
| 274 | variable {P : Parameters} (D : Data P) |
| 275 | |
| 276 | /-- Every form is reached. Here `Y₀ = D.spaceY 0`, and `Ỹ^0_0` is its orthogonal sum with a line. |
| 277 | The level `J_M` consists of the finite integral points that are congruent to `1` modulo every chosen |
| 278 | place, that is, modulo every prime divisor of `π_M = D.piM`; `principalForms` are the forms of this |
| 279 | level. There is a real point `g₀` of `U(Ỹ^0_0)` such that for every such form `y ≠ 0` on `Y₀` there |
| 280 | is a form `φ` of level `𝔟 = π_M ^ D.natB` on the definite space `Ỹ^m_0` (`gridLevelForms D.m`) with |
| 281 | a nonzero pairing `diagonalPeriodForm` of the conjugate `conjForm` of `y` and `Θ^♭ φ` at `g₀`: the |
| 282 | integral of `star (y h)` times `(Θ^♭ φ) (h g₀)` over `U(Y₀)`. Here `Θ^♭` is |
| 283 | `D.transposedChain 1 true 0`, the composite of the transposed theta lifts whose datum at the places |
| 284 | of `𝔟` is the indicator of the inclusion matrix (`pointDatum`), each weighted by the index of the |
| 285 | level `𝔟` on its target. -/ |
| 286 | lemma exists_forall_diagonalPeriodForm_ne_zero : |
| 287 | ∃ g₀ : GInf D.E (D.gridSigns true 0 0 0), ∀ y ∈ D.principalForms (D.spaceY 0), y ≠ 0 → |
| 288 | ∃ φ ∈ D.gridLevelForms D.m, |
| 289 | diagonalPeriodForm 1 zero_le g₀ (conjForm D.gridKernel_zero_true_eq_star y) |
| 290 | (D.transposedChain 1 true 0 φ) ≠ 0 := by |
| 291 | -- `Θ^♭` is onto the forms of level `𝔟`, and no `y ≠ 0` is orthogonal to all their restrictions. |
| 292 | obtain ⟨g₀, h_eq_zero_of_orthogonal⟩ := D.exists_eq_zero_of_orthogonal_gridLevelForms |
| 293 | refine ⟨g₀, fun y hy hy_ne ↦ ?_⟩ |
| 294 | by_contra! h_zero |
| 295 | refine hy_ne (Subtype.ext (h_eq_zero_of_orthogonal y hy fun ψ hψ ↦ ?_)) |
| 296 | obtain ⟨φ, hφ, rfl⟩ := D.gridLevelForms_eq_map_transposedChain.le hψ |
| 297 | -- The pairing of `y` with a restriction is, by definition, the period of the conjugate of `y`. |
| 298 | have h_period (F : D.GridForm true 0 0) : |
| 299 | (D.spaceY 0).petersson y.val |
| 300 | (fun x ↦ F (G.reindex (.refl (D.Y 0 ⊕ Unit)) D.gridSigns_true_zero.symm (.sum (x, 1)) * |
| 301 | (g₀, 1))) = |
| 302 | diagonalPeriodForm 1 zero_le g₀ (conjForm D.gridKernel_zero_true_eq_star y) F := by |
| 303 | simp [petersson, periodPairing] |
| 304 | rfl |
| 305 | exact (h_period _).trans (h_zero φ hφ) |
| 306 | |
| 307 | variable {D} in |
| 308 | /-- `r` is a restriction map `res^♭` at the real point `g` of the unitary group of `Ỹ^0_0`, the sum |
| 309 | of `Y₀` and a line, in the sense of its pairings: every form `y` on `Y₀` of level `𝔪₀ = π_M Q`, |
| 310 | where `Q` is the modulus of some twist, has the same pairing with `r φ` as with the function |
| 311 | `h ↦ (Θ^♭ φ) (h g)` on `U(Y₀)`. Here `φ` is a form of level `𝔟` on `Ỹ^m_0` and `Θ^♭` is |
| 312 | `D.transposedChain 1 true 0`. The forms `y` of the level `J_M` (that of the prime divisors of |
| 313 | `π_M`) are among these, and their pairings determine `r`. -/ |
| 314 | def IsFlatRestriction (g : GInf D.E (D.gridSigns true 0 0 0)) |
| 315 | (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)) : Prop := |
| 316 | ∀ (φ : D.gridLevelForms D.m) (ϑ : D.MFoldTwist), |
| 317 | ∀ y ∈ levelSpace ((D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 false)) |
| 318 | (levelY ϑ 0), |
| 319 | (D.spaceY 0).petersson y (r φ) = |
| 320 | diagonalPeriodForm ϑ zero_le g (conjForm D.gridKernel_zero_true_eq_star y) |
| 321 | (D.transposedChain 1 true 0 φ) |
| 322 | |
| 323 | /-- Let `g` be a real point (`GInf`) of the unitary group of `Ỹ^0_0`, the sum of `Y₀ = D.spaceY 0` |
| 324 | and a line. Some linear map `r` from the forms of level `𝔟 = π_M ^ D.natB`, where `π_M = D.piM`, on |
| 325 | `Ỹ^m_0` (`gridLevelForms D.m`) to the forms on `Y₀` of level `J_M` (`principalForms`: integral |
| 326 | points congruent to `1` modulo the prime divisors of `π_M`) satisfies `IsFlatRestriction g`. -/ |
| 327 | lemma exists_isFlatRestriction (g : GInf D.E (D.gridSigns true 0 0 0)) : |
| 328 | ∃ r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0), IsFlatRestriction g r := by |
| 329 | obtain ⟨proj, h_proj⟩ := D.exists_petersson_eq_diagonalPeriodForm g |
| 330 | let thetaFlat : D.gridLevelForms D.m →ₗ[ℂ] D.gridLevelForms 0 := |
| 331 | (D.transposedChain 1 true 0).restrict |
| 332 | fun φ hφ ↦ D.gridLevelForms_eq_map_transposedChain.ge (mem_map_of_mem hφ) |
| 333 | exact ⟨proj ∘ₗ thetaFlat, fun φ ↦ h_proj (thetaFlat φ)⟩ |
| 334 | |
| 335 | /-- Let `Ỹ^0_0` be the orthogonal sum of `Y₀` and a line. There are a real point `g` of its unitary |
| 336 | group and a surjective linear map `r` from the forms of level `𝔟 = π_M ^ D.natB` on `Ỹ^m_0` to the |
| 337 | forms on `Y₀` of level `J_M` with `IsFlatRestriction g r`: every form `y` on `Y₀` of level |
| 338 | `𝔪₀ = π_M Q`, for an `m`-fold twist with modulus `Q`, has the same Petersson product with `r φ` as |
| 339 | with the function `h ↦ (Θ^♭ φ) (h g)` on `U(Y₀)`. -/ |
| 340 | lemma exists_isFlatRestriction_range_eq_top : |
| 341 | ∃ (g : GInf D.E (D.gridSigns true 0 0 0)) |
| 342 | (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)), |
| 343 | IsFlatRestriction g r ∧ r.range = ⊤ := by |
| 344 | obtain ⟨g, h_reach⟩ := D.exists_forall_diagonalPeriodForm_ne_zero |
| 345 | obtain ⟨r, hr⟩ := D.exists_isFlatRestriction g |
| 346 | -- The space is finite-dimensional, and a form `y` orthogonal to the range is zero. |
| 347 | refine ⟨g, r, hr, orthogonal_eq_bot_iff.1 (bot_unique fun y hy ↦ Subtype.ext ?_)⟩ |
| 348 | by_contra hy_ne |
| 349 | obtain ⟨φ, hφ, h_ne⟩ := h_reach _ y.property hy_ne |
| 350 | have h_orthogonal : (D.spaceY 0).petersson y.val.val (r ⟨φ, hφ⟩).val.val = 0 := |
| 351 | inner_eq_zero_symm.1 (hy _ (LinearMap.mem_range_self r ⟨φ, hφ⟩)) |
| 352 | -- The forms of level `J_M` have the level `𝔪₀` of the trivial twist. |
| 353 | have h_pairing : (D.spaceY 0).petersson y.val.val (r ⟨φ, hφ⟩).val.val = |
| 354 | diagonalPeriodForm 1 zero_le g (conjForm D.gridKernel_zero_true_eq_star y.val) |
| 355 | (D.transposedChain 1 true 0 φ) := |
| 356 | hr ⟨φ, hφ⟩ 1 _ (levelSpace_anti (levelY_le_chosenLevel ..) y.property) |
| 357 | exact h_ne (h_pairing.symm.trans h_orthogonal) |
| 358 | |
| 359 | variable {D} in |
| 360 | /-- Let `r` be a restriction map at `g` (`IsFlatRestriction`): it sends a form `φ` of level `𝔟` on |
| 361 | `Ỹ^m_0` to the form on `Y₀` with the Petersson products of `h ↦ (Θ^♭ φ) (h g)`. Let `y'` be in |
| 362 | `GridForm false 0 D.m`, a form on `Y_m` of the conjugate weight, and `ϑ` an `m`-fold twist. Then the |
| 363 | integral of `y'` times `lowerChainUpTo` of `r φ`, its image under the theta lifts twisted by `ϑ` and |
| 364 | weighted by level indices, is the period `diagonalPeriodForm` at `g`: the integral over `U(Y₀)` of |
| 365 | `y'Lift h * (Θ^♭ φ) (h g)`, where `y'Lift = transposedChain ϑ false 0 y'`. -/ |
| 366 | lemma IsFlatRestriction.integral_lowerChainUpTo {g : GInf D.E (D.gridSigns true 0 0 0)} |
| 367 | {r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)} (hr : IsFlatRestriction g r) |
| 368 | (ϑ : D.MFoldTwist) (y' : D.GridForm false 0 D.m) (φ : D.gridLevelForms D.m) : |
| 369 | ∫ x, y' x * D.lowerChainUpTo ϑ D.m (r φ) x ∂(D.spaceY D.m).quotMeasure = |
| 370 | diagonalPeriodForm ϑ zero_le g (transposedChain ϑ false 0 y') |
| 371 | (D.transposedChain 1 true 0 φ) := by |
| 372 | -- Transpose to `Y₀`; against the transposed lift `y'Lift` of `y'`, of level `𝔪₀`, one may |
| 373 | -- replace `r φ` by the restriction of `Θ^♭ φ`. |
| 374 | let y'Lift : D.GridForm false 0 0 := transposedChain ϑ false 0 y' |
| 375 | let y'Lift_conj : (D.gridSpace 0 false 0 0).Form (D.gridKernel false 0 0 false) := |
| 376 | conjForm (isConjKernelPair_gridKernel (by simp) true).2 y'Lift |
| 377 | have h_level : y'Lift_conj ∈ |
| 378 | levelSpace ((D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 false)) |
| 379 | (levelY ϑ 0) := |
| 380 | (conjForm_mem_levelSpace_iff _).2 fun k ↦ by |
| 381 | have h_fix : (D.gridSpace 0 false 0 0).formRep (D.gridKernel false 0 0 true) k.val y'Lift = |
| 382 | y'Lift := |
| 383 | D.formRep_transposedChain_eq_self false ϑ (Nat.pos_of_neZero D.m) y' |
| 384 | ⟨k.val, (mem_levelOf.1 k.property).1⟩ |
| 385 | ((LevelPlaces.ker_reductionGL_eq _).ge (mem_levelOf.1 k.property).2) |
| 386 | exact h_fix.trans (one_smul ℂ y'Lift).symm |
| 387 | have h_restrict : |
| 388 | ∫ x, y'Lift x * (r φ).val x ∂(D.spaceY 0).quotMeasure = |
| 389 | diagonalPeriodForm ϑ zero_le g y'Lift (D.transposedChain 1 true 0 φ) := by |
| 390 | simpa [y'Lift_conj, petersson, periodPairing] using! hr φ ϑ y'Lift_conj h_level |
| 391 | -- The chain of lifts is `weightedChain` with the weight written as the order of a group. |
| 392 | have h_chain : D.lowerChainUpTo ϑ D.m (r φ) = |
| 393 | weightedChain (fun ϑ n ↦ (D.triangleGLCard false ϑ n : ℝ)) |
| 394 | (D.triangleLift false) ϑ 0 D.m (r φ).val := by |
| 395 | simp +unfoldPartialApp [liftY, lowerChainUpTo, Exchange.weightedChain_eq_compUpTo, |
| 396 | ← LevelPlaces.card_GL_levelModulus] |
| 397 | rfl |
| 398 | -- By transposition the left side is `∫ y'Lift x * r φ x`. |
| 399 | refine Eq.trans ?_ h_restrict |
| 400 | simpa [transposedChain_self, h_chain] using! |
| 401 | D.integral_transposedChain_mul_weightedChain false ϑ le_rfl (r φ).val y' |
| 402 | |
| 403 | /-- The twisted edges are those that carry a power of the twist `ϑ` (`IsVerticalEdge`). There are |
| 404 | functions `Ψ ϑ`, one for each twist `ϑ`, of tuples `EdgeTuple ϑ` and a constant `α` as follows. |
| 405 | * `Ψ ϑ` is a path datum (`IsPathDatum`) on the first path: a function of the matrices on its edges, |
| 406 | invariant up to the edge characters under admissible families of group elements at the nodes, zero |
| 407 | unless those on twisted edges have left inverses, with values sums of at most |
| 408 | `edgeMatrixCountBound ϑ ^ (2 * D.m)` roots of unity. |
| 409 | * Whenever `r` is a restriction map at `g`, the pairing of a conjugate form `y'` on `Y_m` with the |
| 410 | chain `lowerChainUpTo` of theta lifts of `r φ` is `α` times `gridPeriod`: the sum over the tuples |
| 411 | `S` on the path of `Ψ ϑ S` times the period `diagonalPeriodForm` at `g` of the images of `y'` and |
| 412 | `φ` under the transposed lifts with the matrices of `S` along the two halves. -/ |
| 413 | lemma exists_isPathDatum_integral_eq : |
| 414 | ∃ Ψ : ∀ ϑ : D.MFoldTwist, EdgeTuple ϑ → ℂ, |
| 415 | (∀ ϑ : D.MFoldTwist, |
| 416 | IsPathDatum (edgeMatrixCountBound ϑ ^ (2 * D.m)) (TwoGridPath.first D.m).edges (Ψ ϑ)) ∧ |
| 417 | ∃ α : ℂ, ∀ (g : GInf D.E (D.gridSigns true 0 0 0)) |
| 418 | (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)), IsFlatRestriction g r → |
| 419 | ∀ (ϑ : D.MFoldTwist) (y' : D.GridForm false 0 D.m) (φ : D.gridLevelForms D.m), |
| 420 | ∫ x, y' x * D.lowerChainUpTo ϑ D.m (r φ) x ∂(D.spaceY D.m).quotMeasure = |
| 421 | α * gridPeriod (.first D.m) Ψ g (ϑ, y', φ) := by |
| 422 | obtain ⟨α, Ψ, hΨ⟩ := exists_isPathDatum_diagonalPeriodForm_eq (D := D) |
| 423 | exact ⟨Ψ, fun ϑ ↦ (hΨ ϑ).1, α, fun g r hr ϑ y' φ ↦ |
| 424 | (hr.integral_lowerChainUpTo ϑ y' φ).trans ((hΨ ϑ).2 g y' φ)⟩ |
| 425 | |
| 426 | /-- There are functions `Ψ ϑ`, one for each twist `ϑ`, of tuples `EdgeTuple ϑ`, a real point `g`, a |
| 427 | constant `α` and a map `r` from the forms of level `𝔟` on `Ỹ^m_0` onto the forms on `Y₀` of level |
| 428 | `J_M` as follows. |
| 429 | * `Ψ ϑ` is a path datum (`IsPathDatum`) on the first path: a function of the matrices on its edges, |
| 430 | invariant up to the edge characters under admissible families of group elements at the nodes, zero |
| 431 | unless those on twisted edges have left inverses, with values sums of at most |
| 432 | `edgeMatrixCountBound ϑ ^ (2 * D.m)` roots of unity. |
| 433 | * The pairing of a conjugate form `y'` on `Y_m` with the chain `lowerChainUpTo` of theta lifts of |
| 434 | `r φ` is `α` times `gridPeriod`: the sum over the tuples `S` on the path of `Ψ ϑ S` times the |
| 435 | period `diagonalPeriodForm` at `g` of the images of `y'` and `φ` under the transposed lifts with |
| 436 | the matrices of `S` along the two halves. -/ |
| 437 | lemma exists_isPathDatum_first : |
| 438 | ∃ Ψ : ∀ ϑ : D.MFoldTwist, EdgeTuple ϑ → ℂ, |
| 439 | (∀ ϑ : D.MFoldTwist, |
| 440 | IsPathDatum (edgeMatrixCountBound ϑ ^ (2 * D.m)) (TwoGridPath.first D.m).edges (Ψ ϑ)) ∧ |
| 441 | ∃ (g : GInf D.E (D.gridSigns true 0 0 0)) (α : ℂ) |
| 442 | (r : D.gridLevelForms D.m →ₗ[ℂ] D.principalForms (D.spaceY 0)), |
| 443 | r.range = ⊤ ∧ |
| 444 | ∀ (ϑ : D.MFoldTwist) (y' : D.GridForm false 0 D.m) (φ : D.gridLevelForms D.m), |
| 445 | ∫ x, y' x * D.lowerChainUpTo ϑ D.m (r φ) x ∂(D.spaceY D.m).quotMeasure = |
| 446 | α * gridPeriod (.first D.m) Ψ g (ϑ, y', φ) := by |
| 447 | obtain ⟨Ψ, hΨ, α, h_period⟩ := D.exists_isPathDatum_integral_eq |
| 448 | obtain ⟨g, r, hr, h_onto⟩ := D.exists_isFlatRestriction_range_eq_top |
| 449 | exact ⟨Ψ, hΨ, g, α, r, h_onto, h_period g r hr⟩ |
| 450 | |
| 451 | end FirstPath |
| 452 | |
| 453 | end New.Data |