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.Trace.Nilpotent |
| 4 | import Mathlib.LinearAlgebra.Matrix.Charpoly.Eigs |
| 5 | public import Lib.Shimura.TraceFormula.DefiniteTrace |
| 6 | public import Lib.Shimura.TraceFormula.TestFunction |
| 7 | public import Lib.Shimura.Transfer.Lefschetz |
| 8 | public import Lib.Adelic.AutomorphicForms.SmoothAlgebraicForms |
| 9 | public import Lib.General.Combinatorics |
| 10 | public import Lib.Shimura.Uniformisation.HolomorphicFamilies |
| 11 | import Lib.DiscreteSeries.Character.WeylCharacterFormula |
| 12 | import Lib.GLn.SchurModule.SchurNorm |
| 13 | import Lib.General.Algebra.IntegerPowerProducts |
| 14 | import Lib.Shimura.TraceFormula.MarkedDefiniteSums |
| 15 | import Lib.Shimura.Transfer.MarkedPairs |
| 16 | |
| 17 | /-! |
| 18 | # Coefficient systems from weights and the degrees where Hecke eigensystems occur |
| 19 | |
| 20 | A weight `κ` gives a coefficient system on `GL_a(E)`. Its Hecke eigensystems occur in the degrees |
| 21 | given by the jumps of `κ`, in the sense of `New.Variety.OccursInWeight`: the local terms of the |
| 22 | Lefschetz side do not all cancel. |
| 23 | |
| 24 | `Φ v` is the embedding that the CM type chooses at `v`, and `v₀` is the base infinite place fixed by |
| 25 | `New.CMBase E`. |
| 26 | |
| 27 | * `New.Variety.occursInWeight_of_isTestEigenform`: the Hecke eigenvalues of a test eigenform occur, |
| 28 | if the character of the coefficients is given by a Schur polynomial and powers of the determinant. |
| 29 | * `New.Variety.exists_isCoefficientSystem`: the coefficient system attached to a weight, and the |
| 30 | occurrence of the eigensystems of its test vectors. |
| 31 | |
| 32 | Notions from other files: |
| 33 | * `New.Weight`: For `κ : Weight E` and an infinite place `v` of `E`, `κ.1 v h` is the number of |
| 34 | columns of height `h` of a Young diagram, and `κ.2 v` is an integer exponent of the determinant. |
| 35 | * `New.Variety.entryConj`: The endomorphism of the unitary group {g : gᴴg = 1} of matrices over R |
| 36 | indexed by `n` that applies the involution of R to each entry. |
| 37 | * `New.jumps`: The multiset {j − 1 − λ_j} if σ is in the CM type, else {λ_j + a − j}, 1 ≤ j ≤ a, |
| 38 | with λ the highest weight of κ at σ. |
| 39 | * `New.Space.weightRep`: The representation of the rational unitary group on coordinate vectors of |
| 40 | weight `(κ.1, κ.2)`, through its components at the infinite places and `New.conjWeylRep`. |
| 41 | |
| 42 | ## Relation to the literature |
| 43 | |
| 44 | Known result: Transfer of eigensystems between unitary inner forms differing at a real place. Only |
| 45 | the occurrence is proved here, namely that the Hecke eigensystem of a definite form occurs, in each |
| 46 | Hodge weight, on the variety for signature (1, n-1), with n odd and a cuspidal type at one split |
| 47 | place. It is proved by comparing two finite counts, without stabilisation. Source: Harris and |
| 48 | Labesse, Conditional base change for unitary groups, Asian J. Math. 8 (2004), Thm 2.1.2; Labesse, |
| 49 | Changement de base CM et séries discrètes (2011), Thm 5.4; count as in Goresky and MacPherson, The |
| 50 | topological trace formula (2003), and Shimura, On the trace formula for Hecke operators, Acta Math. |
| 51 | 132 (1974). |
| 52 | -/ |
| 53 | |
| 54 | @[expose] public section |
| 55 | |
| 56 | open NumberField Matrix Polynomial Fintype Finset IsAlgClosed LinearMap Submodule New.QuadField Fin |
| 57 | |
| 58 | /-- For `a` odd, `rootCoeffEval` sends the variable `X 0` to minus the product of the `a` roots. -/ |
| 59 | lemma New.Variety.rootCoeffEval_X_zero_of_odd {a : ℕ} [NeZero a] (ha : Odd a) {R : Type} |
| 60 | [CommRing R] (r : Fin a → R) : |
| 61 | rootCoeffEval (a := a) (univ.val.map r) (MvPolynomial.X 0) = -univ.prod r := by |
| 62 | simp [rootCoeffEval, coeff_zero_eq_eval_zero, eval_prod, prod_neg, ha.neg_one_pow, -univ_val_map] |
| 63 | |
| 64 | /-- Let `E` be a CM field containing ℚ(i√d₀), and let `w₁` be a finite place of `E` that is split |
| 65 | over the maximal real subfield and divides the level `𝔑`. Any product of the Hecke elements |
| 66 | `τ_{w,j}` (`tauHecke`, in the Hecke algebra of level `K(𝔑)`) at places `w` safe for `𝔑` (among other |
| 67 | things, `𝔑 ∉ w` and `𝔑` lies in no place over the conjugate of the place below `w`) lies in the span |
| 68 | of the group elements `[g]` with `g` a unitary similitude (`gᴴ g` a scalar finite idele of ℚ) whose |
| 69 | component at `w₁` is trivial. Here the component is taken via `dualComponent w₁`, the inverse |
| 70 | transpose of the `w₁`-component in `GL_a(E_{w₁})`. -/ |
| 71 | lemma New.Variety.prod_map_tauHecke_mem_spanOn {E : Type} [Field E] [NumberField E] [IsCMField E] |
| 72 | {a d₀ : ℕ} [HasQuadSubfield d₀ E] {𝔑 : 𝓞 E} {w₁ : SplitFinPlace E} (hw₁ : 𝔑 ∈ w₁.val.asIdeal) |
| 73 | (L : List (SafePlace 𝔑 × ℕ)) : |
| 74 | (L.map tauHecke).prod.val ∈ spanOn ℂ (GU E (Fin a) ⊓ (dualComponent w₁).ker).carrier := by |
| 75 | induction L with |
| 76 | | nil => exact subset_span ⟨1, Subgroup.one_mem _, by simp [MonoidAlgebra.one_def]⟩ |
| 77 | | cons s L ih => |
| 78 | obtain ⟨⟨v, -, h_notMem, h_notMem_conj⟩, j⟩ := s |
| 79 | refine spanOn.mul heckeSum_mem_spanOn ih ?_ |
| 80 | rintro _ ⟨U, rfl⟩ g |
| 81 | refine Subgroup.mul_mem _ ⟨(invHeckeIsogeny_mem_GUPlus _ U).1, ?_⟩ |
| 82 | -- Both factors of `invHeckeIsogeny` are trivial at `w₁` since `w₁ ∣ 𝔑` and `v` is safe. |
| 83 | have h_below_ne : (w₁ : FinPlace E).below (QuadField d₀) ≠ |
| 84 | star ((v : FinPlace E).below (QuadField d₀)) := fun h ↦ h_notMem_conj _ h hw₁ |
| 85 | suffices (invHeckeIsogeny (v : SplitFinPlace E) U).map (evalAt (w₁ : FinPlace E)) = 1 by |
| 86 | simp [dualComponent, this] |
| 87 | rw [invHeckeIsogeny, map_mul, |
| 88 | evalAt_conjAtSplit_of_ne (hu := fun h ↦ h_notMem (by rwa [← h])) |
| 89 | (hu' := fun h ↦ h_below_ne (by rw [← h, below_star, star_star])), |
| 90 | mul_one, uniformizerNorm, ← map_pow, ← map_inv, ← map_pow, ← map_inv] |
| 91 | exact evalAt_centralScalar_of_ne h_below_ne _ |
| 92 | |
| 93 | /-- A word `L` in the Hecke operators `tauHecke` at safe places acts on a common eigenvector `φ` |
| 94 | of the operators `heckeSum`, with eigenvalues `θ`, by the product of the eigenvalues of its |
| 95 | letters. -/ |
| 96 | lemma New.Variety.asAlgebraHom_prod_map_tauHecke_apply {E : Type} [Field E] [NumberField E] |
| 97 | [IsCMField E] {a d₀ : ℕ} [HasQuadSubfield d₀ E] {W : Type} [AddCommGroup W] [Module ℂ W] |
| 98 | {𝔑 : 𝓞 E} {π : Representation ℂ (GL (Fin a) (𝔸f E)) W} {φ : W} {θ : SafePlace 𝔑 → ℕ → ℂ} |
| 99 | (h_eig : ∀ (w : SafePlace 𝔑) (j : ℕ), π.asAlgebraHom (heckeSum (Fin a) ℂ w.val j) φ = θ w j • φ) |
| 100 | (L : List (SafePlace 𝔑 × ℕ)) : |
| 101 | π.asAlgebraHom (L.map tauHecke).prod.val φ = (L.map ↿θ).prod • φ := by |
| 102 | induction L with |
| 103 | | nil => simp |
| 104 | | cons s L ih => |
| 105 | have h_head : π.asAlgebraHom (tauHecke s).val φ = ↿θ s • φ := h_eig s.1 s.2 |
| 106 | simp [ih, h_head, smul_smul, mul_comm, -SubmonoidClass.coe_list_prod] |
| 107 | |
| 108 | /-- The local terms of a regular element `y`, summed over the marked eigenvalue. Let `q` be the |
| 109 | Schur polynomial of `l` at `Φ v₀`, and `(-X 0) ^ m` (for `a` odd, the `m`-th power of the product of |
| 110 | the roots) at the conjugate of `Φ v₀` and at the `Φ v` with `v ≠ v₀`. Let `μ k` be the numbered |
| 111 | roots of `y` at `Φ v₀`. The `k`-th term is the `k`-th Lagrange basis polynomial of the `μ` at |
| 112 | `μ k * X`, times the product over `σ` of `q σ` at `lieRoots`. These are the roots `r` of `σ y`, |
| 113 | taken as `r X` if the eigenline of `r` lies in the Lie algebra and as `r` otherwise: at `Φ v₀` only |
| 114 | the marked root, at its conjugate all but one, at the other `Φ v` all, at their conjugates none. |
| 115 | Then the sum is the product over `σ` of the values of `q σ` at the eigenvalues of `σ y`, times |
| 116 | `∑ k, X ^ l k` shifted by a fixed power of `X`. -/ |
| 117 | lemma New.Variety.sum_basis_comp_mul_prod_rootCoeffEval_eq {E : Type} [Field E] [CMBase E] {a : ℕ} |
| 118 | [NeZero a] (ha : Odd a) {q : (E →+* ℂ) → MvPolynomial (Fin a) ℤ} {l : Fin a → ℕ} {m : ℕ} |
| 119 | (hq : q (Φ v₀) = genericSchur l) (hq_conj : q (star (Φ v₀)) = (-MvPolynomial.X 0) ^ m) |
| 120 | (hq_other : ∀ v : InfinitePlace E, v ≠ v₀ → q (Φ v) = (-MvPolynomial.X 0) ^ m) |
| 121 | {y : GL (Fin a) E} (hy : y.val.charpoly.Separable) : |
| 122 | ∑ k : Fin a, |
| 123 | (Lagrange.basis univ (numberedRoots (Φ v₀) y.val.charpoly) k).comp |
| 124 | (X * C (numberedRoots (Φ v₀) y.val.charpoly k)) * |
| 125 | ∏ σ : E →+* ℂ, rootCoeffEval |
| 126 | (lieRoots y.val.charpoly (numberedRoots (Φ v₀) y.val.charpoly k) σ) (q σ) = |
| 127 | C (∏ σ : E →+* ℂ, rootCoeffEval (y.val.charpoly.map σ).roots (q σ)) * |
| 128 | ∑ k : Fin a, X ^ (m * (a - 1 + a * (Core.numInfPlaces E - 1)) + l k) := by |
| 129 | -- Evaluate the factor at each embedding. Only the one at `Φ v₀` depends on the marked root `r k`, |
| 130 | -- and there the sum over `k` is `sum_lagrange_smul_rootCoeffEval`; the others are constants |
| 131 | -- times powers of `X`. |
| 132 | set P : E[X] := y.val.charpoly |
| 133 | set r : Fin a ↪ ℂ := numberedRoots (Φ v₀) P |
| 134 | let s (σ : E →+* ℂ) : ℂ := rootCoeffEval (P.map σ).roots (q σ) |
| 135 | have h_roots (σ : E →+* ℂ) : (P.map σ).roots = univ.val.map (numberedRoots σ P : Fin a ↪ ℂ) := |
| 136 | roots_eq_map_numberedRoots hy σ |
| 137 | -- At `Φ v₀` only the marked root is multiplied by `X`. |
| 138 | have h_marked (k : Fin a) : lieRoots P (r k) (Φ v₀) = |
| 139 | univ.val.map fun k' : Fin a ↦ (if k' = k then X else 1) * C (r k') := by |
| 140 | simp [lieRoots, IsLieRoot, h_roots, r, -ite_mul, -univ_val_map] |
| 141 | -- At its conjugate `a - 1` roots are multiplied by `X`. |
| 142 | have h_conj (k : Fin a) : rootCoeffEval (lieRoots P (r k) (star (Φ v₀))) (q (star (Φ v₀))) = |
| 143 | X ^ (m * (a - 1)) * C (s (star (Φ v₀))) := by |
| 144 | simp only [s, lieRoots, hq_conj, roots_map_conjugate] |
| 145 | -- `ite_mul` is left out so that the factors `if … then X else 1` stay whole for `prod_ite` |
| 146 | simp [IsLieRoot, h_roots, rootCoeffEval_X_zero_of_odd ha, -ite_mul, |
| 147 | (RingHom.injective _).eq_iff, |
| 148 | prod_ite, filter_ne', mul_pow, r, ← pow_mul', prod_mul_distrib, -univ_val_map] |
| 149 | -- At another place `v` all `a` roots at `Φ v` are multiplied by `X`, and none at its conjugate. |
| 150 | have h_other (k : Fin a) (v : {v // v ≠ v₀}) : |
| 151 | rootCoeffEval (lieRoots P (r k) (Φ v.val)) (q (Φ v.val)) = X ^ (m * a) * C (s (Φ v.val)) := by |
| 152 | simp [s, hq_other v v.prop, lieRoots, IsLieRoot, v.prop, h_roots, |
| 153 | rootCoeffEval_X_zero_of_odd ha, |
| 154 | mul_pow, prod_mul_distrib, -univ_val_map] |
| 155 | -- what is left is `A ^ m * (X ^ a) ^ m = X ^ (m * a) * A ^ m` |
| 156 | ring |
| 157 | have h_other_conj (k : Fin a) (v : {v // v ≠ v₀}) : |
| 158 | rootCoeffEval (lieRoots P (r k) (star (Φ v.val))) (q (star (Φ v.val))) = |
| 159 | C (s (star (Φ v.val))) := by |
| 160 | simp [s, lieRoots, IsLieRoot, v.prop, ← rootCoeffEval_map] |
| 161 | have h_sum_marked : ∑ k : Fin a, (Lagrange.basis univ r k).comp (X * C (r k)) * |
| 162 | rootCoeffEval (lieRoots P (r k) (Φ v₀)) (q (Φ v₀)) = C (s (Φ v₀)) * ∑ k : Fin a, X ^ l k := by |
| 163 | simpa only [h_marked, s, h_roots, hq, smul_eq_mul, comp_eq_aeval] using |
| 164 | sum_lagrange_smul_rootCoeffEval l r |
| 165 | -- The factors at the embeddings other than `Φ v₀` do not depend on `k`: they give `X ^ N * C c`. |
| 166 | set N : ℕ := m * (a - 1 + a * (Core.numInfPlaces E - 1)) with hN |
| 167 | set c : ℂ := s (star (Φ v₀)) * ∏ v : {v // v ≠ v₀}, s (Φ v.val) * s (star (Φ v.val)) with hc |
| 168 | have h_prod (k : Fin a) : ∏ σ : E →+* ℂ, rootCoeffEval (lieRoots P (r k) σ) (q σ) = |
| 169 | X ^ N * C c * rootCoeffEval (lieRoots P (r k) (Φ v₀)) (q (Φ v₀)) := by |
| 170 | simp [hN, hc, prod_embeddings_eq_prod_pairs, prod_eq_mul_prod_subtype_ne _ v₀, h_conj, h_other, |
| 171 | h_other_conj, prod_mul_distrib] |
| 172 | ring |
| 173 | have h_const : ∏ σ : E →+* ℂ, s σ = s (Φ v₀) * c := by |
| 174 | rw [hc, prod_embeddings_eq_prod_pairs, prod_eq_mul_prod_subtype_ne _ v₀, mul_assoc] |
| 175 | calc _ = X ^ N * C c * ∑ k : Fin a, (Lagrange.basis univ r k).comp (X * C (r k)) * |
| 176 | rootCoeffEval (lieRoots P (r k) (Φ v₀)) (q (Φ v₀)) := by |
| 177 | simp only [h_prod, mul_sum, mul_left_comm] |
| 178 | _ = C (∏ σ : E →+* ℂ, s σ) * ∑ k : Fin a, X ^ (N + l k) := by |
| 179 | simp only [h_sum_marked, h_const, pow_add, ← mul_sum, map_mul] |
| 180 | ring |
| 181 | |
| 182 | /-- Let `f` be an element of `heckeAlgebra (Fin a) ℂ 𝔑` whose unweighted marked orbit sum |
| 183 | `countTerm True f 1` has finite support, and let `q σ` be integer polynomials in `a` variables for |
| 184 | each complex embedding `σ : E →+* ℂ`. If the marked orbit sum weighted by the `X ^ d` coefficient of |
| 185 | `localTerm (2 * α)` vanishes for every `α : Fin (∑ σ, (q σ).totalDegree + 1) → 𝓞 E`, then the |
| 186 | marked orbit sum weighted by the `X ^ d` coefficient of the Lagrange factor times |
| 187 | `∏ σ, rootCoeffEval (lieRoots P r_k σ) (q σ)` vanishes as well, where `P` is the characteristic |
| 188 | polynomial of the class and `r_k = numberedRoots (Φ v₀) P k` its marked root. -/ |
| 189 | private lemma New.Variety.finsum_countTerm_lagrange_mul_prod_eq_zero {E : Type} [Field E] |
| 190 | [CMBase E] {a : ℕ} {q : (E →+* ℂ) → MvPolynomial (Fin a) ℤ} {𝔑 : 𝓞 E} |
| 191 | {f : heckeAlgebra (Fin a) ℂ 𝔑} {d : ℕ} (h_fin : (countTerm True f 1).support.Finite) |
| 192 | (h_sum : ∀ α : Fin (∑ σ : E →+* ℂ, (q σ).totalDegree + 1) → 𝓞 E, |
| 193 | ∑ᶠ c, countTerm True f (fun P μ ↦ (localTerm (2 * α) P μ).coeff d) c = 0) : |
| 194 | ∑ᶠ c, countTerm True f (fun P k ↦ |
| 195 | ((Lagrange.basis univ (numberedRoots (Φ v₀) P) k).comp |
| 196 | (X * C (numberedRoots (Φ v₀) P k)) * |
| 197 | ∏ σ : E →+* ℂ, rootCoeffEval (lieRoots P (numberedRoots (Φ v₀) P k) σ) (q σ)).coeff d) |
| 198 | c = 0 := by |
| 199 | classical |
| 200 | let lagrange (P : E[X]) (k : Fin a) : ℂ[X] := |
| 201 | (Lagrange.basis univ (numberedRoots (Φ v₀) P) k).comp (X * C (numberedRoots (Φ v₀) P k)) |
| 202 | simp_rw [finsum_countTerm_eq_sum _ h_fin, ← sum_coe_sort h_fin.toFinset] at h_sum ⊢ |
| 203 | -- A class `c` has a characteristic polynomial `P c` and a marked root, numbered `μ c`. Now |
| 204 | -- `h_sum` says that the linear form `L` (multiply by the Lagrange factor, take the `X ^ d` |
| 205 | -- coefficient, sum over classes) kills the products `∏ (1 - σ (2 α) t)`, `t` in `lieRoots`, for |
| 206 | -- all `α`; by `map_prod_rootCoeffEval_eq_zero` it then kills the products of the `q σ`. |
| 207 | -- `c.val.out` is a triple (frame, element `y`, marked index), as in `countTerm` |
| 208 | let P (c : h_fin.toFinset) : E[X] := c.val.out.snd.fst.val.charpoly |
| 209 | let μ (c : h_fin.toFinset) : Fin a := c.val.out.snd.snd |
| 210 | let L : (h_fin.toFinset → ℂ[X]) →ₗ[ℂ] ℂ := |
| 211 | dotProductBilin ℂ ℂ (fun c : h_fin.toFinset ↦ countTerm True f 1 c) ∘ₗ |
| 212 | (lcoeff ℂ d).compLeft h_fin.toFinset ∘ₗ mulLeft ℂ fun c ↦ lagrange (P c) (μ c) |
| 213 | have h_card (c : h_fin.toFinset) (σ : E →+* ℂ) : |
| 214 | (lieRoots (P c) (numberedRoots (Φ v₀) (P c) (μ c)) σ).card = a := by |
| 215 | simp [P, lieRoots, card_roots_eq_natDegree] |
| 216 | have h_degree (σ : E →+* ℂ) : |
| 217 | (q σ).totalDegree ≤ Fintype.card (Fin (∑ τ, (q τ).totalDegree + 1)) := by |
| 218 | simp [sum_eq_add_sum_subtype_ne _ σ, add_assoc] |
| 219 | change L (fun c ↦ ∏ σ, rootCoeffEval |
| 220 | (lieRoots (P c) (numberedRoots (Φ v₀) (P c) (μ c)) σ) (q σ)) = 0 |
| 221 | exact map_prod_rootCoeffEval_eq_zero h_degree algebraicIndependent_embedding_two_mul h_card L |
| 222 | h_sum |
| 223 | |
| 224 | /-- Comparison of trace formulas, for `a` odd and `𝔑` neat. Let the trace of `ξ y⁻¹` at regular `y` |
| 225 | be the product of the values of `q σ` at the eigenvalues of `σ y` (`q` as in |
| 226 | `sum_basis_comp_mul_prod_rootCoeffEval_eq`), and let `f` be regular of cuspidal type `χ` at `w₀`. If |
| 227 | `f` is null (`New.Variety.IsNullHecke`) in the weight `l j + m (a - 1 + a (n - 1))`, `n` the number |
| 228 | of infinite places of `E`, then `f` has trace zero on the definite forms with coefficients in |
| 229 | `ξ`. -/ |
| 230 | lemma New.Variety.trace_definiteForms_rep_eq_zero_of_isNullHecke {E : Type} [Field E] [CMBase E] |
| 231 | {a : ℕ} [NeZero a] (ha : Odd a) {W : Type} [AddCommGroup W] [Module ℂ W] [Module.Finite ℂ W] |
| 232 | {ξ : Representation ℂ (GL (Fin a) E) W} {q : (E →+* ℂ) → MvPolynomial (Fin a) ℤ} |
| 233 | {l : Fin a → ℕ} {m : ℕ} |
| 234 | (h_char : ∀ y : GL (Fin a) E, y.val.charpoly.Separable → |
| 235 | (ξ y⁻¹).trace ℂ W = ∏ σ : E →+* ℂ, rootCoeffEval (y.val.charpoly.map σ).roots (q σ)) |
| 236 | (hq : q (Φ v₀) = genericSchur l) (hq_conj : q (star (Φ v₀)) = (-MvPolynomial.X 0) ^ m) |
| 237 | (hq_other : ∀ v : InfinitePlace E, v ≠ v₀ → q (Φ v) = (-MvPolynomial.X 0) ^ m) |
| 238 | {𝔑 : 𝓞 E} (hN : IsNeat (Fin a) 𝔑) |
| 239 | {f : heckeAlgebra (Fin a) ℂ 𝔑} (h_reg : IsRegularHecke f) {w₀ : SplitFinPlace E} |
| 240 | {J : Subgroup (GL (Fin a) (LocField w₀.val))} {χ : J →* ℂ} (hχ : IsCuspidalType J χ) |
| 241 | (h_type : f.val ∈ fixedToEigen (levelGU (Fin a) 𝔑) (conjAtSplit w₀) J χ) {j : Fin a} |
| 242 | (h_null : IsNullHecke (∑ σ : E →+* ℂ, (q σ).totalDegree + 1) |
| 243 | (m * (a - 1 + a * (Core.numInfPlaces E - 1)) + l j) f) : |
| 244 | (definiteForms.rep 𝔑 ξ f).trace ℂ (definiteForms 𝔑 ξ) = 0 := by |
| 245 | classical |
| 246 | -- The definite trace formula writes the trace as an orbit sum weighted by the `X ^ d` |
| 247 | -- coefficients of the local terms, divided by `mult`. By `finsum_countTerm_marked_eq_definite` |
| 248 | -- this equals the marked orbit sum, which `h_null` kills. |
| 249 | set d : ℕ := m * (a - 1 + a * (Core.numInfPlaces E - 1)) + l j |
| 250 | have h_fin : (countTerm True f 1).support.Finite := (h_null h_reg 1).left |
| 251 | have h_sum (α : Fin (∑ σ, (q σ).totalDegree + 1) → 𝓞 E) : |
| 252 | ∑ᶠ c, countTerm True f (fun P μ ↦ (localTerm (2 * α) P μ).coeff d) c = 0 := |
| 253 | (h_null h_reg α).right |
| 254 | -- `X ^ d` occurs `mult` times in the sum of powers of `X` in |
| 255 | -- `sum_basis_comp_mul_prod_rootCoeffEval_eq`. |
| 256 | let mult : ℕ := #{k | l j = l k} |
| 257 | have h_mult : (mult : ℂ) ≠ 0 := by simp [mult] |
| 258 | let lagrange (P : E[X]) (k : Fin a) : ℂ[X] := |
| 259 | (Lagrange.basis univ (numberedRoots (Φ v₀) P) k).comp (X * C (numberedRoots (Φ v₀) P k)) |
| 260 | let w (P : E[X]) (k : Fin a) : ℂ := |
| 261 | (lagrange P k * ∏ σ, rootCoeffEval (lieRoots P (numberedRoots (Φ v₀) P k) σ) (q σ)).coeff d / |
| 262 | mult |
| 263 | have h_weight (y : GL (Fin a) E) (hy : y.val.charpoly.Separable) : |
| 264 | (ξ y⁻¹).trace ℂ W = ∑ k, w y.val.charpoly k := by |
| 265 | rw [← sum_div, ← finsetSum_coeff, sum_basis_comp_mul_prod_rootCoeffEval_eq ha hq hq_conj |
| 266 | hq_other hy, ← h_char y hy, |
| 267 | eq_div_iff h_mult] |
| 268 | simp [d, mult] |
| 269 | have h_both : ∀ ε : Prop, (countTerm ε f 1).support.Finite := |
| 270 | Prop.forall.mpr ⟨finite_support_countTerm_definite hN f 1, h_fin⟩ |
| 271 | have h_trace : (definiteForms.rep 𝔑 ξ f).trace ℂ (definiteForms 𝔑 ξ) = |
| 272 | ∑ᶠ c, countTerm True f w c := by |
| 273 | calc _ = ∑ᶠ c, countTerm False f w c := |
| 274 | trace_definiteForms_eq_finsum_countTerm ξ hN h_reg h_weight |
| 275 | _ = _ := |
| 276 | (finsum_countTerm_marked_eq_definite hN (by simpa using ha) h_reg hχ h_type w h_both).symm |
| 277 | -- Both sums run over the finite set `h_fin.toFinset`, and the constant `mult` cancels. |
| 278 | simpa [h_trace, finsum_countTerm_eq_sum _ h_fin, w, lagrange, mul_div_assoc', ← sum_div, |
| 279 | h_mult] using finsum_countTerm_lagrange_mul_prod_eq_zero h_fin h_sum |
| 280 | |
| 281 | /-- `φ` is a definite form of level `𝔑` with coefficients in `ξ`, a test vector, and an |
| 282 | eigenvector of the Hecke operators at the safe places with eigenvalues `θ`. -/ |
| 283 | structure New.Variety.IsTestEigenform {E : Type} [Field E] [CMBase E] {a d₀ : ℕ} |
| 284 | [HasQuadSubfield d₀ E] {W : Type} [AddCommGroup W] [Module ℂ W] (𝔑 : 𝓞 E) |
| 285 | (ξ : Representation ℂ (GL (Fin a) E) W) (φ : GL (Fin a) (𝔸f E) → W) |
| 286 | (θ : SafePlace 𝔑 → ℕ → ℂ) : Prop where |
| 287 | /-- `φ` is a form on the definite frames. -/ |
| 288 | mem_definiteForms : φ ∈ definiteForms 𝔑 ξ |
| 289 | /-- `φ` is a test vector at some split places `w₀`, `w₁`, for some type `(J, χ)` at `w₀`. -/ |
| 290 | exists_isTestVector : ∃ (w₀ w₁ : SplitFinPlace E) |
| 291 | (J : Subgroup (GL (Fin a) (LocField w₀.val))) (χ : J →* ℂ), |
| 292 | IsTestVector 𝔑 (rightRegular ℂ (GL (Fin a) (𝔸f E)) W) φ w₀ w₁ χ |
| 293 | /-- The `j`-th Hecke operator at `w` multiplies `φ` by `θ w j`. -/ |
| 294 | heckeSum_apply (w : SafePlace 𝔑) (j : ℕ) : |
| 295 | (rightRegular ℂ (GL (Fin a) (𝔸f E)) W).asAlgebraHom (heckeSum (Fin a) ℂ w.val j) φ = |
| 296 | θ w j • φ |
| 297 | |
| 298 | /-- Let `a` be odd and `𝔑` neat. Suppose the trace of `ξ y⁻¹` at regular `y` is the product over `σ` |
| 299 | of the values of `q σ` at the eigenvalues of `σ y`, where `q` is the Schur polynomial of `l` at |
| 300 | `Φ v₀` and `(-X 0) ^ m` at the other `Φ v` and at the conjugate of `Φ v₀`. Let `θ` be the Hecke |
| 301 | eigenvalues at the safe places of a test eigenform of level `𝔑` with coefficients in `ξ`. Then `θ` |
| 302 | occurs (`New.Variety.OccursInWeight`, with parameter `∑ σ, deg (q σ) + 1`) in the weight |
| 303 | `l j + m (a - 1 + a (n - 1))` for every `j`, where `n` is the number of infinite places of `E`: |
| 304 | every combination `p` of `tauHecke` words with `p θ = 1` has a Hecke multiple `b p` that is not null |
| 305 | in that weight. -/ |
| 306 | lemma New.Variety.occursInWeight_of_isTestEigenform {E : Type} [Field E] [CMBase E] {a d₀ : ℕ} |
| 307 | [HasQuadSubfield d₀ E] [NeZero a] (ha : Odd a) {W : Type} [AddCommGroup W] [Module ℂ W] |
| 308 | [Module.Finite ℂ W] {ξ : Representation ℂ (GL (Fin a) E) W} |
| 309 | {q : (E →+* ℂ) → MvPolynomial (Fin a) ℤ} {l : Fin a → ℕ} {m : ℕ} |
| 310 | (h_char : ∀ y : GL (Fin a) E, y.val.charpoly.Separable → |
| 311 | (ξ y⁻¹).trace ℂ W = ∏ σ : E →+* ℂ, rootCoeffEval (y.val.charpoly.map σ).roots (q σ)) |
| 312 | (hq : q (Φ v₀) = genericSchur l) (hq_conj : q (star (Φ v₀)) = (-MvPolynomial.X 0) ^ m) |
| 313 | (hq_other : ∀ v : InfinitePlace E, v ≠ v₀ → q (Φ v) = (-MvPolynomial.X 0) ^ m) |
| 314 | {𝔑 : 𝓞 E} (hN : IsNeat (Fin a) 𝔑) |
| 315 | {φ : GL (Fin a) (𝔸f E) → W} {θ : SafePlace 𝔑 → ℕ → ℂ} (h_form : IsTestEigenform 𝔑 ξ φ θ) |
| 316 | (j : Fin a) : |
| 317 | OccursInWeight a (∑ σ : E →+* ℂ, (q σ).totalDegree + 1) θ |
| 318 | (m * (a - 1 + a * (Core.numInfPlaces E - 1)) + l j) := by |
| 319 | -- Suppose all `b * p` are null in this weight, where the polynomial `p` in the Hecke operators |
| 320 | -- fixes `φ`. For the test function `b` all positive powers of `b * p` then have trace zero, so |
| 321 | -- `b * p` acts nilpotently on forms; but none of its powers kills `φ`. |
| 322 | have hφ : φ ∈ definiteForms 𝔑 ξ := h_form.mem_definiteForms |
| 323 | obtain ⟨w₀, w₁, J, χ, h_test⟩ := h_form.exists_isTestVector |
| 324 | -- `p` is the combination `∑ c L • L` of words `L ∈ s` in the Hecke operators, with |
| 325 | -- `∑ c L * θ(L) = 1` (`hc`); `h_null` says that every `b * p` is null in this weight |
| 326 | intro s c hc h_null |
| 327 | set p : heckeAlgebra (Fin a) ℂ 𝔑 := ∑ L ∈ s, c L • (L.map tauHecke).prod with hp |
| 328 | -- `coe_list_prod` is left out of the two `simp` calls: it would rewrite the coerced products to |
| 329 | -- `List.map (Subtype.val ∘ tauHecke)`, which the lemmas on words no longer match |
| 330 | have h_supp : p.val ∈ spanOn ℂ (GU E (Fin a) ⊓ (dualComponent w₁).ker).carrier := by |
| 331 | simp [hp, prod_map_tauHecke_mem_spanOn h_test.mem_snd, sum_mem, smul_mem, |
| 332 | -SubmonoidClass.coe_list_prod] |
| 333 | have h_fix : (rightRegular ℂ (GL (Fin a) (𝔸f E)) W).asAlgebraHom p.val φ = φ := by |
| 334 | simp [hp, asAlgebraHom_prod_map_tauHecke_apply h_form.heckeSum_apply, hc, smul_smul, |
| 335 | ← Finset.sum_smul, -SubmonoidClass.coe_list_prod] |
| 336 | -- No power of `b * p` kills `φ`; the positive ones are regular and of type `χ` at `w₀`. |
| 337 | obtain ⟨b, hb⟩ : ∃ b : heckeAlgebra (Fin a) ℂ 𝔑, ∀ m : ℕ, |
| 338 | (rightRegular ℂ (GL (Fin a) (𝔸f E)) W).asAlgebraHom ((b * p) ^ m).val φ ≠ 0 ∧ |
| 339 | IsRegularHecke ((b * p) ^ (m + 1)) ∧ |
| 340 | ((b * p) ^ (m + 1)).val ∈ fixedToEigen (levelGU (Fin a) 𝔑) (conjAtSplit w₀) J χ := |
| 341 | exists_test_function (Submodule.mem_inf.mp hφ).right h_test h_supp h_fix |
| 342 | have h_finite_forms : Module.Finite ℂ (definiteForms 𝔑 ξ) := finite_definiteForms ξ hN |
| 343 | have h_nilpotent : IsNilpotent (definiteForms.rep 𝔑 ξ (b * p)) := by |
| 344 | refine LinearMap.isNilpotent_iff_forall_trace_pow_eq_zero.2 fun k hk ↦ ?_ |
| 345 | obtain ⟨k, rfl⟩ := Nat.exists_eq_succ_of_ne_zero hk.ne' |
| 346 | obtain ⟨-, h_reg, h_type⟩ := hb k |
| 347 | rw [← map_pow] |
| 348 | refine trace_definiteForms_rep_eq_zero_of_isNullHecke ha h_char hq hq_conj hq_other hN h_reg |
| 349 | h_test.isCuspidalType h_type |
| 350 | (j := j) ?_ |
| 351 | rw [pow_succ, ← mul_assoc] |
| 352 | exact h_null _ |
| 353 | obtain ⟨k, hk⟩ := h_nilpotent |
| 354 | have h_kill : definiteForms.rep 𝔑 ξ ((b * p) ^ k) ⟨φ, hφ⟩ = 0 := by |
| 355 | rw [map_pow, hk, LinearMap.zero_apply] |
| 356 | exact (hb k).left (congrArg Subtype.val h_kill) |
| 357 | |
| 358 | /-- Inverting nonzero numbers `r i` and reversing their order in a generalized Vandermonde |
| 359 | determinant amounts to replacing the exponents `w j` by `a - 1 - w j.rev`, up to the factor |
| 360 | `(∏ r) ^ (1 - a)`. -/ |
| 361 | lemma New.Variety.det_inv_rev_zpow {a : ℕ} {r : Fin a → ℂ} (h_ne : ∀ i : Fin a, r i ≠ 0) |
| 362 | (w : Fin a → ℤ) : |
| 363 | (of fun i j : Fin a ↦ (r i.rev)⁻¹ ^ w j).det = |
| 364 | univ.prod r ^ (1 - a : ℤ) * (of fun i j : Fin a ↦ r i ^ (a - 1 - w j.rev)).det := by |
| 365 | rw [← det_zpow_add h_ne, ← det_submatrix_equiv_self revPerm |
| 366 | (of fun i j : Fin a ↦ r i ^ ((1 - a : ℤ) + (a - 1 - w j.rev)))] |
| 367 | simp [← add_sub_assoc, submatrix] |
| 368 | |
| 369 | /-- The bialternant formula with integer exponents: if `l = m + k`, then the Schur polynomial of `l` |
| 370 | at nonzero numbers `r i`, times the Vandermonde determinant, is `(∏ r) ^ m * det (r i ^ k j)`. -/ |
| 371 | lemma New.Variety.rootCoeffEval_genericSchur_mul_det_zpow {a : ℕ} {r : Fin a → ℂ} |
| 372 | (h_ne : ∀ i : Fin a, r i ≠ 0) |
| 373 | {l : Fin a → ℕ} {m : ℕ} {k : Fin a → ℤ} (hl : ∀ j : Fin a, (l j : ℤ) = m + k j) : |
| 374 | rootCoeffEval (univ.val.map r) (genericSchur l) * (of fun i j : Fin a ↦ r i ^ (j : ℤ)).det = |
| 375 | univ.prod r ^ m * (of fun i j : Fin a ↦ r i ^ k j).det := by |
| 376 | have h_exponents : |
| 377 | (of fun i j : Fin a ↦ r i ^ l j) = of fun i j : Fin a ↦ r i ^ ((m : ℤ) + k j) := by |
| 378 | simp_rw [← zpow_natCast, hl] |
| 379 | have h_vandermonde : vandermonde r = of fun i j : Fin a ↦ r i ^ (j : ℤ) := by |
| 380 | simp [vandermonde] |
| 381 | rw [← h_vandermonde, rootCoeffEval_genericSchur_mul_det, h_exponents, det_zpow_add h_ne, |
| 382 | zpow_natCast] |
| 383 | |
| 384 | open scoped Classical in |
| 385 | /-- Weyl's character formula for a twist of `weylRep κ.1 κ.2`, for `a` odd. At the places `v` with |
| 386 | `p v` the regular element `y` enters through `Φ v y⁻¹`, at the others through the transpose of |
| 387 | its conjugate. The character, times the `m`-th power of the norm of `det y`, is the product of the |
| 388 | values of `q σ` at the eigenvalues of `σ y`. Above each place one `q σ` gives `det ^ m`; the other |
| 389 | is a Schur polynomial whose exponents come from those, `u v`, of Weyl's formula. -/ |
| 390 | lemma New.Variety.mul_trace_weylRep_eq_prod_rootCoeffEval {E : Type} [Field E] [CMType E] {a : ℕ} |
| 391 | [NeZero a] |
| 392 | (ha : Odd a) (κ : Weight E) (p : InfinitePlace E → Prop) {u : InfinitePlace E → Fin a → ℤ} |
| 393 | (hu : ∀ (v : InfinitePlace E) (j : Fin a), |
| 394 | u v j = κ.2 v + ↑(diagramWeight (rankAt fun _ : InfinitePlace E ↦ Fin a) κ.1 (v, j.rev) + j)) |
| 395 | {q : (E →+* ℂ) → MvPolynomial (Fin a) ℤ} {l : (E →+* ℂ) → Fin a → ℕ} {m : ℕ} |
| 396 | (hl_pos : ∀ v : InfinitePlace E, p v → ∀ j : Fin a, (l (Φ v) j : ℤ) = m + (a - 1 - u v j.rev)) |
| 397 | (hq_pos : ∀ v : InfinitePlace E, p v → q (Φ v) = genericSchur (l (Φ v))) |
| 398 | (hq_conj_pos : ∀ v : InfinitePlace E, p v → q (star (Φ v)) = (-.X 0) ^ m) |
| 399 | (hl_neg : ∀ v : InfinitePlace E, ¬p v → ∀ j : Fin a, (l (star (Φ v)) j : ℤ) = m + u v j) |
| 400 | (hq_neg : ∀ v : InfinitePlace E, ¬p v → q (Φ v) = (-.X 0) ^ m) |
| 401 | (hq_conj_neg : ∀ v : InfinitePlace E, ¬p v → q (star (Φ v)) = genericSchur (l (star (Φ v)))) |
| 402 | {y : GL (Fin a) E} (hy : y.val.charpoly.Separable) : |
| 403 | (∏ σ : E →+* ℂ, σ y.val.det) ^ m * |
| 404 | (weylRep κ.1 κ.2 fun v : InfinitePlace E ↦ |
| 405 | if p v then y⁻¹.map (Φ v) else transposeGL (y.map (star (Φ v)))).trace = |
| 406 | ∏ σ : E →+* ℂ, rootCoeffEval (y.val.charpoly.map σ).roots (q σ) := by |
| 407 | -- Number the eigenvalues `r σ` of `σ y`, and the eigenvalues `x v` of the component at `v`. |
| 408 | let r (σ : E →+* ℂ) : Fin a ↪ ℂ := numberedRoots σ y.val.charpoly |
| 409 | have h_roots (σ : E →+* ℂ) : (y.val.charpoly.map σ).roots = univ.val.map (r σ) := |
| 410 | roots_eq_map_numberedRoots hy σ |
| 411 | have h_ne (σ : E →+* ℂ) (i : Fin a) : r σ i ≠ 0 := |
| 412 | spectrum.ne_zero_of_mem_of_unit (mem_spectrum_of_isRoot_charpoly (isRoot_numberedRoots hy σ i)) |
| 413 | have h_det (σ : E →+* ℂ) : σ y.val.det = univ.prod (r σ) := by |
| 414 | simp [RingHom.map_det, det_eq_prod_roots_charpoly, charpoly_map, h_roots, List.prod_ofFn] |
| 415 | have hx_inj (v : InfinitePlace E) : |
| 416 | Function.Injective fun i : Fin a ↦ if p v then (r (Φ v) i.rev)⁻¹ else r (star (Φ v)) i := by |
| 417 | intro i j |
| 418 | by_cases hv : p v <;> simp [hv] |
| 419 | let x (v : InfinitePlace E) : Fin a ↪ ℂ := |
| 420 | ⟨fun i ↦ if p v then (r (Φ v) i.rev)⁻¹ else r (star (Φ v)) i, hx_inj v⟩ |
| 421 | have hx_root (v : InfinitePlace E) (i : Fin a) : IsRoot |
| 422 | (if p v then y⁻¹.map (Φ v) else transposeGL (y.map (star (Φ v)))).val.charpoly (x v i) := by |
| 423 | by_cases hv : p v |
| 424 | · -- `coe_units_inv` and `IsRoot.def` are erased because with them simp rewrites the goal past |
| 425 | -- `mem_spectrum_iff_isRoot_charpoly`. |
| 426 | simpa [x, hv, -coe_units_inv, -IsRoot.def, ← mem_spectrum_iff_isRoot_charpoly] using |
| 427 | isRoot_numberedRoots hy (Φ v) i.rev |
| 428 | · simpa [x, hv] using isRoot_numberedRoots hy (star (Φ v)) i |
| 429 | -- Multiply by the Vandermonde determinants of the `x v`, apply Weyl's formula, and compare the |
| 430 | -- factors place by place. |
| 431 | apply mul_right_cancel₀ |
| 432 | (prod_ne_zero_iff.mpr fun v (_hv : v ∈ univ) ↦ det_vandermonde_ne_zero_iff.mpr (x v).injective) |
| 433 | -- Weyl's formula turns the trace times the Vandermonde determinants into a product over the |
| 434 | -- places `v` of determinants in the `x v`, with the exponents `u v`. |
| 435 | simp_rw [mul_assoc, trace_weylRep _ _ hx_root, ← hu] |
| 436 | -- The other side is a product over the embeddings; they come in pairs `Φ v`, `star (Φ v)`. |
| 437 | simp_rw [h_det, h_roots, prod_embeddings_eq_prod_pairs, ← prod_pow, ← prod_mul_distrib] |
| 438 | refine prod_congr rfl fun v _ ↦ ?_ |
| 439 | rw [show vandermonde (x v) = of fun i j : Fin a ↦ x v i ^ (j : ℤ) by simp [vandermonde]] |
| 440 | by_cases hv : p v |
| 441 | · -- Both determinants in the inverted eigenvalues give the same factor `(∏ r) ^ (1 - a)`. |
| 442 | have h_bialternant : rootCoeffEval (univ.val.map (r (Φ v))) (genericSchur (l (Φ v))) * |
| 443 | (of fun i j : Fin a ↦ r (Φ v) i ^ (j : ℤ)).det = univ.prod (r (Φ v)) ^ m * |
| 444 | (of fun i j : Fin a ↦ r (Φ v) i ^ (a - 1 - u v j.rev)).det := |
| 445 | rootCoeffEval_genericSchur_mul_det_zpow (h_ne (Φ v)) (hl_pos v hv) |
| 446 | have h_rev (j : Fin a) : (a - 1 - j.rev : ℤ) = j := by simp [Fin.val_rev] |
| 447 | simp only [hq_pos v hv, hq_conj_pos v hv, x, hv, ite_true, Function.Embedding.coeFn_mk, h_rev, |
| 448 | map_pow, map_neg, det_inv_rev_zpow (h_ne (Φ v)), rootCoeffEval_X_zero_of_odd ha, neg_neg, |
| 449 | prod_mul_distrib] |
| 450 | -- What is left is `h_bialternant` times the factors that the two sides share. |
| 451 | linear_combination |
| 452 | -univ.prod (r (star (Φ v))) ^ m * univ.prod (r (Φ v)) ^ (1 - a : ℤ) * h_bialternant |
| 453 | · have h_bialternant : |
| 454 | rootCoeffEval (univ.val.map (r (star (Φ v)))) (genericSchur (l (star (Φ v)))) * |
| 455 | (of fun i j : Fin a ↦ r (star (Φ v)) i ^ (j : ℤ)).det = univ.prod (r (star (Φ v))) ^ m * |
| 456 | (of fun i j : Fin a ↦ r (star (Φ v)) i ^ u v j).det := |
| 457 | rootCoeffEval_genericSchur_mul_det_zpow (h_ne (star (Φ v))) (hl_neg v hv) |
| 458 | simp only [hq_neg v hv, hq_conj_neg v hv, x, hv, ite_false, Function.Embedding.coeFn_mk, |
| 459 | map_pow, map_neg, rootCoeffEval_X_zero_of_odd ha, neg_neg, prod_mul_distrib] |
| 460 | linear_combination -univ.prod (r (Φ v)) ^ m * h_bialternant |
| 461 | |
| 462 | /-- In the representation `weylRep κ.1 κ.2` of weight `κ` (`New.weylRep`), a family whose component |
| 463 | at `v` is the scalar `t ^ ε v` acts by a power of `t`: the exponent is the sum of the `ε v` times |
| 464 | the degree of the weight at `v`. -/ |
| 465 | lemma New.Variety.weylRep_of_scalar {E : Type} [Field E] [NumberField E] {a : ℕ} (κ : Weight E) |
| 466 | {t : ℂ} (ht : t ≠ 0) {ε : InfinitePlace E → ℤ} {g : InfinitePlace E → GL (Fin a) ℂ} |
| 467 | (hg : ∀ v : InfinitePlace E, (g v).val = t ^ ε v • 1) : |
| 468 | weylRep κ.1 κ.2 g = |
| 469 | t ^ (∑ v : InfinitePlace E, ε v * (a * κ.2 v + ∑ h ∈ Finset.range a, h * κ.1 v h)) • 1 := by |
| 470 | -- On each component the scalar `t ^ ε v` acts through the Schur functor by its degree; the |
| 471 | -- exponents add up. |
| 472 | simp [weylRep, hg, schur_smul, Units.smul_def, smul_smul, ← zpow_natCast, ← _root_.zpow_mul, |
| 473 | ← DiscreteSeries.zpow_sum_of_ne_zero ht, ← zpow_add₀ ht, mul_add, sum_add_distrib, mul_assoc] |
| 474 | |
| 475 | open scoped Classical in |
| 476 | /-- The complex embeddings of `QuadField d₀` are `s₀` and its conjugate. -/ |
| 477 | lemma New.Variety.pair_star_eq_univ {d₀ : ℕ} [Fact (d₀ % 4 = 3)] (s₀ : QuadField d₀ →+* ℂ) : |
| 478 | ({star s₀, s₀} : Finset (QuadField d₀ →+* ℂ)) = univ := by |
| 479 | exact eq_univ_of_card _ (by simp [Embeddings.card, finrank_eq_two]) |
| 480 | |
| 481 | private lemma New.Variety.eq_star_or_eq {d₀ : ℕ} [Fact (d₀ % 4 = 3)] (s s₀ : QuadField d₀ →+* ℂ) : |
| 482 | s = star s₀ ∨ s = s₀ := by |
| 483 | classical |
| 484 | simpa [← pair_star_eq_univ s₀] using mem_univ s |
| 485 | |
| 486 | /-- Exactly one of `s` and its conjugate is `s₀`. -/ |
| 487 | lemma New.Variety.conjugate_eq_iff_ne {d₀ : ℕ} [Fact (d₀ % 4 = 3)] (s s₀ : QuadField d₀ →+* ℂ) : |
| 488 | ComplexEmbedding.conjugate s = s₀ ↔ s ≠ s₀ := by |
| 489 | change star s = s₀ ↔ s ≠ s₀ |
| 490 | rcases eq_star_or_eq s s₀ with rfl | rfl <;> simp |
| 491 | |
| 492 | open scoped Classical in |
| 493 | /-- An embedding of `E` restricts to `s₀` or to its conjugate. -/ |
| 494 | lemma New.Variety.apply_eq_ite_comp_eq {E : Type} [Field E] {d₀ : ℕ} [Fact (d₀ % 4 = 3)] |
| 495 | (i : QuadField d₀ →+* E) (s₀ : QuadField d₀ →+* ℂ) (σ : E →+* ℂ) (x : QuadField d₀) : |
| 496 | σ (i x) = if σ.comp i = s₀ then s₀ x else star s₀ x := by |
| 497 | have h_ne : star s₀ ≠ s₀ := by simp |
| 498 | rw [← RingHom.comp_apply σ i x] |
| 499 | rcases eq_star_or_eq (σ.comp i) s₀ with h_star | h_self |
| 500 | · simp [h_star, h_ne] |
| 501 | · simp [h_self] |
| 502 | |
| 503 | open scoped Classical in |
| 504 | /-- An extension to `GL (Fin a) E` of the embedding of the unitary group at the infinite places: |
| 505 | `z` goes to `Φ v z` if `p v` holds, and to the inverse transpose of its conjugate if not. -/ |
| 506 | noncomputable def New.Variety.extendedEmbedding {E : Type} [Field E] [CMType E] {a : ℕ} |
| 507 | (p : InfinitePlace E → Prop) : GL (Fin a) E →* InfinitePlace E → GL (Fin a) ℂ := |
| 508 | MonoidHom.mk' (fun z v ↦ if p v then z.map (Φ v) else transposeGL (z⁻¹.map (star (Φ v)))) |
| 509 | (by simp +contextual [funext_iff, apply_ite, Units.ext_iff]) |
| 510 | |
| 511 | /-- The matrices of weight `κ` along `extendedEmbedding p`, twisted by the `-m`-th power of the |
| 512 | norm of the determinant. -/ |
| 513 | noncomputable def New.Variety.twistedWeylMatrix {E : Type} [Field E] [CMType E] {a : ℕ} |
| 514 | (κ : Weight E) (p : InfinitePlace E → Prop) (m : ℕ) : |
| 515 | GL (Fin a) E →* Matrix (WeylIndex (Fin a) κ.1) (WeylIndex (Fin a) κ.1) ℂ where |
| 516 | toFun z := (∏ σ : E →+* ℂ, σ z⁻¹.val.det) ^ m • weylRep κ.1 κ.2 (extendedEmbedding p z) |
| 517 | map_one' := by simp |
| 518 | map_mul' := by simp [prod_mul_distrib, smul_smul, mul_pow] |
| 519 | |
| 520 | /-- The representation given by the matrices `twistedWeylMatrix κ p m`. -/ |
| 521 | noncomputable def New.Variety.twistedWeylRep {E : Type} [Field E] [CMType E] {a : ℕ} |
| 522 | (κ : Weight E) (p : InfinitePlace E → Prop) (m : ℕ) : |
| 523 | Representation ℂ (GL (Fin a) E) (WeylIndex (Fin a) κ.1 → ℂ) := |
| 524 | toLinAlgEquiv'.toMonoidHom.comp (twistedWeylMatrix κ p m) |
| 525 | |
| 526 | /-- For unitary `y`, `twistedWeylRep κ p m y` is the action of `ȳ` in weight `κ`. -/ |
| 527 | lemma New.Variety.weightRep_entryConj_eq_twistedWeylRep {E : Type} [Field E] [CMType E] {a : ℕ} |
| 528 | (κ : Weight E) (p : InfinitePlace E → Prop) (m : ℕ) (y : U (1 : Matrix (Fin a) (Fin a) E)) : |
| 529 | (stdSpace E (Fin a)).weightRep κ.1 κ.2 (entryConj y) = twistedWeylRep κ p m y.val := by |
| 530 | -- The determinant has norm one, and both branches of the embedding at `v` are `Φ v y`; on the |
| 531 | -- other side `entryConj` and `stdSpace_weightRep_apply` each conjugate the entries once. |
| 532 | have h_unitary : y.val.valᴴ * 1 * y.val.val = 1 := mem_unitaryGroupOf_iff.1 y.prop |
| 533 | have h_norm (v : InfinitePlace E) : |
| 534 | Φ v y.val.val.det * starRingEnd ℂ (Φ v y.val.val.det) = 1 := by |
| 535 | simpa [mul_comm] using congrArg (fun M : Matrix (Fin a) (Fin a) E ↦ Φ v M.det) h_unitary |
| 536 | have h_embedding : extendedEmbedding p y.val = |
| 537 | fun v ↦ .map ((Φ v).comp (starRingEnd E)) (entryConj y).val := by |
| 538 | ext v |
| 539 | simp [extendedEmbedding, entryConj, invTransposeGL, transposeGL, starRingEnd_apply (R := E), |
| 540 | apply_ite, Matrix.ite_apply, ← map_inv, inv_eq_left_inv h_unitary] |
| 541 | refine LinearMap.ext fun w ↦ (stdSpace_weightRep_apply (entryConj y) w).trans ?_ |
| 542 | simp [twistedWeylRep, twistedWeylMatrix, prod_embeddings_eq_prod_pairs, h_norm, h_embedding] |
| 543 | |
| 544 | /-- Let `E` be a CM field with chosen embeddings `Φ v`, let `i : ℚ(i√d₀) →+* E`, and let `s₀` be a |
| 545 | complex embedding of ℚ(i√d₀). Let `p v` mean that `Φ v` extends `s₀`, and consider the |
| 546 | representation `twistedWeylRep κ p m` of `GL_a(E)` given by the matrices `twistedWeylMatrix κ p m` |
| 547 | for the weight `κ`. Then there is one integer `A` such that, for every `x` in `(QuadField d₀)ˣ`, the |
| 548 | scalar matrix `i(x̄)` acts by `s̄₀ x ^ (-A) * s₀ x ^ (-μ)`, where `μ` is `m * a` times the number of |
| 549 | infinite places of `E`. -/ |
| 550 | lemma New.Variety.exists_twistedWeylRep_scalar {E : Type} [Field E] [CMType E] {a d₀ : ℕ} |
| 551 | [Fact (d₀ % 4 = 3)] (i : QuadField d₀ →+* E) (s₀ : QuadField d₀ →+* ℂ) (κ : Weight E) (m : ℕ) : |
| 552 | ∃ A : ℤ, ∀ x : (QuadField d₀)ˣ, |
| 553 | twistedWeylRep κ (fun v : InfinitePlace E ↦ (Φ v).comp i = s₀) m |
| 554 | (GeneralLinearGroup.scalar (Fin a) (star (x.map i))) = |
| 555 | (star s₀ x ^ (-A) * s₀ x ^ (-(m * a * Core.numInfPlaces E : ℕ) : ℤ)) • 1 := by |
| 556 | classical |
| 557 | -- The twist gives `(s₀ x * star s₀ x)⁻¹ ^ μ`, and the weight gives `star s₀ x ^ B`. |
| 558 | let p (v : InfinitePlace E) : Prop := (Φ v).comp i = s₀ |
| 559 | let ε (v : InfinitePlace E) : ℤ := if p v then 1 else -1 |
| 560 | let B : ℤ := ∑ v, ε v * (a * κ.2 v + ∑ h ∈ range a, h * κ.1 v h) |
| 561 | set μ : ℕ := m * a * Core.numInfPlaces E with hμ |
| 562 | refine ⟨μ - B, fun x ↦ ?_⟩ |
| 563 | set z : GL (Fin a) E := GeneralLinearGroup.scalar (Fin a) (star (x.map i)) with hz |
| 564 | have h_embedding (v : InfinitePlace E) : |
| 565 | (extendedEmbedding p z v).val = star s₀ x ^ ε v • 1 := by |
| 566 | by_cases hv : (Φ v).comp i = s₀ <;> |
| 567 | simp [extendedEmbedding, hz, ε, p, hv, apply_eq_ite_comp_eq i s₀, conjugate_eq_iff_ne, |
| 568 | smul_one_eq_diagonal, ← map_inv] |
| 569 | have h_weight : weylRep κ.1 κ.2 (extendedEmbedding p z) = star s₀ x ^ B • 1 := |
| 570 | weylRep_of_scalar κ (by simp) h_embedding |
| 571 | have h_pair (v : InfinitePlace E) : |
| 572 | starRingEnd ℂ (Φ v (i x)) * starRingEnd ℂ (star (Φ v) (i x)) = s₀ x * star s₀ x := by |
| 573 | by_cases hv : (Φ v).comp i = s₀ <;> |
| 574 | simp [hv, apply_eq_ite_comp_eq i s₀, conjugate_eq_iff_ne, mul_comm] |
| 575 | have h_norm : ∏ σ : E →+* ℂ, starRingEnd ℂ (σ (i x)) = |
| 576 | (s₀ x * star s₀ x) ^ Core.numInfPlaces E := by |
| 577 | simp only [prod_embeddings_eq_prod_pairs, h_pair, Finset.prod_const, card_univ] |
| 578 | have h_twist : (∏ σ : E →+* ℂ, σ z⁻¹.val.det) ^ m = (s₀ x * star s₀ x)⁻¹ ^ μ := by |
| 579 | -- With `mul_inv_rev`, simp inverts the product in the other order, against the right side. |
| 580 | simp [hz, prod_pow, h_norm, hμ, -_root_.mul_inv_rev, ← pow_mul, mul_comm, mul_left_comm, |
| 581 | mul_assoc] |
| 582 | have h_exponent : |
| 583 | (s₀ x * star s₀ x)⁻¹ ^ μ * star s₀ x ^ B = star s₀ x ^ (-(μ - B)) * s₀ x ^ (-μ : ℤ) := by |
| 584 | simp [zpow_sub₀, div_eq_mul_inv, mul_pow, mul_comm, mul_assoc] |
| 585 | simp only [twistedWeylRep, twistedWeylMatrix, MonoidHom.comp_apply, MonoidHom.coe_mk, |
| 586 | OneHom.coe_mk, p, h_weight, h_twist, smul_smul, h_exponent] |
| 587 | simp |
| 588 | |
| 589 | /-- Let `i` embed the imaginary quadratic field `QuadField d₀` in `E`, and let `s₀` be a complex |
| 590 | embedding of `QuadField d₀`. The representation `ξ` extends the weight `κ` to `GL (Fin a) E`. The |
| 591 | centre acts through the exponents `A`, with `A s₀ = μ`. The eigenvalues of the test eigenforms with |
| 592 | coefficients in `ξ` occur in the weights `z + μ`, for `z` a jump of `κ` at an embedding over `s₀` |
| 593 | (`New.Variety.OccursInWeight` with the parameter `N + 1`). -/ |
| 594 | structure New.Variety.IsCoefficientSystem {E : Type} [Field E] [CMType E] {a d₀ : ℕ} |
| 595 | [HasQuadSubfield d₀ E] (i : QuadField d₀ →+* E) (s₀ : QuadField d₀ →+* ℂ) (κ : Weight E) |
| 596 | (ξ : Representation ℂ (GL (Fin a) E) (WeylIndex (Fin a) κ.1 → ℂ)) (μ N : ℕ) |
| 597 | (A : (QuadField d₀ →+* ℂ) → ℤ) : Prop where |
| 598 | /-- The central exponent at `s₀` is `μ`. -/ |
| 599 | exponent_self : A s₀ = μ |
| 600 | /-- For unitary `y`, `ξ y` is the action of `ȳ` in weight `κ`. -/ |
| 601 | weightRep_entryConj (y : U (1 : Matrix (Fin a) (Fin a) E)) : |
| 602 | (stdSpace E (Fin a)).weightRep κ.1 κ.2 (entryConj y) = ξ y.val |
| 603 | /-- For `x` in `(QuadField d₀)ˣ`, the scalar `x̄` acts by `∏ s, s x ^ (-A s)`. -/ |
| 604 | map_scalar (x : (QuadField d₀)ˣ) : |
| 605 | ξ (GeneralLinearGroup.scalar (Fin a) (star (x.map i))) = |
| 606 | (∏ s : QuadField d₀ →+* ℂ, s x ^ (-A s)) • 1 |
| 607 | /-- The jumps of `κ` at embeddings over `s₀` are at least `-μ`. -/ |
| 608 | jump_add_nonneg {σ : E →+* ℂ} (hσ : σ.comp i = s₀) {z : ℤ} (hz : z ∈ jumps κ a σ) : 0 ≤ z + μ |
| 609 | /-- Let `z` be a jump of `κ` at `σ` over `s₀`, for the given CM type. Let `Ψ` be any CM type with |
| 610 | base place `v₀` whose only embedding over `s₀` is `σ`, at `v₀`. Then the eigenvalues of every |
| 611 | test eigenform of neat level for `Ψ` occur in weight `z + μ`. -/ |
| 612 | occursInWeight {σ : E →+* ℂ} (hσ : σ.comp i = s₀) {z : ℤ} (hz : z ∈ jumps κ a σ) |
| 613 | [Ψ : CMBase E] (hv₀ : Ψ.Φ v₀ = σ) (hΨ : ∀ v : InfinitePlace E, v ≠ v₀ → (Ψ.Φ v).comp i ≠ s₀) |
| 614 | {𝔑 : 𝓞 E} (hN : IsNeat (Fin a) 𝔑) {φ : GL (Fin a) (𝔸f E) → WeylIndex (Fin a) κ.1 → ℂ} |
| 615 | {θ : SafePlace 𝔑 → ℕ → ℂ} (h_form : IsTestEigenform 𝔑 ξ φ θ) : |
| 616 | OccursInWeight a (N + 1) θ (z + μ).toNat |
| 617 | |
| 618 | open scoped Classical in |
| 619 | /-- The trace of `twistedWeylRep κ p m` at `y⁻¹` is the left side of |
| 620 | `mul_trace_weylRep_eq_prod_rootCoeffEval`: the `m`-th power of the norm of `det y` times the trace |
| 621 | of `weylRep κ.1 κ.2` at the family that is `Φ v y⁻¹` where `p v` holds and the transpose of the |
| 622 | conjugate of `y` elsewhere. -/ |
| 623 | private lemma New.Variety.trace_twistedWeylRep_inv {E : Type} [Field E] [CMType E] {a : ℕ} |
| 624 | (κ : Weight E) (p : InfinitePlace E → Prop) (m : ℕ) (y : GL (Fin a) E) : |
| 625 | (twistedWeylRep κ p m y⁻¹).trace ℂ (WeylIndex (Fin a) κ.1 → ℂ) = |
| 626 | (∏ σ : E →+* ℂ, σ y.val.det) ^ m * |
| 627 | (weylRep κ.1 κ.2 fun v : InfinitePlace E ↦ |
| 628 | if p v then y⁻¹.map (Φ v) else transposeGL (y.map (star (Φ v)))).trace := by |
| 629 | change (Matrix.toLin' ((∏ σ : E →+* ℂ, σ y.val.det) ^ m • weylRep κ.1 κ.2 fun v ↦ |
| 630 | if p v then y⁻¹.map (Φ v) else transposeGL (y.map (star (Φ v))))).trace ℂ _ = _ |
| 631 | rw [trace_toLin'_eq, trace_smul, smul_eq_mul] |
| 632 | |
| 633 | /-- Let `a` be odd, `i` an embedding of the imaginary quadratic field `QuadField d₀` in `E` and `s₀` |
| 634 | a complex embedding of `QuadField d₀`. A weight `κ` extends to a representation `ξ` of |
| 635 | `GL (Fin a) E` on which the scalars from `(QuadField d₀)ˣ` (through `i`) act through exponents `A` |
| 636 | with `A s₀ = μ`, and whose test eigenforms occur in the weights `z + μ` for `z` a jump of `κ` at an |
| 637 | embedding over `s₀`, for some `N` (`New.Variety.IsCoefficientSystem`). The proof compares traces |
| 638 | directly and does not pass through automorphic representations of `GL_n`. |
| 639 | |
| 640 | In the literature the same occurrence follows from the description, due to Labesse and to |
| 641 | Moeglin–Waldspurger, of automorphic representations of unitary groups via `GL_n`. -/ |
| 642 | lemma New.Variety.exists_isCoefficientSystem {E : Type} [Field E] [CMType E] {a d₀ : ℕ} |
| 643 | [HasQuadSubfield d₀ E] (ha : Odd a) (i : QuadField d₀ →+* E) (s₀ : QuadField d₀ →+* ℂ) |
| 644 | (κ : Weight E) : |
| 645 | ∃ (ξ : Representation ℂ (GL (Fin a) E) (WeylIndex (Fin a) κ.1 → ℂ)) (μ N : ℕ) |
| 646 | (A : (QuadField d₀ →+* ℂ) → ℤ), IsCoefficientSystem i s₀ κ ξ μ N A := by |
| 647 | classical |
| 648 | -- Twist the representation of weight `κ` so that its character is a product over all embeddings |
| 649 | -- `σ` of polynomials `q σ` in the eigenvalues: a Schur polynomial with natural exponents `l σ` if |
| 650 | -- `σ` extends `s₀`, and `det ^ m` if not. Then `occursInWeight_of_isTestEigenform` applies. |
| 651 | have ha_ne : NeZero a := NeZero.of_pos ha.pos |
| 652 | -- `u v` are the exponents in Weyl's formula, `k σ` the exponents for the eigenvalues at `σ`; |
| 653 | -- adding a large `m` turns them into natural numbers `l σ`. |
| 654 | let u (v : InfinitePlace E) (j : Fin a) : ℤ := |
| 655 | κ.2 v + ↑(diagramWeight (rankAt fun _ : InfinitePlace E ↦ Fin a) κ.1 (v, j.rev) + j) |
| 656 | let k (σ : E →+* ℂ) (j : Fin a) : ℤ := |
| 657 | if σ = Φ (.mk σ) then a - 1 - u (.mk σ) j.rev else u (.mk σ) j |
| 658 | obtain ⟨m, hm_bound⟩ := Finite.exists_le (Int.natAbs ∘ k.uncurry) |
| 659 | let l (σ : E →+* ℂ) (j : Fin a) : ℕ := (m + k σ j).toNat |
| 660 | have hl (σ : E →+* ℂ) (j : Fin a) : (l σ j : ℤ) = m + k σ j := by |
| 661 | have h_abs : (k σ j).natAbs ≤ m := hm_bound (σ, j) |
| 662 | exact Int.toNat_of_nonneg (by omega) |
| 663 | let p (v : InfinitePlace E) : Prop := (Φ v).comp i = s₀ |
| 664 | let q (σ : E →+* ℂ) : MvPolynomial (Fin a) ℤ := |
| 665 | if σ.comp i = s₀ then genericSchur (l σ) else (-.X 0) ^ m |
| 666 | let ξ : Representation ℂ (GL (Fin a) E) (WeylIndex (Fin a) κ.1 → ℂ) := twistedWeylRep κ p m |
| 667 | -- The exponents and polynomials at `Φ v` and at its conjugate, as |
| 668 | -- `mul_trace_weylRep_eq_prod_rootCoeffEval` needs them. |
| 669 | have hl_pos (v : InfinitePlace E) (j : Fin a) : |
| 670 | (l (Φ v) j : ℤ) = m + (a - 1 - u v j.rev) := by simp [hl, k] |
| 671 | have hq_conj_pos (v : InfinitePlace E) (hv : p v) : q (star (Φ v)) = (-.X 0) ^ m := by |
| 672 | simp [q, show (Φ v).comp i = s₀ from hv] |
| 673 | have hl_neg (v : InfinitePlace E) (j : Fin a) : |
| 674 | (l (star (Φ v)) j : ℤ) = m + u v j := by simp [hl, k] |
| 675 | have hq_conj_neg (v : InfinitePlace E) (hv : ¬p v) : |
| 676 | q (star (Φ v)) = genericSchur (l (star (Φ v))) := by |
| 677 | simp [q, show ¬(Φ v).comp i = s₀ from hv, conjugate_eq_iff_ne] |
| 678 | have h_char (y : GL (Fin a) E) (hy : y.val.charpoly.Separable) : |
| 679 | (ξ y⁻¹).trace ℂ (WeylIndex (Fin a) κ.1 → ℂ) = |
| 680 | ∏ σ, rootCoeffEval (y.val.charpoly.map σ).roots (q σ) := by |
| 681 | rw [trace_twistedWeylRep_inv κ p m y] |
| 682 | exact mul_trace_weylRep_eq_prod_rootCoeffEval ha κ p (u := u) (l := l) (fun _ _ ↦ rfl) |
| 683 | (fun v _ ↦ hl_pos v) (fun _ hv ↦ ite_eq_left hv) hq_conj_pos |
| 684 | (fun v _ ↦ hl_neg v) (fun _ hv ↦ ite_eq_right hv) hq_conj_neg hy |
| 685 | let μ : ℕ := m * a * Core.numInfPlaces E |
| 686 | obtain ⟨A, h_scalar⟩ := exists_twistedWeylRep_scalar (a := a) i s₀ κ m |
| 687 | -- Each jump at `σ` is some `k σ j = l σ j - m`, so adding `μ` gives the weight in |
| 688 | -- `occursInWeight_of_isTestEigenform`. |
| 689 | have h_jump (σ : E →+* ℂ) : ∀ z ∈ jumps κ a σ, ∃ j : Fin a, |
| 690 | z + μ = (m * (a - 1 + a * (Core.numInfPlaces E - 1)) + l σ j : ℕ) := by |
| 691 | refine Multiset.forall_mem_map_iff.mpr fun n hn ↦ ?_ |
| 692 | let n' : Fin a := ⟨n, Multiset.mem_range.mp hn⟩ |
| 693 | refine ⟨if σ = Φ (.mk σ) then n' else n'.rev, ?_⟩ |
| 694 | simp [hl, k, u, μ, n', diagramWeight_apply, Fintype.card_pos] |
| 695 | -- What is left is index arithmetic with products of casts, which `omega` cannot expand; |
| 696 | -- `grind` closes it once the context is cleared, and does not finish with the whole context. |
| 697 | clear * - hn |
| 698 | grind |
| 699 | refine ⟨ξ, μ, ∑ σ, (q σ).totalDegree, fun s ↦ if s = s₀ then μ else A, |
| 700 | { exponent_self := ite_eq_left rfl |
| 701 | weightRep_entryConj := weightRep_entryConj_eq_twistedWeylRep κ _ m |
| 702 | map_scalar := fun x ↦ ?_ |
| 703 | jump_add_nonneg := fun _hσ z hz ↦ ?_ |
| 704 | occursInWeight := fun hσ z hz ↦ ?_ }⟩ |
| 705 | · rw [h_scalar, ← pair_star_eq_univ s₀] |
| 706 | simp [μ, mul_comm] |
| 707 | · obtain ⟨j, hj⟩ := h_jump _ z hz |
| 708 | omega |
| 709 | · obtain ⟨j, hj⟩ := h_jump _ z hz |
| 710 | rintro Ψ rfl hΨ 𝔑 hN φ θ h_form |
| 711 | rw [hj, Int.toNat_natCast] |
| 712 | refine occursInWeight_of_isTestEigenform ha h_char (ite_eq_left hσ) (ite_eq_right ?_) |
| 713 | (fun v hv ↦ ite_eq_right (hΨ v hv)) hN |
| 714 | h_form j |
| 715 | simpa [conjugate_eq_iff_ne] using hσ |