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 New.UpperBound.Objects.Rows |
| 4 | public import Lib.Adelic.AutomorphicForms.AutomorphicAsAlgebraic |
| 5 | |
| 6 | /-! |
| 7 | # The chain of theta lifts ι_μ along the spaces Y_j: level, character and 𝖦-equivariance |
| 8 | |
| 9 | This file defines the theta lifts `New.Data.liftY` from forms on Y_j to forms on Y_{j+1} and their |
| 10 | composite, the chain ι_μ = `New.Data.lowerChain`, for a tame character ϑ with modulus Q. It |
| 11 | determines the level and character of the image on Y_m and shows that the chain commutes with |
| 12 | 𝖦 = ∏ GL_r(𝔽_w). The basis of Y_j is indexed by `New.BlockIndex`, a block 0 of size r followed by |
| 13 | j blocks of size t; `New.blockNumber` is the number of the block. |
| 14 | |
| 15 | ## Main definitions and results |
| 16 | |
| 17 | * `New.Data.lowerChain`, `New.Data.lowerChainAtLevel`: the chain; it lands in the level |
| 18 | `New.Data.lastLevel`, cut out by `New.Data.lastResidueLevel`, with the character |
| 19 | `New.Data.lastLevelChar`. |
| 20 | * `New.Data.algFormRep_lowerChain`: how block triangular elements act on the image; |
| 21 | `New.Data.lowerChain_principalRep`: the chain commutes with 𝖦 = ∏ GL_r(𝔽_w) (`New.Data.chosenGL`). |
| 22 | |
| 23 | Notions from other files: |
| 24 | * `New.Data.TameChar`: a character of U(1)(𝔸) of weight 0 with tame part supported on a finite set Q |
| 25 | of places of norm prime to MN, Q disjoint from its conjugate. |
| 26 | * `New.algFormRep`: right translation by the finite adelic unitary group on algebraic forms of a |
| 27 | given weight; the weight λ° on Y_m has column numbers `New.Data.columnsY` and determinant exponent |
| 28 | `New.Data.lastEntry` m. |
| 29 | * `New.Data.spaceY`: the hermitian space Y_j with its lattice 𝖬_j. |
| 30 | * `New.Data.levelPlaces`: the chosen places above p₀, p₁ and the places of the modulus Q of ϑ. |
| 31 | * `New.Data.pointDatumY`: the finite datum on Hom(Y_j, Y_{j+1}), the indicator of the inclusion |
| 32 | modulo the level places and the vacuum elsewhere. |
| 33 | -/ |
| 34 | |
| 35 | @[expose] public section |
| 36 | |
| 37 | noncomputable section |
| 38 | |
| 39 | section RowChain |
| 40 | |
| 41 | open New Space LevelPlaces Matrix Fin Units |
| 42 | |
| 43 | /-- The number, from 0 to j, of the block containing an index: 0 on R and l on the l-th copy of |
| 44 | T. -/ |
| 45 | def New.blockNumber {R T : Type} : ∀ j : ℕ, BlockIndex R T j → Fin (j + 1) |
| 46 | | 0 => 0 |
| 47 | | j + 1 => castSucc ∘ blockNumber j ⊕ᵥ fun _ ↦ last (j + 1) |
| 48 | |
| 49 | /-- An index has block number 0 if and only if it lies in the image of the first block R. -/ |
| 50 | lemma New.blockNumber_eq_zero_iff {R T : Type} (j : ℕ) : |
| 51 | ∀ i : BlockIndex R T j, blockNumber j i = 0 ↔ i ∈ Set.range (BlockIndex.firstBlock j) := by |
| 52 | induction j with |
| 53 | | zero => tauto |
| 54 | | succ j ih => |
| 55 | -- `BlockIndex.firstBlock (j + 1)` is `Sum.inl` after `BlockIndex.firstBlock j`. |
| 56 | change ∀ i : BlockIndex R T (j + 1), |
| 57 | blockNumber (j + 1) i = 0 ↔ ∃ r : R, Sum.inl (BlockIndex.firstBlock j r) = i |
| 58 | simpa! |
| 59 | |
| 60 | namespace New.Data |
| 61 | |
| 62 | variable {P : Parameters} {D : Data P} |
| 63 | |
| 64 | instance (j : ℕ) : Nonempty (D.Y j) := .map (BlockIndex.firstBlock j) inferInstance |
| 65 | |
| 66 | /-- The forms on U(Y_j) of the type given by the parameter `New.Data.paramY` and the signs of Y_j, |
| 67 | with the Petersson product. -/ |
| 68 | abbrev FormY (j : ℕ) : Type := (D.spaceY j).Form (typeKernel (D.paramY j) (D.signsY j)) |
| 69 | |
| 70 | variable (D) in |
| 71 | /-- The joint harmonic of lift j + 1: the product over the infinite places of the chosen joint |
| 72 | harmonics for the parameters and signs of Y_j and Y_{j+1}. The splitting character on a space of |
| 73 | rank n has weight ⌊n/2⌋ − w_{j+1}(τ) at τ. -/ |
| 74 | abbrev harmonicY (j : ℕ) : MvPolynomial (NumberField.InfinitePlace D.E × D.Y (j + 1) × D.Y j) ℂ := |
| 75 | jointHarmonic (D.gridWeight true j (D.Y j)) (D.gridWeight true j (D.Y (j + 1))) |
| 76 | (D.paramY j) (D.paramY (j + 1)) (D.signsY j) (D.signsY (j + 1)) |
| 77 | |
| 78 | /-- The datum φ ⊗ Υ on Hom(Y_j, Y_{j+1}) of lift j + 1: the joint harmonic at infinity and the |
| 79 | finite datum `New.Data.pointDatumY`. -/ |
| 80 | abbrev datumY (ϑ : D.TameChar) (j : ℕ) : 𝒮 ((D.spaceY j).hom (D.spaceY (j + 1))) := |
| 81 | (hom (D.spaceY j) (D.spaceY (j + 1))).integrated |
| 82 | (Fock.polyVector _ (D.harmonicY j)) (pointDatumY ϑ j).val |
| 83 | |
| 84 | /-- For j < m the doubled parameters `New.Data.paramY` of Y_j and Y_(j+1), with their signs, |
| 85 | correspond (`New.ParamsCorrespond`) for the weights `New.Data.gridWeight` of the characters of lift |
| 86 | j + 1. -/ |
| 87 | lemma paramsCorrespond_paramY {j : ℕ} (hj : j < D.m) : |
| 88 | ParamsCorrespond (D.gridWeight true j (D.Y j)) (D.gridWeight true j (D.Y (j + 1))) |
| 89 | (D.paramY j) (D.paramY (j + 1)) (D.signsY j) (D.signsY (j + 1)) := |
| 90 | -- The node `(0, j)` of the grid is the space `Y_j`, and lift `j + 1` is a step of the grid. |
| 91 | D.paramsCorrespond_grid_succ_right false 0 0 j D.m.zero_le hj (.inl rfl) |
| 92 | |
| 93 | /-- For j < m the datum `New.Data.datumY` ϑ j of lift j + 1 is an arrow (`New.IsArrow`: a kernel |
| 94 | whose lifts take forms of the source type to forms of the target type) both ways: (a) from forms on |
| 95 | Y_j to forms on Y_(j+1), and (b) for the swapped Weil representation, from forms of the conjugate |
| 96 | type on Y_(j+1) to forms of the conjugate type on Y_j. -/ |
| 97 | lemma isArrow_datumY (ϑ : D.TameChar) {j : ℕ} (hj : j < D.m) : |
| 98 | -- (a) |
| 99 | IsArrow (thetaKernelY ϑ j) (typeKernel (D.paramY j) (D.signsY j)) |
| 100 | (typeKernel (D.paramY (j + 1)) (D.signsY (j + 1))) (datumY ϑ j) ∧ |
| 101 | -- (b) |
| 102 | IsArrow (thetaKernelY ϑ j).swap (star (typeKernel (D.paramY (j + 1)) (D.signsY (j + 1)))) |
| 103 | (star (typeKernel (D.paramY j) (D.signsY j))) (datumY ϑ j) := |
| 104 | -- The parameters of `Y_j` and `Y_(j+1)` correspond, so the joint harmonic is an edge; an edge |
| 105 | -- tensored with a finite datum is an arrow both ways. |
| 106 | (paramsCorrespond_paramY hj).isEdge_jointHarmonic.isArrow _ _ (pointDatumY ϑ j).prop |
| 107 | |
| 108 | /-- For j < m the datum `New.Data.datumY` ϑ j of lift j + 1 is an arrow from forms on Y_j to forms |
| 109 | on Y_(j+1). -/ |
| 110 | lemma isArrow_thetaKernelY_datumY (ϑ : D.TameChar) {j : ℕ} (hj : j < D.m) : |
| 111 | IsArrow (thetaKernelY ϑ j) (typeKernel (D.paramY j) (D.signsY j)) |
| 112 | (typeKernel (D.paramY (j + 1)) (D.signsY (j + 1))) (datumY ϑ j) := |
| 113 | (isArrow_datumY ϑ hj).left |
| 114 | |
| 115 | /-- For j < m the datum `New.Data.datumY` ϑ j of lift j + 1 is an arrow for the swapped Weil |
| 116 | representation, from forms of the conjugate type on Y_(j+1) to forms of the conjugate type on |
| 117 | Y_j. -/ |
| 118 | lemma isArrow_swap_thetaKernelY_datumY (ϑ : D.TameChar) {j : ℕ} (hj : j < D.m) : |
| 119 | IsArrow (thetaKernelY ϑ j).swap (star (typeKernel (D.paramY (j + 1)) (D.signsY (j + 1)))) |
| 120 | (star (typeKernel (D.paramY j) (D.signsY j))) (datumY ϑ j) := |
| 121 | (isArrow_datumY ϑ hj).right |
| 122 | |
| 123 | /-- Lift j + 1, from forms on Y_j to forms on Y_{j+1}: the theta lift with datum `New.Data.datumY`, |
| 124 | multiplied by the index in K₀ of the level `New.Data.levelY`. -/ |
| 125 | def liftY (ϑ : D.TameChar) (j : ℕ) : D.FormY j →ₗ[ℂ] D.FormY (j + 1) := |
| 126 | (stdLevelIndex (levelY ϑ j) : ℂ) • |
| 127 | formLift (thetaKernelY ϑ j) (typeKernel (D.paramY j) (D.signsY j)) |
| 128 | (typeKernel (D.paramY (j + 1)) (D.signsY (j + 1))) (datumY ϑ j) |
| 129 | |
| 130 | /-- The group of reductions that cuts out the level on Y_m: the families in ∏_w GL(Y_m mod w), w |
| 131 | over the level places, that are 1 at the chosen places above p₀, p₁ (the left summand) and block |
| 132 | upper triangular at the places of Q (the right summand). -/ |
| 133 | def lastResidueLevel (ϑ : D.TameChar) : |
| 134 | Subgroup |
| 135 | (∀ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 136 | GL (D.Y D.m) (ResField ((D.levelPlaces ϑ).placeAt x))) := |
| 137 | Subgroup.pi Set.univ fun |
| 138 | | Sum.inl _ => ⊥ |
| 139 | | Sum.inr _ => parabolic (blockNumber D.m) |
| 140 | |
| 141 | /-- A family lies in `New.Data.lastResidueLevel` if and only if it is 1 at the chosen places above |
| 142 | p₀, p₁ and block upper triangular at the places of Q. -/ |
| 143 | lemma mem_lastResidueLevel {ϑ : D.TameChar} {g : LevelReductionsY ϑ D.m} : |
| 144 | g ∈ lastResidueLevel ϑ ↔ |
| 145 | (∀ x : (D.levelPlaces ϑ).ChosenIndex, g (Sum.inl x) = 1) ∧ |
| 146 | ∀ x : (D.levelPlaces ϑ).TwistIndex, g (Sum.inr x) ∈ parabolic (blockNumber D.m) := by |
| 147 | simp only [lastResidueLevel, Subgroup.mem_pi, Set.mem_univ, forall_const, Sum.forall, |
| 148 | Subgroup.mem_bot] |
| 149 | |
| 150 | /-- A family in `New.Data.lastResidueLevel` is 1 at the chosen places above p₀, p₁. -/ |
| 151 | lemma eq_one_of_mem_lastResidueLevel (ϑ : D.TameChar) {g : LevelReductionsY ϑ D.m} |
| 152 | (hg : g ∈ lastResidueLevel ϑ) (x : (D.levelPlaces ϑ).ChosenIndex) : |
| 153 | g (Sum.inl x) = 1 := |
| 154 | (mem_lastResidueLevel.mp hg).left x |
| 155 | |
| 156 | /-- For a tame character ϑ, the component of a family in `New.Data.lastResidueLevel` at any level |
| 157 | place (a chosen place above p₀, p₁ or a place of the modulus Q of ϑ) is block upper triangular for |
| 158 | the blocks `New.blockNumber` of Y_m. -/ |
| 159 | lemma mem_parabolic_of_mem_lastResidueLevel (ϑ : D.TameChar) {g : LevelReductionsY ϑ D.m} |
| 160 | (hg : g ∈ lastResidueLevel ϑ) |
| 161 | (x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex) : |
| 162 | g x ∈ parabolic (blockNumber D.m) := by |
| 163 | obtain ⟨h_one, h_tri⟩ := mem_lastResidueLevel.mp hg |
| 164 | cases x with |
| 165 | | inl x => |
| 166 | rw [h_one x] |
| 167 | exact one_mem _ |
| 168 | | inr x => exact h_tri x |
| 169 | |
| 170 | /-- The level J_m on the last space Y_m of the chain: the elements of K₀ = `New.stdLevel` that are 1 |
| 171 | modulo the chosen places above p₀, p₁ and block upper triangular modulo each place of Q. -/ |
| 172 | abbrev lastLevel (ϑ : D.TameChar) : Subgroup (Gf D.E (D.Y D.m)) := |
| 173 | levelOf (D.levelPlaces ϑ).placeAt (lastResidueLevel ϑ) |
| 174 | |
| 175 | /-- The composite of the first j theta lifts along Y₀, …, Y_j for the twist ϑ, from forms of |
| 176 | principal level at the chosen places on Y₀ to forms on Y_j. -/ |
| 177 | def lowerChainUpTo (ϑ : D.TameChar) (j : ℕ) : D.principalForms (D.spaceY 0) →ₗ[ℂ] D.FormY j := |
| 178 | compUpTo (liftY ϑ) j ∘ₗ (D.principalForms (D.spaceY 0)).subtype |
| 179 | |
| 180 | /-- The map ι_μ for the twist ϑ: the composite of the m lifts from forms of principal level at the |
| 181 | chosen places on Y₀ to forms on Y_m, read as algebraic forms of weight λ°. The subscript μ stands |
| 182 | for the characters μ_j⁰ϑ^j = `D.chainChar ϑ j` (1 ≤ j ≤ m) of the lifts. -/ |
| 183 | def lowerChain (ϑ : D.TameChar) : |
| 184 | D.principalForms (D.spaceY 0) →ₗ[ℂ] AlgForm (D.Y D.m) D.columnsY (D.lastEntry D.m) := |
| 185 | (toAlgForm (D.spaceY D.m) D.isHCParam_paramY).toLinearMap ∘ₗ lowerChainUpTo ϑ D.m |
| 186 | |
| 187 | /-- The determinants of the diagonal blocks of the upper left corner of a matrix on `j + 2` blocks |
| 188 | are those of its first `j + 1` diagonal blocks. -/ |
| 189 | lemma det_toSquareBlock_toBlocks₁₁ (j : ℕ) {R : Type*} [CommRing R] |
| 190 | (M : Matrix (D.Y (j + 1)) (D.Y (j + 1)) R) (l : Fin (j + 1)) : |
| 191 | (M.toBlocks₁₁.toSquareBlock (blockNumber j) l).det = |
| 192 | (M.toSquareBlock (blockNumber (j + 1)) l.castSucc).det := by |
| 193 | let σ : {a : D.Y j // blockNumber j a = l} ≃ {a // blockNumber (j + 1) a = l.castSucc} := |
| 194 | .trans (.ofInjective _ (Sum.inl_injective.comp Subtype.val_injective)) |
| 195 | (.subtypeEquivRight (by simp! [eq_comm])) |
| 196 | exact det_submatrix_equiv_self σ (M.toSquareBlock (blockNumber (j + 1)) l.castSucc) |
| 197 | |
| 198 | /-- The determinant of a block upper triangular matrix on `j + 2` blocks is that of its upper left |
| 199 | corner times that of its last diagonal block. -/ |
| 200 | lemma det_eq_det_toBlocks₁₁_mul (j : ℕ) {R : Type*} [CommRing R] |
| 201 | {M : Matrix (D.Y (j + 1)) (D.Y (j + 1)) R} (hM : M.BlockTriangular (blockNumber (j + 1))) : |
| 202 | M.det = M.toBlocks₁₁.det * (M.toSquareBlock (blockNumber (j + 1)) (last (j + 1))).det := by |
| 203 | have h_corner : M.toBlocks₁₁.BlockTriangular (blockNumber j) := |
| 204 | fun a b hab ↦ hM (castSucc_lt_castSucc_iff.2 hab) |
| 205 | simp [hM.det_fintype, prod_univ_castSucc, h_corner.det_fintype, det_toSquareBlock_toBlocks₁₁] |
| 206 | |
| 207 | /-- For parameters `P`, data `D : Data P`, `j : ℕ`, a ring `R`, and a block upper triangular matrix |
| 208 | `M` on `D.Y (j + 1)` over `R`, restricting the columns to `D.Y j` via `D.inclY j` agrees with |
| 209 | left-multiplying the upper left corner `M.toBlocks₁₁` by the inclusion matrix `inclMatrix`. -/ |
| 210 | private lemma submatrix_inclY_eq_inclMatrix_mul (j : ℕ) {R : Type*} [CommRing R] |
| 211 | {M : Matrix (D.Y (j + 1)) (D.Y (j + 1)) R} (hM : M.BlockTriangular (blockNumber (j + 1))) : |
| 212 | M.submatrix id (D.inclY j) = inclMatrix R (D.inclY j) * M.toBlocks₁₁ := by |
| 213 | refine (eq_inclMatrix_mul_iff (D.inclY j)).2 ?_ |
| 214 | rintro (a | b) ha c |
| 215 | · exact absurd ⟨a, rfl⟩ ha |
| 216 | · exact hM (castSucc_lt_last (blockNumber j c)) |
| 217 | |
| 218 | /-- Fix a tame character `ϑ` and assume that the datum of lift `j + 1` for `ϑ` is an arrow. Let `k`, |
| 219 | `k'` be integral finite points of `U(Y_(j+1))`, `U(Y_j)` with reductions `g`, `g'` at the level |
| 220 | places such that `g ι = ι g'` at each of them, for `ι` the matrix of the inclusion `Y_j → Y_(j+1)`. |
| 221 | Then the translate by `k` of the lift `liftY ϑ j z` of a form `z` is the lift of the translate of |
| 222 | `z` by `k'`, times the product over the level places of `ψ (det g) / ψ (det g')`, where |
| 223 | `ψ = chainTamePart ϑ j` is the tame part of the character of the lift. -/ |
| 224 | lemma formRep_liftY (ϑ : D.TameChar) (j : ℕ) |
| 225 | (h_arr : IsArrow (thetaKernelY ϑ j) (typeKernel (D.paramY j) (D.signsY j)) |
| 226 | (typeKernel (D.paramY (j + 1)) (D.signsY (j + 1))) (datumY ϑ j)) |
| 227 | {k : stdLevel D.E (D.Y (j + 1))} {k' : stdLevel D.E (D.Y j)} |
| 228 | {g : LevelReductionsY ϑ (j + 1)} {g' : LevelReductionsY ϑ j} |
| 229 | (hk : stdLevel.reduceFamily (D.levelPlaces ϑ).placeAt k = g) |
| 230 | (hk' : stdLevel.reduceFamily (D.levelPlaces ϑ).placeAt k' = g') |
| 231 | (h_incl : ∀ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 232 | (g x).val.submatrix id (D.inclY j) = |
| 233 | inclMatrix (ResField ((D.levelPlaces ϑ).placeAt x)) (D.inclY j) * (g' x).val) |
| 234 | (z : D.FormY j) : |
| 235 | (D.spaceY (j + 1)).formRep (typeKernel (D.paramY (j + 1)) (D.signsY (j + 1))) k.val |
| 236 | (liftY ϑ j z) = |
| 237 | (∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 238 | chainTamePart ϑ j ((D.levelPlaces ϑ).placeAt x) (g x).val.det / |
| 239 | chainTamePart ϑ j ((D.levelPlaces ϑ).placeAt x) (g' x).val.det) • |
| 240 | liftY ϑ j ((D.spaceY j).formRep (typeKernel (D.paramY j) (D.signsY j)) k'.val z) := by |
| 241 | set c : ℂ := ∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 242 | chainTamePart ϑ j ((D.levelPlaces ϑ).placeAt x) (g x).val.det / |
| 243 | chainTamePart ϑ j ((D.levelPlaces ϑ).placeAt x) (g' x).val.det |
| 244 | -- Translation by `k` moves through the lift to `k'` on the form and `(k', k)` on the datum. |
| 245 | have h_datum : (thetaKernelY ϑ j).ω ((1, k'.val), 1, k.val) (datumY ϑ j) = c • datumY ϑ j := by |
| 246 | rw [datumY, pairWeil_integrated_fin, thetaKernelY_omega_pointDatumY_eq_smul ϑ j hk' hk h_incl, |
| 247 | map_smul] |
| 248 | simp only [liftY, LinearMap.smul_apply, map_smul, h_arr.formRep_formLift k'.val k.val, h_datum] |
| 249 | exact smul_comm _ _ _ |
| 250 | |
| 251 | /-- For parameters `P`, data `D : Data P`, a tame character `ϑ`, `j : ℕ`, and a block upper |
| 252 | triangular family `g` of reductions on `D.Y (j + 1)`, the family of upper left corner blocks on |
| 253 | `D.Y j`. -/ |
| 254 | private def upperLeftReductions (ϑ : D.TameChar) (j : ℕ) (g : LevelReductionsY ϑ (j + 1)) |
| 255 | (h_tri : ∀ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 256 | (g x).val.BlockTriangular (blockNumber (j + 1))) : |
| 257 | LevelReductionsY ϑ j := fun x ↦ |
| 258 | GeneralLinearGroup.mkOfDetNeZero (g x).val.toBlocks₁₁ <| |
| 259 | left_ne_zero_of_mul <| |
| 260 | (det_eq_det_toBlocks₁₁_mul j (h_tri x)).symm.trans_ne (g x).det_ne_zero |
| 261 | |
| 262 | /-- For parameters `P`, data `D : Data P`, a tame character `ϑ`, `j : ℕ`, and a block upper |
| 263 | triangular family `g` of reductions on `D.Y (j + 1)` with upper left corner family `g'` on |
| 264 | `D.Y j`, the product over the level place indices `x` of the ratios of `chainTamePart ϑ j` at the |
| 265 | determinants of `g x` and `g' x`, times the product over `x` and `l < j` of `chainTamePart ϑ l` at |
| 266 | the diagonal blocks of `g' x`, equals the product over `x` and `l < j + 1` of `chainTamePart ϑ l` |
| 267 | at the diagonal blocks of `g x`. -/ |
| 268 | private lemma prod_chainTamePart_div_mul_prod_eq (ϑ : D.TameChar) (j : ℕ) |
| 269 | (g : LevelReductionsY ϑ (j + 1)) |
| 270 | (h_tri : ∀ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 271 | (g x).val.BlockTriangular (blockNumber (j + 1))) : |
| 272 | (∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 273 | chainTamePart ϑ j ((D.levelPlaces ϑ).placeAt x) (g x).val.det / |
| 274 | chainTamePart ϑ j ((D.levelPlaces ϑ).placeAt x) |
| 275 | (upperLeftReductions ϑ j g h_tri x).val.det) * |
| 276 | (∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, ∏ l : Fin j, |
| 277 | chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 278 | ((upperLeftReductions ϑ j g h_tri x).val.toSquareBlock (blockNumber j) l.succ).det) = |
| 279 | ∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, ∏ l : Fin (j + 1), |
| 280 | chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 281 | ((g x).val.toSquareBlock (blockNumber (j + 1)) l.succ).det := by |
| 282 | rw [mul_comm, ← Finset.prod_mul_distrib] |
| 283 | refine Finset.prod_congr rfl fun x _ ↦ ?_ |
| 284 | have h_det : (g x).val.det = (g x).val.toBlocks₁₁.det * |
| 285 | ((g x).val.toSquareBlock (blockNumber (j + 1)) (last (j + 1))).det := |
| 286 | det_eq_det_toBlocks₁₁_mul j (h_tri x) |
| 287 | have hA_det : (g x).val.toBlocks₁₁.det ≠ 0 := |
| 288 | (upperLeftReductions ϑ j g h_tri x).det_ne_zero |
| 289 | simp [upperLeftReductions, prod_univ_castSucc, det_toSquareBlock_toBlocks₁₁, h_det, hA_det, |
| 290 | MulChar.apply_eq_zero_iff] |
| 291 | |
| 292 | /-- Fix a tame character `ϑ` and `j ≤ m`. Let `k` be an element of K₀ (`stdLevel`, the stabiliser of |
| 293 | the standard lattice) on `Y_j` (`D.spaceY j`) whose reductions `g` at the level places are block |
| 294 | upper triangular and have block 0 equal to `s` (in `chosenGL`) at the chosen places. Then the |
| 295 | translate by `k` of `lowerChainUpTo ϑ j y`, the composite of the first `j` lifts applied to `y`, is |
| 296 | that composite applied to `c • (s · y)`, where `s · y` is the action `principalRep`. Here `c` is the |
| 297 | product over the level places and `l < j` of the tame character `chainTamePart ϑ l` of lift `l + 1` |
| 298 | at the determinant of the diagonal block `l + 1` of `g`. -/ |
| 299 | lemma formRep_lowerChainUpTo_eq_lowerChainUpTo_smul (ϑ : D.TameChar) {j : ℕ} (hj : j ≤ D.m) |
| 300 | (s : D.chosenGL) |
| 301 | (y : D.principalForms (D.spaceY 0)) (k : stdLevel D.E (D.Y j)) (g : LevelReductionsY ϑ j) |
| 302 | (hk : stdLevel.reduceFamily (D.levelPlaces ϑ).placeAt k = g) |
| 303 | (h_tri : ∀ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 304 | (g x).val.BlockTriangular (blockNumber j)) |
| 305 | (h_first : ∀ x : (D.levelPlaces ϑ).ChosenIndex, |
| 306 | (g (Sum.inl x)).val.submatrix (BlockIndex.firstBlock j) (BlockIndex.firstBlock j) = |
| 307 | (s x).val) : |
| 308 | (D.spaceY j).formRep (typeKernel (D.paramY j) (D.signsY j)) k.val (lowerChainUpTo ϑ j y) = |
| 309 | lowerChainUpTo ϑ j |
| 310 | ((∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, ∏ l : Fin j, |
| 311 | chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 312 | ((g x).val.toSquareBlock (blockNumber j) l.succ).det) • |
| 313 | D.principalRep (D.spaceY 0) s y) := by |
| 314 | -- Induction on `j`: the last lift turns the action of `k` into that of a lift of the upper left |
| 315 | -- block of `g`, up to the character value on the last diagonal block. |
| 316 | induction j with |
| 317 | | zero => |
| 318 | -- On `Y₀` the element `k` reduces to `s`, so it acts as the chosen lift of `s` does. |
| 319 | have h_red : stdLevel.reduceFamily D.chosenPlace k = s := by |
| 320 | subst hk |
| 321 | exact funext fun x ↦ Units.ext (h_first x) |
| 322 | rw [Finset.prod_eq_one fun x _ ↦ prod_univ_zero _, one_smul] |
| 323 | exact (apply_liftResidue_eq (W := D.FormY 0) y k h_red).symm |
| 324 | | succ j ih => |
| 325 | -- The upper left block of `g x` has the same diagonal blocks as `g x`, except the last. |
| 326 | let ι : Type := (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex |
| 327 | let g' : LevelReductionsY ϑ j := upperLeftReductions ϑ j g h_tri |
| 328 | have hA_tri (x : ι) : (g' x).val.BlockTriangular (blockNumber j) := |
| 329 | fun a b hab ↦ h_tri x (castSucc_lt_castSucc_iff.2 hab) |
| 330 | -- The lower left block of `g x` vanishes. |
| 331 | have h_incl (x : ι) : (g x).val.submatrix id (D.inclY j) = |
| 332 | inclMatrix (ResField ((D.levelPlaces ϑ).placeAt x)) (D.inclY j) * (g' x).val := |
| 333 | submatrix_inclY_eq_inclMatrix_mul j (h_tri x) |
| 334 | let c_last : ℂ := ∏ x : ι, chainTamePart ϑ j ((D.levelPlaces ϑ).placeAt x) (g x).val.det / |
| 335 | chainTamePart ϑ j ((D.levelPlaces ϑ).placeAt x) (g' x).val.det |
| 336 | let c_init : ℂ := ∏ x : ι, ∏ l : Fin j, |
| 337 | chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 338 | ((g' x).val.toSquareBlock (blockNumber j) l.succ).det |
| 339 | -- By `det_eq_det_toBlocks₁₁_mul` the new factor is `chainTamePart ϑ j` at the determinant of |
| 340 | -- the last block. |
| 341 | have h_scalar : c_last * c_init = ∏ x : ι, ∏ l : Fin (j + 1), |
| 342 | chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 343 | ((g x).val.toSquareBlock (blockNumber (j + 1)) l.succ).det := |
| 344 | prod_chainTamePart_div_mul_prod_eq ϑ j g h_tri |
| 345 | calc (D.spaceY (j + 1)).formRep (typeKernel (D.paramY (j + 1)) (D.signsY (j + 1))) k.val |
| 346 | (liftY ϑ j (lowerChainUpTo ϑ j y)) |
| 347 | _ = c_last • liftY ϑ j ((D.spaceY j).formRep (typeKernel (D.paramY j) (D.signsY j)) |
| 348 | (liftResidue g').val (lowerChainUpTo ϑ j y)) := |
| 349 | formRep_liftY ϑ j (isArrow_thetaKernelY_datumY ϑ hj) hk (reduceFamily_liftResidue g') h_incl |
| 350 | (lowerChainUpTo ϑ j y) |
| 351 | _ = c_last • liftY ϑ j (lowerChainUpTo ϑ j (c_init • D.principalRep (D.spaceY 0) s y)) := by |
| 352 | rw [ih (Nat.le_of_succ_le hj) _ g' (reduceFamily_liftResidue g') hA_tri h_first] |
| 353 | _ = liftY ϑ j (lowerChainUpTo ϑ j ((c_last * c_init) • D.principalRep (D.spaceY 0) s y)) := by |
| 354 | rw [map_smul, map_smul, map_smul, map_smul, smul_smul] |
| 355 | _ = lowerChainUpTo ϑ (j + 1) |
| 356 | ((∏ x : ι, ∏ l : Fin (j + 1), chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 357 | ((g x).val.toSquareBlock (blockNumber (j + 1)) l.succ).det) • |
| 358 | D.principalRep (D.spaceY 0) s y) := by |
| 359 | rw [h_scalar] |
| 360 | rfl |
| 361 | |
| 362 | /-- The law of the chain ι_μ = `lowerChain ϑ` of the m lifts with characters μ_j⁰ϑ^j, for a tame |
| 363 | character ϑ with modulus Q. Let k ∈ K₀ on Y_m have reductions g = (g_w) at the level places w that |
| 364 | are block upper triangular at every w and have block 0 equal to s ∈ 𝖦 at the chosen places. Then |
| 365 | k·ι_μ(y) = c · ι_μ(s·y), where c is the product over all w and all l < m of the tame character |
| 366 | `chainTamePart ϑ l` of lift l + 1 at w, evaluated on the determinant of the diagonal block l + 1 of |
| 367 | g_w. -/ |
| 368 | lemma algFormRep_lowerChain (ϑ : D.TameChar) (s : D.chosenGL) (y : D.principalForms (D.spaceY 0)) |
| 369 | (k : stdLevel D.E (D.Y D.m)) (g : LevelReductionsY ϑ D.m) |
| 370 | (hk : stdLevel.reduceFamily (D.levelPlaces ϑ).placeAt k = g) |
| 371 | (h_tri : ∀ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 372 | (g x).val.BlockTriangular (blockNumber D.m)) |
| 373 | (h_first : ∀ x : (D.levelPlaces ϑ).ChosenIndex, |
| 374 | (g (Sum.inl x)).val.submatrix (BlockIndex.firstBlock D.m) (BlockIndex.firstBlock D.m) = |
| 375 | (s x).val) : |
| 376 | algFormRep D.columnsY (D.lastEntry D.m) k.val (lowerChain ϑ y) = |
| 377 | (∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, ∏ l : Fin D.m, |
| 378 | chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 379 | ((g x).val.toSquareBlock (blockNumber D.m) l.succ).det) • |
| 380 | lowerChain ϑ (D.principalRep (D.spaceY 0) s y) := by |
| 381 | -- Pass from algebraic forms back to forms on `Y_m`; `toAlgForm` commutes with translation. |
| 382 | let toAlg : D.FormY D.m ≃ₗ[ℂ] AlgForm (D.Y D.m) D.columnsY (D.lastEntry D.m) := |
| 383 | (D.spaceY D.m).toAlgForm D.isHCParam_paramY |
| 384 | rw [← map_smul] |
| 385 | calc algFormRep D.columnsY (D.lastEntry D.m) k.val (toAlg (lowerChainUpTo ϑ D.m y)) |
| 386 | _ = toAlg ((D.spaceY D.m).formRep (typeKernel (D.paramY D.m) (D.signsY D.m)) k.val |
| 387 | (lowerChainUpTo ϑ D.m y)) := |
| 388 | (toAlgForm_formRep D.isHCParam_paramY k.val (lowerChainUpTo ϑ D.m y)).symm |
| 389 | _ = toAlg (lowerChainUpTo ϑ D.m |
| 390 | ((∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, ∏ l : Fin D.m, |
| 391 | chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 392 | ((g x).val.toSquareBlock (blockNumber D.m) l.succ).det) • |
| 393 | D.principalRep (D.spaceY 0) s y)) := |
| 394 | congrArg toAlg (formRep_lowerChainUpTo_eq_lowerChainUpTo_smul ϑ le_rfl s y k g hk h_tri |
| 395 | h_first) |
| 396 | |
| 397 | /-- The character of the level on Y_m: k ↦ ∏_w ∏_{l<m} ψ_{l,w}(det k_w^{(l+1)}), where w runs over |
| 398 | all level places (the chosen ones above p₀, p₁ and those of Q), k_w^{(l+1)} is the diagonal block |
| 399 | l + 1 of the component k_w (`New.blockHom`) and ψ_l = `New.Data.chainTamePart` ϑ l is the tame |
| 400 | character of lift l + 1. The chain of compositions reads from the right: component at w, block, |
| 401 | determinant, character. -/ |
| 402 | def lastLevelChar (ϑ : D.TameChar) : lastResidueLevel ϑ →* ℂ := |
| 403 | ∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, ∏ l : Fin D.m, |
| 404 | (chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x)).toMonoidHom.comp |
| 405 | (detMonoidHom.comp |
| 406 | ((coeHom _).comp |
| 407 | ((blockHom (blockNumber D.m) l.succ).comp |
| 408 | ((Pi.evalMonoidHom _ x).restrict fun _ hg ↦ |
| 409 | mem_parabolic_of_mem_lastResidueLevel ϑ hg x)))) |
| 410 | |
| 411 | /-- Let ϑ be a tame character with modulus Q and y a form on Y₀ of principal level at the chosen |
| 412 | places. The level `lastLevel ϑ` consists of the k ∈ K₀ on Y_m that reduce to 1 at the chosen places |
| 413 | and are block upper triangular modulo the places of Q. Such a k multiplies the algebraic form |
| 414 | ι_μ(y) = `lowerChain ϑ y` by the value of `lastLevelChar ϑ` at the reductions (k_w) of k: the |
| 415 | product, over these places w and over l < m, of the tame character `chainTamePart ϑ l` of lift l + 1 |
| 416 | at w, evaluated on the determinant of the diagonal block l + 1 of k_w. -/ |
| 417 | lemma lowerChain_mem_levelSpace (ϑ : D.TameChar) (y : D.principalForms (D.spaceY 0)) : |
| 418 | lowerChain ϑ y ∈ levelSpace (algFormRep D.columnsY (D.lastEntry D.m)) |
| 419 | (lastLevel ϑ) |
| 420 | ((lastLevelChar ϑ).comp (levelOf.reduction (D.levelPlaces ϑ).placeAt |
| 421 | (lastResidueLevel ϑ))) := by |
| 422 | refine mem_levelSpace.2 fun k ↦ ?_ |
| 423 | -- The reduction `g` of `k` is block triangular, and trivial at the chosen places. |
| 424 | obtain ⟨hk, hg_mem⟩ := mem_levelOf.1 k.prop |
| 425 | set g : LevelReductionsY ϑ D.m := |
| 426 | stdLevel.reduceFamily (D.levelPlaces ϑ).placeAt ⟨k.val, hk⟩ |
| 427 | have h_tri (x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex) : |
| 428 | (g x).val.BlockTriangular (blockNumber D.m) := |
| 429 | mem_parabolic_of_mem_lastResidueLevel ϑ hg_mem x |
| 430 | have h_first (x : (D.levelPlaces ϑ).ChosenIndex) : |
| 431 | (g (Sum.inl x)).val.submatrix (BlockIndex.firstBlock D.m) (BlockIndex.firstBlock D.m) = |
| 432 | ((1 : D.chosenGL) x).val := by |
| 433 | rw [eq_one_of_mem_lastResidueLevel ϑ hg_mem x] |
| 434 | exact submatrix_one_embedding _ |
| 435 | -- Take `s = 1` in the law of the chain; its scalar is the value of `lastLevelChar` at `g`. |
| 436 | have h_scalar : lastLevelChar ϑ ⟨g, hg_mem⟩ = |
| 437 | ∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, ∏ l : Fin D.m, |
| 438 | chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 439 | ((g x).val.toSquareBlock (blockNumber D.m) l.succ).det := by |
| 440 | simp only [lastLevelChar, MonoidHom.finsetProd_apply] |
| 441 | rfl |
| 442 | refine (algFormRep_lowerChain ϑ 1 y ⟨k.val, hk⟩ g rfl h_tri h_first).trans ?_ |
| 443 | rw [← h_scalar, map_one, one_apply_eq_self] |
| 444 | rfl |
| 445 | |
| 446 | /-- The map ι_μ with its target restricted to the space of algebraic forms on Y_m with level J_m |
| 447 | (`New.Data.lastLevel`) and the character `New.Data.lastLevelChar`. -/ |
| 448 | def lowerChainAtLevel (ϑ : D.TameChar) : |
| 449 | D.principalForms (D.spaceY 0) →ₗ[ℂ] |
| 450 | LevelForm (D.levelPlaces ϑ) (lastResidueLevel ϑ) (lastLevelChar ϑ) D.columnsY |
| 451 | (D.lastEntry D.m) := |
| 452 | (lowerChain ϑ).codRestrict _ (lowerChain_mem_levelSpace ϑ) |
| 453 | |
| 454 | /-- For s in 𝖦, a chosen element of K₀ on Y_m reducing to diag(s, 1) at the chosen places above p₀, |
| 455 | p₁ and to 1 at Q. -/ |
| 456 | def firstBlockLift (ϑ : D.TameChar) (s : D.chosenGL) : |
| 457 | stdLevel D.E (BlockIndex D.RowIndex (Fin D.t) D.m) := |
| 458 | liftResidue (firstBlockHom (D.levelPlaces ϑ) (BlockIndex.firstBlock (T := Fin D.t) D.m) s) |
| 459 | |
| 460 | /-- For a tame character ϑ with modulus Q, the chain ι_μ = `lowerChain ϑ` of the m lifts with |
| 461 | characters μ_j⁰ϑ^j commutes with the group 𝖦 = `D.chosenGL`: for s in 𝖦 and a form y of principal |
| 462 | level on Y₀, ι_μ(s·y) is the right translate of ι_μ(y) by `firstBlockLift ϑ s`, an element of K₀ on |
| 463 | Y_m that reduces to diag(s, 1) at the chosen places and to 1 at Q. -/ |
| 464 | lemma lowerChain_principalRep (ϑ : D.TameChar) (s : D.chosenGL) |
| 465 | (y : D.principalForms (D.spaceY 0)) : |
| 466 | lowerChain ϑ (D.principalRep (D.spaceY 0) s y) = |
| 467 | algFormRep D.columnsY (D.lastEntry D.m) (firstBlockLift ϑ s) (lowerChain ϑ y) := by |
| 468 | -- Apply `algFormRep_lowerChain` to `g = diag (s, 1)`, whose diagonal blocks after the first are |
| 469 | -- `1`. |
| 470 | let g : LevelReductionsY ϑ D.m := |
| 471 | firstBlockHom (D.levelPlaces ϑ) (BlockIndex.firstBlock (T := Fin D.t) D.m) s |
| 472 | have h_row (x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex) (a b : D.Y D.m) |
| 473 | (ha : blockNumber D.m a ≠ 0) : g x a b = if a = b then 1 else 0 := by |
| 474 | cases x with |
| 475 | | inl x => |
| 476 | exact (BlockIndex.firstBlock D.m).coe_extendGL_apply_of_notMem_left (s x) |
| 477 | (by rwa [← blockNumber_eq_zero_iff]) b |
| 478 | | inr x => rfl |
| 479 | have h_first (x : (D.levelPlaces ϑ).ChosenIndex) : |
| 480 | (g (Sum.inl x)).val.submatrix (BlockIndex.firstBlock D.m) (BlockIndex.firstBlock D.m) = |
| 481 | (s x).val := |
| 482 | submatrix_extendGL _ (s x) |
| 483 | have h_tri (x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex) : |
| 484 | (g x).val.BlockTriangular (blockNumber D.m) := by |
| 485 | -- An entry below the diagonal blocks lies off the diagonal, in a row outside block 0. |
| 486 | intro a b hab |
| 487 | rw [h_row x a b (Fin.ne_zero_of_lt hab), ite_eq_right fun h_eq : a = b ↦ hab.ne (by rw [h_eq])] |
| 488 | have h_block (x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex) |
| 489 | (l : Fin D.m) : (g x).val.toSquareBlock (blockNumber D.m) l.succ = 1 := by |
| 490 | simp +contextual [← ext_iff, Matrix.one_apply, toSquareBlock_def, h_row] |
| 491 | -- So all the character values in the law of the chain are 1. |
| 492 | have h_scalar : ∏ x : (D.levelPlaces ϑ).ChosenIndex ⊕ (D.levelPlaces ϑ).TwistIndex, |
| 493 | ∏ l : Fin D.m, chainTamePart ϑ l ((D.levelPlaces ϑ).placeAt x) |
| 494 | ((g x).val.toSquareBlock (blockNumber D.m) l.succ).det = 1 := by |
| 495 | simp [h_block] |
| 496 | refine Eq.symm ((algFormRep_lowerChain ϑ s y (firstBlockLift ϑ s) g (reduceFamily_liftResidue g) |
| 497 | h_tri h_first).trans ?_) |
| 498 | rw [h_scalar, one_smul] |
| 499 | |
| 500 | end New.Data |
| 501 | |
| 502 | end RowChain |
| 503 | |
| 504 | end |