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 | public import New.Congruences.FirstOrder.EvenClasses |
| 4 | public import New.Congruences.FirstOrder.FittingBlock |
| 5 | public import New.Congruences.LocalLoss.Basic |
| 6 | import Lib.ClassField.GaloisCohomology.TameSelmerCocycles |
| 7 | import Lib.PadicHodge.BlochKato |
| 8 | |
| 9 | /-! |
| 10 | # Cocycles of Tate twists: the even part and the triangle cost |
| 11 | |
| 12 | This file studies cocycles of `Gal(Ω/E)` with values in a twist `(O/ℓ^ν)(-e)` |
| 13 | (`New.Selmer.tateTwist`). It shows that the even part of a cocycle lies in the even classes. |
| 14 | It shows that a cocycle that obeys the crystalline relations above `ℓ` vanishes on |
| 15 | `New.Selmer.shaLocalSet`. It also shows that a triangle of primes gives a triangle cost. |
| 16 | |
| 17 | ## Main definitions and results |
| 18 | |
| 19 | * `New.Selmer.add_conjGal_mem_evenClasses`: let `e ≠ 0`, and let a cocycle with values in |
| 20 | `(O/ℓ^ν)(-e)` be unramified off ℓ, S and S̄ and zero on `New.Selmer.shaLocalSet`. Then its even |
| 21 | part `c + c ∘ New.conjGal` lies in `New.Selmer.evenClasses`. |
| 22 | * `New.Selmer.hasTriangleCost_tateTwist`: let the tame generator family `w j`, with elements `τ j`, |
| 23 | `φ j` and exponents `ty j`, form a triangle for `g₀` that holds up to `ℓ ^ h` |
| 24 | (`New.Selmer.IsPrimeTriangle`), and let `e < t`. Let `Z` be a module of cocycles with values in |
| 25 | `(O/ℓ^ν)(-e)`, unramified off `ℓ`, the `w j` and their conjugates, and let |
| 26 | `cyclotomicInv g₀ ^ e - 1` kill the value at `g₀` of each member unramified off `ℓ`. Then the |
| 27 | triangle cost of `Z` (`New.Selmer.HasTriangleCost`) is bounded by its length relative to the |
| 28 | cocycles obeying the crystalline relations plus the length of the odd classes. |
| 29 | |
| 30 | Notions from other files: |
| 31 | * `New.Selmer.tateTwist`: the rank-one representation `O(-e)`, given by the power `e` of the inverse |
| 32 | `New.Selmer.cyclotomicInv` of the cyclotomic character. `New.conjGal`: the map g ↦ g^c = cgc, |
| 33 | with c the chosen complex conjugation. |
| 34 | * `New.Selmer.shaLocalSet`: the union of the inertia groups above `ℓ` if `e = 0`; otherwise the |
| 35 | elements of the decomposition groups above `ℓ` with trivial cyclotomic character. |
| 36 | * `New.Selmer.evenClasses`, `New.Selmer.shaOdd`: cocycles in `(O/ℓ^ν)(-e)` with local conditions |
| 37 | above `ℓ`. Even classes are invariant under `New.conjGal`; odd classes are unramified off `ℓ` and, |
| 38 | if `e ≠ 0`, change sign under it. |
| 39 | * `New.Selmer.IsPrimeTriangle`: a linearly ordered tame generator family `w j` with monotone |
| 40 | exponents `ty j`. An even class of exponent `ty j` that kills the earlier `τ i`, and the earlier |
| 41 | `φ i` of the same exponent, has its value at `τ j` killed by `ℓ ^ h`. Finitely many test points |
| 42 | and `g₀` detect the cocycles unramified off `ℓ`, and `g₀` separates the characters up to `ℓ ^ h`. |
| 43 | * `New.Selmer.HasTriangleCost Z τ τ' φ φ' I C b`: for the members `Z₀` of `Z` that vanish on some |
| 44 | set, agreement at the earlier pairs `τ i`, `τ' i` and, for `i ∈ I`, `φ i`, `φ' i` gives agreement |
| 45 | at `τ j`, `τ' j` up to `C` for `j ∈ I`. The length of `Z / Z₀`, plus the length modulo `C`-torsion |
| 46 | of any submodule of `Z₀` that is zero at all `τ j`, `τ' j` and agrees at the `φ j`, `φ' j` with |
| 47 | `j ∈ I`, is at most `b`. |
| 48 | |
| 49 | ## Relation to the literature |
| 50 | |
| 51 | See `New.Congruences.FirstOrder.RibetElement` for related work. |
| 52 | -/ |
| 53 | |
| 54 | @[expose] public section |
| 55 | |
| 56 | namespace New.Selmer |
| 57 | |
| 58 | section TateTwistSteps |
| 59 | |
| 60 | open LinearMap Module Finset |
| 61 | |
| 62 | variable {ℓ : ℕ} [ThePrime ℓ] {E J : Type} [Field E] [CMFieldWithRoot5040 E] {O : CoeffRing ℓ} |
| 63 | |
| 64 | /-- Let `e ≠ 0`, and let `c` be a continuous cocycle with values in `(O/ℓ^ν)(-e)` that is unramified |
| 65 | outside `ℓ` and `S ∪ S̄` and vanishes on `shaLocalSet ℓ E e`. Then the even part `c + c ∘ conjGal`, |
| 66 | with `conjGal` conjugation by complex conjugation, is an even class (`evenClasses`): a cocycle with |
| 67 | the same properties that is invariant under `conjGal`. -/ |
| 68 | lemma add_conjGal_mem_evenClasses {e ν : ℕ} {S : Set (FinPlace E)} |
| 69 | {c : Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O)} (he : e ≠ 0) |
| 70 | (hc_sel : c ∈ selmerModule (tateTwist ℓ E O e) (placesDividing E ℓ ∪ S.conjClosure) ∅ |
| 71 | (QuotSpan (ℓ ^ ν : ↑O))) |
| 72 | (hc_local : ∀ g ∈ shaLocalSet ℓ E e, c g = 0) : c + c ∘ conjGal ∈ evenClasses O S ν e := by |
| 73 | -- Conjugation fixes `cyclotomicChar` and permutes the places above `ℓ` and those of |
| 74 | -- `S.conjClosure`; so `c ∘ conjGal` has the properties assumed of `c`, and the sum is invariant |
| 75 | -- under `conjGal`. |
| 76 | obtain ⟨h_cocycle, h_unram, -, h_locConst⟩ := mem_selmerModule_iff.1 hc_sel |
| 77 | -- for `e ≠ 0` the set `shaLocalSet ℓ E e` does not depend on `e` |
| 78 | have h_loc : ∀ g ∈ shaLocalSet ℓ E 1, c g = 0 := by simpa [shaLocalSet, he] using hc_local |
| 79 | refine ⟨mem_selmerModule_iff.2 ⟨fun g g' ↦ ?_, fun g hg ↦ ?_, by simp [mem_obeying], |
| 80 | h_locConst.add (h_locConst.comp_continuous continuous_conjGal)⟩, |
| 81 | fun g ↦ by simp [add_comm], fun g hg ↦ ?_⟩ |
| 82 | · -- the cocycle identity: `g` and `conjGal g` act alike on the twist |
| 83 | simpa [h_cocycle, tateTwist, cyclotomicInv] using add_add_add_comm .. |
| 84 | · -- `conjGal g` lies in the inertia group of the conjugate place, which is again outside |
| 85 | let ⟨v, hv, A, hA, hgA⟩ := hg |
| 86 | have hv_star : star v ∉ placesDividing E ℓ ∪ S.conjClosure := by |
| 87 | simpa [star_mem_placesDividing, and_comm] using hv |
| 88 | have h_conj : c (conjGal g) = 0 := |
| 89 | h_unram _ ⟨star v, hv_star, conjPlace A, hA.conjPlace_star, hgA.conjPlace_conjGal⟩ |
| 90 | simp [h_unram g hg, h_conj] |
| 91 | · -- `conjGal g` lies in the kernel of `cyclotomicChar` and in the decomposition group of the |
| 92 | -- conjugate place |
| 93 | let ⟨A, hA, hgA, h_cyc⟩ := hg |
| 94 | have h_conj_mem : conjGal g ∈ shaLocalSet ℓ E 1 := ⟨conjPlace A, comap_apply_lt_one_iff.2 |
| 95 | (by simpa using hA), decompGroup.map cmConj_conjGal_smul hgA, by simpa using h_cyc⟩ |
| 96 | simp [h_loc g hg, h_loc _ h_conj_mem] |
| 97 | |
| 98 | open Matrix.Module in |
| 99 | /-- Let `τ j` be tame generators at places `w j` off `ℓ`, and let the `φ j` fix the `ℓ ^ ν`-th roots |
| 100 | of unity (`IsTameGeneratorFamily`), so that all of them act trivially on `(O/ℓ^ν)(-e)`. Let `z` be a |
| 101 | cocycle with values there. Then the value of `z` at `(conjGal (τ j))⁻¹`, which is |
| 102 | `withConjInv τ (j, false)`, is `-z (conjGal (τ j))`, and likewise for `φ j`. -/ |
| 103 | lemma apply_withConjInv_false_eq_neg {e ν : ℕ} {w : J → FinPlace E} {τ φ : J → Gal(Ω/E)} |
| 104 | (hw : IsTameGeneratorFamily ν w τ φ) {z : Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O)} |
| 105 | (h_coc : ∀ g g' : Gal(Ω/E), z (g * g') = z g + tateTwist ℓ E O e g • z g') (j : J) : |
| 106 | z (withConjInv τ (j, false)) = -z (conjGal (τ j)) ∧ |
| 107 | z (withConjInv φ (j, false)) = -z (conjGal (φ j)) := by |
| 108 | -- The cyclotomic character is `1` at `τ j`, and `1` modulo `ℓ ^ ν` at `φ j`. Where the action is |
| 109 | -- trivial, `z g⁻¹ = -z g`. |
| 110 | obtain ⟨h_eq_one, h_dvd⟩ : cyclotomicInv ℓ E O (withConjInv τ (j, false)) = 1 ∧ |
| 111 | ∀ i : ℕ, (ℓ ^ ν : ↑O) ∣ cyclotomicInv ℓ E O (withConjInv φ (j, false)) ^ i - 1 := |
| 112 | hw.cyclotomicInv_withConjInv_eq_one_and_dvd O (j, false) |
| 113 | have h_τ : cyclotomicChar Ω ℓ (τ j) = 1 := by simpa [cyclotomicInv, idOrConjInv] using h_eq_one |
| 114 | have h_φ (x : QuotSpan (ℓ ^ ν : ↑O)) : |
| 115 | algebraMap ℤ_[ℓ] O (cyclotomicChar Ω ℓ (φ j)) ^ e • x = x := by |
| 116 | simpa [cyclotomicInv, idOrConjInv, sub_smul, sub_eq_zero] using |
| 117 | smul_quot_eq_zero_of_dvd (h_dvd e) x |
| 118 | constructor |
| 119 | · simp [cocycle_apply_inv h_coc, h_τ, idOrConjInv, tateTwist, cyclotomicInv] |
| 120 | · simp [cocycle_apply_inv h_coc, h_φ, idOrConjInv, tateTwist, cyclotomicInv, funext_iff] |
| 121 | |
| 122 | open Matrix.Module in |
| 123 | /-- Let `z` be a cocycle of `Gal(Ω/E)` with values in `(O/ℓ^ν)(-e)`, the Tate twist `O(-e)` modulo |
| 124 | `ℓ^ν`, that obeys the linear relations `crysRelations` of the crystalline cocycles at each place |
| 125 | above `ℓ`. Then `z` vanishes on `shaLocalSet ℓ E e`: on the inertia groups above `ℓ` if `e = 0`, and |
| 126 | otherwise on the elements of the decomposition groups above `ℓ` with trivial cyclotomic |
| 127 | character. -/ |
| 128 | lemma apply_eq_zero_of_mem_obeying_crysRelations {e ν : ℕ} |
| 129 | {z : Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O)} |
| 130 | (h_coc : ∀ g g' : Gal(Ω/E), z (g * g') = z g + tateTwist ℓ E O e g • z g') |
| 131 | (h_crys : z ∈ obeying (crysRelations (tateTwist ℓ E O e)) (QuotSpan (ℓ ^ ν : ↑O))) |
| 132 | {g : Gal(Ω/E)} (hg : g ∈ shaLocalSet ℓ E e) : z g = 0 := by |
| 133 | -- Conjugate `g` by some `s` into the decomposition group of the chosen place `placeOver v`. |
| 134 | -- Crystalline cocycles vanish at `s * g * s⁻¹`, so this element alone is a local relation. |
| 135 | obtain ⟨A, hA, hg⟩ := hg |
| 136 | obtain ⟨v, hv⟩ := exists_isPlaceOver_of_val_ne_one E NeZero.out hA.ne |
| 137 | obtain ⟨s, hs⟩ := hv.exists_smul Gal(Ω/E) v.isPlaceOver_placeOver |
| 138 | obtain ⟨h_dec, h_one, h_ine⟩ : g ∈ decompGroup Gal(Ω/E) A ∧ tateTwist ℓ E O e g = 1 ∧ |
| 139 | (e = 0 → g ∈ inertiaGroup Gal(Ω/E) A) := by |
| 140 | split_ifs at hg with he |
| 141 | · exact ⟨hg.1, by simp [*, tateTwist, cyclotomicInv]⟩ |
| 142 | · exact ⟨hg.1, by simp [*, tateTwist, cyclotomicInv]⟩ |
| 143 | have h_dec' : s * g * s⁻¹ ∈ decompGroup Gal(Ω/E) (placeOver v) := by |
| 144 | simpa only [hs] using conj_mem_decompGroup_smul (g := s) h_dec |
| 145 | have h_one' : tateTwist ℓ E O e (s * g * s⁻¹) = 1 := (MonoidHom.normal_ker _).conj_mem g h_one s |
| 146 | have h_ine' (he : e = 0) : s * g * s⁻¹ ∈ inertiaGroup Gal(Ω/E) (placeOver v) := by |
| 147 | rw [← hs] |
| 148 | exact IsFrob.conj (h_ine he) s |
| 149 | let vℓ : placesDividing E ℓ := ⟨v, hv.valuation_natCast_lt_one_iff.1 hA⟩ |
| 150 | have h_zero y (hy : y ∈ crysCocyclesAt vℓ (tateTwist ℓ E O e)) : y ⟨s * g * s⁻¹, h_dec'⟩ = 0 := |
| 151 | Period.crysCocycles.apply_eq_zero_of_cyclotomicGp (𝒥 := _) (tateTwist_smul e) hy |
| 152 | (LinearMap.ext (by simp [h_one'])) |
| 153 | fun he ↦ (localChart ..).isWeilPair_zero_iff.2 (h_ine' he) |
| 154 | have h_conj : z (s * g * s⁻¹) = 0 := by |
| 155 | let rel : decompGroup Gal(Ω/E) (placeOver v) →₀ Matrix Unit Unit O := |
| 156 | .single ⟨s * g * s⁻¹, h_dec'⟩ 1 |
| 157 | simpa [rel] using mem_obeying.1 h_crys _ |
| 158 | ⟨_, ⟨vℓ, rfl⟩, rel, fun y hy ↦ by simp [rel, h_zero y hy], rfl⟩ |
| 159 | -- Conjugating by s transports the cocycle value by a unit, so zero is detected on either side. |
| 160 | exact ((Group.isUnit s).map (tateTwist ℓ E O e)).smul_eq_zero.mp <| |
| 161 | (cocycle_conj_eq_smul h_coc (γ := s) (g := g) (by rw [h_one, one_smul])).symm.trans h_conj |
| 162 | |
| 163 | /-- Let the places `w j` off `ℓ`, with tame generators `τ j`, elements `φ j` and exponents |
| 164 | `0 < ty j < t`, form a triangle of primes for `g₀` up to `ℓ ^ h` (`IsPrimeTriangle`), and let |
| 165 | `0 < e < t`. Let `z` be a cocycle for `O(-e)` modulo `ℓ ^ ν` that is unramified off `ℓ` and |
| 166 | invariant under `conjGal`, whose value at `g₀` is killed by `cyclotomicInv g₀ ^ e - 1` and whose |
| 167 | even part `z + z ∘ conjGal` is an even class that vanishes at the `φ j` with `ty j = e`. Then |
| 168 | `ℓ ^ h` kills the value of `z` at every element of `Gal(Ω/E)`. -/ |
| 169 | private lemma pow_smul_apply_eq_zero_of_comp_conjGal_eq [Fintype J] [LinearOrder J] {ν : ℕ} |
| 170 | {w : J → FinPlace E} {τ φ : J → Gal(Ω/E)} {t : ℕ} {g₀ : Gal(Ω/E)} {h c : ℕ} {e : Fin t} |
| 171 | {ty : J →o {k : Fin t // 0 < k.val}} (h_tri : IsPrimeTriangle ν w τ φ g₀ t ty h c) |
| 172 | (he : e.val ≠ 0) {z : Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O)} |
| 173 | (hz_g₀ : (cyclotomicInv ℓ E O g₀ ^ e.val - 1) • z g₀ = 0) |
| 174 | (hz_unr : z ∈ selmerModule (tateTwist ℓ E O e) (placesDividing E ℓ) ∅ |
| 175 | (QuotSpan (ℓ ^ ν : ↑O))) |
| 176 | (hz_even : z + z ∘ conjGal ∈ evenClasses O ∅ ν e) |
| 177 | (hz_φ : ∀ j : J, (ty j).val = e → (z + z ∘ conjGal) (φ j) = 0) |
| 178 | (h_conj : z ∘ conjGal = z) (g : Gal(Ω/E)) : (ℓ ^ h : ↑O) • z g = 0 := by |
| 179 | -- At a test point `i` we have `4 z(i) = 2 z(φ j) = 0` for some `j` of type `e`. |
| 180 | let e' : {k : Fin t // 0 < k.val} := ⟨e, Nat.pos_of_ne_zero he⟩ |
| 181 | obtain ⟨s, -, -, hs, hs_even⟩ := h_tri.exists_test_points |
| 182 | have h_points (i : Gal(Ω/E)) (hi : i ∈ s) : ((4 : ↑O) • z) i = 0 := by |
| 183 | obtain ⟨j, hj, h_read⟩ := hs_even e' i hi |
| 184 | calc ((4 : ↑O) • z) i = 2 • (z + z ∘ conjGal) i := by |
| 185 | rw [h_conj, Pi.smul_apply, Pi.add_apply] |
| 186 | module |
| 187 | _ = (z + z ∘ conjGal) (φ j) := (h_read O _ hz_even).symm |
| 188 | _ = 0 := hz_φ j (by simp [hj, e']) |
| 189 | -- With `d = cyclotomicInv g₀ ^ e - 1`, the cocycle `4 d z` vanishes at `g₀` and at the test |
| 190 | -- points, so it is zero, and `4 d` divides `ℓ ^ h`. |
| 191 | let d : ↑O := cyclotomicInv ℓ E O g₀ ^ e.val - 1 |
| 192 | have h_kill : d • (4 : ↑O) • z = 0 := by |
| 193 | refine hs O e _ (Submodule.smul_mem _ d (Submodule.smul_mem _ 4 hz_unr)) ?_ fun i hi ↦ ?_ |
| 194 | · rw [smul_smul, mul_comm, mul_smul, Pi.smul_apply, Pi.smul_apply, hz_g₀, smul_zero] |
| 195 | · rw [Pi.smul_apply, h_points i hi, smul_zero] |
| 196 | obtain ⟨a, ha⟩ : 4 * d ^ 2 ∣ (ℓ ^ h : ↑O) := h_tri.four_mul_sq_dvd O e' |
| 197 | calc (ℓ ^ h : ↑O) • z g = ((a * d) • d • (4 : ↑O) • z) g := by |
| 198 | simp only [ha, Pi.smul_apply] |
| 199 | module |
| 200 | _ = 0 := by rw [h_kill, smul_zero, Pi.zero_apply] |
| 201 | |
| 202 | /-- Let the places `w j` off `ℓ`, with tame generators `τ j`, elements `φ j` and exponents |
| 203 | `0 < ty j < t`, form a triangle of primes for `g₀` (`IsPrimeTriangle`). The following is used: |
| 204 | `4 (cyclotomicInv g₀ ^ e - 1) ^ 2` divides `ℓ ^ h`; there are finitely many test points in the |
| 205 | Galois group such that a cocycle unramified off `ℓ` that vanishes at them and at `g₀` is zero; and |
| 206 | at each test point twice the value of an even class of exponent `e` unramified off `ℓ` |
| 207 | (`evenClasses`) is its value at some `φ j` with `ty j = e`. Let `0 < e < t`, and let `S` be a module |
| 208 | of cocycles for `O(-e)` modulo `ℓ^ν`, unramified off `ℓ` and zero on `shaLocalSet ℓ E e`, whose |
| 209 | values at `g₀` are killed by `cyclotomicInv g₀ ^ e - 1` and whose even parts vanish at the `φ j` |
| 210 | with `ty j = e`. Then the length of `S` modulo its `ℓ^h`-torsion (`relLength`) is at most that of |
| 211 | `shaOdd`, the cocycles with the same local conditions that change sign under `conjGal`. -/ |
| 212 | lemma relLength_torsionBy_le_length_shaOdd [Fintype J] [LinearOrder J] {ν : ℕ} |
| 213 | {w : J → FinPlace E} {τ φ : J → Gal(Ω/E)} {t : ℕ} {g₀ : Gal(Ω/E)} {h c : ℕ} {e : Fin t} |
| 214 | {ty : J →o {k : Fin t // 0 < k.val}} (h_tri : IsPrimeTriangle ν w τ φ g₀ t ty h c) |
| 215 | (he : e.val ≠ 0) {S : Submodule O (Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O))} |
| 216 | (hS_g₀ : ∀ z ∈ S, (cyclotomicInv ℓ E O g₀ ^ e.val - 1) • z g₀ = 0) |
| 217 | (hS_unr : ∀ z ∈ S, z ∈ selmerModule (tateTwist ℓ E O e) (placesDividing E ℓ) ∅ |
| 218 | (QuotSpan (ℓ ^ ν : ↑O))) |
| 219 | (hS_loc : ∀ z ∈ S, ∀ g ∈ shaLocalSet ℓ E e, z g = 0) |
| 220 | (hS_φ : ∀ z ∈ S, ∀ j : J, (ty j).val = e → (z + z ∘ conjGal) (φ j) = 0) : |
| 221 | relLength S (Submodule.torsionBy O (Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O)) (ℓ ^ h)) ≤ |
| 222 | length O (shaOdd ℓ E O e ν) := by |
| 223 | -- `z ↦ z ∘ conjGal - z` maps `S` to the odd classes, as it equals `(z + z ∘ conjGal) - z - z`. |
| 224 | -- Its kernel is killed by `ℓ ^ h`, as the `φ j` read the even classes at the test points. |
| 225 | have h_even z (hz : z ∈ S) : z + z ∘ conjGal ∈ evenClasses O ∅ ν e := add_conjGal_mem_evenClasses |
| 226 | he (mem_selmerModule_of_subset (hS_unr z hz) .rfl Set.subset_union_left) (hS_loc z hz) |
| 227 | let oddPart := funLeft O (Unit → QuotSpan (ℓ ^ ν : ↑O)) (conjGal : Gal(Ω/E) → Gal(Ω/E)) - 1 |
| 228 | rw [← relLength_bot] |
| 229 | refine relLength_le_of_mapsTo oddPart (fun z hz ↦ ?_) fun z hz h_ker ↦ funext fun g ↦ ?_ |
| 230 | · obtain ⟨h_sel, -, h_van⟩ := h_even z hz |
| 231 | have h_sum : z + z ∘ conjGal ∈ selmerModule (tateTwist ℓ E O e) (placesDividing E ℓ) ∅ |
| 232 | (QuotSpan (ℓ ^ ν : ↑O)) := |
| 233 | mem_selmerModule_of_subset h_sel .rfl (by simp) |
| 234 | have h_eq : oddPart z = z + z ∘ conjGal - z - z := funext fun g ↦ by simp [oddPart] |
| 235 | refine mem_shaOdd.2 ⟨fun g hg ↦ ?_, fun _ g ↦ by simp [oddPart], ?_⟩ |
| 236 | · simpa [oddPart, hS_loc z hz g hg] using h_van g (by simpa [shaLocalSet, he] using hg) |
| 237 | · rw [h_eq] |
| 238 | exact sub_mem (sub_mem h_sum (hS_unr z hz)) (hS_unr z hz) |
| 239 | · -- An even `z` is killed by `ℓ ^ h`, as the `φ j` read the even classes at the test points. |
| 240 | exact pow_smul_apply_eq_zero_of_comp_conjGal_eq h_tri he (hS_g₀ z hz) (hS_unr z hz) |
| 241 | (h_even z hz) (hS_φ z hz) (sub_eq_zero.1 h_ker) g |
| 242 | |
| 243 | /-- Let the places `w j`, with tame generators `τ j` and elements `φ j`, form a triangle of primes |
| 244 | for `g₀` up to `ℓ ^ h`, let `ty j = e`, and let `z` be a cocycle with values in `(O/ℓ^ν)(-e)`, |
| 245 | unramified off `ℓ`, the `w j` and their conjugates, that vanishes on `shaLocalSet ℓ E e`, and let |
| 246 | the values of `z` at `(conjGal (τ i))⁻¹` and `(conjGal (φ i))⁻¹` be the negatives of those at |
| 247 | `conjGal (τ i)` and `conjGal (φ i)` for every `i`. If `z` agrees at `τ i` and `(conjGal (τ i))⁻¹` |
| 248 | for `i < j`, and at `φ i` and `(conjGal (φ i))⁻¹` for those `i < j` with `ty i = e`, then |
| 249 | `ℓ ^ h • z` agrees at `τ j` and `(conjGal (τ j))⁻¹`. -/ |
| 250 | private lemma pow_smul_apply_eq_of_isPrimeTriangle [Fintype J] [LinearOrder J] {ν : ℕ} |
| 251 | {w : J → FinPlace E} {τ φ : J → Gal(Ω/E)} {t : ℕ} {g₀ : Gal(Ω/E)} {h c : ℕ} {e : Fin t} |
| 252 | {ty : J →o {k : Fin t // 0 < k.val}} (h_tri : IsPrimeTriangle ν w τ φ g₀ t ty h c) {j : J} |
| 253 | (hj : (ty j).val = e) {z : Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O)} |
| 254 | (hz : z ∈ selmerModule (tateTwist ℓ E O e) |
| 255 | (placesDividing E ℓ ∪ Set.conjClosure (Set.range w)) ∅ (QuotSpan (ℓ ^ ν : ↑O))) |
| 256 | (hzL : ∀ g ∈ shaLocalSet ℓ E e, z g = 0) |
| 257 | (h_inv : ∀ i, z (conjGal (τ i))⁻¹ = -z (conjGal (τ i)) ∧ |
| 258 | z (conjGal (φ i))⁻¹ = -z (conjGal (φ i))) |
| 259 | (h_prev : ∀ i < j, z (τ i) = z (conjGal (τ i))⁻¹ ∧ |
| 260 | (i ∈ ({k : J | (ty k).val = e} : Finset J) → z (φ i) = z (conjGal (φ i))⁻¹)) : |
| 261 | (ℓ ^ h : ↑O) • z (τ j) = (ℓ ^ h : ↑O) • z (conjGal (τ j))⁻¹ := by |
| 262 | -- By `h_inv`, the values of `z` at `τ i` and `(conjGal (τ i))⁻¹` agree exactly when |
| 263 | -- `z + z ∘ conjGal` kills `τ i`, and likewise for `φ i`; the triangle is then |
| 264 | -- `IsPrimeTriangle.pow_smul_eq_zero` for the even part `z + z ∘ conjGal`. |
| 265 | obtain rfl : (ty j).val = e := hj |
| 266 | have h_even : z + z ∘ conjGal ∈ evenClasses O (Set.range w) ν (ty j).val := |
| 267 | add_conjGal_mem_evenClasses (ty j).property.ne' hz hzL |
| 268 | simp only [h_inv] at h_prev ⊢ |
| 269 | have h_prev' : ∀ i < j, (z + z ∘ conjGal) (τ i) = 0 ∧ |
| 270 | (ty i = ty j → (z + z ∘ conjGal) (φ i) = 0) := by |
| 271 | simpa [eq_neg_iff_add_eq_zero, Subtype.ext_iff] using h_prev |
| 272 | have h_step : ℓ ^ h • (z + z ∘ conjGal) (τ j) = 0 := h_tri.pow_smul_eq_zero O j _ h_even h_prev' |
| 273 | simpa [← Nat.cast_smul_eq_nsmul O, eq_neg_iff_add_eq_zero] using h_step |
| 274 | |
| 275 | /-- Let the places `w j` off `ℓ`, with tame generators `τ j`, elements `φ j` and monotone exponents |
| 276 | `ty j`, form a triangle of primes for `g₀` up to `ℓ ^ h` (`IsPrimeTriangle`): among other clauses, |
| 277 | `ℓ ^ h` kills the value at `τ j` of an even class of exponent `ty j` that vanishes at the earlier |
| 278 | `τ i` and at the earlier `φ i` of that exponent; `c` bounds `h` times the number of places and test |
| 279 | points. Let `e < t`, and let `Z` be a module of cocycles with values in `(O/ℓ^ν)(-e)`, unramified |
| 280 | off `ℓ`, the `w j` and their conjugates; let `cyclotomicInv g₀ ^ e - 1` kill the value at `g₀` of |
| 281 | each member that is unramified off `ℓ`. Let `b` bound the length of `Z / (Z ⊓ Zf)` (`relLength`), |
| 282 | where `Zf` consists of the functions that obey the linear relations `crysRelations` of the |
| 283 | crystalline cocycles above `ℓ`, plus the length of the odd classes `shaOdd`. Write `τ' j`, `φ' j` |
| 284 | for the inverses of the conjugates of `τ j`, `φ j`, and `I` for the `j` with `ty j = e`. Then |
| 285 | `HasTriangleCost` holds: for the members `Z₀` of `Z` that vanish on some set, (a) if `z ∈ Z₀` agrees |
| 286 | at `τ i`, `τ' i` for `i < j` and at `φ i`, `φ' i` for `i < j` in `I`, then `ℓ ^ h • z` agrees at |
| 287 | `τ j`, `τ' j` for `j ∈ I`; (b) the length of `Z / Z₀`, plus the length modulo `ℓ ^ h`-torsion of any |
| 288 | submodule of `Z₀` that vanishes at all `τ j`, `τ' j` and agrees at `φ j`, `φ' j` for `j ∈ I`, is at |
| 289 | most `b`. -/ |
| 290 | lemma hasTriangleCost_tateTwist [Fintype J] [LinearOrder J] {ν : ℕ} {w : J → FinPlace E} |
| 291 | {τ φ : J → Gal(Ω/E)} {t : ℕ} {g₀ : Gal(Ω/E)} {h c : ℕ} {e : Fin t} |
| 292 | {ty : J →o {k : Fin t // 0 < k.val}} (h_tri : IsPrimeTriangle ν w τ φ g₀ t ty h c) |
| 293 | {Z : Submodule O (Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O))} |
| 294 | (hZ_sel : Z ≤ selmerModule (tateTwist ℓ E O e) |
| 295 | (placesDividing E ℓ ∪ Set.conjClosure (Set.range w)) ∅ (QuotSpan (ℓ ^ ν : ↑O))) |
| 296 | (hZ_g₀ : ∀ z ∈ Z, |
| 297 | z ∈ selmerModule (tateTwist ℓ E O e) (placesDividing E ℓ) ∅ (QuotSpan (ℓ ^ ν : ↑O)) → |
| 298 | (cyclotomicInv ℓ E O g₀ ^ e.val - 1) • z g₀ = 0) |
| 299 | {b : ℕ∞} |
| 300 | (h_loss_add_shaOdd : |
| 301 | relLength Z (obeying (crysRelations (tateTwist ℓ E O e)) (QuotSpan (ℓ ^ ν : ↑O))) + |
| 302 | length O (shaOdd ℓ E O e ν) ≤ b) : |
| 303 | HasTriangleCost Z τ (fun j : J ↦ (conjGal (τ j))⁻¹) φ (fun j : J ↦ (conjGal (φ j))⁻¹) |
| 304 | {j : J | (ty j).val = e} (ℓ ^ h) b := by |
| 305 | -- Take `L = shaLocalSet ℓ E e`. The triangle is `pow_smul_apply_eq_of_isPrimeTriangle`, given |
| 306 | -- `h_inv`. Modulo the cocycles vanishing on `L` the cost is at most the local loss, and the rest |
| 307 | -- costs at most the length of `shaOdd`. |
| 308 | open Matrix.Module in |
| 309 | have h_coc {z : Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O)} (hz : z ∈ Z) : |
| 310 | ∀ g g' : Gal(Ω/E), z (g * g') = z g + tateTwist ℓ E O e g • z g' := |
| 311 | (mem_selmerModule_iff.1 (hZ_sel hz)).1 |
| 312 | have h_inv {z : Gal(Ω/E) → Unit → QuotSpan (ℓ ^ ν : ↑O)} (hz : z ∈ Z) (j : J) : |
| 313 | z (conjGal (τ j))⁻¹ = -z (conjGal (τ j)) ∧ z (conjGal (φ j))⁻¹ = -z (conjGal (φ j)) := |
| 314 | apply_withConjInv_false_eq_neg h_tri.isTameGeneratorFamily (h_coc hz) j |
| 315 | refine ⟨shaLocalSet ℓ E e, fun j hj z ⟨hz, hzL⟩ h_prev ↦ |
| 316 | pow_smul_apply_eq_of_isPrimeTriangle h_tri (mem_filter.1 hj).2 (hZ_sel hz) hzL (h_inv hz) |
| 317 | h_prev, |
| 318 | fun S hS h_van ↦ h_loss_add_shaOdd.trans' (add_le_add ?_ ?_)⟩ |
| 319 | · -- The loss: a cocycle that obeys the local crystalline relations vanishes on `L`. |
| 320 | exact relLength_anti_right_of_inf_le fun z hz g hg ↦ |
| 321 | apply_eq_zero_of_mem_obeying_crysRelations (h_coc hz.1) hz.2 hg |
| 322 | · -- The cocycles in `S` kill the tame generators, so they are unramified off `ℓ`. |
| 323 | have hS_tame z (hz : z ∈ S) : ∀ k : J × Bool, z (withConjInv τ k) = 0 := by |
| 324 | rintro ⟨j, copy⟩ |
| 325 | obtain ⟨h_τ, h_τ'⟩ : z (τ j) = 0 ∧ z (conjGal (τ j))⁻¹ = 0 := (h_van z hz).1 j |
| 326 | cases copy |
| 327 | exacts [h_τ', h_τ] |
| 328 | have hS_unr z (hz : z ∈ S) : z ∈ selmerModule (tateTwist ℓ E O e) (placesDividing E ℓ) ∅ |
| 329 | (QuotSpan (ℓ ^ ν : ↑O)) := |
| 330 | h_tri.isTameGeneratorFamily.mem_selmerModule_of_tame_eq_zero (hZ_sel (hS hz).1) (hS_tame z hz) |
| 331 | .rfl |
| 332 | fun _ _ ↦ tateTwist_eq_one_of_cyclotomicChar_eq_one |
| 333 | have hS_loc z (hz : z ∈ S) g (hg : g ∈ shaLocalSet ℓ E e) : z g = 0 := (hS hz).2 g hg |
| 334 | by_cases he : e.val = 0 |
| 335 | · -- For `e = 0` there is no sign condition, and `S ≤ shaOdd`. |
| 336 | rw [← relLength_bot] |
| 337 | exact relLength_mono |
| 338 | (fun z hz ↦ mem_shaOdd.2 ⟨hS_loc z hz, fun he' ↦ absurd he he', hS_unr z hz⟩) bot_le |
| 339 | refine relLength_torsionBy_le_length_shaOdd h_tri he |
| 340 | (fun z hz ↦ hZ_g₀ z (hS hz).1 (hS_unr z hz)) hS_unr hS_loc fun z hz j hj ↦ ?_ |
| 341 | obtain ⟨-, h_φ⟩ := h_van z hz |
| 342 | have h_pair : z (φ j) = z (conjGal (φ j))⁻¹ := h_φ j (by simp [hj]) |
| 343 | rw [(h_inv (hS hz).1 j).2] at h_pair |
| 344 | simpa [eq_neg_iff_add_eq_zero] using h_pair |
| 345 | |
| 346 | end TateTwistSteps |
| 347 | |
| 348 | end New.Selmer |