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 Mathlib.Algebra.Order.Star.Int |
| 4 | import Mathlib.Dynamics.Ergodic.Action.Regular |
| 5 | import Mathlib.MeasureTheory.Integral.Pi |
| 6 | import TauCeti.GroupTheory.Subgroup.Centralizer |
| 7 | import TauCeti.Topology.Algebra.Group.Units |
| 8 | import TauCeti.Topology.Instances.Matrix |
| 9 | public import Lib.Adelic.TraceFormula.OrbitalUnfolding |
| 10 | public import Lib.DiscreteSeries.Character.WeylCharacterFormula |
| 11 | import Lib.Adelic.Landherr |
| 12 | import Lib.Adelic.Reduction.DefiniteClassSums |
| 13 | import Lib.Adelic.Unitary.WeakApproximation |
| 14 | import Lib.DiscreteSeries.Character.FormalDegree |
| 15 | import Lib.DiscreteSeries.FlenstedJensen.PsiKTypes |
| 16 | import Lib.General.LinearAlgebra.Eigenvalues |
| 17 | import Lib.General.LinearAlgebra.MatrixPolynomials |
| 18 | import Lib.Weil.Periods.Grading |
| 19 | |
| 20 | /-! |
| 21 | # Comparison of traces of operators on forms for different spaces and signs |
| 22 | |
| 23 | A simple trace formula for the unitary group of a hermitian space `V`, with terms sorted by the |
| 24 | characteristic polynomials `R` of rational points. The test function is `e ⊗ φ`, with `e` a cusp |
| 25 | kernel on the real group and `φ` locally constant of compact support on the finite adelic group. |
| 26 | |
| 27 | This file proves the Selberg principle: orbital integrals of an irreducible `R` with a root off |
| 28 | the unit circle vanish. For `R` with all roots on the unit circle, it splits orbital integrals into |
| 29 | real and finite factors and matches the classes of different signs. It concludes that the trace on |
| 30 | forms depends neither on the space nor on its signs. |
| 31 | |
| 32 | ## Main definitions and results |
| 33 | |
| 34 | * `New.Space.orbitalIntegral_eq_zero`: the orbital integral is `0` if `R` is irreducible with a root |
| 35 | off the unit circle. |
| 36 | * `New.Space.exists_geometricSide_singleton_eq`: if `R` is irreducible with all roots on the unit |
| 37 | circle, `E` contains the 5040th roots of unity and has an even number of infinite places, and the |
| 38 | parameter has a large gap, its term is a product of characters of the compact unitary group times |
| 39 | a number that depends only on `R` and `φ`. |
| 40 | * `New.trace_comparison`: let `E` contain the 5040th roots of unity and have an even number of |
| 41 | infinite places, let `n ≥ 2`, and let the parameter have a large gap. If `φ` is cuspidal at a |
| 42 | split place and, at a place `w'`, the elements of its support are integral with `0` a simple root |
| 43 | of the characteristic polynomial modulo `w'`, the reducible `R` contribute nothing, so the trace |
| 44 | depends neither on the space nor on its signs. |
| 45 | |
| 46 | Notions from other files: |
| 47 | * `New.Space E n s`: a hermitian form `J` over `E` with an adelic frame `x` in which it is `diag s` |
| 48 | at infinity and `1` at the finite places. `V.ratEmbed` embeds `U(J)(E)` in `G = G_∞ × G_f` with |
| 49 | image `Γ = V.Γ`, and `V.quotMeasure` integrates over `[G] = Γ \ G`. |
| 50 | * `New.IsCuspKernel B e`: `e` is a minimal convolution idempotent on `G_∞` with moment of order |
| 51 | `B + 1` and decay of order `B`, and `α ⋆ e = e` for some continuous compactly supported `α`. |
| 52 | * `V.polyTerm k φ S γ x`: the value of `k ⊗ φ` at `x⁻¹ γ x` if the characteristic polynomial of `γ` |
| 53 | lies in `S`, and `0` otherwise. |
| 54 | * `V.formRep e`: the action of `G_f` on the forms of type `e`, which for integrable `e` are the |
| 55 | bounded automorphic functions on `G` fixed by right convolution with `e`; a level `K` is an open |
| 56 | subgroup of the standard compact subgroup. |
| 57 | * `New.Space.orbitalIntegral` (in `Lib.Adelic.TraceFormula.OrbitalUnfolding`): the orbital integral |
| 58 | `I_γ`, the integral of the term of `γ` over `G` modulo the rational centraliser of `γ`. |
| 59 | |
| 60 | ## Relation to the literature |
| 61 | |
| 62 | Comparison of simple trace formulas for unitary groups that differ only at real places. Here |
| 63 | integrable idempotent kernels of very regular discrete series replace pseudo-coefficients, and the |
| 64 | CM field contains the 5040th roots of unity and has an even number of infinite places. There is no |
| 65 | truncation and no endoscopy. Source: Labesse, Changement de base CM et séries discrètes (2011), |
| 66 | Thms 5.4, 5.5 and their proofs; Arthur and Clozel (1989), ch. 1, Lemmas 2.4-2.6; integrable test |
| 67 | functions as in Knightly and Li, Traces of Hecke operators (2006); for the simple trace formula |
| 68 | with a cuspidal component, Flicker and Kazhdan (1988) and Harris and Labesse (2004), Prop. 1.10.5. |
| 69 | |
| 70 | Selberg principle that orbital integrals of an idempotent vanish off the elliptic set. Here the |
| 71 | idempotent is a minimal convolution idempotent with polynomial decay on a product of groups |
| 72 | U(p,q), placed inside the adelic orbital integral of a rational point with irreducible |
| 73 | characteristic polynomial. If some eigenvalue has absolute value other than 1, this integral is |
| 74 | zero. Source: Harish-Chandra, Discrete series II, Acta Math. 116 (1966), Thm 11; Blanc and |
| 75 | Brylinski, Cyclic homology and the Selberg principle, J. Funct. Anal. 109 (1992); Hochs and Wang, |
| 76 | Orbital integrals and K-theory classes (2019), Cor 4.8. |
| 77 | -/ |
| 78 | |
| 79 | @[expose] public section |
| 80 | |
| 81 | noncomputable section |
| 82 | |
| 83 | open MeasureTheory Fintype |
| 84 | |
| 85 | open NumberField Measure Matrix Polynomial Module Subgroup Complex MulAction New.Variety Finset |
| 86 | Equiv Real ConjAct ENNReal |
| 87 | |
| 88 | open scoped Norms.L2Operator InnerProductSpace ComplexOrder |
| 89 | |
| 90 | namespace New |
| 91 | |
| 92 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 93 | |
| 94 | namespace Space |
| 95 | |
| 96 | variable {s : n → ℤˣ} (V : Space E n s) {B : ℕ} {k e : GInf E s → ℂ} |
| 97 | |
| 98 | /-! ### The Selberg principle -/ |
| 99 | |
| 100 | /-- The trace property for the triple kernel of `e ⊗ φ` at the rational point `γ`. Let `a` be a |
| 101 | weight on triples that is invariant under left translation by the rational centraliser of `γ`, and |
| 102 | let `b` be `a` composed with the rotation of triples. Then the kernel has the same integral against |
| 103 | `a` and against `b`, if both converge. -/ |
| 104 | lemma integral_mul_tripleKernel_tripleRotate (φ : TestFunction (Gf E n)) (he : Measurable e) |
| 105 | {γ : U V.J} {a b : G E s × GInf E s × GInf E s → ℝ} (ha_meas : Measurable a) |
| 106 | (ha : Integrable (fun p : G E s × GInf E s × GInf E s ↦ a p * V.tripleKernel e φ γ p) |
| 107 | (V.tripleMeasure γ)) |
| 108 | (hb : Integrable (fun p : G E s × GInf E s × GInf E s ↦ b p * V.tripleKernel e φ γ p) |
| 109 | (V.tripleMeasure γ)) |
| 110 | (hab : ∀ p : G E s × GInf E s × GInf E s, a (V.tripleRotate γ p) = b p) |
| 111 | (ha_inv : ∀ t : U V.J, Commute γ t → ∀ (x : G E s) (q : GInf E s × GInf E s), |
| 112 | a (V.ratEmbed t * x, q) = a (x, q)) : |
| 113 | ∫ p : G E s × GInf E s × GInf E s, b p * V.tripleKernel e φ γ p ∂V.tripleMeasure γ = |
| 114 | ∫ p : G E s × GInf E s × GInf E s, a p * V.tripleKernel e φ γ p ∂V.tripleMeasure γ := by |
| 115 | let f (p : G E s × GInf E s × GInf E s) : ℂ := a p * V.tripleKernel e φ γ p |
| 116 | have h_comp (p : G E s × GInf E s × GInf E s) : |
| 117 | f (V.tripleRotate γ p) = b p * V.tripleKernel e φ γ p := by |
| 118 | simp only [f, hab, V.tripleKernel_tripleRotate] |
| 119 | simpa only [h_comp] using V.integral_comp_tripleRotate (f := f) (by fun_prop) ha |
| 120 | (by simpa only [h_comp] using hb) |
| 121 | fun t ht x q ↦ by simp only [f, ha_inv t ht, V.tripleKernel_ratEmbed_mul φ ht] |
| 122 | |
| 123 | /-- Let `V` be a hermitian space with a frame, and let `e` be a cusp kernel of order `B ≥ 13 n ^ 3`: |
| 124 | a minimal idempotent with `‖x‖^(B+1) e(x)` integrable, `‖x‖^B e(x)` bounded, and `α ⋆ e = e` for |
| 125 | some continuous compactly supported `α`. Let the rational point `γ` have an irreducible |
| 126 | characteristic polynomial, and let `H` be a measurable function on the real group that moves by at |
| 127 | most `∏_w ‖b_w‖` under right multiplication by `b`. If the real part of `γ` shifts `H` by `ℓ` on the |
| 128 | left and every rational point that commutes with `γ` shifts it by a constant, then `ℓ` times the |
| 129 | orbital integral of `e ⊗ φ` at `γ` (over `G` modulo the rational centraliser of `γ`) vanishes. -/ |
| 130 | lemma mul_orbitalIntegral_eq_zero (hB : 13 * card n ^ 3 ≤ B) |
| 131 | (φ : TestFunction (Gf E n)) (he : IsCuspKernel B e) {γ : U V.J} |
| 132 | (hγ : Irreducible (γ : GL n E).val.charpoly) {H : GInf E s → ℝ} {ℓ : ℝ} (hH : Measurable H) |
| 133 | (h_lip : ∀ a b : GInf E s, |H (a * b) - H a| ≤ ∏ w : InfinitePlace E, ‖(b w : Matrix n n ℂ)‖) |
| 134 | (h_shift : ∀ y : GInf E s, H ((V.ratEmbed γ).1 * y) = ℓ + H y) |
| 135 | (h_cent : ∀ t : U V.J, Commute γ t → |
| 136 | ∃ r : ℝ, ∀ y : GInf E s, H ((V.ratEmbed t).1 * y) = r + H y) : |
| 137 | ℓ * V.orbitalIntegral e φ γ = 0 := by |
| 138 | have : Nonempty n := Matrix.nonempty_of_irreducible_charpoly hγ |
| 139 | -- Write `I_γ = tr (p p p γ)` for the projection `p(a, b) = e(a⁻¹ b)`; let `∂` multiply a kernel |
| 140 | -- by `H b - H a`. On triples `(x, y, u)` the weights `a₁`, `a₂`, `a₃` are the increments of `H` |
| 141 | -- along `x, x y, x y u, γ x`; they give `∂p p p`, `p ∂p p` and `p p ∂p`. |
| 142 | have h_meas : Measurable e := he.continuous.measurable |
| 143 | let P : G E s × GInf E s × GInf E s → ℂ := V.tripleKernel e φ γ |
| 144 | let m : Measure (G E s × GInf E s × GInf E s) := V.tripleMeasure γ |
| 145 | let a₁ (p : G E s × GInf E s × GInf E s) : ℝ := H (p.1.1 * p.2.1) - H p.1.1 |
| 146 | let a₂ (p : G E s × GInf E s × GInf E s) : ℝ := H (p.1.1 * p.2.1 * p.2.2) - H (p.1.1 * p.2.1) |
| 147 | let a₃ (p : G E s × GInf E s × GInf E s) : ℝ := ℓ + H p.1.1 - H (p.1.1 * p.2.1 * p.2.2) |
| 148 | have h_sum (p : G E s × GInf E s × GInf E s) : |
| 149 | ℓ * P p = a₁ p * P p + a₂ p * P p + a₃ p * P p := by |
| 150 | simp [a₁, a₂, a₃, ← add_mul] |
| 151 | have one_le (y : GInf E s) : 1 ≤ ∏ w, ‖(y w).val.val‖ := (le_prod_opNorm y).1 |
| 152 | have h₀ : Integrable P m := by |
| 153 | simpa using V.integrable_mul_tripleKernel hB φ he hγ (a := 1) measurable_one |
| 154 | fun _ y u ↦ abs_one.trans_le (one_le_mul_of_one_le_of_one_le (one_le y) (one_le u)) |
| 155 | have h₁ : Integrable (fun p ↦ a₁ p * P p) m := |
| 156 | V.integrable_mul_tripleKernel hB φ he hγ (by fun_prop) fun x y u ↦ |
| 157 | (h_lip x.1 y).trans (le_mul_of_one_le_right (by positivity) (one_le u)) |
| 158 | have h₂ : Integrable (fun p ↦ a₂ p * P p) m := |
| 159 | V.integrable_mul_tripleKernel hB φ he hγ (by fun_prop) fun x y u ↦ |
| 160 | (h_lip (x.1 * y) u).trans (le_mul_of_one_le_left (by positivity) (one_le y)) |
| 161 | have h₁₂ : Integrable (fun p ↦ a₁ p * P p + a₂ p * P p) m := h₁.add h₂ |
| 162 | have h₃ : Integrable (fun p ↦ a₃ p * P p) m := |
| 163 | ((h₀.const_mul ℓ).sub h₁₂).congr (.of_forall fun p ↦ sub_eq_of_eq_add' (h_sum p)) |
| 164 | -- As `e ⋆ e = e`, the integral of `P` is `I_γ`, and that of `(a₁ + a₂) P` is that of `a₁ P`. |
| 165 | have h_orb : ∫ p, P p ∂m = V.orbitalIntegral e φ γ := by |
| 166 | rw [V.integral_tripleMeasure h₀ (.id _)] |
| 167 | simp only [P, tripleKernel, id, integral_const_mul, integral_mul_const, he.convolution_self, |
| 168 | orbitalIntegral, orbitalIntegrand] |
| 169 | have h_add (p : G E s × GInf E s × GInf E s) : a₁ p * P p + a₂ p * P p = |
| 170 | (H (p.1.1 * (p.2.1 * p.2.2)) - H p.1.1 : ℝ) * P p := by |
| 171 | simp [a₁, a₂, mul_assoc, ← add_mul] |
| 172 | have h_zero : ∫ p, a₂ p * P p ∂m = 0 := by |
| 173 | rw [← add_eq_left (a := ∫ p, a₁ p * P p ∂m), ← integral_add h₁ h₂] |
| 174 | simp only [h_add] at h₁₂ ⊢ |
| 175 | exact V.integral_mul_tripleKernel_mul φ he (b := fun x y ↦ H (x.1 * y) - H x.1) h₁₂ h₁ |
| 176 | -- The rotation carries `a₁` to `a₂` and `a₂` to `a₃`, so the three integrals agree. |
| 177 | have h_incr {t : U V.J} (ht : Commute γ t) (a b : GInf E s) : |
| 178 | H ((V.ratEmbed t).1 * a) - H ((V.ratEmbed t).1 * b) = H a - H b := by |
| 179 | obtain ⟨r, hr⟩ := h_cent t ht |
| 180 | simp [hr] |
| 181 | have h₂₁ : ∫ p, a₂ p * P p ∂m = ∫ p, a₁ p * P p ∂m := |
| 182 | V.integral_mul_tripleKernel_tripleRotate φ h_meas (by fun_prop) h₁ h₂ (fun p ↦ rfl) |
| 183 | fun t ht x q ↦ by simp only [a₁, Prod.fst_mul, mul_assoc, h_incr ht] |
| 184 | have h₃₂ : ∫ p, a₃ p * P p ∂m = ∫ p, a₂ p * P p ∂m := |
| 185 | V.integral_mul_tripleKernel_tripleRotate φ h_meas (by fun_prop) h₂ h₃ |
| 186 | (fun p ↦ by simp [a₂, a₃, tripleRotate, mul_assoc, h_shift]) |
| 187 | fun t ht x q ↦ by simp only [a₂, Prod.fst_mul, mul_assoc, h_incr ht] |
| 188 | calc ℓ * V.orbitalIntegral e φ γ |
| 189 | = ∫ p, a₁ p * P p + a₂ p * P p + a₃ p * P p ∂m := by |
| 190 | simp only [← h_orb, ← integral_const_mul, h_sum] |
| 191 | _ = 0 := by rw [integral_add h₁₂ h₃, integral_add h₁ h₂, h₃₂, ← h₂₁, h_zero, add_zero, add_zero] |
| 192 | |
| 193 | /-- The Selberg principle: let `e` be a cusp kernel of order `B ≥ 13 n ^ 3`. If the characteristic |
| 194 | polynomial of the rational point `γ` is irreducible and its `i`-th complex root (`numberedRoots`) |
| 195 | under the embedding `Φ w` at the infinite place `w` lies off the unit circle, then the orbital |
| 196 | integral of `e ⊗ φ` at `γ` is zero. -/ |
| 197 | theorem orbitalIntegral_eq_zero (hB : 13 * card n ^ 3 ≤ B) |
| 198 | (φ : TestFunction (Gf E n)) (he : IsCuspKernel B e) {γ : U V.J} |
| 199 | (hγ : Irreducible (γ : GL n E).val.charpoly) {w : InfinitePlace E} {i : n} |
| 200 | (h_root : ‖numberedRoots (Φ w) (γ : GL n E).val.charpoly i‖ ≠ 1) : |
| 201 | V.orbitalIntegral e φ γ = 0 := by |
| 202 | have : Nonempty n := ⟨i⟩ |
| 203 | -- Let `ℓ ≠ 0` be the logarithm of the modulus of the root, and `H y` the logarithm of the norm |
| 204 | -- of the `i`-th row of `k y`, with `k` diagonalising `γ` at `w`. Then `H (γ y) = ℓ + H y`. |
| 205 | let A : Matrix n n ℂ := ((V.ratEmbed γ).1 w).val.val |
| 206 | let d : n ↪ ℂ := numberedRoots (Φ w) γ.val.val.charpoly |
| 207 | obtain ⟨k, hk⟩ : ∃ k : (Matrix n n ℂ)ˣ, SemiconjBy k.val A (diagonal d) := by |
| 208 | refine IsConj.symm (isConj_diagonal_of_isRoot_charpoly fun j ↦ ?_) |
| 209 | have hA : A = (V.x.map (evalInf w))⁻¹.val * γ.val.val.map (Φ w) * (V.x.map (evalInf w)).val := |
| 210 | V.coe_ratEmbed_fst γ w |
| 211 | rw [hA, Matrix.coe_units_inv, charpoly_units_conj'] |
| 212 | exact isRoot_numberedRoots hγ.separable (Φ w) j |
| 213 | let Q : Matrix n n ℂ := diagonal (Pi.single i 1) * k.val |
| 214 | have hQ_ne : Q ≠ 0 := by simp [Q] |
| 215 | let H (y : GInf E s) : ℝ := ‖Q * (y w).val.val‖.log |
| 216 | have hQ_mul (y : GInf E s) : Q * (y w).val.val ≠ 0 := (y w).val.isUnit.mul_left_eq_zero.ne.2 hQ_ne |
| 217 | -- An element that multiplies `Q` by a scalar `m` shifts `H` by `log ‖m‖`. |
| 218 | have h_ne {t : GInf E s} {m : ℂ} (ht : Q * (t w).val.val = m • Q) : m ≠ 0 := |
| 219 | fun h ↦ hQ_mul t (by rw [ht, h, zero_smul]) |
| 220 | have hH {t : GInf E s} {m : ℂ} (ht : Q * (t w).val.val = m • Q) (y : GInf E s) : |
| 221 | H (t * y) = ‖m‖.log + H y := by |
| 222 | have h_mul : Q * ((t * y) w).val.val = m • (Q * (y w).val.val) := by |
| 223 | simp [← smul_mul_assoc, ← ht, mul_assoc] |
| 224 | simp only [H, h_mul, norm_smul] |
| 225 | exact Real.log_mul (norm_ne_zero_iff.2 (h_ne ht)) (norm_ne_zero_iff.2 (hQ_mul y)) |
| 226 | have hQ {t : Matrix n n ℂ} (ht : Commute t A) : Q * t = (k * t * k⁻¹.val) i i • Q := |
| 227 | row_mul_eq_smul_of_commute hk ht i |
| 228 | have hQA : Q * A = d i • Q := by simpa [hk.eq] using hQ (.refl A) |
| 229 | have hℓ : (‖d i‖.log : ℂ) ≠ 0 := |
| 230 | ofReal_ne_zero.2 (Real.log_ne_zero_of_pos_of_ne_one (norm_pos_iff.2 (h_ne hQA)) h_root) |
| 231 | have h_lip (a b : GInf E s) : |H (a * b) - H a| ≤ ∏ v, ‖(b v).val.val‖ := |
| 232 | (abs_log_norm_mul_sub_le hQ_ne w a b).trans ((le_prod_opNorm b).2 w) |
| 233 | have h_cent (t : U V.J) (ht : Commute γ t) : |
| 234 | ∃ r : ℝ, ∀ y, H ((V.ratEmbed t).1 * y) = r + H y := by |
| 235 | have h_comm : Commute ((V.ratEmbed t).1 w).val.val A := |
| 236 | congrArg (fun g : G E s ↦ (g.1 w).val.val) (ht.map V.ratEmbed).symm.eq |
| 237 | exact ⟨_, hH (hQ h_comm)⟩ |
| 238 | have h_mul_zero : (‖d i‖.log : ℂ) * V.orbitalIntegral e φ γ = 0 := |
| 239 | V.mul_orbitalIntegral_eq_zero hB φ he hγ (by fun_prop) h_lip (hH hQA) h_cent |
| 240 | exact (mul_eq_zero.1 h_mul_zero).resolve_left hℓ |
| 241 | |
| 242 | /-- An irreducible polynomial `R` whose `i`-th complex root at the infinite place `w` lies off the |
| 243 | unit circle does not contribute to the geometric side for `e ⊗ φ` (the integral over `Γ \ G` of the |
| 244 | terms of the rational points with characteristic polynomial `R` is zero). Here `e` is a cusp kernel |
| 245 | of order `B ≥ 13 n ^ 3`. -/ |
| 246 | theorem geometricSide_singleton_eq_zero_of_norm_ne_one [Nonempty n] (hB : 13 * card n ^ 3 ≤ B) |
| 247 | (φ : TestFunction (Gf E n)) (he : IsCuspKernel B e) {R : E[X]} (hR : Irreducible R) |
| 248 | {w : InfinitePlace E} {i : n} (h_root : ‖numberedRoots (Φ w) R i‖ ≠ 1) : |
| 249 | V.geometricSide hB he {R} φ = 0 := by |
| 250 | have h_class (c : FrameClass E n) : V.classIntegral e φ R c = 0 := by |
| 251 | by_contra hc |
| 252 | obtain ⟨γ, rfl, rfl⟩ := V.exists_frameClass_eq_of_classIntegral_ne_zero hc |
| 253 | rw [(V.orbitalIntegral_unfold hB φ he.decay he.continuous.measurable hR).2] at hc |
| 254 | exact hc (V.orbitalIntegral_eq_zero hB φ he hR h_root) |
| 255 | refine (V.hasSum_classIntegral hB φ he.decay he.continuous.measurable hR).unique ?_ |
| 256 | rw [_root_.funext h_class] |
| 257 | exact hasSum_zero |
| 258 | |
| 259 | /-! ### All roots on the unit circle -/ |
| 260 | |
| 261 | /-- A rational point `γ` is an elliptic similitude of `V.J` with multiplier `1` if its |
| 262 | characteristic polynomial is irreducible with all complex roots on the unit circle. -/ |
| 263 | lemma isEllipticSimilitude_of_norm_eq_one {γ : U V.J} (hγ : Irreducible (γ : GL n E).val.charpoly) |
| 264 | (h_norm : ∀ (w : InfinitePlace E) (i : n), |
| 265 | ‖numberedRoots (Φ w) (γ : GL n E).val.charpoly i‖ = 1) : |
| 266 | IsEllipticSimilitude 1 γ V.J := by |
| 267 | refine ⟨hγ, one_ne_zero, by simpa [star_eq_conjTranspose] using mem_unitaryGroupOf_iff.1 γ.2, |
| 268 | fun w r hr ↦ ?_⟩ |
| 269 | rw [roots_eq_map_numberedRoots hγ.separable] at hr |
| 270 | obtain ⟨i, -, rfl⟩ := Multiset.mem_map.1 hr |
| 271 | simp [mul_conj', h_norm] |
| 272 | |
| 273 | /-- Splitting of an orbital integral into real and finite factors, for the product |
| 274 | `typeKernel l s` of the discrete series kernels of parameters `l w`. Let the rational point `γ` be |
| 275 | conjugate by `g` to `(t, y)`, and let `β` be a function on `G_f` such that `x ↦ β (g⁻¹ x)_f` is a |
| 276 | cutoff (a weight of sum one on each orbit) for the rational centraliser of `γ`. Then `I_γ` is the |
| 277 | product of the real orbital integrals at the `t w` and the finite orbital integral at `y`, which is |
| 278 | written with `β`. -/ |
| 279 | theorem orbitalIntegral_eq_prod_mul (φ : TestFunction (Gf E n)) {l : InfinitePlace E → n → ℤ} |
| 280 | (hl : Measurable (typeKernel l s)) {γ : U V.J} {g : G E s} {t : GInf E s} {y : Gf E n} |
| 281 | (hγ : V.ratEmbed γ = g * (t, y) * g⁻¹) {β : Gf E n → ℝ≥0∞} |
| 282 | (hβ : IsCutoff (Measure.count : Measure ((centralizer {γ}).map V.ratEmbed)) |
| 283 | fun x : G E s ↦ β (g⁻¹ * x).2) : |
| 284 | V.orbitalIntegral (typeKernel l s) φ γ = |
| 285 | (∏ w : InfinitePlace E, ∫ h : USign s, (toHCParam s (l w)).dsKernel (h⁻¹ * t w * h)) * |
| 286 | ∫ v : Gf E n, (β v).toReal • (φ : Gf E n → ℂ) (v⁻¹ * y * v) := by |
| 287 | -- Insert the cutoff, translate by `g`, and split `G` into its real and finite parts. |
| 288 | rw [orbitalIntegral, |
| 289 | hβ.integral_orbitMeasure (fun u ↦ V.fixesLeft_orbitalIntegrand (typeKernel l s) φ γ _ u.2) |
| 290 | (V.measurable_orbitalIntegrand hl φ γ), |
| 291 | ← integral_fintype_prod_eq_prod, ← integral_prod_mul, ← integral_mul_left_eq_self _ g] |
| 292 | refine integral_congr_ae (.of_forall fun x ↦ ?_) |
| 293 | simp only [typeKernel, orbitalIntegrand, hγ, _root_.mul_inv_rev, mul_assoc, inv_mul_cancel_left, |
| 294 | Prod.fst_mul, Prod.fst_inv, Prod.snd_mul, Prod.snd_inv, Pi.mul_apply, Pi.inv_apply, |
| 295 | mul_smul_comm] |
| 296 | |
| 297 | /-- Let `y` be an elliptic isometry (multiplier `1`) of a form with Gram matrix `1` in the finite |
| 298 | frame `x` and the sign `s i` on the eigenline of the root `z w (σ w i)`. Then there is a space of |
| 299 | signs `s` with finite frame `x` in which `y` is an isometry, with real component |
| 300 | `diag(z w ∘ σ w)` at each place `w`. -/ |
| 301 | lemma exists_ratEmbed_eq_diagTorus {x : GL n (𝔸f E)} {y : GL n E} {σ : InfinitePlace E → Perm n} |
| 302 | (hx : HasSignType (fun w : InfinitePlace E ↦ s ∘ (σ w).symm) 1 y {1} x) |
| 303 | {z : InfinitePlace E → n ↪ Circle} |
| 304 | (hz : ∀ (w : InfinitePlace E) (i : n), (z w i : ℂ) = numberedRoots (Φ w) y.val.charpoly i) : |
| 305 | ∃ W : Space E n s, W.xFin = x ∧ |
| 306 | ∃ hy : y ∈ U W.J, ∀ w : InfinitePlace E, |
| 307 | (W.ratEmbed ⟨y, hy⟩).1 w = diagTorus s (z w ∘ σ w) := by |
| 308 | obtain ⟨β, h_ell, h_frame, h_pos⟩ := hx |
| 309 | -- At each infinite place an eigenbasis of `y`, in the order `σ w`, has Gram matrix |
| 310 | -- `signMatrix s`. |
| 311 | have h_basis (w : InfinitePlace E) : ∃ k : GL n ℂ, k.valᴴ * β.map (Φ w) * k = signMatrix s ∧ |
| 312 | k⁻¹.1 * y.1.map (Φ w) * k = diagonal fun i ↦ numberedRoots (Φ w) y.1.charpoly (σ w i) := by |
| 313 | obtain ⟨k, d, -, h_pos_iff, h_signs⟩ := exists_eigenbasis_diag_form h_ell w (σ w) |
| 314 | have h_sign (i : n) : 0 < d i * s i := by |
| 315 | simpa only [eval_interpolate_univ_node, Function.comp_apply, symm_apply_apply] |
| 316 | using (h_pos_iff _).1 (h_pos w) i |
| 317 | exact h_signs s h_sign |
| 318 | choose k h_gram h_eigen using h_basis |
| 319 | let W : Space E n s := |
| 320 | { J := β |
| 321 | x := mkAdelicGL (k, x) |
| 322 | gram_point := gram_mkAdelicGL h_gram h_frame } |
| 323 | have hy : y ∈ U β := by |
| 324 | simpa [mem_unitaryGroupOf_iff, star_eq_conjTranspose] using h_ell.conjTranspose_mul_mul |
| 325 | refine ⟨W, rfl, hy, fun w ↦ ?_⟩ |
| 326 | have h_point : W.x.map (evalInf w) = k w := rfl |
| 327 | have h_torus : (diagTorus s (z w ∘ σ w)).val.val = |
| 328 | diagonal fun i ↦ numberedRoots (Φ w) y.val.charpoly (σ w i) := by |
| 329 | simp only [← hz] |
| 330 | rfl |
| 331 | ext : 2 |
| 332 | rw [h_torus, coe_ratEmbed_fst, h_point, h_eigen w] |
| 333 | |
| 334 | /-- If the finite frames of two spaces conjugate the rational centraliser of `y` in the same way, |
| 335 | then the image in `G_f` of the centraliser of `y` in the first unitary group lies in that for the |
| 336 | second. -/ |
| 337 | lemma map_embFin_centralizer_le {s' : n → ℤˣ} (W : Space E n s') {y : GL n E} (hy : y ∈ U V.J) |
| 338 | (hy' : y ∈ U W.J) (h_conj : ∀ a : GL n E, Commute y a → |
| 339 | V.xFin⁻¹ * toFinGL a * V.xFin = W.xFin⁻¹ * toFinGL a * W.xFin) : |
| 340 | (centralizer {⟨y, hy⟩}).map V.embFin ≤ (centralizer {⟨y, hy'⟩}).map W.embFin := by |
| 341 | rintro _ ⟨⟨a, ha⟩, h_cent, rfl⟩ |
| 342 | have h_comm : Commute y a := (Subtype.ext_iff.1 (mem_centralizer_singleton_iff.1 h_cent)).symm |
| 343 | -- `a` is an isometry of `V` or `W` exactly if its conjugate by the frame is unitary. |
| 344 | have ha' : a ∈ U W.J := by |
| 345 | rw [mem_unitaryGroupOf_iff, star_eq_conjTranspose, ← W.mem_U_one_iff_gram_eq gram_xFin, |
| 346 | ← h_conj a h_comm, |
| 347 | V.mem_U_one_iff_gram_eq gram_xFin] |
| 348 | exact mem_unitaryGroupOf_iff.1 ha |
| 349 | refine ⟨⟨a, ha'⟩, mem_centralizer_singleton_iff.2 (Subtype.ext h_comm.symm), ?_⟩ |
| 350 | simp [Gf.val_ext_iff, coe_embFin, h_conj a h_comm] |
| 351 | |
| 352 | /-- If the finite frames of two spaces conjugate the rational centraliser of `y` in the same way, |
| 353 | then the centralisers of `y` in the two unitary groups have the same image in `G_f`. -/ |
| 354 | lemma map_embFin_centralizer_eq {s' : n → ℤˣ} (W : Space E n s') {y : GL n E} (hy : y ∈ U V.J) |
| 355 | (hy' : y ∈ U W.J) (h_conj : ∀ a : GL n E, Commute y a → |
| 356 | V.xFin⁻¹ * toFinGL a * V.xFin = W.xFin⁻¹ * toFinGL a * W.xFin) : |
| 357 | (centralizer {⟨y, hy⟩}).map V.embFin = (centralizer {⟨y, hy'⟩}).map W.embFin := |
| 358 | (V.map_embFin_centralizer_le W hy hy' h_conj).antisymm |
| 359 | (W.map_embFin_centralizer_le V hy' hy fun a ha ↦ (h_conj a ha).symm) |
| 360 | |
| 361 | /-- Let `E` contain the 5040th roots of unity. Let `y` be an elliptic isometry of a positive form |
| 362 | with orthonormal finite frame `u` (`HasSignType 1 1 y {1} u`), and let `z w` list the roots of its |
| 363 | characteristic polynomial at the place `w`. There is a number `c`, the finite orbital integral of |
| 364 | `φ`, with the following property. Suppose `typeKernel l s`, the product over `w` of the discrete |
| 365 | series kernels `dsKernel` for the parameters `l w`, is a cusp kernel of order `B ≥ 13 n ^ 3`. |
| 366 | Suppose `y` is an elliptic isometry of a form with orthonormal finite frame `x` and signs `s` at the |
| 367 | roots in the order `σ`. Suppose also that `x` conjugates the rational centraliser of `y` as `u` |
| 368 | does. Then on a space `V` of signs `s`, `V.classIntegral` of the class of `(x, y)` is `c` times the |
| 369 | product over `w` of the integrals over `U(diag s)` of `dsKernel` at conjugates of |
| 370 | `diag(z w ∘ σ w)`. -/ |
| 371 | theorem exists_classIntegral_eq (hB : 13 * card n ^ 3 ≤ B) |
| 372 | (φ : TestFunction (Gf E n)) [HasPrimitiveRoot5040 E] {u : GL n (𝔸f E)} {y : GL n E} |
| 373 | (hu : HasSignType 1 1 y {1} u) {z : InfinitePlace E → n ↪ Circle} |
| 374 | (hz : ∀ (w : InfinitePlace E) (i : n), (z w i : ℂ) = numberedRoots (Φ w) y.val.charpoly i) : |
| 375 | ∃ c : ℂ, ∀ {s : n → ℤˣ} (V : Space E n s) {l : InfinitePlace E → n → ℤ} |
| 376 | {σ : InfinitePlace E → Perm n} {x : GL n (𝔸f E)}, IsCuspKernel B (typeKernel l s) → |
| 377 | HasSignType (fun w : InfinitePlace E ↦ s ∘ (σ w).symm) 1 y {1} x → |
| 378 | (∀ a : GL n E, Commute y a → u⁻¹ * toFinGL a * u = x⁻¹ * toFinGL a * x) → |
| 379 | V.classIntegral (typeKernel l s) φ y.val.charpoly (frameClass (x, y)) = |
| 380 | (∏ w : InfinitePlace E, ∫ h : USign s, |
| 381 | (toHCParam s (l w)).dsKernel (h⁻¹ * diagTorus s (z w ∘ σ w) * h)) * c := by |
| 382 | have hy_irr : Irreducible y.val.charpoly := by |
| 383 | obtain ⟨_, h_ell, -⟩ := hu |
| 384 | exact h_ell.irreducible_charpoly |
| 385 | have : Nonempty n := Matrix.nonempty_of_irreducible_charpoly hy_irr |
| 386 | -- The constant is the finite orbital integral in the definite space `W₀` with frame `u`. |
| 387 | obtain ⟨W₀, rfl, hy₀, -⟩ := exists_ratEmbed_eq_diagTorus (s := 1) (σ := 1) hu hz |
| 388 | -- The centraliser is cut with `W₀.Γf`, which contains it, so that it is seen to be discrete. |
| 389 | obtain ⟨β, hβ_meas, hβ⟩ : ∃ β : Gf E n → ℝ≥0∞, IsCutoff |
| 390 | (Measure.count : Measure ↥(W₀.Γf ⊓ (centralizer {⟨y, hy₀⟩}).map W₀.embFin)) β := |
| 391 | (hasCutoff_count _).out |
| 392 | refine ⟨∫ v, (β v).toReal • φ.val (v⁻¹ * W₀.embFin ⟨y, hy₀⟩ * v), |
| 393 | fun {s} V l σ x he hx same_conj ↦ ?_⟩ |
| 394 | -- `W` is a space of signs `s` with frame `x` in which `y` is diagonal at infinity. |
| 395 | obtain ⟨W, rfl, hy, h_diag⟩ := exists_ratEmbed_eq_diagTorus hx hz |
| 396 | -- Landherr: `b` is a rational isometry from `W.J` to `V.J`, and conjugation by `b` becomes |
| 397 | -- conjugation by `g ∈ G` under the embeddings. |
| 398 | obtain ⟨b, g, hb, -, emb_conj⟩ := V.exists_x_eq_and_ratEmbed_conj_eq W |
| 399 | set conj : U W.J ≃* U V.J := U.conj b hb |
| 400 | let γ : U V.J := conj ⟨y, hy⟩ |
| 401 | have class_eq : frameClass (V.xFin, γ.val) = frameClass (W.xFin, y) := |
| 402 | frameClass_eq_iff.2 ⟨b, (V.mem_U_one_iff_gram_eq gram_xFin).2 hb, rfl⟩ |
| 403 | -- By `same_conj`, `y` and its centraliser have the same finite images for `W₀` and for `W`. |
| 404 | have embf_eq : W₀.embFin ⟨y, hy₀⟩ = W.embFin ⟨y, hy⟩ := by |
| 405 | simp [Gf.val_ext_iff, coe_embFin, same_conj] |
| 406 | have centralizer_eq : W₀.Γf ⊓ (centralizer {⟨y, hy₀⟩}).map W₀.embFin = |
| 407 | (centralizer {γ}).map (W.embFin.comp conj.symm) := by |
| 408 | rw [inf_eq_right.2 (map_le_range _ _), W₀.map_embFin_centralizer_eq W hy₀ hy same_conj, |
| 409 | ← Subgroup.map_map, MulEquiv.map_centralizer, Set.image_singleton] |
| 410 | simp [γ] |
| 411 | -- So `β` of the finite part of `g⁻¹ x` is a cutoff for the centraliser of `γ` in `V`. |
| 412 | have cutoff : IsCutoff (Measure.count : Measure ((centralizer {γ}).map V.ratEmbed)) |
| 413 | fun x : G E s ↦ β (g⁻¹ * x).2 := by |
| 414 | refine ⟨by fun_prop, fun x ↦ ?_⟩ |
| 415 | have emb_eq (a : U V.J) : V.ratEmbed a = g * W.ratEmbed (conj.symm a) * g⁻¹ := by |
| 416 | rw [← emb_conj, MulEquiv.apply_symm_apply] |
| 417 | rw [← hβ (g⁻¹ * x).2, centralizer_eq, lintegral_count, lintegral_count] |
| 418 | calc _ = ∑' a : centralizer {γ}, β (g⁻¹ * (V.ratEmbed a * x)).2 := |
| 419 | tsum_image (fun t : G E s ↦ β (g⁻¹ * (t * x)).2) V.ratEmbed_injective.injOn |
| 420 | _ = ∑' a : centralizer {γ}, β (W.embFin (conj.symm a) * (g⁻¹ * x).2) := by |
| 421 | simp [embFin, mul_assoc, emb_eq] |
| 422 | _ = ∑' t : (centralizer {γ}).map (W.embFin.comp conj.symm), β (t • (g⁻¹ * x).2) := |
| 423 | (tsum_image (fun t : Gf E n ↦ β (t * (g⁻¹ * x).2)) |
| 424 | (W.fact_embFin_injective.out.comp conj.symm.injective).injOn).symm |
| 425 | have h_poly : γ.val.val.charpoly = y.val.charpoly := by simp [γ, conj] |
| 426 | have h_irr : Irreducible γ.val.val.charpoly := by |
| 427 | simpa only [h_poly] using hy_irr |
| 428 | have h_embed : V.ratEmbed γ = |
| 429 | g * (fun w ↦ diagTorus s (z w ∘ σ w), W₀.embFin ⟨y, hy₀⟩) * g⁻¹ := by |
| 430 | rw [emb_conj, embf_eq, ← _root_.funext h_diag] |
| 431 | rfl |
| 432 | have h_unfold : V.classIntegral (typeKernel l s) φ (γ : Matrix n n E).charpoly |
| 433 | (frameClass (V.xFin, (γ : GL n E))) = V.orbitalIntegral (typeKernel l s) φ γ := |
| 434 | (V.orbitalIntegral_unfold hB φ he.decay he.continuous.measurable h_irr).2 |
| 435 | rw [← class_eq, ← h_poly, h_unfold, |
| 436 | V.orbitalIntegral_eq_prod_mul φ he.continuous.measurable h_embed cutoff] |
| 437 | |
| 438 | /-- Matching the classes. Let `E` contain the 5040th roots of unity, and let `ε`, `ε'` be families |
| 439 | of signs, each with product `1`. There is a permutation `f` of the classes of pairs (finite frame, |
| 440 | rational matrix) that carries those with polynomial `R` and signs `ε` onto those with polynomial |
| 441 | `R` and signs `ε'`. If `(u, y)` has the signs `ε` (`y` is an elliptic isometry, with the signs `ε` |
| 442 | on its eigenlines, of a form with orthonormal frame `u`), then `f` sends its class to the class of |
| 443 | a pair `(x, y)` with signs `ε'` such that `u` and `x` conjugate the rational centraliser of `y` in |
| 444 | the same way. -/ |
| 445 | theorem exists_perm_signedClasses {ε ε' : InfinitePlace E → n → ℤˣ} |
| 446 | (hε : ∏ w : InfinitePlace E, ∏ i : n, ε w i = 1) |
| 447 | (hε' : ∏ w : InfinitePlace E, ∏ i : n, ε' w i = 1) (R : E[X]) : |
| 448 | ∃ f : Perm (FrameClass E n), f '' signedClasses R ε = signedClasses R ε' ∧ |
| 449 | ∀ (u : GL n (𝔸f E)) (y : GL n E) (_hu : HasSignType ε 1 y {1} u), |
| 450 | ∃ x : GL n (𝔸f E), HasSignType ε' 1 y {1} x ∧ |
| 451 | f (frameClass (u, y)) = frameClass (x, y) ∧ |
| 452 | ∀ a : GL n E, Commute y a → u⁻¹ * toFinGL a * u = x⁻¹ * toFinGL a * x := by |
| 453 | -- The frame is moved by an adelic matrix `Z y` that commutes with the centraliser of `y` and |
| 454 | -- changes the signs by `ε / ε'`. |
| 455 | have h_prod : ∏ w, ∏ i, (ε'⁻¹ * ε) w i = 1 := by simp [prod_mul_distrib, hε, hε'] |
| 456 | obtain ⟨f, hf⟩ := exists_hasSignType_mul_iff (fun _ : Unit ↦ ε'⁻¹ * ε) (fun _ ↦ h_prod) (U 1) |
| 457 | have h_move (y : GL n E) : ∃ Z : GL n (𝔸f E), |
| 458 | (∀ u, HasSignType ε 1 y {1} u ↔ HasSignType ε' 1 y {1} (Z * u)) ∧ |
| 459 | (∀ a, Commute y a → Commute (toFinGL a) Z) ∧ |
| 460 | ∀ u, f (frameClass (u, y)) = frameClass (Z * u, y) := by |
| 461 | obtain ⟨Z, h_sign, h_comm, h_map⟩ := hf y () |
| 462 | refine ⟨Z, fun u ↦ ?_, h_comm, fun u ↦ h_map ⟦u⟧⟩ |
| 463 | simpa using h_sign 1 ε' {1} u |
| 464 | choose Z h_iff h_comm h_class using h_move |
| 465 | refine ⟨f, Set.Subset.antisymm ?_ ?_, fun u y hu ↦ |
| 466 | ⟨Z y * u, (h_iff y u).1 hu, h_class y u, fun a ha ↦ ?_⟩⟩ |
| 467 | · rintro _ ⟨_, ⟨u, y, hy, hu, rfl⟩, rfl⟩ |
| 468 | exact ⟨Z y * u, y, hy, (h_iff y u).1 hu, (h_class y u).symm⟩ |
| 469 | · rintro _ ⟨x, y, hy, hx, rfl⟩ |
| 470 | exact ⟨_, ⟨(Z y)⁻¹ * x, y, hy, (h_iff y _).2 (by simpa using hx), rfl⟩, by simp [h_class]⟩ |
| 471 | · simp only [_root_.mul_inv_rev, mul_assoc, (h_comm y a ha).left_comm, inv_mul_cancel_left] |
| 472 | |
| 473 | omit [DecidableEq n] in |
| 474 | /-- If the number of infinite places is even, a family of signs that is a rearrangement of the same |
| 475 | `s` at each place has product `1`. -/ |
| 476 | lemma prod_prod_comp_symm_eq_one (hE : Even (Core.numInfPlaces E)) (s : n → ℤˣ) |
| 477 | (σ : InfinitePlace E → Perm n) : |
| 478 | ∏ w : InfinitePlace E, ∏ i : n, (s ∘ (σ w).symm) i = 1 := by |
| 479 | obtain ⟨m, hm⟩ : ∃ m : ℕ, card (InfinitePlace E) = m + m := hE |
| 480 | have h_place (w : InfinitePlace E) : ∏ i, (s ∘ (σ w).symm) i = ∏ i, s i := (σ w).symm.prod_comp s |
| 481 | simp only [h_place, prod_const, card_univ, hm, pow_add, Int.units_mul_self] |
| 482 | |
| 483 | /-- Let `E` contain the 5040th roots of unity and have an even number of infinite places, and let |
| 484 | `z` be the numbered roots of `R`, on the unit circle. There is a number `c` with the following |
| 485 | property. On every space, suppose the product `typeKernel l s` of the discrete series kernels is a |
| 486 | cusp kernel of order `B ≥ 13 n ^ 3`. Then the contributions of the classes with polynomial `R` and |
| 487 | signs `s` in the order `σ` of the roots add up to the product of the real orbital integrals times |
| 488 | `c`. These classes are `signedClasses`: classes of pairs `(x, y)` with `y` an elliptic isometry of |
| 489 | characteristic polynomial `R`, with those signs on its eigenlines, of a form for which `x` is an |
| 490 | orthonormal frame. -/ |
| 491 | theorem exists_tsum_signedClasses_eq (hB : 13 * card n ^ 3 ≤ B) |
| 492 | (φ : TestFunction (Gf E n)) [HasPrimitiveRoot5040 E] (hE : Even (Core.numInfPlaces E)) |
| 493 | {R : E[X]} {z : InfinitePlace E → n ↪ Circle} |
| 494 | (hz : ∀ (w : InfinitePlace E) (i : n), (z w i : ℂ) = numberedRoots (Φ w) R i) : |
| 495 | ∃ c : ℂ, ∀ {s : n → ℤˣ} (V : Space E n s) {l : InfinitePlace E → n → ℤ}, |
| 496 | IsCuspKernel B (typeKernel l s) → ∀ σ : InfinitePlace E → Perm n, |
| 497 | ∑' a : signedClasses R fun w : InfinitePlace E ↦ s ∘ (σ w).symm, |
| 498 | V.classIntegral (typeKernel l s) φ R a = |
| 499 | (∏ w : InfinitePlace E, ∫ h : USign s, |
| 500 | (toHCParam s (l w)).dsKernel (h⁻¹ * diagTorus s (z w ∘ σ w) * h)) * c := by |
| 501 | -- Match the classes with those of signs `1`, and add up their finite orbital integrals `C a`. |
| 502 | have h_repr (a : signedClasses (n := n) R 1) : ∃ (u : GL n (𝔸f E)) (y : GL n E), |
| 503 | y.val.charpoly = R ∧ HasSignType 1 1 y {1} u ∧ frameClass (u, y) = a := a.property |
| 504 | choose u y h_poly h_sign h_rep using h_repr |
| 505 | choose C hC using fun a ↦ |
| 506 | exists_classIntegral_eq hB φ (h_sign a) (z := z) (by simpa only [h_poly] using hz) |
| 507 | refine ⟨∑' a, C a, fun {s} V l he σ ↦ ?_⟩ |
| 508 | obtain ⟨f, h_image, hf⟩ := |
| 509 | exists_perm_signedClasses (ε := 1) (by simp) (prod_prod_comp_symm_eq_one hE s σ) R |
| 510 | rw [← h_image, tsum_image _ f.injective.injOn, ← tsum_mul_left] |
| 511 | refine tsum_congr fun a ↦ ?_ |
| 512 | obtain ⟨x, hx, h_class, h_conj⟩ := hf (u a) (y a) (h_sign a) |
| 513 | rw [← h_rep, h_class, ← hC a V he hx h_conj, h_poly] |
| 514 | |
| 515 | /-- The class of an elliptic rational point `γ` has the signs `ε` exactly if the form of `V` has |
| 516 | these signs on the eigenlines of `γ`: at each infinite place `w` the matrix `V.J p(γ)` is positive |
| 517 | definite, where `p` takes the value `ε w i` at the `i`-th root. -/ |
| 518 | lemma frameClass_mem_signedClasses_iff {γ : U V.J} (hγ : IsEllipticSimilitude 1 γ V.J) |
| 519 | (ε : InfinitePlace E → n → ℤˣ) : |
| 520 | frameClass (V.xFin, (γ : GL n E)) ∈ signedClasses (γ : GL n E).val.charpoly ε ↔ |
| 521 | ∀ w : InfinitePlace E, |
| 522 | (V.J.map (Φ w) * aeval ((γ : GL n E).val.map (Φ w)) (Lagrange.interpolate univ |
| 523 | (numberedRoots (Φ w) (γ : GL n E).val.charpoly) fun i : n ↦ (ε w i : ℂ))).PosDef := by |
| 524 | refine ⟨?_, fun h_pos ↦ ⟨V.xFin, γ, rfl, ⟨V.J, hγ, by simp [gram_xFin], h_pos⟩, rfl⟩⟩ |
| 525 | rintro ⟨x, a, h_poly, ⟨β, -, h_frame, h_pos⟩, h_class⟩ w |
| 526 | -- The rational matrix `g` that identifies the classes carries `V.J` to the form `β` of `a`. |
| 527 | obtain ⟨g, hg, hgγ⟩ : ∃ g : GL n E, V.xFin⁻¹ * toFinGL g * x ∈ U 1 ∧ g * a * g⁻¹ = γ := |
| 528 | frameClass_eq_iff.1 h_class.symm |
| 529 | obtain rfl : g.valᴴ * V.J * g.val = β := (V.mem_U_one_iff_gram_eq h_frame).1 hg |
| 530 | -- Conjugation by `g` keeps positivity and turns the polynomial in `γ` into that in `a`. |
| 531 | have h_conj : SemiconjBy (g.map (Φ w)).val (a.val.map (Φ w)) (γ.val.val.map (Φ w)) := by |
| 532 | simp [SemiconjBy, ← hgγ, ← Matrix.map_mul] |
| 533 | have h_form : (g.valᴴ * V.J * g.val).map (Φ w) = |
| 534 | star (g.map (Φ w)).val * V.J.map (Φ w) * (g.map (Φ w)).val := |
| 535 | map_conjTranspose_mul_mul (Φ w) (by simp) g.val V.J |
| 536 | rw [← (g.map (Φ w)).isUnit.posDef_star_left_conjugate_iff, mul_assoc, mul_assoc, |
| 537 | ← aeval_semiconj h_conj, ← h_poly, ← mul_assoc, ← mul_assoc, ← h_form] |
| 538 | exact h_pos w |
| 539 | |
| 540 | /-- Let `γ` be an elliptic rational point of `V`. For a permutation `σ` take the polynomial with |
| 541 | value `s (σ⁻¹ i)` at the `i`-th eigenvalue of `γ` at `w`. The `σ` for which `V.J` times this |
| 542 | polynomial in `γ` is positive definite are as many as those that fix `s`. -/ |
| 543 | lemma card_perm_posDef {γ : U V.J} (hγ : IsEllipticSimilitude 1 γ V.J) (w : InfinitePlace E) : |
| 544 | Nat.card {σ : Perm n // |
| 545 | (V.J.map (Φ w) * aeval ((γ : GL n E).val.map (Φ w)) (Lagrange.interpolate univ |
| 546 | (numberedRoots (Φ w) (γ : GL n E).val.charpoly) fun i : n ↦ s (σ.symm i))).PosDef} = |
| 547 | #{σ : Perm n | s ∘ σ = s} := by |
| 548 | classical |
| 549 | -- In an eigenbasis `k` of `γ` the form is `diagonal d`, and positivity is read off from `d`. |
| 550 | obtain ⟨k, d, hd, h_pos, h_basis⟩ := exists_eigenbasis_diag_form hγ w 1 |
| 551 | have h_frame : (V.x.map (evalInf w))⁻¹.valᴴ * signMatrix s * (V.x.map (evalInf w))⁻¹.val = |
| 552 | V.J.map (Φ w) := gram_inv_of_gram_eq (V.gram_map_evalInf w) |
| 553 | -- The form is hermitian and invertible, so the `d i` are real and nonzero; `ε i` is their sign. |
| 554 | obtain ⟨g, hg⟩ : ∃ g : GL n ℂ, g.valᴴ * diagonal (fun i ↦ (s i : ℂ)) * g.val = diagonal d := |
| 555 | ⟨_, gram_mul_of_gram_eq h_frame hd⟩ |
| 556 | have hd_unit : IsUnit (diagonal d) := by simp [← hg, Pi.isUnit_iff] |
| 557 | have hd_herm : (diagonal d)ᴴ = diagonal d := by simp [← hg, Pi.star_def, mul_assoc] |
| 558 | have hd_im (i : n) : (d i).im = 0 := conj_eq_iff_im.1 (by simpa using congrFun₂ hd_herm i i) |
| 559 | have hd_re (i : n) : (d i).re ≠ 0 := fun h ↦ |
| 560 | ((isUnit_diagonal.1 hd_unit).apply i).ne_zero (Complex.ext h (hd_im i)) |
| 561 | let ε (i : n) : ℤˣ := if 0 < d i then 1 else -1 |
| 562 | have h_sign (i : n) (u : ℤˣ) : 0 < d i * u ↔ ε i = u := by |
| 563 | rcases Int.units_eq_one_or u with rfl | rfl |
| 564 | · simp [ε] |
| 565 | · simp [ε, Complex.lt_def, (hd_re i).le_iff_lt, hd_im i] |
| 566 | -- By Sylvester's law `ε` is a rearrangement `s ∘ τ` of `s`. |
| 567 | obtain ⟨k', hk', -⟩ := h_basis ε fun i ↦ (h_sign i _).2 rfl |
| 568 | obtain ⟨τ, hτ⟩ : ∃ τ : Perm n, ∀ i, s (τ i) = ε i := |
| 569 | sylvester_law_of_inertia (gram_mul_of_gram_eq h_frame hk') |
| 570 | -- `σ` counts on the left iff `s ∘ σ⁻¹ = ε = s ∘ τ`, that is, iff `τ σ` fixes `s`. |
| 571 | rw [← Fintype.card_subtype, ← Nat.card_eq_fintype_card] |
| 572 | refine Nat.card_congr (subtypeEquiv (.mulLeft τ) fun σ ↦ ?_) |
| 573 | rw [h_pos, σ.surjective.forall] |
| 574 | simp only [Perm.coe_one, id, eval_interpolate_univ_node, h_sign, symm_apply_apply, ← hτ] |
| 575 | exact funext_iff.symm |
| 576 | |
| 577 | /-- The class of an elliptic rational point `γ` has the signs `s` in as many orders `σ` of the roots |
| 578 | as there are families, indexed by the infinite places, of permutations that fix `s`. -/ |
| 579 | lemma card_mem_signedClasses {γ : U V.J} (hγ : IsEllipticSimilitude 1 γ V.J) : |
| 580 | Nat.card {σ : InfinitePlace E → Perm n // frameClass (V.xFin, (γ : GL n E)) ∈ |
| 581 | signedClasses (γ : GL n E).val.charpoly fun w : InfinitePlace E ↦ s ∘ (σ w).symm} = |
| 582 | ∏ _ : InfinitePlace E, #{σ : Perm n | s ∘ σ = s} := by |
| 583 | simp only [V.frameClass_mem_signedClasses_iff hγ, Function.comp_apply] |
| 584 | -- The condition is one condition on `σ w` for each place `w`. |
| 585 | rw [← _root_.funext (V.card_perm_posDef hγ), ← Nat.card_pi, ← Nat.card_congr subtypePiEquivPi] |
| 586 | |
| 587 | /-- Let the doubled Harish-Chandra parameters `l w` have gap at least `500 n³ + 10 n⁵` and let `z w` |
| 588 | be regular points of the compact torus. The sum over all orders `σ` of the products of the real |
| 589 | orbital integrals of the discrete series kernels is the number of families of permutations that fix |
| 590 | `s` times the product of the conjugate characters of the compact group `U(n)` at the `z w`. The |
| 591 | signs in Harish-Chandra's formula cancel because the number of infinite places is even. -/ |
| 592 | lemma sum_prod_integral_dsKernel [Nonempty n] (hE : Even (Core.numInfPlaces E)) |
| 593 | {l : InfinitePlace E → n → ℤ} |
| 594 | (h_gap : ∀ w : InfinitePlace E, (toHCParam s (l w)).HasLargeGap (10 * card n ^ 5)) |
| 595 | (z : InfinitePlace E → n ↪ Circle) : |
| 596 | ∑ σ : InfinitePlace E → Perm n, ∏ w : InfinitePlace E, ∫ h : USign s, |
| 597 | (toHCParam s (l w)).dsKernel (h⁻¹ * diagTorus s (z w ∘ σ w) * h) = |
| 598 | (∏ _ : InfinitePlace E, #{σ : Perm n | s ∘ σ = s} : ℕ) * |
| 599 | ∏ w : InfinitePlace E, |
| 600 | star ((toHCParam 1 (l w)).lowestKType.kTypeChar (diagTorusK (z w))) := by |
| 601 | let I (w : InfinitePlace E) (σ : Perm n) : ℂ := |
| 602 | ∫ h : USign s, (toHCParam s (l w)).dsKernel (h⁻¹ * diagTorus s (z w ∘ σ) * h) |
| 603 | let ε : ℂ := (-1) ^ #(Orbital.oppositePairs s) |
| 604 | have h_place (w : InfinitePlace E) : ε * ∑ σ, I w σ = #{σ : Perm n | s ∘ σ = s} * |
| 605 | star ((toHCParam 1 (l w)).lowestKType.kTypeChar (diagTorusK (z w))) := |
| 606 | (Orbital.harish_chandra_degree_and_orbital (h_gap w)).2 (z w) (z w).injective |
| 607 | have h_sign : ∏ _ : InfinitePlace E, ε = 1 := by |
| 608 | rw [prod_const, ← pow_mul] |
| 609 | exact (hE.mul_left _).neg_one_pow |
| 610 | calc ∑ σ : InfinitePlace E → Perm n, ∏ w, I w (σ w) |
| 611 | = ∏ w, ∑ σ, I w σ := (Fintype.prod_sum I).symm |
| 612 | _ = ∏ w, ε * ∑ σ, I w σ := by rw [prod_mul_distrib, h_sign, one_mul] |
| 613 | _ = _ := by simp only [h_place, prod_mul_distrib, Nat.cast_prod] |
| 614 | |
| 615 | /-- Elliptic terms. Let `E` contain the 5040th roots of unity and have an even number of infinite |
| 616 | places, and let `R` be irreducible with all roots `z w i` on the unit circle. There is a number `c`, |
| 617 | independent of the space, its signs and `l`, such that for all parameters `l` with gap at least |
| 618 | `500 n³ + 10 n⁵` whose kernel is a cusp kernel of order `B ≥ 13 n ^ 3`, the integral over `Γ \ G` of |
| 619 | the terms with characteristic polynomial `R` is `c` times the product of the conjugate characters |
| 620 | of the compact group `U(n)`. -/ |
| 621 | theorem exists_geometricSide_singleton_eq [Nonempty n] (hB : 13 * card n ^ 3 ≤ B) |
| 622 | (φ : TestFunction (Gf E n)) [HasPrimitiveRoot5040 E] (hE : Even (Core.numInfPlaces E)) |
| 623 | {R : E[X]} (hR : Irreducible R) {z : InfinitePlace E → n ↪ Circle} |
| 624 | (hz : ∀ (w : InfinitePlace E) (i : n), (z w i : ℂ) = numberedRoots (Φ w) R i) : |
| 625 | ∃ c : ℂ, ∀ {s : n → ℤˣ} (V : Space E n s) {l : InfinitePlace E → n → ℤ} |
| 626 | (he : IsCuspKernel B (typeKernel l s)), |
| 627 | ∀ (_h_gap : ∀ w : InfinitePlace E, (toHCParam s (l w)).HasLargeGap (10 * card n ^ 5)), |
| 628 | V.geometricSide hB he {R} φ = |
| 629 | c * ∏ w : InfinitePlace E, |
| 630 | star ((toHCParam 1 (l w)).lowestKType.kTypeChar (diagTorusK (z w))) := by |
| 631 | classical |
| 632 | obtain ⟨c, hc⟩ := exists_tsum_signedClasses_eq hB φ hE hz |
| 633 | refine ⟨c, fun {s} V l he h_gap ↦ ?_⟩ |
| 634 | let I : FrameClass E n → ℂ := V.classIntegral (typeKernel l s) φ R |
| 635 | let S (σ : InfinitePlace E → Perm n) : Set (FrameClass E n) := |
| 636 | signedClasses R fun w ↦ s ∘ (σ w).symm |
| 637 | let N : ℕ := ∏ _ : InfinitePlace E, #{σ : Perm n | s ∘ σ = s} |
| 638 | have hN : (N : ℂ) ≠ 0 := |
| 639 | Nat.cast_ne_zero.2 (prod_ne_zero_iff.2 fun _ _ ↦ card_ne_zero.2 ⟨1, by simp⟩) |
| 640 | have h_sum : HasSum I (V.geometricSide hB he {R} φ) := |
| 641 | V.hasSum_classIntegral hB φ he.decay he.continuous.measurable hR |
| 642 | -- A class that contributes lies in `S σ` for exactly `N` values of `σ`. |
| 643 | have h_count (a : FrameClass E n) : ∑ σ, (S σ).indicator I a = N * I a := by |
| 644 | by_cases ha : I a = 0 |
| 645 | · simp [Set.indicator, ha] |
| 646 | obtain ⟨γ, rfl, rfl⟩ := V.exists_frameClass_eq_of_classIntegral_ne_zero ha |
| 647 | have h_ell : IsEllipticSimilitude 1 γ V.J := |
| 648 | V.isEllipticSimilitude_of_norm_eq_one hR fun w i ↦ by rw [← hz, Circle.norm_coe] |
| 649 | have h_card : #{σ | frameClass (V.xFin, γ.val) ∈ S σ} = N := by |
| 650 | rw [← Fintype.card_subtype, ← Nat.card_eq_fintype_card] |
| 651 | exact V.card_mem_signedClasses h_ell |
| 652 | simp only [Set.indicator, ← sum_filter, sum_const, nsmul_eq_mul, h_card] |
| 653 | have h_parts : HasSum (fun a ↦ ∑ σ, (S σ).indicator I a) (∑ σ, ∑' a : S σ, I a) := |
| 654 | hasSum_sum fun σ _ ↦ hasSum_subtype_iff_indicator.1 (h_sum.summable.subtype (· ∈ S σ)).hasSum |
| 655 | refine mul_left_cancel₀ hN ?_ |
| 656 | calc N * V.geometricSide hB he {R} φ |
| 657 | = ∑ σ, ∑' a : S σ, I a := (h_sum.mul_left _).unique (by simpa only [h_count] using h_parts) |
| 658 | _ = (∑ σ : InfinitePlace E → Perm n, ∏ w, ∫ h : USign s, |
| 659 | (toHCParam s (l w)).dsKernel (h⁻¹ * diagTorus s (z w ∘ σ w) * h)) * c := by |
| 660 | rw [sum_mul] |
| 661 | exact sum_congr rfl fun σ _ ↦ hc V he σ |
| 662 | _ = N * (c * ∏ w, star ((toHCParam 1 (l w)).lowestKType.kTypeChar (diagTorusK (z w)))) := by |
| 663 | rw [sum_prod_integral_dsKernel hE h_gap z] |
| 664 | ring |
| 665 | |
| 666 | end Space |
| 667 | |
| 668 | /-- Comparison of traces. Let the CM field `E` contain the 5040th roots of unity and have an even |
| 669 | number of infinite places, let `V`, `V'` be spaces of rank `n ≥ 2` over `E`, and let `l` be a family |
| 670 | of doubled Harish-Chandra parameters with gap at least `500 n³ + 10 n⁵` for the signs of both; |
| 671 | `typeKernel l s` is the product of their discrete series kernels. Let `K` be a level and `a` an |
| 672 | element of the group algebra of the finite adelic group. Suppose that the test function `a ⋆ 1_K` |
| 673 | is cuspidal at a split place `w`, and that the elements of its support are integral at `w'` with |
| 674 | `0` a simple root of the characteristic polynomial modulo `w'`. Then operators that act as `a` on |
| 675 | the forms of parameter `l` and level `K` on `V` and on `V'` have the same trace. -/ |
| 676 | theorem trace_comparison [HasPrimitiveRoot5040 E] (hE : Even (Core.numInfPlaces E)) |
| 677 | (hn : 2 ≤ card n) {s s' : n → ℤˣ} (V : Space E n s) (V' : Space E n s') |
| 678 | {l : InfinitePlace E → n → ℤ} |
| 679 | (h_gap : ∀ v : InfinitePlace E, (toHCParam s (l v)).HasLargeGap (10 * card n ^ 5)) |
| 680 | (h_gap' : ∀ v : InfinitePlace E, (toHCParam s' (l v)).HasLargeGap (10 * card n ^ 5)) |
| 681 | {K : Subgroup (Gf E n)} [hK : IsLevel K] {a : MonoidAlgebra ℂ (Gf E n)} {w w' : FinPlace E} |
| 682 | (hw : w.IsSplit) (h_cusp : IsCuspidalAt hw (convIndicator hK.isOpen hK.isCompact a)) |
| 683 | (h_simple : ∀ g : Gf E n, (convIndicator hK.isOpen hK.isCompact a : Gf E n → ℂ) g ≠ 0 → |
| 684 | HasSimpleZero (g.atPlace w')) |
| 685 | {T : End ℂ (levelSpace (V.formRep (typeKernel l s)) K)} |
| 686 | (hT : ∀ y : levelSpace (V.formRep (typeKernel l s)) K, |
| 687 | (T y).val = (V.formRep (typeKernel l s)).asAlgebraHom a y.val) |
| 688 | {T' : End ℂ (levelSpace (V'.formRep (typeKernel l s')) K)} |
| 689 | (hT' : ∀ y : levelSpace (V'.formRep (typeKernel l s')) K, |
| 690 | (T' y).val = (V'.formRep (typeKernel l s')).asAlgebraHom a y.val) : |
| 691 | LinearMap.trace ℂ (levelSpace (V.formRep (typeKernel l s)) K) T = |
| 692 | LinearMap.trace ℂ (levelSpace (V'.formRep (typeKernel l s')) K) T' := by |
| 693 | have : Nonempty n := Fintype.card_pos_iff.mp (by omega) |
| 694 | -- Up to `vol K` each trace is the geometric side, a sum over characteristic polynomials `R`. |
| 695 | let φ : TestFunction (Gf E n) := convIndicator hK.isOpen hK.isCompact a |
| 696 | have hB : 13 * card n ^ 3 ≤ 10 * card n ^ 5 := by |
| 697 | nlinarith [Nat.mul_le_mul_left (card n ^ 3) (Nat.pow_le_pow_left hn 2)] |
| 698 | have he : IsCuspKernel (10 * card n ^ 5) (typeKernel l s) := isCuspKernel_typeKernel h_gap |
| 699 | have he' : IsCuspKernel (10 * card n ^ 5) (typeKernel l s') := isCuspKernel_typeKernel h_gap' |
| 700 | -- The terms of each polynomial `R` agree: elliptic terms match, the others are zero. |
| 701 | have h_term (R : E[X]) : V.geometricSide hB he {R} φ = V'.geometricSide hB he' {R} φ := by |
| 702 | by_cases hR : Irreducible R |
| 703 | · by_cases h_norm : ∀ (v : InfinitePlace E) (i : n), ‖numberedRoots (Φ v) R i‖ = 1 |
| 704 | · let z (v : InfinitePlace E) : n ↪ Circle := |
| 705 | (numberedRoots (Φ v) R).codRestrict _ fun i ↦ mem_sphere_zero_iff_norm.2 (h_norm v i) |
| 706 | obtain ⟨c, hc⟩ := Space.exists_geometricSide_singleton_eq hB φ hE hR (z := z) fun _ _ ↦ rfl |
| 707 | rw [hc V he h_gap, hc V' he' h_gap'] |
| 708 | · obtain ⟨v, i, h_root⟩ : ∃ v i, ‖numberedRoots (Φ v) R i‖ ≠ 1 := by simpa using h_norm |
| 709 | rw [V.geometricSide_singleton_eq_zero_of_norm_ne_one hB φ he hR h_root, |
| 710 | V'.geometricSide_singleton_eq_zero_of_norm_ne_one hB φ he' hR h_root] |
| 711 | · rw [V.geometricSide_singleton_eq_zero hB he h_cusp h_simple hR, |
| 712 | V'.geometricSide_singleton_eq_zero hB he' h_cusp h_simple hR] |
| 713 | refine mul_left_cancel₀ (ofReal_ne_zero.2 (measureReal_pos_of_isLevel K).ne') ?_ |
| 714 | calc volume.real (K : Set (Gf E n)) * LinearMap.trace ℂ _ T |
| 715 | = V.geometricSide hB he .univ φ := V.volume_mul_trace_eq hB he hT |
| 716 | _ = ∑' R : E[X], V.geometricSide hB he {R} φ := (V.hasSum_geometricSide hB he φ).tsum_eq.symm |
| 717 | _ = ∑' R : E[X], V'.geometricSide hB he' {R} φ := tsum_congr h_term |
| 718 | _ = V'.geometricSide hB he' .univ φ := (V'.hasSum_geometricSide hB he' φ).tsum_eq |
| 719 | _ = volume.real (K : Set (Gf E n)) * LinearMap.trace ℂ _ T' := |
| 720 | (V'.volume_mul_trace_eq hB he' hT').symm |
| 721 | |
| 722 | end New |
| 723 | |
| 724 | end |