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.Analysis.Normed.Group.Tannery |
| 4 | import Mathlib.Dynamics.Ergodic.Action.Regular |
| 5 | import TauCeti.NumberTheory.NumberField.Countable |
| 6 | import TauCeti.Topology.Algebra.Group.Units |
| 7 | import TauCeti.Topology.Instances.Matrix |
| 8 | public import Lib.Adelic.TraceFormula.Convergence |
| 9 | import Lib.Adelic.Adeles.StrongApproximation |
| 10 | import Lib.Adelic.Reduction.DefiniteClassSums |
| 11 | import Lib.Adelic.TraceFormula.CoprimeFactors |
| 12 | |
| 13 | /-! |
| 14 | # The geometric side, polynomial by polynomial |
| 15 | |
| 16 | The geometric side of the trace formula is the integral over `x ∈ [G]` of the sum of the values |
| 17 | of `k ⊗ φ` at `x⁻¹ γ x`, over the rational points `γ`. For a cusp kernel `k` of large enough order |
| 18 | it is the sum of the parts given by the characteristic polynomials `R` of the `γ`. If moreover `φ` |
| 19 | is cuspidal at one split place and, on its support, `0` is a simple root of the characteristic |
| 20 | polynomial modulo a place `w'`, then the part of an `R` that is not irreducible is `0`. |
| 21 | |
| 22 | Notions from other files: |
| 23 | * `Space E n s`: a hermitian space `V` over `E`, with a matrix `V.J` and an adelic point; |
| 24 | `U V.J` is its group of rational points and `V.ratEmbed` maps that group into `G E s`. |
| 25 | * `G E s`: the adelic unitary group, with factors `GInf E s` at the infinite places and `Gf E n` |
| 26 | at the finite ones; `V.Γ` is the image of `U V.J` in it and `V.quotMeasure` computes integrals |
| 27 | over the quotient `[G] = V.Γ \ G E s`. |
| 28 | * `V.polyTerm k φ S γ x`: the value of `k ⊗ φ` at `x⁻¹ γ x` if the characteristic polynomial of |
| 29 | `γ` lies in `S`, and `0` otherwise. |
| 30 | * `IsCuspKernel B k`: the kernel `k` on `GInf E s` is a minimal idempotent for convolution that is |
| 31 | reproduced by a compactly supported function and decays to order `B`. |
| 32 | * `IsCuspidalAt hw φ`: at the split place `w` the sums of the translates of `φ` over the unipotent |
| 33 | radicals of the proper parabolic subgroups over the residue field vanish. |
| 34 | |
| 35 | Part of a known result: Comparison of simple trace formulas for unitary groups that differ only at |
| 36 | real places. See `Lib.Adelic.TraceFormula.TraceComparison`. |
| 37 | -/ |
| 38 | |
| 39 | @[expose] public section |
| 40 | |
| 41 | open MeasureTheory Matrix Polynomial Filter Topology |
| 42 | |
| 43 | noncomputable section |
| 44 | |
| 45 | namespace New |
| 46 | |
| 47 | /-- A monic polynomial that is neither irreducible nor a proper power is a product of two coprime |
| 48 | polynomials of positive degree. -/ |
| 49 | lemma exists_isCoprime_mul_of_not_irreducible {F : Type} [Field F] {R : F[X]} (h_monic : R.Monic) |
| 50 | (h_red : ¬Irreducible R) (h_pow : ∀ (Q : F[X]) (j : ℕ), 1 < j → R ≠ Q ^ j) : |
| 51 | ∃ A B : F[X], IsCoprime A B ∧ ¬IsUnit A ∧ ¬IsUnit B ∧ R = A * B := by |
| 52 | have h_not_unit : ¬IsUnit R := fun h_unit ↦ |
| 53 | h_pow 1 2 one_lt_two (by simp [h_monic.isUnit_iff.1 h_unit]) |
| 54 | -- Split off the largest power of a monic irreducible factor `Q`. |
| 55 | obtain ⟨Q, hQ_monic, hQ_irred, hQ_dvd⟩ := R.exists_monic_irreducible_factor h_not_unit |
| 56 | obtain ⟨i, A, h_not_dvd, rfl⟩ : ∃ (i : ℕ) (A : F[X]), ¬Q ∣ A ∧ R = Q ^ i * A := |
| 57 | WfDvdMonoid.max_power_factor h_monic.ne_zero hQ_irred |
| 58 | have hi : i ≠ 0 := fun hi ↦ h_not_dvd (by simpa [hi] using hQ_dvd) |
| 59 | refine ⟨Q ^ i, A, (hQ_irred.coprime_iff_not_dvd.2 h_not_dvd).pow_left, |
| 60 | mt (isUnit_pow_iff hi).1 hQ_irred.not_isUnit, fun h_unit ↦ ?_, rfl⟩ |
| 61 | obtain rfl : A = 1 := ((hQ_monic.pow i).of_mul_monic_left h_monic).isUnit_iff.1 h_unit |
| 62 | obtain rfl | hi_gt : i = 1 ∨ 1 < i := by omega |
| 63 | · exact h_red (by simpa using hQ_irred) |
| 64 | · exact h_pow Q i hi_gt (mul_one _) |
| 65 | |
| 66 | namespace Space |
| 67 | |
| 68 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] {s : n → ℤˣ} |
| 69 | (V : Space E n s) {B : ℕ} {k : GInf E s → ℂ} |
| 70 | |
| 71 | /-- Let `γ` be a rational point of the space `V`, embedded by `V.ratEmbed` in the adelic group, and |
| 72 | `x` an adelic point. At a finite place `w`, the characteristic polynomial of the component of |
| 73 | `x⁻¹ γ x` is the image over the completion `LocField w` of the characteristic polynomial of `γ`. -/ |
| 74 | lemma charpoly_atPlace_conj_ratEmbed (w : FinPlace E) (γ : U V.J) (x : G E s) : |
| 75 | ((x⁻¹ * V.ratEmbed γ * x).2.atPlace w).val.charpoly |
| 76 | = (γ : Matrix n n E).charpoly.map (algebraMap E (LocField w)) := by |
| 77 | set y : Gf E n := x.2⁻¹ * V.embFin γ * x.2 |
| 78 | -- Over the finite adeles, `y` is conjugate to the image of `γ`. |
| 79 | set z : GL n (𝔸f E) := V.xFin * x.2 |
| 80 | have h_conj : (y : GL n (𝔸f E)) = |
| 81 | z⁻¹ * GeneralLinearGroup.map (algebraMap E (𝔸f E)) γ.val * z := by |
| 82 | simp [y, z, coe_embFin, mul_assoc] |
| 83 | calc _ = (y : Matrix n n (𝔸f E)).charpoly.map (evalAt w) := charpoly_map _ _ |
| 84 | _ = ((γ : Matrix n n E).map (algebraMap E (𝔸f E))).charpoly.map (evalAt w) := by |
| 85 | rw [h_conj, Units.val_mul, Units.val_mul, coe_units_inv, charpoly_units_conj'] |
| 86 | rfl |
| 87 | _ = (γ : Matrix n n E).charpoly.map (algebraMap E (LocField w)) := by |
| 88 | rw [charpoly_map, Polynomial.map_map] |
| 89 | rfl |
| 90 | |
| 91 | /-- For a set `S` of polynomials, the sum of `V.polyTerm k φ S γ x` over the rational points `γ`, |
| 92 | that is, of the values of `k ⊗ φ` at `x⁻¹ γ x` for the `γ` with characteristic polynomial in `S`, |
| 93 | does not change when `x` is multiplied on the left by a rational point `δ`. -/ |
| 94 | lemma tsum_polyTerm_ratEmbed_mul (φ : Gf E n → ℂ) (S : Set E[X]) (δ : U V.J) (x : G E s) : |
| 95 | ∑' γ : U V.J, V.polyTerm k φ S γ (V.ratEmbed δ * x) = ∑' γ : U V.J, V.polyTerm k φ S γ x := by |
| 96 | rw [← (MulAut.conj δ).toEquiv.tsum_eq] |
| 97 | refine tsum_congr fun γ ↦ ?_ |
| 98 | have h_charpoly : ((δ * γ * δ⁻¹ : U V.J) : Matrix n n E).charpoly = |
| 99 | (γ : Matrix n n E).charpoly := by |
| 100 | simp |
| 101 | have h_point : (V.ratEmbed δ * x)⁻¹ * V.ratEmbed (δ * γ * δ⁻¹) * (V.ratEmbed δ * x) |
| 102 | = x⁻¹ * V.ratEmbed γ * x := by simp [mul_assoc] |
| 103 | simp only [MulEquiv.toEquiv_eq_coe, MulEquiv.coe_toEquiv, MulAut.conj_apply, kernelTerm, |
| 104 | h_charpoly, h_point] |
| 105 | |
| 106 | variable [Nonempty n] |
| 107 | |
| 108 | omit [Nonempty n] in |
| 109 | /-- For a measurable `k` and a test function `φ`, the sum of the values of `k ⊗ φ` at `x⁻¹ γ x`, |
| 110 | over the rational points `γ` with characteristic polynomial in `S`, is measurable in `x`. -/ |
| 111 | lemma measurable_tsum_polyTerm (hk : Measurable k) (φ : TestFunction (Gf E n)) (S : Set E[X]) : |
| 112 | Measurable fun x : G E s ↦ ∑' γ : U V.J, V.polyTerm k φ S γ x := by |
| 113 | fun_prop |
| 114 | |
| 115 | /-- Let `k` be a cusp kernel of order `B ≥ 13 * card n ^ 3` (`IsCuspKernel`), and `φ` a test |
| 116 | function. The sum of the values of `k ⊗ φ` at `x⁻¹ γ x`, over the rational points `γ` with |
| 117 | characteristic polynomial in `S`, is integrable in `x` over the quotient `[G]` of the adelic |
| 118 | group by the rational points, for the measure `V.quotMeasure`. -/ |
| 119 | lemma integrable_tsum_polyTerm (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCuspKernel B k) |
| 120 | (φ : TestFunction (Gf E n)) (S : Set E[X]) : |
| 121 | Integrable (fun x : G E s ↦ ∑' γ : U V.J, V.polyTerm k φ S γ x) V.quotMeasure := by |
| 122 | obtain ⟨D, hD⟩ := V.exists_norm_tsum_polyTerm_le hB φ he |
| 123 | exact .of_bound (V.measurable_tsum_polyTerm he.continuous.measurable φ S).aestronglyMeasurable D |
| 124 | (.of_forall fun x ↦ hD x S) |
| 125 | |
| 126 | /-- The part of the geometric side given by the polynomials in `S`: the integral over `[G]` of the |
| 127 | sum of the values of `k ⊗ φ` at `x⁻¹ γ x`, over the rational points `γ` whose characteristic |
| 128 | polynomial lies in `S`. Here `k` is a cusp kernel of order `B ≥ 13 * card n ^ 3`, so the sum is |
| 129 | integrable. It is a linear form in the test function `φ : TestFunction (Gf E n)`, which has an |
| 130 | underlying function `φ.1 : Gf E n → ℂ`. -/ |
| 131 | def geometricSide (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCuspKernel B k) (S : Set E[X]) : |
| 132 | TestFunction (Gf E n) →ₗ[ℂ] ℂ := |
| 133 | let kernel (x : G E s) := |
| 134 | V.partialKernelLinear (eight_mul_sq_lt_of_thirteen_mul_cube_le Fintype.card_pos hB) he.decay |
| 135 | {γ : U V.J | ((γ : GL n E) : Matrix n n E).charpoly ∈ S} x x |
| 136 | { toFun φ := ∫ x : G E s, kernel x φ ∂V.quotMeasure |
| 137 | map_add' φ ψ := by |
| 138 | have h_int (f : TestFunction (Gf E n)) : |
| 139 | Integrable (fun x ↦ kernel x f) V.quotMeasure := |
| 140 | V.integrable_tsum_polyTerm hB he f S |
| 141 | rw [← integral_add (h_int φ) (h_int ψ)] |
| 142 | exact integral_congr_ae (.of_forall fun x ↦ (kernel x).map_add φ ψ) |
| 143 | map_smul' c φ := by |
| 144 | simp only [map_smul, smul_eq_mul, integral_const_mul, RingHom.id_apply] } |
| 145 | |
| 146 | /-- The value of the linear form `geometricSide` at `φ`, as an integral over `[G]`. -/ |
| 147 | lemma geometricSide_apply (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCuspKernel B k) |
| 148 | (S : Set E[X]) (φ : TestFunction (Gf E n)) : V.geometricSide hB he S φ = |
| 149 | ∫ x : G E s, ∑' γ : U V.J, V.polyTerm k φ S γ x ∂V.quotMeasure := rfl |
| 150 | |
| 151 | /-- Let `k` be a cusp kernel of order `B ≥ 13 * card n ^ 3` and `φ` a test function. For a finite |
| 152 | set `F` of polynomials, the part `geometricSide F` of the geometric side, which is the integral |
| 153 | over `[G]` of the sum of the values of `k ⊗ φ` at `x⁻¹ γ x` over the rational points `γ` with |
| 154 | characteristic polynomial in `F`, is the sum of the parts given by the elements of `F`. -/ |
| 155 | lemma geometricSide_coe_finset (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCuspKernel B k) |
| 156 | (F : Finset E[X]) (φ : TestFunction (Gf E n)) : |
| 157 | V.geometricSide hB he F φ = ∑ R ∈ F, V.geometricSide hB he {R} φ := by |
| 158 | classical |
| 159 | simp only [geometricSide_apply] |
| 160 | rw [← integral_finsetSum F fun R _ ↦ V.integrable_tsum_polyTerm hB he φ {R}] |
| 161 | congr with x |
| 162 | change ∑' γ : U V.J, V.polyTerm k φ F γ x = ∑ R ∈ F, ∑' γ : U V.J, V.polyTerm k φ {R} γ x |
| 163 | have hB_sum := eight_mul_sq_lt_of_thirteen_mul_cube_le Fintype.card_pos hB |
| 164 | rw [← Summable.tsum_finsetSum fun R _ ↦ V.summable_polyTerm hB_sum φ he.decay {R} x] |
| 165 | exact tsum_congr fun γ ↦ by simp [kernelTerm, Set.indicator_apply] |
| 166 | |
| 167 | /-- Let `k` be a cusp kernel of order `B ≥ 13 * card n ^ 3` and `φ` a test function. At each point |
| 168 | `x`, as the finite set `F` of polynomials increases, the sum of the values of `k ⊗ φ` at `x⁻¹ γ x` |
| 169 | over the rational points `γ` with characteristic polynomial in `F` tends to the sum over all `γ`, |
| 170 | by dominated convergence. -/ |
| 171 | lemma tendsto_tsum_polyTerm (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCuspKernel B k) |
| 172 | (φ : TestFunction (Gf E n)) (x : G E s) : |
| 173 | Tendsto (fun F : Finset E[X] ↦ ∑' γ : U V.J, V.polyTerm k φ F γ x) atTop |
| 174 | (𝓝 (∑' γ : U V.J, V.polyTerm k φ .univ γ x)) := by |
| 175 | have hB_sum := eight_mul_sq_lt_of_thirteen_mul_cube_le Fintype.card_pos hB |
| 176 | refine tendsto_tsum_of_dominated_convergence |
| 177 | (V.summable_polyTerm hB_sum φ he.decay .univ x).norm |
| 178 | (fun γ ↦ tendsto_const_nhds.congr' ?_) (.of_forall fun F γ ↦ ?_) |
| 179 | · filter_upwards [eventually_finset_mem_atTop (γ : Matrix n n E).charpoly] with F hF |
| 180 | simp [kernelTerm, hF] |
| 181 | · -- Each term is dominated by the term for the set of all polynomials. |
| 182 | simp only [polyTerm, kernelTerm, norm_mul] |
| 183 | gcongr |
| 184 | exact norm_indicator_le_of_subset (Set.subset_univ _) 1 _ |
| 185 | |
| 186 | /-- Let `V` be a hermitian space with a point over the CM field `E`, and let `φ` be a test function |
| 187 | on `G_f`. Let `k` be a cusp kernel of order `B ≥ 13 * card n ^ 3` on `G_∞`: a minimal idempotent for |
| 188 | which `‖x‖^(B+1) k(x)` is integrable, `‖x‖^B k(x)` is bounded, and `α ∗ k = k` for some continuous |
| 189 | compactly supported `α`. The geometric side, which is the integral over `[G]` of the sum of the |
| 190 | values of `k ⊗ φ` at `x⁻¹ γ x` over all rational points `γ`, is the convergent sum over the |
| 191 | polynomials `R` of its parts given by the `γ` with characteristic polynomial `R`. -/ |
| 192 | theorem hasSum_geometricSide (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCuspKernel B k) |
| 193 | (φ : TestFunction (Gf E n)) : |
| 194 | HasSum (fun R : E[X] ↦ V.geometricSide hB he {R} φ) (V.geometricSide hB he .univ φ) := by |
| 195 | -- Let `F` increase through the finite sets of polynomials. The sums over the `γ` with |
| 196 | -- polynomial in `F` converge at each point and are uniformly bounded. |
| 197 | have : Countable E[X] := (AddMonoidAlgebra.coeff_injective.comp Function.injective_id).countable |
| 198 | have h_pointwise (x : G E s) : |
| 199 | Tendsto (fun F : Finset E[X] ↦ ∑' γ : U V.J, V.polyTerm k φ F γ x) atTop |
| 200 | (𝓝 (∑' γ : U V.J, V.polyTerm k φ .univ γ x)) := |
| 201 | V.tendsto_tsum_polyTerm hB he φ x |
| 202 | obtain ⟨D, hD⟩ := V.exists_norm_tsum_polyTerm_le hB φ he |
| 203 | have h_limit : Tendsto (fun F : Finset E[X] ↦ V.geometricSide hB he F φ) atTop |
| 204 | (𝓝 (V.geometricSide hB he .univ φ)) := |
| 205 | tendsto_integral_filter_of_norm_le_const |
| 206 | (.of_forall fun F ↦ (V.integrable_tsum_polyTerm hB he φ F).aestronglyMeasurable) |
| 207 | ⟨D, .of_forall fun F ↦ .of_forall fun x ↦ hD x F⟩ (.of_forall h_pointwise) |
| 208 | exact h_limit.congr fun F ↦ V.geometricSide_coe_finset hB he F φ |
| 209 | |
| 210 | /-- Let `k` be a cusp kernel of order `B ≥ 13 * card n ^ 3`. Each part `geometricSide S` of the |
| 211 | geometric side, an integral over the quotient of the adelic group by the image `V.Γ` of the rational |
| 212 | points, is invariant under the conjugation `TestFunction.translate (g, g)` of the test function, |
| 213 | `y ↦ φ(g⁻¹ y g)`, by a finite adelic point `g`. The proof is the substitution `x ↦ x * (1, g)`. -/ |
| 214 | lemma geometricSide_translate (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCuspKernel B k) |
| 215 | (S : Set E[X]) (g : Gf E n) (φ : TestFunction (Gf E n)) : |
| 216 | V.geometricSide hB he S (TestFunction.translate (g, g) φ) = V.geometricSide hB he S φ := by |
| 217 | have h_term (γ : U V.J) (x : G E s) : |
| 218 | V.polyTerm k (TestFunction.translate (g, g) φ) S γ x = V.polyTerm k φ S γ (x * (1, g)) := by |
| 219 | simp [kernelTerm, TestFunction.translate_apply, mul_assoc] |
| 220 | have : IsScalarTower V.Γ (G E s) (G E s) := ⟨fun δ x y ↦ mul_assoc δ.val x y⟩ |
| 221 | have h_inv : ∀ (δ : V.Γ) (x : G E s), |
| 222 | ∑' γ : U V.J, V.polyTerm k φ S γ (δ • x) = ∑' γ : U V.J, V.polyTerm k φ S γ x := by |
| 223 | rintro ⟨_, δ₀, rfl⟩ x |
| 224 | exact V.tsum_polyTerm_ratEmbed_mul φ S δ₀ x |
| 225 | simp only [geometricSide_apply, h_term] |
| 226 | exact (identDistrib_orbitMeasure_mul_right (X := G E s) (1, g) h_inv |
| 227 | (V.measurable_tsum_polyTerm he.continuous.measurable φ S)).integral_eq |
| 228 | |
| 229 | /-- For a cusp kernel `k` of order `B ≥ 13 * card n ^ 3`, the part of the geometric side given by |
| 230 | the polynomial `R` (the integral of the sum over the rational points with characteristic polynomial |
| 231 | `R`) is `0` if the test function `φ`, with underlying function `φ.1`, vanishes at all finite adelic |
| 232 | points whose component at the finite place `w` has as characteristic polynomial the image of `R` |
| 233 | over the completion `LocField w`. -/ |
| 234 | lemma geometricSide_singleton_eq_zero_of_forall (hB : 13 * Fintype.card n ^ 3 ≤ B) |
| 235 | (he : IsCuspKernel B k) (w : FinPlace E) {R : E[X]} |
| 236 | {φ : TestFunction (Gf E n)} (h_zero : ∀ y : Gf E n, |
| 237 | (y.atPlace w).val.charpoly = R.map (algebraMap E (LocField w)) → φ.val y = 0) : |
| 238 | V.geometricSide hB he {R} φ = 0 := by |
| 239 | have h_term (γ : U V.J) (x : G E s) : V.polyTerm k φ {R} γ x = 0 := by |
| 240 | by_cases hγ : (γ : Matrix n n E).charpoly = R |
| 241 | · rw [polyTerm, kernelTerm, h_zero _ (by rw [charpoly_atPlace_conj_ratEmbed, hγ])] |
| 242 | simp |
| 243 | · simp [kernelTerm, hγ] |
| 244 | simp [geometricSide_apply, h_term] |
| 245 | |
| 246 | /-- If the test function is cuspidal at the split place `w`, the geometric term for a product of |
| 247 | two coprime nonunits vanishes. The factors remain coprime over the completion at `w`. -/ |
| 248 | lemma geometricSide_singleton_eq_zero_of_coprime_factors (hB : 13 * Fintype.card n ^ 3 ≤ B) |
| 249 | (hk : IsCuspKernel B k) {w : FinPlace E} {hw : w.IsSplit} {φ : TestFunction (Gf E n)} |
| 250 | (h_cusp : IsCuspidalAt hw φ) {A C : E[X]} (h_coprime : IsCoprime A C) |
| 251 | (hA : ¬IsUnit A) (hC : ¬IsUnit C) : V.geometricSide hB hk {A * C} φ = 0 := by |
| 252 | -- The geometric term is an invariant linear form on the characteristic-polynomial fibre at `w`. |
| 253 | set f : E →+* LocField w := algebraMap E (LocField w) |
| 254 | have h_fibre (ψ : TestFunction (Gf E n)) |
| 255 | (h_zero : ∀ y : Gf E n, (y.atPlace w).val.charpoly = A.map f * C.map f → ψ.val y = 0) : |
| 256 | V.geometricSide hB hk {A * C} ψ = 0 := |
| 257 | V.geometricSide_singleton_eq_zero_of_forall hB hk w (by rwa [Polynomial.map_mul]) |
| 258 | exact eq_zero_of_coprime_factors hw (h_coprime.map (mapRingHom f)) |
| 259 | (mt (isUnit_map f).1 hA) (mt (isUnit_map f).1 hC) _ (V.geometricSide_translate hB hk _) |
| 260 | h_fibre h_cusp |
| 261 | |
| 262 | /-- Let `k` be a cusp kernel of order `B ≥ 13 * card n ^ 3`. Let the test function `φ` be cuspidal |
| 263 | at the split place `w` (the sums of its translates over the unipotent radicals of the proper |
| 264 | parabolic subgroups over the residue field vanish), and let each point of the support of `φ` be |
| 265 | integral at `w'` with `0` a simple root of its characteristic polynomial modulo `w'` |
| 266 | (`HasSimpleZero`). If the polynomial `R` is not irreducible, then the part of the geometric side |
| 267 | given by `R`, the integral of the sum over the rational points with characteristic polynomial `R`, |
| 268 | is `0`. -/ |
| 269 | theorem geometricSide_singleton_eq_zero (hB : 13 * Fintype.card n ^ 3 ≤ B) |
| 270 | (hk : IsCuspKernel B k) {w w' : FinPlace E} {hw : w.IsSplit} {φ : TestFunction (Gf E n)} |
| 271 | (h_cusp : IsCuspidalAt hw φ) |
| 272 | (h_supp : ∀ g : Gf E n, φ.val g ≠ 0 → HasSimpleZero (g.atPlace w')) {R : E[X]} |
| 273 | (hR : ¬Irreducible R) : V.geometricSide hB hk {R} φ = 0 := by |
| 274 | by_contra h_ne |
| 275 | -- Some point of the support has the image of `R` as its polynomial at `w'`. |
| 276 | -- Hence `R` is not a proper power. |
| 277 | obtain ⟨y, hy_charpoly, hy_ne⟩ : ∃ y : Gf E n, |
| 278 | (y.atPlace w').val.charpoly = R.map (algebraMap E (LocField w')) ∧ φ.val y ≠ 0 := by |
| 279 | by_contra! h_zero |
| 280 | exact h_ne (V.geometricSide_singleton_eq_zero_of_forall hB hk w' h_zero) |
| 281 | have h_monic : R.Monic := monic_map_iff.1 <| by |
| 282 | simpa only [hy_charpoly] using charpoly_monic (y.atPlace w' : Matrix n n (LocField w')) |
| 283 | have h_pow (Q : E[X]) (j : ℕ) (hj : 1 < j) : R ≠ Q ^ j := fun hQ ↦ |
| 284 | (h_supp y hy_ne).charpoly_ne_pow (Q.map (algebraMap E _)) hj (by simp [hy_charpoly, hQ]) |
| 285 | obtain ⟨A, C, h_coprime, hA, hC, rfl⟩ := |
| 286 | exists_isCoprime_mul_of_not_irreducible h_monic hR h_pow |
| 287 | exact h_ne (V.geometricSide_singleton_eq_zero_of_coprime_factors hB hk h_cusp h_coprime hA hC) |
| 288 | |
| 289 | end Space |
| 290 | |
| 291 | end New |
| 292 | |
| 293 | end |