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.FieldTheory.Galois.Profinite |
| 4 | public import New.Congruences.FirstOrder.TraceRelations |
| 5 | import New.Congruences.FirstOrder.RibetLemma |
| 6 | import New.Congruences.GaloisRepresentations.AttachedRepresentations |
| 7 | |
| 8 | /-! |
| 9 | # Ribet's element for conjugate self-dual representations |
| 10 | |
| 11 | This file chooses the coefficient ring: polynomials over the integers of `ℚ̄_ℓ`, and models of the |
| 12 | representations, are defined over every large coefficient ring. It bounds the valuation at the lift |
| 13 | and counts the cocycles of the main summand at the lift by its loss and its Selmer group. It then |
| 14 | constructs Ribet's element for a finite family of conjugate self-dual `ℓ`-adic representations of |
| 15 | the Galois group of `E`, some of which have the trace of a twisted main summand plus `t` powers of |
| 16 | the cyclotomic character. |
| 17 | |
| 18 | ## Main definitions and results |
| 19 | |
| 20 | * `New.Selmer.exists_length_le_loss_add_crystallineSelmerLength`: with divisible coefficients, the |
| 21 | cocycles of the main summand at the lift are counted by its loss, free of the level, and its |
| 22 | Selmer group. |
| 23 | * `New.Selmer.ribet_columns`: Ribet's element and the bound on its coefficient of `∏ X j`. |
| 24 | |
| 25 | Letters: the new places are `w j`, with tame generators `τ j`, Frobenius elements `φ j` and tied |
| 26 | relations `τ j - 1 - X j * (φ j - 1) * H j (φ j)`. The primes `p₀ = D.levelPrime 0` |
| 27 | and `p₁ = D.levelPrime 1` give the principal level; `g₀` is the element of the Galois group that |
| 28 | separates the characters. |
| 29 | |
| 30 | Notions from other files: |
| 31 | * `New.CoeffRing`: rings of integers of finite Galois extensions of `ℚ_ℓ` inside `ℚ̄_ℓ`; their |
| 32 | `normLength` is length over `O`, scaled so that `O/ℓ` has length 1. |
| 33 | * `New.Selmer.IsLiftSetting`: a descent pair `V` (`New.DescentPair`) has the places of the data and |
| 34 | of the twist `ϑ`, an odd rank `card r ≤ D.r` and an odd difference of ranks `V.rankDiff ≤ D.t`. |
| 35 | Its type polynomials `c i` are monic squarefree polynomials of degree `card r` over the residue |
| 36 | fields at the chosen places above `p₀` and `p₁`, with conditions on their roots. |
| 37 | * `New.Lift.InClass F C U`: the local lattices `Y` such that `Bmax ⊗ Y` is spanned by the periods |
| 38 | fixed both near `1` and along the filter `F`, the Hodge–Tate jumps lie in the sets `U`, and every |
| 39 | polynomial `Q` with `C s Q` kills the inertial element `s` on the periods. |
| 40 | * `New.Selmer.IsPrimeTriangle`: a linearly ordered tame generator family `w j` with monotone |
| 41 | exponents `ty j`. An even class of exponent `ty j` that kills the earlier `τ i`, and the earlier |
| 42 | `φ i` of the same exponent, has its value at `τ j` killed by `ℓ ^ h`. Finitely many test points |
| 43 | and `g₀` detect the cocycles unramified off `ℓ`, and `g₀` separates the characters up to `ℓ ^ h`. |
| 44 | * `New.Selmer.IsTameGeneratorFamily`: `w j` is not above `ℓ`, `τ j` is the chosen tame generator at |
| 45 | a place over `w j`, and `φ j` fixes the `ℓ ^ ν`-th roots of unity. |
| 46 | * `New.Selmer.clearingBound` (in `New.Congruences.FirstOrder.TraceRelations`): the clearing bound |
| 47 | `β_ℓ` per unit of rank of a main summand at `ℓ`. |
| 48 | * `New.Selmer.denominatorError` (in `New.Congruences.FirstOrder.TraceRelations`): the error term |
| 49 | `e_ℓ`, with crude constants. |
| 50 | |
| 51 | ## Relation to the literature |
| 52 | |
| 53 | Ribet's method in any rank, with congruent summands and tied primes, gives a Hecke element, |
| 54 | polynomial in the tie parameters, that kills all determinants det (1 - u g) modulo the ties. On |
| 55 | lifts it has no term properly dividing the product of all parameters, and the coefficient of that |
| 56 | product has bounded valuation; the orders of the even classes do not enter. Fitting-ideal forms of |
| 57 | Ribet's method are known for distinct summands in any rank and for congruent characters in rank 2. |
| 58 | Related work: Dasgupta–Kakde–Silliman–Wang, The residually indistinguishable case of Ribet's method |
| 59 | for GL2, 2023; Bellaïche–Chenevier, Families of Galois representations and Selmer groups, 2009; |
| 60 | Urban, Selmer groups and the Eisenstein–Klingen ideal, 2001. |
| 61 | -/ |
| 62 | |
| 63 | @[expose] public section |
| 64 | |
| 65 | namespace New.Selmer |
| 66 | |
| 67 | section RibetColumns |
| 68 | |
| 69 | open Matrix Polynomial Fintype Module Filter ENNReal Finset CoeffRing |
| 70 | |
| 71 | open IsDiscreteValuationRing (addVal) |
| 72 | |
| 73 | variable {ℓ : ℕ} [ThePrime ℓ] {P : Parameters} {D : Data P} |
| 74 | {K Y n r : Type} [Fintype n] [DecidableEq n] [Fintype Y] [Fintype r] [DecidableEq r] |
| 75 | |
| 76 | /-- A polynomial over the integers of `ℚ̄_ℓ` is defined over every large coefficient ring. -/ |
| 77 | lemma eventually_exists_map_eq (H : (intQpBar ℓ)[X]) : ∀ᶠ O : CoeffRing ℓ in atTop, |
| 78 | ∃ H' : O[X], H'.map (algebraMap O (PadicAlgCl ℓ)) = H.map (intQpBar ℓ).subtype := by |
| 79 | filter_upwards [(Finsupp.finite_range H.coeff).eventually_all.2 fun a _ ↦ eventually_mem a.2] |
| 80 | with O hO |
| 81 | rw [← mem_lifts, lifts_iff_coeff_lifts] |
| 82 | exact fun k ↦ ⟨⟨H.coeff k, hO _ ⟨k, rfl⟩⟩, by simp⟩ |
| 83 | |
| 84 | /-- Finitely many polynomials over the integers of `ℚ̄_ℓ` with value `1` at `1` come from such |
| 85 | polynomials over every large coefficient ring. -/ |
| 86 | lemma eventually_exists_map_eq_and_eval_one [Finite K] {H : K → (intQpBar ℓ)[X]} |
| 87 | (hH : ∀ j : K, (H j).eval 1 = 1) : |
| 88 | ∀ᶠ O : CoeffRing ℓ in atTop, ∃ H' : K → O[X], |
| 89 | (∀ j : K, (H' j).map (algebraMap O (PadicAlgCl ℓ)) = (H j).map (intQpBar ℓ).subtype) ∧ |
| 90 | ∀ j : K, (H' j).eval 1 = 1 := by |
| 91 | filter_upwards [eventually_all.2 fun j ↦ eventually_exists_map_eq (H j)] with O hO |
| 92 | choose H' hH' using hO |
| 93 | exact ⟨H', hH', fun j ↦ by simpa [eval_map, hH] using congrArg (eval 1) (hH' j)⟩ |
| 94 | |
| 95 | /-- Let `τ j` be tame generators at the places `w j` with auxiliary elements `φ j` fixing the |
| 96 | `ℓ ^ ν`-th roots of unity (`IsTameGeneratorFamily ν w τ φ`), and let `H(1) = 1`. The elements `φ j` |
| 97 | and the inverses of their conjugates (`withConjInv φ k`) act on the character `O(-e)` by scalars |
| 98 | that are `1` modulo `ℓ ^ ν`. Hence the values of `H` at these scalars are also `1` modulo |
| 99 | `ℓ ^ ν`. -/ |
| 100 | lemma IsTameGeneratorFamily.dvd_eval_cyclotomicInv_sub_one {ν : ℕ} {w : K → FinPlace D.E} |
| 101 | {τ φ : K → AbsGal D} {O : CoeffRing ℓ} (hw : IsTameGeneratorFamily ν w τ φ) |
| 102 | {H : O[X]} (hH : H.eval 1 = 1) (e : ℕ) (k : K × Bool) : |
| 103 | (ℓ ^ ν : ↑O) ∣ H.eval (cyclotomicInv ℓ D.E O (withConjInv φ k) ^ e) - 1 := by |
| 104 | have h_dvd : (ℓ ^ ν : ↑O) ∣ cyclotomicInv ℓ D.E O (withConjInv φ k) ^ e - 1 := |
| 105 | (hw.cyclotomicInv_withConjInv_eq_one_and_dvd O k).2 e |
| 106 | simpa [hH] using h_dvd.trans (sub_dvd_eval_sub _ 1 H) |
| 107 | |
| 108 | lemma normLength_addVal_pow {O : CoeffRing ℓ} (m : ℕ) : |
| 109 | O.normLength (addVal O (ℓ ^ m)) = m := by |
| 110 | simp [normLength_addVal] |
| 111 | |
| 112 | /-- The valuation at the lift. Let `v` be the `ℓ`-adic valuation of `chosenGroupOrder` and put |
| 113 | `sep = halfGap h`. Let `t' ≤ D.t`, `h ≤ v`, `(k + nTest) sep ≤ halfGap ^ 22 h` and |
| 114 | `nDetect ≤ 2 (k + nTest)`; in the application `k` counts the new places, `nTest` the test points |
| 115 | together with `g₀`, and `nDetect` these elements together with two tame generators for each new |
| 116 | place. Let the valuation of `d` in `O` be at most the sum of the losses `lossT` of the main summand |
| 117 | and `lossχ e` of the `t'` characters, the Selmer length `selT`, the lengths `odd e` of the odd |
| 118 | classes, `t'` times the cost `tame` of the tame places, and `2 t' nDetect + k + 1` times the |
| 119 | valuation of `ℓ ^ sep`. Let each `odd e` be at most the valuation in `O` of the positive integer |
| 120 | `oddClassBound D`. After scaling by `normLength`, which gives `O/ℓ` length 1, let the losses add up |
| 121 | to at most `loc`, `selT ≤ sel` and `tame ≤ 2 ram + 8 D.f v`. Then `ellVal d + 2 v ≤ sel + 2 t' |
| 122 | ram + loc + denominatorError D ℓ`. -/ |
| 123 | lemma ellVal_add_le_of_addVal_le {O : CoeffRing ℓ} {t' h k nTest nDetect : ℕ} (ht' : t' ≤ D.t) |
| 124 | (h_le : h ≤ padicValNat ℓ D.chosenGroupOrder) |
| 125 | (h_points : (k + nTest) * (D.halfGap * h) ≤ D.halfGap ^ 22 * h) |
| 126 | (h_detect : nDetect ≤ 2 * (k + nTest)) |
| 127 | {lossT selT tame : ℕ∞} {lossχ odd : Fin t' → ℕ∞} {loc sel ram : ℝ≥0∞} |
| 128 | (h_loc : O.normLength lossT + ∑ e : Fin t', O.normLength (lossχ e) ≤ loc) |
| 129 | (h_sel : O.normLength selT ≤ sel) (h_odd : ∀ e : Fin t', odd e ≤ addVal O (oddClassBound D)) |
| 130 | (h_tame : O.normLength tame ≤ 2 * ram + 8 * D.f * padicValNat ℓ D.chosenGroupOrder) {d : ↑O} |
| 131 | (hd : addVal O d ≤ lossT + selT + (∑ e : Fin t', (lossχ e + odd e) + |
| 132 | t' * (tame + 2 * nDetect * addVal O (ℓ ^ (D.halfGap * h))) + |
| 133 | (k + 1) * addVal O (ℓ ^ (D.halfGap * h)))) : |
| 134 | ellVal d.val + 2 * padicValNat ℓ D.chosenGroupOrder ≤ |
| 135 | sel + 2 * t' * ram + loc + denominatorError D ℓ := by |
| 136 | have h_odd_val (e : Fin t') : O.normLength (odd e) ≤ padicValNat ℓ (oddClassBound D) := |
| 137 | (normLength_mono (h_odd e)).trans_eq (by simp [ellVal_natCast (oddClassBound_ne_zero D)]) |
| 138 | have h_val : ellVal d.val ≤ sel + loc + (t' * padicValNat ℓ (oddClassBound D) + |
| 139 | t' * (O.normLength tame + 2 * nDetect * (D.halfGap * h : ℕ)) + |
| 140 | (k + 1) * (D.halfGap * h : ℕ)) := by |
| 141 | grw [← normLength_addVal d, hd, ← h_sel, ← h_loc] |
| 142 | simp only [map_add, two_mul, add_mul, one_mul, normLength_natCast_mul, normLength_addVal_pow, |
| 143 | sum_add_distrib] |
| 144 | grw [map_sum O.normLength lossχ, map_sum O.normLength odd, h_odd_val] |
| 145 | rw [sum_const, Finset.card_fin, nsmul_eq_mul] |
| 146 | exact le_of_eq (by ring) |
| 147 | calc |
| 148 | _ ≤ sel + loc + (2 * t' * ram + denominatorError D ℓ) := by |
| 149 | grw [h_val, add_assoc, |
| 150 | mul_padicValNat_add_le_add_denominatorError ht' h_le h_points h_detect h_tame] |
| 151 | _ = sel + 2 * t' * ram + loc + denominatorError D ℓ := by ring |
| 152 | |
| 153 | /-- Models over a large coefficient ring. Fix an isomorphism `ℂ ≃ ℚ̄_ℓ` (`PadicIso ℓ`); `intQpBar ℓ` |
| 154 | is the ring of integers of `ℚ̄_ℓ`. Let the `u x` be conjugate self-dual, and for `x ∈ 𝓧` let `u x` |
| 155 | have the trace of the twisted main summand `ψ (R x)` plus the characters `O(-e)`, `e < t`. Let each |
| 156 | `x ∈ 𝓧` have, over all large `O`, a model `R₀`, `ψ'`, `ζ'` with a property `Good x O R₀ ψ'`; here |
| 157 | `IsTwistedLattice` says that `R₀` is a lattice in `R x`, that `ψ'` is `ψ` with values in `O`, and |
| 158 | that the inertial element `γ x` acts on `ψ' R₀` by the scalar `ζ'`, with `ζ' - 1` a unit. Then over |
| 159 | every large `O` there are such models `R₀ x`, `ψ' x`, `ζ' x`, whose twisted lattices span all |
| 160 | matrices, and lattices `u' x` in all `u x` that are block diagonal for `x ∈ 𝓧`: the twisted lattice, |
| 161 | then the characters. -/ |
| 162 | lemma eventually_exists_twistedLattice_and_block_lattices [PadicIso ℓ] {t : ℕ} |
| 163 | {u : Y → GalRep ℓ D.E n} (hu : ∀ x : Y, IsConjSelfDual t (u x)) |
| 164 | {ψ : AbsGal D →* PadicAlgCl ℓ} {𝓧 : Set Y} |
| 165 | {J : 𝓧 → (D.E →+* ℂ) → Multiset ℤ} {R : 𝓧 → GalRep ℓ D.E r} |
| 166 | (h_summand : ∀ x : 𝓧, IsMainSummandLike D t (J x) (R x)) |
| 167 | (h_trace : ∀ (x : 𝓧) (g : AbsGal D), (u x g).val.trace = |
| 168 | ψ g * (R x g).val.trace + ∑ e ∈ range t, cyclotomicInv ℓ D.E (PadicAlgCl ℓ) g ^ e) |
| 169 | {γ : 𝓧 → AbsGal D} |
| 170 | {Good : 𝓧 → ∀ O : CoeffRing ℓ, (AbsGal D →* Matrix r r O) → (AbsGal D →* O) → Prop} |
| 171 | (h_model : ∀ x : 𝓧, ∀ᶠ O : CoeffRing ℓ in atTop, |
| 172 | ∃ (R₀ : AbsGal D →* Matrix r r O) (ψ' : AbsGal D →* O) (ζ' : ↑O), |
| 173 | IsTwistedLattice ψ (R x) (γ x) R₀ ψ' ζ' ∧ Good x O R₀ ψ') |
| 174 | (ϵ : Sigma (SummandCoordIndex r (t := t)) ≃ n) : |
| 175 | ∀ᶠ O : CoeffRing ℓ in atTop, |
| 176 | ∃ (R₀ : 𝓧 → AbsGal D →* Matrix r r O) (ψ' : 𝓧 → AbsGal D →* O) (ζ' : 𝓧 → ↑O) |
| 177 | (u' : Y → AbsGal D →* Matrix n n O), |
| 178 | (∀ x : 𝓧, |
| 179 | IsTwistedLattice ψ (R x) (γ x) (R₀ x) (ψ' x) (ζ' x) ∧ Good x O (R₀ x) (ψ' x)) ∧ |
| 180 | (∀ x : 𝓧, Submodule.span O (.range (twistRep (.id O) (ψ' x) (R₀ x))) = ⊤) ∧ |
| 181 | (∀ x : Y, IsLatticeIn (u x) (u' x)) ∧ |
| 182 | ∀ (x : 𝓧) (g : AbsGal D), u' x g = reindex ϵ ϵ (blockDiagonal' fun i : Option (Fin t) ↦ |
| 183 | summandRep (twistRep (.id O) (ψ' x) (R₀ x)) i g) := by |
| 184 | filter_upwards [eventually_all.2 fun x ↦ eventually_exists_isLatticeIn (hu x).continuous, |
| 185 | eventually_all.2 fun x ↦ (h_summand x).eventually_span_eq_top_and_exists_eq_smul_one, |
| 186 | eventually_all.2 h_model] |
| 187 | with O h_lat h_span h_model |
| 188 | choose R₀ ψ' ζ' h_tw h_good using h_model |
| 189 | -- twisting multiplies the matrices by units, which does not change their span |
| 190 | have h_span_twist (x : 𝓧) : Submodule.span O (.range (twistRep (.id O) (ψ' x) (R₀ x))) = ⊤ := |
| 191 | Basis.units_smul_span_eq_top (w := (ψ' x).toHomUnits) (h_span x _ (h_tw x).isLatticeIn).1 |
| 192 | obtain ⟨u', hu', hu'_block⟩ := |
| 193 | exists_blockDiagonal_lattices (𝓧 := 𝓧) (fun x ↦ (hu x).nondeg) (fun x ↦ h_lat x) h_trace |
| 194 | (fun x ↦ (h_tw x).isLatticeIn) (fun x ↦ (h_tw x).twist_eq) h_span_twist ϵ |
| 195 | exact ⟨R₀, ψ', ζ', u', fun x ↦ ⟨h_tw x, h_good x⟩, h_span_twist, hu', hu'_block⟩ |
| 196 | |
| 197 | /-- The determinant `det (1 - R g)` can be computed on a lattice `R₀` in `R`, where `1 - R₀ g` is |
| 198 | the combination of the `R₀ g' - 1` with the single coefficient `-1` at `g`. -/ |
| 199 | lemma IsLatticeIn.det_one_sub {O : CoeffRing ℓ} {R : GalRep ℓ D.E n} |
| 200 | {R₀ : AbsGal D →* Matrix n n O} (hR₀ : IsLatticeIn R R₀) (g : AbsGal D) : |
| 201 | (1 - (R g).val).det = algebraMap O (PadicAlgCl ℓ) |
| 202 | ((Finsupp.single g (-1 : ↑O)).linearCombination O fun g' : AbsGal D ↦ R₀ g' - 1).det := by |
| 203 | obtain ⟨F, -, hF : ∀ g : AbsGal D, F (R₀ g) = R g, hF_det⟩ := hR₀.exists_algHom |
| 204 | rw [Finsupp.linearCombination_single, neg_one_smul, neg_sub, ← hF, ← map_one F, ← map_sub] |
| 205 | exact (hF_det _).1 |
| 206 | |
| 207 | /-- The losses at the lift, with divisible coefficients. Let the `w j` form a tame generator family: |
| 208 | `w j` is not above `ℓ`, `τ j` is the chosen tame generator at a place over `w j`, and `φ j` fixes |
| 209 | the `ℓ ^ ν`-th roots of unity. Over the coefficient ring `O`, let the classes |
| 210 | `InClass (F v) (C v) (U v)` of local lattices at the places `v` above `ℓ` contain the restrictions |
| 211 | of all `u x` and of the summands `summandRep T i`, which are `T` for `i = none` and `O(-e)` for |
| 212 | `i = some e`. Let the defects `dualDefect` of these summands have normalised sum at most |
| 213 | `card r * localDefectBound D ℓ`, an explicit bound (`eventually_exists_inClass_sum_dualDefect_le`). |
| 214 | Let the `u x` be continuous and unramified off `ℓ p₀ p₁`, `Q`, the places `w j` and their |
| 215 | conjugates, and `T` off `ℓ p₀ p₁`, `Q` and `Q̄`. Let `selT = crystallineSelmerLength T Q γ`, the |
| 216 | length of the Selmer group of `T` in `Frac(O) / O` of cocycles zero at `γ`, have normalised value at |
| 217 | most `sel < ∞`. Then the cocycles of `T` in `Frac(O) / O` that obey the relations among the |
| 218 | `u x g - 1` and vanish at the `τ j`, the inverses of their conjugates and `γ` have length at most a |
| 219 | number `b₀ = lossT + selT`, where the loss `lossT` (in the proof, the sum of the defects of `T` |
| 220 | above `ℓ`) and the colengths modulo `ℓ ^ ν` (`crystallineColength`) of the characters `O(-e)`, |
| 221 | `e < t`, have normalised sum at most `card r * localDefectBound D ℓ`. -/ |
| 222 | lemma exists_length_le_loss_add_crystallineSelmerLength {ν : ℕ} {w : K → FinPlace D.E} |
| 223 | {τ φ : K → AbsGal D} {O : CoeffRing ℓ} (hw : IsTameGeneratorFamily ν w τ φ) |
| 224 | {t : ℕ} {Q : Finset (FinPlace D.E)} {T : AbsGal D →* Matrix r r O} |
| 225 | {u : Y → AbsGal D →* Matrix n n O} |
| 226 | {F : ∀ v : placesDividing D.E ℓ, Filter (decompGroup (AbsGal D) (placeOver v.val))} |
| 227 | {C : ∀ v : placesDividing D.E ℓ, decompGroup (AbsGal D) (placeOver v.val) → O[X] → Prop} |
| 228 | {U : placesDividing D.E ℓ → (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ} |
| 229 | (hu_cl : ∀ (v : placesDividing D.E ℓ) (x : Y), InClass (F v) (C v) (U v) (localLattice (u x) v)) |
| 230 | (hT_cl : ∀ (v : placesDividing D.E ℓ) (i : Option (Fin t)), |
| 231 | InClass (F v) (C v) (U v) (localLattice (summandRep T i) v)) |
| 232 | (h_sum : ∑ i : Option (Fin t), ∑ v : placesDividing D.E ℓ, O.normLength |
| 233 | (Lift.dualDefect (InClass (F v) (C v) (U v)) (localLattice (summandRep T i) v).tateDual) ≤ |
| 234 | card r * localDefectBound D ℓ) |
| 235 | (hu_cont : ∀ x : Y, Continuous (u x)) |
| 236 | (hu_unr : ∀ g ∈ inertiaAbove (placesDividing D.E ℓ ∪ placesAboveM D ∪ |
| 237 | (.conjClosure Q ∪ (Set.range w).conjClosure))ᶜ, ∀ x : Y, u x g = 1) |
| 238 | (hT_unr : ∀ g ∈ inertiaAbove (placesDividing D.E ℓ ∪ placesAboveM D ∪ .conjClosure Q)ᶜ, T g = 1) |
| 239 | (γ : AbsGal D) {sel : ℝ≥0∞} (h_selT : O.normLength (crystallineSelmerLength T Q γ) ≤ sel) |
| 240 | (h_fin : sel ≠ ⊤) : |
| 241 | ∃ (b₀ : ℕ) (lossT : ℕ∞), |
| 242 | length O (ribetCocyclesVanishingOn u T (DivisibleQuot O) (.range (withConjInv τ)) γ) ≤ b₀ ∧ |
| 243 | (b₀ : ℕ∞) = lossT + crystallineSelmerLength T Q γ ∧ |
| 244 | O.normLength lossT + |
| 245 | ∑ e : Fin t, O.normLength (crystallineColength (tateTwist ℓ D.E O e) u ν) ≤ |
| 246 | card r * localDefectBound D ℓ := by |
| 247 | -- the loss of `T`, free of the level: the sum of its defects |
| 248 | let lossT : ℕ∞ := ∑ v : placesDividing D.E ℓ, |
| 249 | Lift.dualDefect (InClass (F v) (C v) (U v)) (localLattice T v).tateDual |
| 250 | have h_loc : O.normLength lossT + ∑ e : Fin t, |
| 251 | O.normLength (crystallineColength (tateTwist ℓ D.E O e) u ν) ≤ |
| 252 | card r * localDefectBound D ℓ := by |
| 253 | grw [← h_sum, sum_option, map_sum] |
| 254 | refine add_le_add le_rfl (sum_le_sum fun e _ ↦ ?_) |
| 255 | rw [← map_sum] |
| 256 | exact normLength_mono |
| 257 | (crystallineColength_le_sum_dualDefect hu_cl (fun v ↦ hT_cl v (some e)) ν) |
| 258 | -- The local defect and the Selmer length are both finite; choose the truncation after fixing |
| 259 | -- their sum. |
| 260 | have h_ne {a : ℕ∞} {b : ℝ≥0∞} (hb : b ≠ ⊤) (hab : O.normLength a ≤ b) : a ≠ ⊤ := |
| 261 | fun ha ↦ hb (by simpa [ha, normLength_top] using hab) |
| 262 | obtain ⟨b₀, hb₀⟩ : ∃ b₀ : ℕ, b₀ = lossT + crystallineSelmerLength T Q γ := |
| 263 | ENat.ne_top_iff_exists.1 <| WithTop.add_ne_top.2 |
| 264 | ⟨h_ne (by finiteness) (le_self_add.trans h_loc), h_ne h_fin h_selT⟩ |
| 265 | -- If O is ramified, each factor of ℓ accounts for several uniformizer steps. Normalising b₀ |
| 266 | -- first gives the least power of ℓ whose valuation exceeds the length bound. |
| 267 | let m := ⌊(O.normLength b₀).toReal⌋₊ + 1 |
| 268 | have h_prec : (b₀ : ℕ∞) < addVal O (ℓ ^ m : ↑O) := by |
| 269 | apply O.normLength_mono.reflect_lt |
| 270 | rw [normLength_addVal_pow] |
| 271 | apply (ENNReal.toReal_lt_toReal (by rw [CoeffRing.normLength_natCast]; finiteness) (by simp)).1 |
| 272 | simpa only [ENNReal.toReal_natCast] using Nat.lt_succ_floor (O.normLength b₀).toReal |
| 273 | have h_main : length O (ribetCocyclesVanishingOn u T (QuotSpan (ℓ ^ m : ↑O)) |
| 274 | (.range (withConjInv τ)) γ) ≤ b₀ := |
| 275 | ((length_ribetCocyclesVanishingOn_le hw hu_cont hu_unr hT_unr m γ).trans |
| 276 | (add_le_add (crystallineColength_le_sum_dualDefect hu_cl (fun v ↦ hT_cl v none) m) |
| 277 | (length_selmerCocycles_le_crystallineSelmerLength _ Q m γ))).trans_eq hb₀.symm |
| 278 | have h_eq := length_ribetCocyclesVanishingOn_divisibleQuot_eq_of_lt u T _ γ |
| 279 | (a := (ℓ ^ m : ↑O)) (NeZero.ne _) (h_main.trans_lt h_prec) |
| 280 | exact ⟨b₀, lossT, h_eq.trans_le h_main, hb₀, h_loc⟩ |
| 281 | |
| 282 | /-- Ribet's element for conjugate self-dual representations, with `t' = V.rankDiff`, the difference |
| 283 | `card n - card r` of the ranks of the descent pair `V`, and `r' = card r`. Let `V` with type |
| 284 | polynomials `c i` over the residue fields at its chosen places above `p₀`, `p₁` form a lift setting |
| 285 | for `ϑ` (`IsLiftSetting`), and let `ψ` be an auxiliary twist of modulus `Q` with ramification at |
| 286 | most `ram` (`IsAuxTwist`). Write `v = ellVal`, `N = D.chosenGroupOrder` and `halfGap = D.r ^ 8`. Let |
| 287 | the places `w j`, with tame generators `τ j`, elements `φ j` and exponents `0 < ty j < t'`, form a |
| 288 | triangle of primes for `g₀` (`IsPrimeTriangle`) up to `ℓ ^ (halfGap h)` with bound `halfGap ^ 22 h`, |
| 289 | where `h ≤ v(N)`. Let `u x`, `x : Y`, be finitely many conjugate self-dual representations with |
| 290 | Hodge–Tate jumps `J'` and level `Q`, the `w j` and their conjugates, on which inertia at the chosen |
| 291 | places acts through the roots of the rescaled polynomials `scaledTypePoly V c i` and `1` |
| 292 | (`IsRepOfType`), and inertia above `Q` and `Q̄` satisfies `(g - ψ g) (g - 1) = 0`. For `x ∈ 𝓧` let |
| 293 | `u x` have the trace of `ψ (R x)` plus the characters `O(-e)`, `e < t'`. Here `R x` is a main |
| 294 | summand, and `ψ (R x)` has a lattice on which `γ x` acts by a scalar. Let `S` be an algebra |
| 295 | of families, indexed by `Y`, of polynomials in variables `X j`, and let the `S`-module `𝒥` contain |
| 296 | `ℓ ^ ν` times the traces and the traces of the relations `τ j - 1 - X j (φ j - 1) H j (φ j)` |
| 297 | (`IsTraceIdeal`), with `H j (1) = 1`. At one `π ∈ 𝓧` let the Selmer group of `ψ (R π)` with |
| 298 | divisible coefficients have length at most `sel < ∞`. Then the determinants `det (1 - u x g)` lie in |
| 299 | `S` and vanish on `𝓧`, and there is one `f ∈ S`, the Ribet element, that multiplies each of them |
| 300 | into `𝒥`, has on `𝓧` no monomial properly dividing `∏ X j`, and whose coefficient `d` of `∏ X j` at |
| 301 | `π` satisfies `v(d) + 2 v(N) ≤ sel + 2 t' ram + r' loc + e_ℓ`, with the explicit bounds |
| 302 | `loc = localDefectBound D ℓ` and `e_ℓ = denominatorError D ℓ`. -/ |
| 303 | lemma ribet_columns {ν : ℕ} {w : K → FinPlace D.E} {τ φ : K → AbsGal D} |
| 304 | [PadicIso ℓ] {V : DescentPair D.E r n} |
| 305 | {c : ∀ i : V.ChosenIndex, (ResField (V.chosenPlace i))[X]} {ϑ : D.Twist} |
| 306 | (hc : IsLiftSetting V c ϑ) |
| 307 | {ψ : AbsGal D →* PadicAlgCl ℓ} {Q : Finset (FinPlace D.E)} {ram : ℝ≥0∞} |
| 308 | (h_twist : IsAuxTwist (badPlaces D ℓ) Q ψ ram) |
| 309 | -- the triangle of new places |
| 310 | [Fintype K] [LinearOrder K] {ty : K →o {e : Fin V.rankDiff // 0 < e.val}} {g₀ : AbsGal D} |
| 311 | {h : ℕ} (h_le : h ≤ padicValNat ℓ D.chosenGroupOrder) |
| 312 | (h_tri : IsPrimeTriangle ν w τ φ g₀ V.rankDiff ty (D.halfGap * h) (D.halfGap ^ 22 * h)) |
| 313 | -- the representations of a type |
| 314 | {u : Y → GalRep ℓ D.E n} {J' : (D.E →+* ℂ) → Multiset ℤ} |
| 315 | (h_type : ∀ x : Y, IsRepOfType V V.rankDiff J' |
| 316 | (fun i : V.ChosenIndex ↦ scaledTypePoly V c i * (X - 1) ^ V.rankDiff) |
| 317 | (.conjClosure Q ∪ (Set.range w).conjClosure) (u x)) |
| 318 | (h_quad : ∀ x : Y, ∀ g ∈ inertiaAbove (Set.conjClosure Q), |
| 319 | ((u x g).val - ψ g • 1) * ((u x g).val - 1) = 0) |
| 320 | -- the lifts and their main summands |
| 321 | {𝓧 : Set Y} {J : 𝓧 → (D.E →+* ℂ) → Multiset ℤ} {R : 𝓧 → GalRep ℓ D.E r} |
| 322 | (h_summand : ∀ x : 𝓧, IsMainSummandLike D V.rankDiff (J x) (R x)) |
| 323 | (h_trace : ∀ (x : 𝓧) (g : AbsGal D), (u x g).val.trace = |
| 324 | ψ g * (R x g).val.trace + ∑ e ∈ range V.rankDiff, cyclotomicInv ℓ D.E (PadicAlgCl ℓ) g ^ e) |
| 325 | {γ : 𝓧 → AbsGal D} |
| 326 | (h_lat : ∀ x : 𝓧, HasTwistedLattice ψ (R x) (γ x)) |
| 327 | -- the tied relations |
| 328 | {S : Subalgebra (intQpBar ℓ) (Y → MvPolynomial K (PadicAlgCl ℓ))} |
| 329 | {𝒥 : Submodule S (Y → MvPolynomial K (PadicAlgCl ℓ))} {H : K → (intQpBar ℓ)[X]} |
| 330 | (h𝒥 : IsTraceIdeal 𝒥 (fun (x : Y) (g : AbsGal D) ↦ (u x g).val) (ℓ ^ ν) τ φ id H) |
| 331 | (hH : ∀ j : K, (H j).eval 1 = 1) |
| 332 | -- the lift, and the Selmer group of its twisted main summand with divisible coefficients |
| 333 | (π : 𝓧) {sel : ℝ≥0∞} (h_sel : HasDivisibleSelmerLengthLe ψ (R π) Q (γ π) sel) |
| 334 | (h_fin : sel ≠ ⊤) : |
| 335 | ∃ d : PadicAlgCl ℓ, |
| 336 | IsCommonRibetElement 𝒥 (fun (g : AbsGal D) (x : Y) ↦ (1 - (u x g).val).det) π d ∧ |
| 337 | ellVal d + 2 * padicValNat ℓ D.chosenGroupOrder ≤ |
| 338 | sel + 2 * V.rankDiff * ram + card r * localDefectBound D ℓ + denominatorError D ℓ := by |
| 339 | classical |
| 340 | -- Choose a ring `O` that carries all data, check the hypotheses of Ribet's lemma |
| 341 | -- `exists_isCommonRibetElement_addVal_le` over `O`, and add up the losses in its bound for `d`. |
| 342 | obtain ⟨-, hψ : IsFromU1 (placesDividing D.E ℓ) Q ψ, -⟩ := id h_twist |
| 343 | have : NeZero V.rankDiff := .of_pos hc.odd.2.pos |
| 344 | let ϵ : Sigma (SummandCoordIndex r (t := V.rankDiff)) ≃ n := |
| 345 | equivOfCardEq (by simp! [V.rank_lt.le]) |
| 346 | have h_dual (x : Y) : IsConjSelfDual V.rankDiff (u x) := (h_type x).toIsConjSelfDual |
| 347 | -- the models: at `π` the one of `h_sel`, with its Selmer bound; elsewhere those of `h_lat` |
| 348 | have h_lat' (x : 𝓧) : ∀ᶠ O : CoeffRing ℓ in atTop, |
| 349 | ∃ (u : AbsGal D →* Matrix r r O) (ψ' : AbsGal D →* O) (ζ' : ↑O), |
| 350 | IsTwistedLattice ψ (R x) (γ x) u ψ' ζ' ∧ |
| 351 | (x = π → O.normLength (crystallineSelmerLength (twistRep (.id O) ψ' u) Q (γ x)) ≤ sel) := by |
| 352 | obtain rfl | hx := eq_or_ne x π |
| 353 | · exact Eventually.mono h_sel fun _ ⟨u, ψ', ζ', h_tw, h_le⟩ ↦ ⟨u, ψ', ζ', h_tw, fun _ ↦ h_le⟩ |
| 354 | · exact Eventually.mono (h_lat x) fun _ ⟨u, ψ', ζ', h_tw⟩ ↦ ⟨u, ψ', ζ', h_tw, hx.elim⟩ |
| 355 | obtain ⟨O, h_def, h_odd, ⟨H', hH', hH'_one⟩, R₀, ψ', ζ', u', h_model, hT_span, hu', hu'_block⟩ := |
| 356 | (eventually_exists_inClass_sum_dualDefect_le hc (h_summand π) h_type ϵ π |>.and <| |
| 357 | eventually_length_shaOdd_le D ℓ |>.and <| |
| 358 | eventually_exists_map_eq_and_eval_one hH |>.and <| |
| 359 | eventually_exists_twistedLattice_and_block_lattices h_dual h_summand h_trace h_lat' ϵ).exists |
| 360 | choose h_tw h_selT using h_model |
| 361 | -- the main summands `T x` of the lattices `u' x`, `x ∈ 𝓧` |
| 362 | let T (x : 𝓧) : AbsGal D →* Matrix r r O := twistRep (.id O) (ψ' x) (R₀ x) |
| 363 | have hu'_cont (x : Y) : Continuous (u' x) := (hu' x).continuous (h_type x).continuous |
| 364 | have hu'_unr (g : AbsGal D) (hg : g ∈ inertiaAbove (placesDividing D.E ℓ ∪ placesAboveM D ∪ |
| 365 | (.conjClosure Q ∪ (Set.range w).conjClosure))ᶜ) (x : Y) : u' x g = 1 := |
| 366 | (hu' x).eq_one ((h_type x).eq_one_of_mem_inertiaAbove g hg) |
| 367 | -- the classes of local lattices above `ℓ`, and the losses and the Selmer group at the lift |
| 368 | have hT_loc : ∀ v ∈ placesDividing D.E ℓ, ∀ g ∈ decompGroup (AbsGal D) (placeOver v), |
| 369 | T π g = R₀ π g := fun v hv g hg ↦ (h_tw π).twistRep_apply_eq_of_eq_one |
| 370 | (hψ.eq_one_of_mem_decompGroup hv v.isPlaceOver_placeOver hg) |
| 371 | obtain ⟨F, C, U, hu_cl, hT_cl, h_sum⟩ := |
| 372 | h_def (T π) (R₀ π) u' (hu'_block π) hu' (h_tw π).isLatticeIn hT_loc |
| 373 | replace h_selT : O.normLength (crystallineSelmerLength (T π) Q (γ π)) ≤ sel := h_selT π rfl |
| 374 | have hw : IsTameGeneratorFamily ν w τ φ := h_tri.isTameGeneratorFamily |
| 375 | obtain ⟨b₀, lossT, hb₀, hb₀_eq, h_loc⟩ := |
| 376 | exists_length_le_loss_add_crystallineSelmerLength hw hu_cl hT_cl h_sum hu'_cont hu'_unr |
| 377 | ((h_tw π).twistRep_eq_one_of_mem_inertiaAbove hψ (h_summand π)) (γ π) h_selT h_fin |
| 378 | -- the tame places, and the test points `s`, which detect cocycles together with `g₀` |
| 379 | obtain ⟨W, _, q, δ, o, hq, hq_cover, hδ, ho⟩ := |
| 380 | exists_tame_relations hc h_twist h_type h_quad hu' (h_tw π).twist_eq |
| 381 | obtain ⟨s, -, hs_card : (card K + (#s + 1)) * (D.halfGap * h) ≤ D.halfGap ^ 22 * h, hs, -⟩ := |
| 382 | h_tri.exists_test_points |
| 383 | have h_detect (e : ℕ) : IsDetectedBy (selmerModule (tateTwist ℓ D.E O e) (placesDividing D.E ℓ) ∅ |
| 384 | (QuotSpan (ℓ ^ ν : ↑O))) (insert g₀ s) := |
| 385 | fun z hz h_zero ↦ hs O e z hz (h_zero g₀ (by simp)) fun g hg ↦ h_zero g (by simp [hg]) |
| 386 | let s' : Finset (AbsGal D) := insert g₀ s ∪ image (withConjInv τ) univ |
| 387 | have hs'_card : #s' ≤ 2 * (card K + (#s + 1)) := by |
| 388 | grw [card_union_le, card_insert_le, card_image_le, card_univ, card_prod, card_bool] |
| 389 | omega |
| 390 | -- the characters `χ e`, which `g₀` separates up to `ℓ ^ (halfGap h)` |
| 391 | let χ (e : Fin V.rankDiff) : AbsGal D →* O := cyclotomicInv ℓ D.E O ^ e.val |
| 392 | have h_sep (e : Fin V.rankDiff) : ∏ e' ∈ {e}ᶜ, (χ e g₀ - χ e' g₀) ∣ ℓ ^ (D.halfGap * h) := by |
| 393 | simpa [χ, cyclotomicInv] using map_dvd (algebraMap ℤ_[ℓ] O) (h_tri.prod_dvd e) |
| 394 | let ϵ' : r ⊕ Fin V.rankDiff ≃ n := (summandCoordIndexEquiv r V.rankDiff).trans ϵ |
| 395 | have h_block (x : 𝓧) (g : AbsGal D) : |
| 396 | u' x g = reindex ϵ' ϵ' (fromBlocks (T x g) 0 0 (diagonal fun e ↦ χ e g)) := by |
| 397 | simp [ϵ', χ, T, hu'_block x, blockDiagonal'_summandRep] |
| 398 | have hχγ (x : 𝓧) (e : Fin V.rankDiff) : χ e (γ x) = 1 := by |
| 399 | simp [χ, cyclotomicInv, (h_tw x).cyclotomicChar_eq_one] |
| 400 | have hχδ (k : W × Bool) (e : Fin V.rankDiff) : χ e (withConjInv δ k) = 1 := by |
| 401 | simp [χ, (hq.cyclotomicInv_withConjInv_eq_one_and_dvd O k).1] |
| 402 | -- the trace ideal over `O` for the doubled families, whose factors are `1` modulo `ℓ ^ ν` |
| 403 | have h𝒥' := h𝒥.of_isLatticeIn hw h_dual hu' hH' |
| 404 | have hH'_dvd (e : Fin V.rankDiff) (k : K × Bool) : |
| 405 | (ℓ ^ ν : ↑O) ∣ (H' k.1).eval (χ e (withConjInv φ k)) - 1 := |
| 406 | hw.dvd_eval_cyclotomicInv_sub_one (hH'_one k.1) e k |
| 407 | -- the cost of the character `χ e` |
| 408 | let cost (e : Fin V.rankDiff) : ℕ∞ := |
| 409 | crystallineColength (tateTwist ℓ D.E O e) u' ν + length O (shaOdd ℓ D.E O e ν) |
| 410 | have h_cost (e : Fin V.rankDiff) (Z : Submodule O (AbsGal D → Unit → QuotSpan (ℓ ^ ν : ↑O))) |
| 411 | (hZ : ∀ z ∈ Z, IsCharacterCocycle u' (χ e) (withConjInv δ) (γ π) g₀ z) : |
| 412 | HasTriangleCost Z τ (fun j ↦ (conjGal (τ j))⁻¹) φ (fun j ↦ (conjGal (φ j))⁻¹) |
| 413 | {j : K | (ty j).val = e} (ℓ ^ (D.halfGap * h)) (cost e) ∧ IsDetectedBy Z s' := |
| 414 | hasTriangleCost_of_isCharacterCocycle h_tri hu'_cont hq hq_cover hu'_unr e |
| 415 | (h_tw π).mem_inertiaAbove (h_detect e) hZ |
| 416 | obtain ⟨d, ⟨h_mem, h_zero, f, hf_mem, hf_low, hf_top⟩, hd_le⟩ := |
| 417 | exists_isCommonRibetElement_addVal_le u' _ ϵ' π T |
| 418 | (hξ₀ := by simp [χ]) (hu_block := h_block) (hρ_span := hT_span π) |
| 419 | (hργ := fun x ↦ (h_tw x).apply_eq_smul) (hy_unit := fun x ↦ (h_tw x).isUnit_sub_one) |
| 420 | (hξγ := hχγ) (hp := NeZero.ne _) (h𝒥 := h𝒥') (hε := hH'_dvd) (a := g₀) (hC_dvd := h_sep) |
| 421 | (ty := ⟨fun j ↦ ty j, ty.mono⟩) (hb₀ := hb₀) (hξδ := hχδ) (hδ_poly := hδ) (hb := h_cost) |
| 422 | rw [hb₀_eq] at hd_le |
| 423 | have ht' : V.rankDiff ≤ D.t := (h_summand π).t_le |
| 424 | refine ⟨d, ?_, ellVal_add_le_of_addVal_le ht' h_le hs_card hs'_card h_loc h_selT |
| 425 | (fun e ↦ h_odd e (e.isLt.trans_le ht') ν) ho hd_le⟩ |
| 426 | -- `det (1 - u x g)` is the determinant of the combination `∑ ω g' (u' x g' - 1)`, where the |
| 427 | -- coefficient function `ω` is `-1` at `g` and `0` elsewhere |
| 428 | simp only [(hu' _).det_one_sub] |
| 429 | exact ⟨fun g ↦ h_mem _, fun g x ↦ h_zero _ x, f, fun g ↦ hf_mem _, hf_low, hf_top⟩ |
| 430 | |
| 431 | end RibetColumns |
| 432 | |
| 433 | end New.Selmer |