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 TauCeti.LinearAlgebra.Charpoly.Trace |
| 4 | import TauCeti.LinearAlgebra.Matrix.Charpoly.Newton |
| 5 | import Mathlib.Data.Rat.Cast.OfScientific |
| 6 | import Mathlib.LinearAlgebra.PID |
| 7 | import Mathlib.Topology.Connected.Separation |
| 8 | import Mathlib.Topology.MetricSpace.Ultra.TotallySeparated |
| 9 | public import New.Determinant.Norms.AdjointThetaLift |
| 10 | import Lib.Adelic.TraceFormula.CuspidalComparison |
| 11 | import Lib.Adelic.TraceFormula.CuspidalType |
| 12 | import Lib.PadicComparison.Descent.TestCategory |
| 13 | import New.Reduction.Data.Sizes |
| 14 | |
| 15 | /-! |
| 16 | # Equality of multiplicities |
| 17 | |
| 18 | The spaces `Y_0, W_1, …, W_m` share the group `G_fin`, the level and the parameter, and differ only |
| 19 | in their signs at the real places. Let `V`, `V'` be two hermitian spaces for whose signs the |
| 20 | parameter `New.Data.paramW` has gap `D.gap`. Then a spherical Hecke operator away from the level `M` |
| 21 | has the same trace on their good forms. The equality of traces is deduced from the comparison of |
| 22 | traces for a test function that is cuspidal at one split place (`New.trace_eq_of_isCuspidalAt`). |
| 23 | |
| 24 | ## Main definitions and results |
| 25 | |
| 26 | * `New.Data.exists_heckeAlgebra_eq_mul_inner_of_hasSum_rallisTerm`: the sums of scalar multiples of |
| 27 | the Rallis series on two spaces are the same multiples of matrix coefficients of one element of |
| 28 | the Hecke algebra. |
| 29 | * `New.Data.trace_heckeOnGood_eq`, `New.Data.charpoly_heckeOnGood_eq`, |
| 30 | `New.Data.det_heckeOnGood_eq`: equal traces, characteristic polynomials and determinants. |
| 31 | * `New.Data.rallisOnGood`, `New.Data.det_rallisOnGood_eq`: the Rallis series preserves the good |
| 32 | forms and has the same determinant on the good forms of both spaces. |
| 33 | * `New.Data.finrank_goodForms_inf_eigenPart_eq`: each eigensystem has the same multiplicity. |
| 34 | * `New.Data.targetDim_eq_finrank_goodForms_spaceW`: the good forms on `Y_0` and on `W_j` have the |
| 35 | same dimension. |
| 36 | |
| 37 | Notions from other files: |
| 38 | * `New.Data.principalForms`: the forms fixed by the principal level `D.chosenLevel` at the chosen |
| 39 | places above `M`. |
| 40 | * `New.Data.principalRep`: the action on them of `D.chosenGL = ∏ GL_r(𝔽_w)`, over the chosen places |
| 41 | w. |
| 42 | * `New.Data.goodForms`: the image of the idempotent `D.e₀` on these forms. |
| 43 | * `New.Data.heckeAlgebra`, `New.Data.eigenPart`: the spherical Hecke operators away from `M`, and |
| 44 | the part with a given eigensystem. |
| 45 | * `New.HCParam.HasGap`: entries of the parameter with different signs are at least `h` apart. |
| 46 | |
| 47 | ## Relation to the literature |
| 48 | |
| 49 | The equality of traces is the analogue of the Jacquet–Langlands correspondence for a quaternion |
| 50 | algebra that is ramified exactly at the real places. Related work: Harris–Labesse, Conditional base |
| 51 | change for unitary groups, 2004; Labesse, Changement de base CM et séries discrètes, 2011. |
| 52 | -/ |
| 53 | |
| 54 | @[expose] public section |
| 55 | |
| 56 | namespace New |
| 57 | |
| 58 | namespace Data |
| 59 | |
| 60 | open Module Submodule LinearMap Gf MonoidAlgebra Representation |
| 61 | |
| 62 | variable {P : Parameters} (D : Data P) {s s' : D.RowIndex → ℤˣ} |
| 63 | |
| 64 | /-- A family `c` in `D.goodTupleFamilies` consists of a polynomial `c x` over the residue field of |
| 65 | each chosen place `x`. Above each of the primes `p₀`, `p₁` these polynomials are monic of degree |
| 66 | `r = card D.RowIndex`, all allowed (`New.IsAllowedPolynomial`), and one of them is primitive. In |
| 67 | particular, some `c x` is primitive: irreducible, with a root that generates the units of the |
| 68 | extension of degree `r` of the residue field. -/ |
| 69 | lemma exists_isPrimitivePolynomial |
| 70 | {c : ∀ x : (i : Fin 2) × D.ChosenPlace i, Polynomial (ResField (D.chosenPlace x))} |
| 71 | (hc : c ∈ D.goodTupleFamilies) : |
| 72 | ∃ x : (i : Fin 2) × D.ChosenPlace i, IsPrimitivePolynomial (Fintype.card D.RowIndex) (c x) := by |
| 73 | classical |
| 74 | rw [goodTupleFamilies, Finset.mem_map_equiv, Fintype.mem_piFinset] at hc |
| 75 | obtain ⟨-, -, w, h_prim⟩ := Finset.mem_filter.1 (hc 0) |
| 76 | exact ⟨⟨0, w⟩, h_prim⟩ |
| 77 | |
| 78 | /-- Let `γ` be a finite point of the unitary group whose component is `1` at each place |
| 79 | `D.chosenPlace x`. There is a spherical Hecke operator `p` away from these places with |
| 80 | `⟪z, p y⟫ = ⟪z, γ y⟫` for every space `W` and all forms `z`, `y` on `W` of principal level. -/ |
| 81 | lemma exists_heckeAlgebra_inner_eq_inner_translate {γ : Gf D.E D.RowIndex} |
| 82 | (hγ : γ ∈ D.offLevelGroup) : |
| 83 | ∃ p : D.heckeAlgebra, ∀ {s : D.RowIndex → ℤˣ} (W : Space D.E D.RowIndex s) |
| 84 | (z y : D.principalForms W), |
| 85 | inner ℂ z (p.val W y) = inner ℂ z.val (W.formRep (typeKernel D.paramW s) γ y) := by |
| 86 | -- The operator is the mean of the translations by `k γ` over the cosets `k H` in |
| 87 | -- `K = K₀ ∩ G^M`. The group `H = K ∩ γ K γ⁻¹` is open in the compact group `K`. |
| 88 | let g : D.offLevelGroup := ⟨γ, hγ⟩ |
| 89 | let K : Subgroup D.offLevelGroup := (stdLevel D.E D.RowIndex).subgroupOf D.offLevelGroup |
| 90 | let H : Subgroup K := (K.comap (MulAut.conj g⁻¹).toMonoidHom).subgroupOf K |
| 91 | have h_closed : IsClosed (D.offLevelGroup : Set (Gf D.E D.RowIndex)) := by |
| 92 | have h_eq : (D.offLevelGroup : Set (Gf D.E D.RowIndex)) = |
| 93 | ⋂ w ∈ Set.range D.chosenPlace, {k | k.atPlace w = 1} := Set.ext fun k ↦ by |
| 94 | simp [mem_trivialOn] |
| 95 | rw [h_eq] |
| 96 | exact isClosed_biInter fun w _ ↦ isClosed_eq (continuous_atPlace w) continuous_const |
| 97 | have h_compact : IsCompact (K : Set D.offLevelGroup) := |
| 98 | h_closed.isClosedEmbedding_subtypeVal.isCompact_preimage isCompact_stdLevel |
| 99 | have h_open : IsOpen (K.comap (MulAut.conj g⁻¹).toMonoidHom : Set D.offLevelGroup) := |
| 100 | (IsTopologicalGroup.continuous_conj g⁻¹).isOpen_preimage _ |
| 101 | (isOpen_stdLevel.preimage continuous_subtypeVal) |
| 102 | let h_fin := H.fintypeOfIndexNeZero (h_compact.relIndex_ne_zero h_open) |
| 103 | let a : ℂ[D.offLevelGroup] := ∑ q : K ⧸ H, .single (q.out * g) 1 |
| 104 | have h_act {M : Type} [AddCommGroup M] [Module ℂ M] (ρ : Representation ℂ D.offLevelGroup M) |
| 105 | (y : M) : ρ.asAlgebraHom a y = ∑ q : K ⧸ H, ρ (q.out * g) y := by |
| 106 | simp [a] |
| 107 | -- As `k γ y` depends only on the coset `k H`, left translation by `K` permutes the terms. |
| 108 | have ha : a ∈ D.sphericalAlgebra := by |
| 109 | refine D.mem_sphericalAlgebra_of_mem_universalLevelAlgebra (mem_universalLevelAlgebra.2 |
| 110 | fun M _ _ ρ ↦ mem_levelAlgebra.2 fun y hy ↦ ?_) |
| 111 | have h_inv (k h : K) (hh : h ∈ H) : ρ ((k * h).val * g) y = ρ (k.val * g) y := by |
| 112 | have h_mem : g⁻¹ * h * g ∈ K := by simpa [H, Subgroup.mem_subgroupOf] using hh |
| 113 | have h_fix : ρ (g⁻¹ * h * g) y = y := by simpa using mem_levelSpace.1 hy ⟨g⁻¹ * h * g, h_mem⟩ |
| 114 | have h_mul : (k * h).val * g = k.val * g * (g⁻¹ * h * g) := by simp [mul_assoc] |
| 115 | rw [h_mul, map_mul, mul_apply_eq_comp, h_fix] |
| 116 | rw [h_act] |
| 117 | simpa using sum_mul_out H (fun k : K ↦ ρ (k * g) y) h_inv |
| 118 | -- The operator `p` acts as `a` on the forms of every space. |
| 119 | obtain ⟨p, hp⟩ := D.exists_heckeAlgebra_eq_asAlgebraHom ha |
| 120 | refine ⟨(h_fin.card : ℂ)⁻¹ • p, fun {s} W z y ↦ ?_⟩ |
| 121 | -- All terms have the same inner product with `z`, as `K` acts unitarily and fixes `z`. |
| 122 | set π := W.formRep (typeKernel D.paramW s) |
| 123 | have h_term (k : K) (u : W.Form (typeKernel D.paramW s)) : |
| 124 | inner ℂ z.val (π k.val u) = inner ℂ z.val u := by |
| 125 | have h_fix : π k.val z.val = z.val := mem_levelSpace_iff_forall_apply_eq.1 z.prop _ |
| 126 | (inf_trivialOn_le_levelOf ⟨k.prop, k.val.prop⟩) |
| 127 | rw [← W.inner_formRep k.val z.val u, h_fix] |
| 128 | have h_sum : inner ℂ z (p.val W y) = h_fin.card * inner ℂ z.val (π γ y) := by |
| 129 | rw [coe_inner, hp, asAlgebraHom_mapDomain, h_act, inner_sum] |
| 130 | simp [π, g, h_term] |
| 131 | exact (inner_smul_right z (p.val W y) _).trans <| by simp [h_sum, Fintype.card_ne_zero] |
| 132 | |
| 133 | /-- A term `D.rallisTerm ϑ j W z y i` of Rallis' inner product formula is a vacuum coefficient of |
| 134 | the Weil representation times `⟪z, γ y⟫`, for a representative `γ` of `i`, over the number of |
| 135 | matrices modulo the modulus of the twist. It is a matrix coefficient `⟪z, p y⟫` of a spherical Hecke |
| 136 | operator `p` away from the level `D.M`, the same for all spaces `W`. -/ |
| 137 | lemma exists_rallisTerm_eq_inner (ϑ : D.TameChar) (j : ℕ) |
| 138 | (i : Gf D.E D.RowIndex ⧸ localLevel D.RowIndex (D.twistModulus ϑ 1).places.conjClosureᶜ) : |
| 139 | ∃ p : D.heckeAlgebra, ∀ {s : D.RowIndex → ℤˣ} (W : Space D.E D.RowIndex s) |
| 140 | (z y : D.principalForms W), D.rallisTerm ϑ j W z y i = inner ℂ z (p.val W y) := by |
| 141 | -- The term is a scalar times a matrix coefficient of a representative `γ`, which is supported |
| 142 | -- away from the places of the modulus, so trivial above `M`. |
| 143 | let γ : Gf D.E D.RowIndex := SiegelWeil.cosetRep i |
| 144 | have h_off : γ ∈ D.offLevelGroup := mem_trivialOn.2 fun w ⟨x, hx⟩ ↦ by |
| 145 | have hw : w ∈ (D.twistModulus ϑ 1).places := (Rows.places_levelModulus ..).ge ⟨.inl x, hx⟩ |
| 146 | simp [γ, mem_supportedOn.1 (SiegelWeil.cosetRep i).prop, hw] |
| 147 | obtain ⟨p, hp⟩ := D.exists_heckeAlgebra_inner_eq_inner_translate h_off |
| 148 | let coeff : ℂ := SiegelWeil.vacuumCoeff (Fintype.card (D.Y 1)) (D.descentPair ϑ j).charV γ / |
| 149 | Fintype.card (D.Y 1 × D.RowIndex → (D.twistModulus ϑ 1).ResidueRing) |
| 150 | refine ⟨coeff • p, fun {s} W z y ↦ ?_⟩ |
| 151 | calc D.rallisTerm ϑ j W z y i |
| 152 | = coeff * inner ℂ z.val (W.formRep (typeKernel D.paramW s) γ y) := by |
| 153 | rw [rallisTerm, SiegelWeil.cosetTerm, mul_div_right_comm] |
| 154 | _ = inner ℂ z (coeff • p.val W y) := by rw [← hp, inner_smul_right] |
| 155 | |
| 156 | variable (V : Space D.E D.RowIndex s) (V' : Space D.E D.RowIndex s') |
| 157 | |
| 158 | /-- Let the doubled parameter `D.paramW` have gap `D.gap` for the signs of `V` and of `V'`: at each |
| 159 | infinite place its entries are distinct and have the parity of `card D.RowIndex - 1`, and entries |
| 160 | with different signs are at least `2 * D.gap` apart. Let `D.rallisTerm ϑ j` be the terms of Rallis' |
| 161 | inner product formula for the tame character `ϑ` and the descent pair `D.descentPair ϑ j`. Suppose |
| 162 | that for all forms `z`, `y` of principal level the series of these terms times `a` sums to `B z y` |
| 163 | on `V`, and times `a'` sums to `B' z y` on `V'`. Then one spherical Hecke operator `p` gives |
| 164 | `B z y = a ⟪z, p y⟫` on `V` and `B' z y = a' ⟪z, p y⟫` on `V'`. -/ |
| 165 | lemma exists_heckeAlgebra_eq_mul_inner_of_hasSum_rallisTerm |
| 166 | [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 167 | [hs' : ∀ v : D.Φ, (toHCParam s' (D.paramW v)).HasGap D.gap] |
| 168 | (ϑ : D.TameChar) (j : ℕ) {a a' : ℂ} |
| 169 | {B : D.principalForms V → D.principalForms V → ℂ} |
| 170 | {B' : D.principalForms V' → D.principalForms V' → ℂ} |
| 171 | (hB : ∀ z y : D.principalForms V, HasSum |
| 172 | (fun i : Gf D.E D.RowIndex ⧸ localLevel D.RowIndex (D.twistModulus ϑ 1).places.conjClosureᶜ ↦ |
| 173 | a * D.rallisTerm ϑ j V z y i) (B z y)) |
| 174 | (hB' : ∀ z y : D.principalForms V', HasSum |
| 175 | (fun i : Gf D.E D.RowIndex ⧸ localLevel D.RowIndex (D.twistModulus ϑ 1).places.conjClosureᶜ ↦ |
| 176 | a' * D.rallisTerm ϑ j V' z y i) (B' z y)) : |
| 177 | ∃ p : D.heckeAlgebra, |
| 178 | (∀ z y : D.principalForms V, B z y = a * inner ℂ z (p.val V y)) ∧ |
| 179 | ∀ z y : D.principalForms V', B' z y = a' * inner ℂ z (p.val V' y) := by |
| 180 | -- The pairs `(a ⟪z, p y⟫, a' ⟪z, p y⟫)` of functions of `z`, `y` with one `p` in `D.heckeAlgebra` |
| 181 | -- make a finite-dimensional, hence closed, subspace `N`; it contains every pair of terms of the |
| 182 | -- two series, so it contains the pair of sums. |
| 183 | -- `matrixCoeff W` sends an operator `T` to its matrix coefficients `(z, y) ↦ ⟪z, T y⟫`. |
| 184 | let matrixCoeff {s : D.RowIndex → ℤˣ} (W : Space D.E D.RowIndex s) : |
| 185 | End ℂ (D.principalForms W) →ₗ[ℂ] D.principalForms W → D.principalForms W → ℂ := |
| 186 | .pi fun z ↦ .pi fun y ↦ innerₛₗ ℂ z ∘ₗ applyₗ y |
| 187 | let ev {s : D.RowIndex → ℤˣ} (W : Space D.E D.RowIndex s) : |
| 188 | D.heckeAlgebra →ₗ[ℂ] End ℂ (D.principalForms W) := |
| 189 | { toFun p := p.val W, map_add' _ _ := rfl, map_smul' _ _ := rfl } |
| 190 | let pairs := range ((ev V).prod (ev V')) |
| 191 | let N := pairs.map ((a • matrixCoeff V).prodMap (a' • matrixCoeff V')) |
| 192 | -- Finiteness is given explicitly, as instance search for it is too slow on these types. |
| 193 | have : Module.Finite ℂ (End ℂ (D.principalForms V)) := Module.Finite.linearMap ℂ ℂ _ _ |
| 194 | have : Module.Finite ℂ (End ℂ (D.principalForms V')) := Module.Finite.linearMap ℂ ℂ _ _ |
| 195 | have : Module.Finite ℂ pairs := FiniteDimensional.finiteDimensional_submodule pairs |
| 196 | have : Module.Finite ℂ N := Module.Finite.map pairs _ |
| 197 | have h_term (i : Gf D.E D.RowIndex ⧸ localLevel D.RowIndex |
| 198 | (D.twistModulus ϑ 1).places.conjClosureᶜ) : |
| 199 | (fun z y ↦ a * D.rallisTerm ϑ j V z y i, fun z y ↦ a' * D.rallisTerm ϑ j V' z y i) ∈ N := by |
| 200 | obtain ⟨p, hp⟩ := D.exists_rallisTerm_eq_inner ϑ j i |
| 201 | refine mem_map.2 ⟨(p.val V, p.val V'), mem_range.2 ⟨p, by simp [ev]⟩, ?_⟩ |
| 202 | ext <;> simp [matrixCoeff, hp] |
| 203 | have h_sum : HasSum (fun i ↦ (fun z y ↦ a * D.rallisTerm ϑ j V z y i, |
| 204 | fun z y ↦ a' * D.rallisTerm ϑ j V' z y i)) (B, B') := |
| 205 | (Pi.hasSum.2 fun z ↦ Pi.hasSum.2 (hB z)).prodMk (Pi.hasSum.2 fun z ↦ Pi.hasSum.2 (hB' z)) |
| 206 | have h_mem : (B, B') ∈ N := N.isClosed_of_finiteDimensional.mem_of_tendsto h_sum |
| 207 | (.of_forall fun t ↦ sum_mem fun i _ ↦ h_term i) |
| 208 | obtain ⟨T, h_hecke, h_image⟩ := h_mem |
| 209 | obtain ⟨p, hp⟩ : ∃ p : D.heckeAlgebra, (ev V).prod (ev V') p = T := mem_range.1 h_hecke |
| 210 | obtain ⟨hB_eq, hB'_eq⟩ : |
| 211 | a • matrixCoeff V (p.val V) = B ∧ a' • matrixCoeff V' (p.val V') = B' := by |
| 212 | rw [← hp] at h_image |
| 213 | simpa [ev] using h_image |
| 214 | refine ⟨p, fun z y ↦ ?_, fun z y ↦ ?_⟩ |
| 215 | · simp [← hB_eq, matrixCoeff] |
| 216 | · simp [← hB'_eq, matrixCoeff] |
| 217 | |
| 218 | open scoped Classical in |
| 219 | /-- Let the parameter `D.paramW` have gap `D.gap` for the signs of `V`. As `e₀` projects onto the |
| 220 | good forms and is the sum of the idempotents `e_c = tupleIdem D.RowIndex c` of the good families `c` |
| 221 | of labels, the trace of a spherical Hecke operator `T` on good forms is the sum of the traces of |
| 222 | `T e_c` on all forms of principal level. -/ |
| 223 | lemma trace_heckeOnGood_eq_sum [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 224 | (T : D.heckeAlgebra) : |
| 225 | trace ℂ (D.goodForms V) (D.heckeOnGood V T) = ∑ c ∈ D.goodTupleFamilies, |
| 226 | trace ℂ (D.principalForms V) |
| 227 | (T.val V * (D.principalRep V).asAlgebraHom (tupleIdem D.RowIndex c)) := by |
| 228 | set e : End ℂ (D.principalForms V) := (D.principalRep V).asAlgebraHom D.e₀ with he |
| 229 | have he_idem : IsIdempotentElem e := D.isCentralProj_e₀.1.map (D.principalRep V).asAlgebraHom |
| 230 | -- The good forms are the range of `e`, so `T e` agrees with `T` on them. |
| 231 | have h_maps (y : D.principalForms V) : (T.val V * e) y ∈ D.goodForms V := |
| 232 | (D.heckeOnGood V T ⟨e y, mem_range_self e y⟩).prop |
| 233 | have h_restrict : D.heckeOnGood V T = (T.val V * e).restrict fun y _ ↦ h_maps y := by |
| 234 | ext y : 2 |
| 235 | simp [coe_heckeOnGood_apply, he_idem.mem_range_iff.mp y.prop] |
| 236 | rw [h_restrict, trace_restrict_eq_of_forall_mem _ _ h_maps] |
| 237 | simp [he, e₀, Finset.mul_sum] |
| 238 | |
| 239 | open scoped Classical in |
| 240 | /-- Let the doubled parameter `D.paramW` have gap `D.gap` for the signs of `V` and of `V'`: at each |
| 241 | infinite place its entries are distinct and have the parity of `card D.RowIndex - 1`, and entries |
| 242 | with different signs are at least `2 * D.gap` apart. Let `c` be a good family of |
| 243 | labels: a polynomial `c x` of degree `r = card D.RowIndex` over the residue field of each chosen |
| 244 | place `x`, subject to the conditions of `D.goodTupleFamilies`. The product of the label idempotents |
| 245 | of the `c x` is an idempotent `e_c = tupleIdem D.RowIndex c` in the group algebra of the product of |
| 246 | the finite groups `GL_r`. For a spherical Hecke operator `T`, the operator `T e_c` has the same |
| 247 | trace on the forms of principal level of `V` and of `V'`: its test function is cuspidal at a place |
| 248 | `x` where the polynomial `c x` is primitive. -/ |
| 249 | lemma trace_mul_tupleIdem_eq [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 250 | [hs' : ∀ v : D.Φ, (toHCParam s' (D.paramW v)).HasGap D.gap] (T : D.heckeAlgebra) |
| 251 | {c : ∀ x : (i : Fin 2) × D.ChosenPlace i, Polynomial (ResField (D.chosenPlace x))} |
| 252 | (hc : c ∈ D.goodTupleFamilies) : |
| 253 | trace ℂ (D.principalForms V) |
| 254 | (T.val V * (D.principalRep V).asAlgebraHom (tupleIdem D.RowIndex c)) = |
| 255 | trace ℂ (D.principalForms V') |
| 256 | (T.val V' * (D.principalRep V').asAlgebraHom (tupleIdem D.RowIndex c)) := by |
| 257 | obtain ⟨a, ha, hT⟩ : ∃ a ∈ D.sphericalAlgebra, |
| 258 | ∀ {s : D.RowIndex → ℤˣ} (W : Space D.E D.RowIndex s) (y : D.principalForms W), |
| 259 | (T.val W y).val = (W.formRep (typeKernel D.paramW s)).asAlgebraHom |
| 260 | (mapDomain D.offLevelGroup.subtype a) y := T.prop |
| 261 | obtain ⟨x, h_label, h_irr, -⟩ := D.exists_isPrimitivePolynomial hc |
| 262 | -- The element `f` of the group algebra of the finite points acts as `T e_c` on every space. |
| 263 | let f : ℂ[Gf D.E D.RowIndex] := |
| 264 | mapDomain D.offLevelGroup.subtype a * D.liftGroupAlgebra (tupleIdem D.RowIndex c) |
| 265 | have hf_mem : f ∈ universalLevelAlgebra ℂ D.chosenLevel := |
| 266 | mul_mem (D.mem_sphericalAlgebra.1 ha) (D.liftGroupAlgebra_mem_universalLevelAlgebra _) |
| 267 | have hf_acts {s : D.RowIndex → ℤˣ} (W : Space D.E D.RowIndex s) (y : D.principalForms W) : |
| 268 | ((T.val W * (D.principalRep W).asAlgebraHom (tupleIdem D.RowIndex c)) y).val = |
| 269 | (W.formRep (typeKernel D.paramW s)).asAlgebraHom f y := by |
| 270 | rw [mul_apply_eq_comp, hT, coe_principalRep_asAlgebraHom_apply, map_mul, mul_apply_eq_comp] |
| 271 | have h_rank : 2 ≤ Fintype.card D.RowIndex := D.nat_le_of_hasLogBound |
| 272 | have h_gap : gapThreshold D.RowIndex (10 * Fintype.card D.RowIndex ^ 5) ≤ D.gap := |
| 273 | D.nat_le_of_hasLogBound |
| 274 | have h_cusp : IsCuspidalAt (D.isConjApart_chosenPlace.star_ne x x) |
| 275 | (convIndicator isOpen_levelOf (IsLevel.isCompact (K := D.chosenLevel)) f) := |
| 276 | isCuspidalAt_convIndicator_tupleIdem h_label h_irr _ |
| 277 | exact trace_eq_of_isCuspidalAt D.f_even h_rank V V' (fun v ↦ (hs v).mono h_gap) |
| 278 | (fun v ↦ (hs' v).mono h_gap) hf_mem _ h_cusp (hf_acts V) (hf_acts V') |
| 279 | |
| 280 | /-- Let the parameter `D.paramW` have gap `D.gap` for the signs of `V` and of `V'`. Then a spherical |
| 281 | Hecke operator away from `M` has the same trace on the good forms of `V` and of `V'`. -/ |
| 282 | theorem trace_heckeOnGood_eq [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 283 | [hs' : ∀ v : D.Φ, (toHCParam s' (D.paramW v)).HasGap D.gap] (T : D.heckeAlgebra) : |
| 284 | trace ℂ (D.goodForms V) (D.heckeOnGood V T) = |
| 285 | trace ℂ (D.goodForms V') (D.heckeOnGood V' T) := by |
| 286 | simp only [trace_heckeOnGood_eq_sum] |
| 287 | exact Finset.sum_congr rfl fun c hc ↦ D.trace_mul_tupleIdem_eq V V' T hc |
| 288 | |
| 289 | /-- Let the parameter `D.paramW` have gap `D.gap` for the signs of `V` and of `V'`. Then a spherical |
| 290 | Hecke operator away from `M` has the same characteristic polynomial on the good forms of `V` and of |
| 291 | `V'`, as the traces of all its powers agree. -/ |
| 292 | theorem charpoly_heckeOnGood_eq [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 293 | [hs' : ∀ v : D.Φ, (toHCParam s' (D.paramW v)).HasGap D.gap] (T : D.heckeAlgebra) : |
| 294 | (D.heckeOnGood V T).charpoly = (D.heckeOnGood V' T).charpoly := by |
| 295 | refine LinearMap.charpoly_eq_of_trace_pow_eq (Nat.cast_injective (R := ℂ) ?_) fun l _ _ ↦ by |
| 296 | rw [← map_pow, ← map_pow, D.trace_heckeOnGood_eq V V'] |
| 297 | -- The dimensions agree, being the traces of the identity. |
| 298 | simpa using D.trace_heckeOnGood_eq V V' 1 |
| 299 | |
| 300 | /-- Let the parameter `D.paramW` have gap `D.gap` for the signs of `V` and of `V'`. Then a spherical |
| 301 | Hecke operator away from `M` has the same determinant on the good forms of `V` and of `V'`. -/ |
| 302 | theorem det_heckeOnGood_eq [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 303 | [hs' : ∀ v : D.Φ, (toHCParam s' (D.paramW v)).HasGap D.gap] (T : D.heckeAlgebra) : |
| 304 | (D.heckeOnGood V T).det = (D.heckeOnGood V' T).det := |
| 305 | LinearMap.det_eq_of_charpoly_eq (D.charpoly_heckeOnGood_eq V V' T) |
| 306 | |
| 307 | /-- Let the parameter `D.paramW` have gap `D.gap` for the signs of `V` and of `V'`. One spherical |
| 308 | Hecke operator acts on the forms of principal level of both spaces as `D.rallisOperator ϑ j`, the |
| 309 | operator whose matrix coefficient `⟪z, R y⟫` is the series of Rallis' formula for the tame |
| 310 | character `ϑ` and the descent pair `D.descentPair ϑ j` without its normalisation: the sum over the |
| 311 | cosets `i` of `N` times `D.rallisTerm ϑ j V z y i`, where `N` is the number of matrices over the |
| 312 | residue ring of `D.twistModulus ϑ 1` with rows `D.Y 1` and columns `D.RowIndex`. -/ |
| 313 | theorem exists_hecke_eq_rallisOperator [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 314 | [hs' : ∀ v : D.Φ, (toHCParam s' (D.paramW v)).HasGap D.gap] (ϑ : D.TameChar) (j : ℕ) : |
| 315 | ∃ p : D.heckeAlgebra, |
| 316 | p.val V = D.rallisOperator ϑ j V ∧ p.val V' = D.rallisOperator ϑ j V' := by |
| 317 | let N : ℂ := Fintype.card (D.Y 1 × D.RowIndex → (D.twistModulus ϑ 1).ResidueRing) |
| 318 | -- The terms `rallisTerm` are those of the series divided by `N`. |
| 319 | have h_sum {s : D.RowIndex → ℤˣ} (W : Space D.E D.RowIndex s) (z y : D.principalForms W) : |
| 320 | HasSum (fun i ↦ N * D.rallisTerm ϑ j W z y i) (inner ℂ z (D.rallisOperator ϑ j W y)) := |
| 321 | (D.hasSum_inner_rallisOperator ϑ j W z y).congr_fun fun i ↦ mul_div_cancel₀ _ NeZero.out |
| 322 | obtain ⟨p, hp, hp'⟩ := D.exists_heckeAlgebra_eq_mul_inner_of_hasSum_rallisTerm V V' ϑ j (h_sum V) |
| 323 | (h_sum V') |
| 324 | refine ⟨N • p, LinearMap.ext fun y ↦ ext_inner_left ℂ fun z ↦ ?_, |
| 325 | LinearMap.ext fun y ↦ ext_inner_left ℂ fun z ↦ ?_⟩ |
| 326 | · exact (inner_smul_right z (p.val V y) N).trans (hp z y).symm |
| 327 | · exact (inner_smul_right z (p.val V' y) N).trans (hp' z y).symm |
| 328 | |
| 329 | /-- Let the parameter `D.paramW` have gap `D.gap` for the signs of `V`. The series of Rallis' |
| 330 | formula (`New.Data.rallisOperator`) preserves the good forms of `V`, as it acts as a spherical Hecke |
| 331 | operator. This is its restriction to the good forms. -/ |
| 332 | noncomputable def rallisOnGood [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 333 | (ϑ : D.TameChar) (j : ℕ) : End ℂ (D.goodForms V) := |
| 334 | (D.rallisOperator ϑ j V).restrict fun y hy ↦ by |
| 335 | obtain ⟨p, hp, -⟩ := D.exists_hecke_eq_rallisOperator V V ϑ j |
| 336 | rw [← hp] |
| 337 | exact (D.heckeOnGood V p ⟨y, hy⟩).prop |
| 338 | |
| 339 | lemma coe_rallisOnGood_apply [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 340 | (ϑ : D.TameChar) (j : ℕ) (y : D.goodForms V) : |
| 341 | (D.rallisOnGood V ϑ j y : D.principalForms V) = D.rallisOperator ϑ j V y := |
| 342 | rfl |
| 343 | |
| 344 | /-- Let `V`, `V'` be hermitian spaces with signs `s`, `s'`, and let the parameter `D.paramW` have |
| 345 | gap `D.gap` for both. Let `D.rallisOnGood V ϑ j` be the series of Rallis' formula for the tame |
| 346 | character `ϑ` and the descent pair `D.descentPair ϑ j`, restricted to the good forms of `V`. It has |
| 347 | the same determinant as the corresponding operator on the good forms of `V'`. -/ |
| 348 | theorem det_rallisOnGood_eq [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 349 | [hs' : ∀ v : D.Φ, (toHCParam s' (D.paramW v)).HasGap D.gap] (ϑ : D.TameChar) (j : ℕ) : |
| 350 | (D.rallisOnGood V ϑ j).det = (D.rallisOnGood V' ϑ j).det := by |
| 351 | obtain ⟨p, hp, hp'⟩ := D.exists_hecke_eq_rallisOperator V V' ϑ j |
| 352 | have h_good {t : D.RowIndex → ℤˣ} (W : Space D.E D.RowIndex t) |
| 353 | [ht : ∀ v : D.Φ, (toHCParam t (D.paramW v)).HasGap D.gap] |
| 354 | (hW : p.val W = D.rallisOperator ϑ j W) : D.rallisOnGood W ϑ j = D.heckeOnGood W p := by |
| 355 | ext y : 2 |
| 356 | rw [coe_rallisOnGood_apply, coe_heckeOnGood_apply, hW] |
| 357 | rw [h_good V hp, h_good V' hp', D.det_heckeOnGood_eq V V'] |
| 358 | |
| 359 | open scoped Classical in |
| 360 | /-- Let `V` be a hermitian space with signs `s`, such that for each `v : D.Φ` the doubled parameter |
| 361 | `toHCParam s (D.paramW v)` has gap `D.gap` (`HasGap`). If `T` in `D.heckeAlgebra`, a spherical Hecke |
| 362 | operator away from the level, is `1` on `D.eigenPart V q` and `0` on `D.eigenPart V d` for `d ≠ q`, |
| 363 | then its trace on the good forms is the dimension of the good forms in `D.eigenPart V q`. -/ |
| 364 | lemma trace_heckeOnGood_eq_finrank [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 365 | {T : D.heckeAlgebra} {q : FinPlace D.E × ℕ → ℂ} |
| 366 | (hT : ∀ d : FinPlace D.E × ℕ → ℂ, ∀ y ∈ D.eigenPart V d, T.val V y = if d = q then y else 0) : |
| 367 | trace ℂ (D.goodForms V) (D.heckeOnGood V T) = |
| 368 | finrank ℂ (D.goodForms V ⊓ D.eigenPart V q : Submodule ℂ (D.principalForms V)) := by |
| 369 | -- `T` maps each eigenpart into the `q`-part, and the eigenparts span. |
| 370 | have h_le : ⨆ d, D.eigenPart V d ≤ (D.eigenPart V q).comap (T.val V) := by |
| 371 | refine iSup_le fun d y hy ↦ ?_ |
| 372 | rw [mem_comap, hT d y hy] |
| 373 | aesop |
| 374 | have h_proj : IsProj ((D.goodForms V ⊓ D.eigenPart V q).comap (D.goodForms V).subtype) |
| 375 | (D.heckeOnGood V T) := by |
| 376 | refine ⟨fun y ↦ mem_inf.2 ⟨(D.heckeOnGood V T y).prop, |
| 377 | h_le ((D.iSup_eigenPart_eq_top V).ge mem_top)⟩, |
| 378 | fun y ⟨_, hy_eigen⟩ ↦ Subtype.ext ?_⟩ |
| 379 | rw [coe_heckeOnGood_apply, hT q y hy_eigen, ite_eq_left rfl] |
| 380 | rw [h_proj.trace, (comapSubtypeEquivOfLe inf_le_left).finrank_eq] |
| 381 | |
| 382 | /-- Let `V`, `V'` be hermitian spaces with signs `s`, `s'`, which may differ, and let the parameter |
| 383 | `D.paramW` have gap `D.gap` for both. For each eigensystem `q`, the good forms with eigensystem `q` |
| 384 | on `V` and on `V'` make up spaces of the same dimension. -/ |
| 385 | theorem finrank_goodForms_inf_eigenPart_eq |
| 386 | [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 387 | [hs' : ∀ v : D.Φ, (toHCParam s' (D.paramW v)).HasGap D.gap] (q : FinPlace D.E × ℕ → ℂ) : |
| 388 | finrank ℂ (D.goodForms V ⊓ D.eigenPart V q : Submodule ℂ (D.principalForms V)) = |
| 389 | finrank ℂ (D.goodForms V' ⊓ D.eigenPart V' q : Submodule ℂ (D.principalForms V')) := by |
| 390 | classical |
| 391 | -- Finitely many eigensystems occur for `V` or `V'`, and one Hecke operator projects both spaces |
| 392 | -- of forms onto their `q`-parts. |
| 393 | let F : Finset (FinPlace D.E × ℕ → ℂ) := |
| 394 | ((D.finite_setOf_inf_eigenPart_ne_bot V ⊤).union |
| 395 | (D.finite_setOf_inf_eigenPart_ne_bot V' ⊤)).toFinset |
| 396 | obtain ⟨T, hT⟩ := D.exists_hecke_proj_eigenPart q F |
| 397 | -- `T` acts as the projection also on the eigenparts outside `F`, as these are zero. |
| 398 | have h_proj {s : D.RowIndex → ℤˣ} (W : Space D.E D.RowIndex s) |
| 399 | (hF : ∀ d ∉ F, D.eigenPart W d = ⊥) (d : FinPlace D.E × ℕ → ℂ) : |
| 400 | ∀ y ∈ D.eigenPart W d, T.val W y = if d = q then y else 0 := fun y hy ↦ by |
| 401 | by_cases hd : d ∈ F |
| 402 | · exact hT d (Finset.mem_insert_of_mem hd) y hy |
| 403 | · simp [(Submodule.mem_bot ℂ).1 ((hF d hd).le hy)] |
| 404 | have h_trace := D.trace_heckeOnGood_eq V V' T |
| 405 | rw [D.trace_heckeOnGood_eq_finrank V (h_proj V (by simp +contextual [F, top_inf_eq])), |
| 406 | D.trace_heckeOnGood_eq_finrank V' (h_proj V' (by simp +contextual [F, top_inf_eq]))] at h_trace |
| 407 | exact_mod_cast h_trace |
| 408 | |
| 409 | /-- Let the parameter `D.paramW` have gap `D.gap` for the signs of `V` and of `V'`. An eigensystem |
| 410 | `q` that does not occur in the good forms of `V'` does not occur in those of `V`. -/ |
| 411 | lemma goodForms_inf_eigenPart_eq_bot_of_eq_bot |
| 412 | [hs : ∀ v : D.Φ, (toHCParam s (D.paramW v)).HasGap D.gap] |
| 413 | [hs' : ∀ v : D.Φ, (toHCParam s' (D.paramW v)).HasGap D.gap] {q : FinPlace D.E × ℕ → ℂ} |
| 414 | (h_bot : D.goodForms V' ⊓ D.eigenPart V' q = ⊥) : D.goodForms V ⊓ D.eigenPart V q = ⊥ := by |
| 415 | rw [← finrank_eq_zero, D.finrank_goodForms_inf_eigenPart_eq V V', h_bot, finrank_bot] |
| 416 | |
| 417 | /-- For `1 ≤ j ≤ m` the good forms on `W_j = D.spaceW j` have dimension `D.targetDim`, which is the |
| 418 | dimension of the good forms on `Y_0 = D.spaceY 0`: the identity has the same trace on both. -/ |
| 419 | theorem targetDim_eq_finrank_goodForms_spaceW (j : D.LiftIndex) : |
| 420 | D.targetDim = finrank ℂ (D.goodForms (D.spaceW j)) := by |
| 421 | simpa [trace_one] using D.trace_heckeOnGood_eq (D.spaceY 0) (D.spaceW j) 1 |
| 422 | |
| 423 | end Data |
| 424 | |
| 425 | end New |