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.Azumaya.Basic |
| 4 | import Mathlib.RingTheory.Etale.Weakly |
| 5 | import Mathlib.RingTheory.TotallySplit |
| 6 | public import New.Congruences.FirstOrder.RibetMatrices |
| 7 | import New.Congruences.FirstOrder.RibetMethod |
| 8 | |
| 9 | /-! |
| 10 | # Ribet's method to first order over a discrete valuation ring |
| 11 | |
| 12 | This file proves an algebraic form of Ribet's method to first order that does not involve Galois |
| 13 | groups. Here `u x` (`x : Y`) is a finite family of representations of a group `G` over a discrete |
| 14 | valuation ring `O`; at certain `x`, `u x` is the sum of a main summand (the block) and of |
| 15 | characters. The file glues the matrices of tied rows for the block and for the characters, so that |
| 16 | one element serves the determinants of all combinations `∑ ω g (u x g - 1)`, and passes from |
| 17 | coefficients modulo powers of `p` to coefficients in `K/O`. The result is applied to Galois |
| 18 | representations in `New.Selmer.ribet_columns`. |
| 19 | |
| 20 | In that application the data of `New.Selmer.exists_isCommonRibetElement_addVal_le` are as follows. |
| 21 | The elements `τ (j, true)` and `φ (j, true)` are a tame generator and a Frobenius element at the new |
| 22 | place `j`, and `τ (j, false)`, `φ (j, false)` are the inverses of their conjugates. The `δ v` are |
| 23 | tame generators at the old places, `γ x` acts on the summand by a scalar `y x` with `y x - 1` a |
| 24 | unit, `a` generates the cyclotomic quotient, `p` is `ℓ ^ ν`, and `C : O` is the cost of telling the |
| 25 | characters apart. The `X j` are free variables; only the coefficients of the monomials that divide |
| 26 | `∏ X j` are read. |
| 27 | |
| 28 | ## Main definitions and results |
| 29 | |
| 30 | * `New.Selmer.exists_isCommonRibetElement_addVal_le`: the determinants of all combinations |
| 31 | `∑ ω g (u x g - 1)` have one Ribet element whose coefficient comes from `O` and has bounded |
| 32 | valuation. The proof finds matrices of tied rows with bounded determinant on the block |
| 33 | (`exists_tiedRows_addVal_det_le`) and on the characters (`nonempty_characterRows`), and glues them |
| 34 | (`exists_traceIdeal_multiplier_eq_sum_det`). |
| 35 | * `New.Selmer.exists_traceIdeal_multiplier_eq_sum_det`: the gluing, on the set where `u x` is the |
| 36 | block `ρ x` plus the characters `ξ e`, with `ξ 0 = 1`. |
| 37 | |
| 38 | Notions from other files: |
| 39 | * `New.Selmer.ribetCocyclesIn u ρ B`: the cocycles `G → B^d` for `ρ` that obey the linear relations |
| 40 | among the families `(u x g - 1)_x`. |
| 41 | * `New.Selmer.IsCommonRibetElement` (`FittingBlock`): one `f : S` that serves as Ribet element for |
| 42 | a family `β` of functions `β i : Y → L`. |
| 43 | * `New.Selmer.IsTraceIdeal` (`FittingBlock`): `S` holds the characteristic polynomials, and the |
| 44 | `S`-module `𝒥` holds the traces of given relations. |
| 45 | * `New.Selmer.tiedRows` (`RibetMatrices`): the rows whose element `∑ r i (gen i - 1)` lies in the |
| 46 | tie ideal. |
| 47 | -/ |
| 48 | |
| 49 | @[expose] public section |
| 50 | |
| 51 | section RibetFirstOrder |
| 52 | |
| 53 | namespace New.Selmer |
| 54 | |
| 55 | open IsDiscreteValuationRing Matrix Module Submodule Polynomial MonoidAlgebra Finset Sum |
| 56 | CompleteLattice |
| 57 | |
| 58 | open Finsupp (linearCombination) |
| 59 | |
| 60 | open MvPolynomial hiding X C aeval eval funext comap ext |
| 61 | |
| 62 | attribute [local instance] algebraMvPolynomial |
| 63 | |
| 64 | section Steps |
| 65 | |
| 66 | variable {O L Y G J σ W : Type} [CommRing O] [CommRing L] [Algebra O L] [Fintype σ] [DecidableEq σ] |
| 67 | [Group G] (u : Y → G →* Matrix σ σ O) {S : Subalgebra O (Y → MvPolynomial J L)} |
| 68 | (𝒥 : Submodule S (Y → MvPolynomial J L)) |
| 69 | |
| 70 | variable {p : O} {τ φ : J × Bool → G} {ε : J → O[X]} |
| 71 | |
| 72 | /-! ### The gluing -/ |
| 73 | |
| 74 | /-- If `u x` is, after reindexing by `blockEquiv`, the block `ρ` plus the characters `ξ e`, then so |
| 75 | is its extension to `O[X j][G]` (`polyAction`, and `polyChar` for the characters). -/ |
| 76 | lemma polyAction_eq_reindex {r : Type} [Fintype r] [DecidableEq r] {t : ℕ} |
| 77 | (blockEquiv : r ⊕ Fin t ≃ σ) {x : Y} {ρ : G →* Matrix r r O} {ξ : Fin t → G →* O} |
| 78 | (hu : ∀ g : G, u x g = reindex blockEquiv blockEquiv |
| 79 | (fromBlocks (ρ g) 0 0 (diagonal fun e : Fin t ↦ ξ e g))) |
| 80 | (c : (MvPolynomial J O)[G]) : |
| 81 | polyAction J (u x) c = reindex blockEquiv blockEquiv |
| 82 | (fromBlocks (polyAction J ρ c) 0 0 (diagonal fun e : Fin t ↦ polyChar J (ξ e) c)) := by |
| 83 | rw [← Equiv.symm_apply_eq] |
| 84 | ext1 (i | i) (j | j) |
| 85 | · simp [polyAction, hu, lift_apply, Finsupp.sum, Matrix.sum_apply] |
| 86 | · simp [polyAction, hu, lift_apply, Finsupp.sum, Matrix.sum_apply] |
| 87 | · simp [polyAction, hu, lift_apply, Finsupp.sum, Matrix.sum_apply] |
| 88 | · simp [polyAction, polyChar, hu, lift_apply, diagonal, apply_ite (Algebra.ofId O _), |
| 89 | Finsupp.sum, Matrix.sum_apply] |
| 90 | |
| 91 | /-- If the `z g` are coordinates of the `u · g - 1` (`AreCoordinates`), then under every `u x` the |
| 92 | value of the row `∑ ω g z g` (`rowValue`, `coordRows`) has the determinant of |
| 93 | `∑ ω g (u x g - 1)`, read in `L[X j]`. -/ |
| 94 | lemma det_polyAction_rowValue {ι : Type} [Fintype ι] {gen : ι → G} {z : G → ι → O} |
| 95 | (hz : AreCoordinates u gen z) (ω : G →₀ O) : |
| 96 | (fun x : Y ↦ algebraMap (MvPolynomial J O) (MvPolynomial J L) (polyAction J (u x) |
| 97 | (rowValue J gen (coordRows J ι (linearCombination O z ω)))).det) = |
| 98 | fun x : Y ↦ |
| 99 | MvPolynomial.C (algebraMap O L (linearCombination O (fun g : G ↦ u x g - 1) ω).det) := by |
| 100 | funext x |
| 101 | have h_comb : Fintype.linearCombination O (fun i x ↦ u x (gen i) - 1) |
| 102 | (linearCombination O z ω) x = linearCombination O (fun g : G ↦ u x g - 1) ω := by |
| 103 | simp [hz, linearCombination, Finsupp.sum] |
| 104 | rw [polyAction_rowValue_coordRows, h_comb] |
| 105 | simp [det_apply'] |
| 106 | |
| 107 | /-- Let `u x` (`x : Y`) be matrix representations of the group `G` over `O`, with |
| 108 | `u x g - 1 = ∑ z g i (u x (gen i) - 1)` for all `g` and `x` (`AreCoordinates`). A row `r` over |
| 109 | `O[X j][G]` is tied (`tiedRows`) if `∑ r i (gen i - 1)` lies in `tieIdeal`, the left ideal of |
| 110 | `O[X j][G]` spanned by the elements that every `u x` kills, by `p I`, by the ties |
| 111 | `τ k - 1 - X j * (ε j)(φ k) * (φ k - 1)` for `k = (j, b)`, and by `I ρ₀`; here `p : O`, the `τ k` |
| 112 | and `φ k` are elements of `G`, the `ε j` are polynomials over `O`, and `I` is the augmentation |
| 113 | ideal. Let the `S`-module `𝒥` of families `Y → L[X j]` contain the traces under the `u x` of the |
| 114 | `p g` and of the ties times `g`, for `g : G` (part of `IsTraceIdeal`). If the rows of `R` are tied, |
| 115 | the value `∑ R j i (gen i - 1)` of row `j` is `b + m ρ₀`, with `b` in the left ideal spanned by the |
| 116 | `r` with the traces of all `r g` in `𝒥` (`traceLeftIdeal`) and `m` in the left ideal of the |
| 117 | `gen i - 1`. This is the hypothesis on rows of `exists_ribet_element_of_tied_rows`. -/ |
| 118 | lemma exists_mulVec_eq_add_mul_of_mem_tiedRows {ι : Type} [Fintype ι] {gen : ι → G} {z : G → ι → O} |
| 119 | (hz : AreCoordinates u gen z) (h𝒥 : IsTraceIdeal 𝒥 (fun x : Y ↦ u x) p τ φ Prod.fst ε) |
| 120 | {ρ₀ : (MvPolynomial J O)[G]} {R : Matrix ι ι (MvPolynomial J O)[G]} |
| 121 | (hR : ∀ j : ι, R j ∈ tiedRows u gen p τ φ ε ρ₀) (j : ι) : |
| 122 | ∃ b ∈ traceLeftIdeal u 𝒥, ∃ m ∈ span (MvPolynomial J O)[G] |
| 123 | (Set.range (MonoidAlgebra.of (MvPolynomial J O) G ∘ gen - 1)), |
| 124 | (R *ᵥ (MonoidAlgebra.of (MvPolynomial J O) G ∘ gen - 1)) j = b + m * ρ₀ := by |
| 125 | have h_gen (g : G) : ∃ m ∈ span (MvPolynomial J O)[G] |
| 126 | (Set.range (MonoidAlgebra.of (MvPolynomial J O) G ∘ gen - 1)), |
| 127 | ∀ x : Y, polyAction J (u x) (.single g 1) = polyAction J (u x) m + 1 := by |
| 128 | refine ⟨rowValue J gen (coordRows J ι (z g)), |
| 129 | (Fintype.range_linearCombination _ _).le ⟨_, rfl⟩, fun x ↦ ?_⟩ |
| 130 | rw [polyAction_rowValue_coordRows_of_areCoordinates u hz, sub_add_cancel] |
| 131 | obtain ⟨b, hb, _, ⟨m, hm, rfl⟩, h_sum⟩ := |
| 132 | mem_sup.1 (tieIdeal_le u 𝒥 h𝒥 (mem_comap.1 (hR j))) |
| 133 | change ∃ b ∈ _, ∃ m ∈ _, rowValue J gen (R j) = b + m * ρ₀ |
| 134 | rw [← h_sum] |
| 135 | exact exists_mem_span_add_mul_eq_add_mul 𝒥 (fun x ↦ polyAction J (u x)) (polyChar J 1) |
| 136 | (by simp [polyChar_single]) _ h_gen ρ₀ hb (RingHom.mem_ker.1 hm) |
| 137 | |
| 138 | /-- If `S` holds the variables `X j`, the map from `O[X j]` to the constant families factors through |
| 139 | `S`. -/ |
| 140 | lemma exists_ringHom_comp_eq_algebraMap (hS_X : ∀ j : J, (fun _ : Y ↦ MvPolynomial.X j) ∈ S) : |
| 141 | ∃ κ : MvPolynomial J O →+* S, (algebraMap S (Y → MvPolynomial J L)).comp κ = |
| 142 | algebraMap (MvPolynomial J O) (Y → MvPolynomial J L) := by |
| 143 | let X' : J → S := fun j ↦ ⟨fun _ ↦ MvPolynomial.X j, hS_X j⟩ |
| 144 | refine ⟨(MvPolynomial.aeval X').toRingHom, MvPolynomial.ringHom_ext (fun c ↦ ?_) fun j ↦ ?_⟩ |
| 145 | · ext |
| 146 | simp |
| 147 | · ext |
| 148 | simp [X'] |
| 149 | |
| 150 | /-- The characteristic polynomial of a group element `g` acting through `polyAction J ρ`, read over |
| 151 | `L[X j]`, has the constant coefficients given by the characteristic polynomial of `ρ g`. -/ |
| 152 | lemma coeff_charpoly_map_polyAction_single (ρ : G →* Matrix σ σ O) (g : G) (k : ℕ) : |
| 153 | ((polyAction J ρ (.single g 1)).map |
| 154 | (algebraMap (MvPolynomial J O) (MvPolynomial J L))).charpoly.coeff k = |
| 155 | MvPolynomial.C (algebraMap O L ((ρ g).charpoly.coeff k)) := by |
| 156 | have h_map : (polyAction J ρ (.single g 1)).map |
| 157 | (algebraMap (MvPolynomial J O) (MvPolynomial J L)) = |
| 158 | (ρ g).map (MvPolynomial.C.comp (algebraMap O L)) := by |
| 159 | ext1 |
| 160 | simp [polyAction_single] |
| 161 | rw [h_map, charpoly_map, Polynomial.coeff_map, RingHom.comp_apply] |
| 162 | |
| 163 | /-- The determinants of all combinations `∑ ω g (u x g - 1)`, as families of constant polynomials, |
| 164 | lie in `S` when `S` holds the variables and the coefficients of the characteristic polynomials of |
| 165 | the `u x g`. Here `z g` are coordinates of `u · g - 1` in the `u · (gen i) - 1` |
| 166 | (`AreCoordinates`). -/ |
| 167 | lemma C_det_linearCombination_mem |
| 168 | (hS_X : ∀ j : J, (fun _ : Y ↦ MvPolynomial.X j) ∈ S) |
| 169 | (hS_charpoly : ∀ (g : G) (k : ℕ), |
| 170 | (fun x : Y ↦ MvPolynomial.C (algebraMap O L ((u x g).charpoly.coeff k))) ∈ S) |
| 171 | {ι : Type} [Fintype ι] {gen : ι → G} {z : G → ι → O} (hz : AreCoordinates u gen z) |
| 172 | (ω : G →₀ O) : |
| 173 | (fun x : Y ↦ MvPolynomial.C |
| 174 | (algebraMap O L (linearCombination O (fun g : G ↦ u x g - 1) ω).det)) ∈ S := by |
| 175 | obtain ⟨κ, hκ⟩ : ∃ κ : MvPolynomial J O →+* S, (algebraMap S (Y → MvPolynomial J L)).comp κ = |
| 176 | algebraMap (MvPolynomial J O) (Y → MvPolynomial J L) := |
| 177 | exists_ringHom_comp_eq_algebraMap hS_X |
| 178 | rw [← det_polyAction_rowValue u hz] |
| 179 | refine Selmer.det_mem_of_coeff_mem (fun x ↦ polyAction J (u x)) κ hκ (fun g k ↦ ?_) _ |
| 180 | simpa only [coeff_charpoly_map_polyAction_single] using hS_charpoly g k |
| 181 | |
| 182 | /-- If `u x` is a block `ρ` plus characters `ξ e` with `ξ 0 = 1`, every combination |
| 183 | `∑ ω g (u x g - 1)` has determinant zero: its column at `ξ 0` is zero. -/ |
| 184 | lemma det_linearCombination_sub_one_eq_zero {r : Type} {t : ℕ} [NeZero t] |
| 185 | (blockEquiv : r ⊕ Fin t ≃ σ) {x : Y} {ρ : G → Matrix r r O} {ξ : Fin t → G →* O} (hξ₀ : ξ 0 = 1) |
| 186 | (hu : ∀ g : G, u x g = reindex blockEquiv blockEquiv |
| 187 | (fromBlocks (ρ g) 0 0 (diagonal fun e : Fin t ↦ ξ e g))) |
| 188 | (ω : G →₀ O) : (linearCombination O (fun g : G ↦ u x g - 1) ω).det = 0 := by |
| 189 | have h_column (g : G) (i : σ) : |
| 190 | u x g i (blockEquiv (inr 0)) = (1 : Matrix σ σ O) i (blockEquiv (inr 0)) := by |
| 191 | obtain ⟨i | i, rfl⟩ := blockEquiv.surjective i |
| 192 | · simp [hu] |
| 193 | · simp +contextual [hu, hξ₀, Matrix.one_apply, diagonal_apply] |
| 194 | refine det_eq_zero_of_column_eq_zero (blockEquiv (inr 0)) fun i ↦ ?_ |
| 195 | simp [Finsupp.linearCombination_apply, Finsupp.sum, Matrix.sum_apply, h_column] |
| 196 | |
| 197 | /-- The gluing. Let `u x` (`x : Y`) be matrix representations of the group `G` over `O`, with |
| 198 | `u x g - 1 = ∑ z g i (u x (gen i) - 1)` for all `g` and `x` (`AreCoordinates`). On `𝓧`, `u x` is, |
| 199 | after reindexing along `blockEquiv`, the block `ρ x` plus the characters `ξ e`, with `ξ 0 = 1`. |
| 200 | Further let `S` be an algebra of families `Y → L[X j]`, where `L[X j]` is `MvPolynomial J L`, and |
| 201 | `𝒥` an `S`-module of such families; `S` contains the `X j` and the coefficients of the |
| 202 | characteristic polynomials of the `u x g`, and `𝒥` the traces under the `u x` of the `p g` and of |
| 203 | the ties (see below) times `g` (`IsTraceIdeal`). Representations act on `O[X j][G]` through |
| 204 | `polyAction` and characters through `polyChar`. Let `k` be `1` on the characters and `0` on the |
| 205 | blocks, and let `q₀` be `μ₀` on `ξ 0` and `0` on the other characters. Let `B₀` and the `M i` |
| 206 | (`i : κ`) be matrices of tied rows for `ρ₀ = n + (1 - n) (a - 1)` with `n = c₁ (γ - 1)` |
| 207 | (`tiedNormalizer`), and `wt i` weights. Then one `f : S` multiplies the determinants of all |
| 208 | combinations `∑ ω g (u x g - 1)` into `𝒥`, and its value at `x ∈ 𝓧` is |
| 209 | `∑ wt i μ₀ det (B₀ on the block) ∏ det (M i on ξ e)`. A row `r` over `O[X j][G]` is tied |
| 210 | (`tiedRows`) if `∑ r i (gen i - 1)` lies in `tieIdeal`, the left ideal of `O[X j][G]` spanned by the |
| 211 | elements that every `u x` kills, by `p I`, by the ties `τ l - 1 - X j * (ε j)(φ l) * (φ l - 1)` for |
| 212 | `l = (j, b)`, and by `I ρ₀`; here `p : O`, the `τ l` and `φ l` are elements of `G`, the `ε j` are |
| 213 | polynomials over `O`, and `I` is the augmentation ideal. -/ |
| 214 | lemma exists_traceIdeal_multiplier_eq_sum_det {r : Type} [Fintype r] [DecidableEq r] |
| 215 | {t : ℕ} [NeZero t] (blockEquiv : r ⊕ Fin t ≃ σ) {𝓧 : Set Y} (ρ : 𝓧 → G →* Matrix r r O) |
| 216 | {ξ : Fin t → G →* O} (hξ₀ : ξ 0 = 1) |
| 217 | (hu_block : ∀ (x : 𝓧) (g : G), |
| 218 | u x g = reindex blockEquiv blockEquiv |
| 219 | (fromBlocks (ρ x g) 0 0 (diagonal fun e : Fin t ↦ ξ e g))) |
| 220 | (h𝒥 : IsTraceIdeal 𝒥 (fun x : Y ↦ u x) p τ φ Prod.fst ε) |
| 221 | {ι : Type} [Fintype ι] [DecidableEq ι] {gen : ι → G} {z : G → ι → O} |
| 222 | (hz : AreCoordinates u gen z) |
| 223 | {γ a : G} {c₁ : O} {k q₀ : (MvPolynomial J O)[G]} (hkξ : ∀ e : Fin t, polyChar J (ξ e) k = 1) |
| 224 | (hkρ : ∀ x : 𝓧, polyAction J (ρ x) k = 0) {μ₀ : MvPolynomial J O} |
| 225 | (hq₀ : ∀ e : Fin t, polyChar J (ξ e) q₀ = if e = 0 then μ₀ else 0) |
| 226 | (B₀ : Matrix ι ι (MvPolynomial J O)[G]) |
| 227 | (hB₀ : ∀ i : ι, B₀ i ∈ tiedRows u gen p τ φ ε (tiedNormalizer J γ a c₁)) |
| 228 | {κ : Type} [Fintype κ] (wt : κ → MvPolynomial J O) (M : κ → Matrix ι ι (MvPolynomial J O)[G]) |
| 229 | (hM : ∀ (i : κ) (j : ι), M i j ∈ tiedRows u gen p τ φ ε (tiedNormalizer J γ a c₁)) : |
| 230 | ∃ f : S, |
| 231 | (∀ ω : G →₀ O, (f : Y → MvPolynomial J L) * (fun x : Y ↦ MvPolynomial.C |
| 232 | (algebraMap O L (linearCombination O (fun g : G ↦ u x g - 1) ω).det)) ∈ 𝒥) ∧ |
| 233 | ∀ x : 𝓧, (f : Y → MvPolynomial J L) x = |
| 234 | algebraMap (MvPolynomial J O) (MvPolynomial J L) (∑ i : κ, wt i * (μ₀ * |
| 235 | (Matrix.comp ι ι r r (MvPolynomial J O) (B₀.map (polyAction J (ρ x)))).det * |
| 236 | ∏ e : Fin t, ((M i).map (polyChar J (ξ e))).det)) := by |
| 237 | let Λ : Type := MvPolynomial J O |
| 238 | let χ (x : Y) : Λ[G] →ₐ[Λ] Matrix σ σ Λ := polyAction J (u x) |
| 239 | let ψ (x : 𝓧) : Λ[G] →ₐ[Λ] Matrix r r Λ := polyAction J (ρ x) |
| 240 | let η (e : Fin t) : Λ[G] →ₐ[Λ] Λ := polyChar J (ξ e) |
| 241 | let N : Submodule Λ[G] (ι → Λ[G]) := tiedRows u gen p τ φ ε (tiedNormalizer J γ a c₁) |
| 242 | let gen_sub_one : ι → Λ[G] := MonoidAlgebra.of Λ G ∘ gen - 1 |
| 243 | -- Ribet's element for `(1 - k) • B₀ + k • M i`, with `ρ₁ = k q₀`; `κS` lifts `Λ` to `S`. |
| 244 | obtain ⟨κS, hκS⟩ : ∃ κS : Λ →+* S, (algebraMap S (Y → MvPolynomial J L)).comp κS = |
| 245 | algebraMap Λ (Y → MvPolynomial J L) := |
| 246 | exists_ringHom_comp_eq_algebraMap h𝒥.X_mem |
| 247 | have hχ_coeff (g : G) (n : ℕ) : |
| 248 | (fun x ↦ ((χ x (.single g 1)).map (algebraMap Λ (MvPolynomial J L))).charpoly.coeff n) ∈ |
| 249 | S := by |
| 250 | simpa only [χ, Λ, coeff_charpoly_map_polyAction_single] using h𝒥.charpoly_coeff_mem g n |
| 251 | have hη₀ : η 0 (tiedNormalizer J γ a c₁) = 0 := by |
| 252 | simp [η, Λ, tiedNormalizer, polyChar_single, hξ₀, AlgHom.map_smul_of_tower] |
| 253 | have hψ₁ (x : 𝓧) : ψ x (k * q₀) = 0 := by simp [ψ, hkρ] |
| 254 | have hη₁ (e : Fin t) : η e (k * q₀) = if e = 0 then μ₀ else 0 := by simp [η, hkξ, hq₀] |
| 255 | have h_tied (i : κ) (j : ι) : ((1 - k) • B₀ + k • M i) j ∈ N := |
| 256 | add_mem (N.smul_mem _ (hB₀ j)) (N.smul_mem _ (hM i j)) |
| 257 | have exists_f (i : κ) : ∃ f : S, |
| 258 | (∀ w ∈ span Λ[G] (Set.range gen_sub_one), |
| 259 | f.val * (fun x ↦ algebraMap Λ (MvPolynomial J L) (χ x w).det) ∈ 𝒥) ∧ |
| 260 | ∀ x : 𝓧, f.val x = algebraMap Λ (MvPolynomial J L) (μ₀ * |
| 261 | (Matrix.comp ι ι r r Λ (((1 - k) • B₀ + k • M i).map (ψ x))).det * |
| 262 | ∏ e, (((1 - k) • B₀ + k • M i).map (η e)).det) := |
| 263 | Selmer.exists_ribet_element_of_tied_rows blockEquiv χ κS hκS hχ_coeff 𝒥 gen_sub_one |
| 264 | (tiedNormalizer J γ a c₁) (k * q₀) ((1 - k) • B₀ + k • M i) |
| 265 | (exists_mulVec_eq_add_mul_of_mem_tiedRows u 𝒥 hz h𝒥 (h_tied i)) |
| 266 | ψ η (fun x ↦ polyAction_eq_reindex u blockEquiv (hu_block x)) hψ₁ hη₁ hη₀ |
| 267 | choose f hf_mem hf_eq using exists_f |
| 268 | refine ⟨∑ i, κS (wt i) * f i, fun ω ↦ ?_, fun x ↦ ?_⟩ |
| 269 | · -- `det (∑ ω g (u x g - 1))` is the determinant of `w` acting through `u x`. |
| 270 | let w : Λ[G] := rowValue J gen (coordRows J ι (linearCombination O z ω)) |
| 271 | rw [← det_polyAction_rowValue u hz, ← smul_eq_mul, ← Subalgebra.smul_def, Finset.sum_smul] |
| 272 | refine sum_mem fun i _ ↦ ?_ |
| 273 | rw [mul_smul, Subalgebra.smul_def (f i), smul_eq_mul] |
| 274 | exact 𝒥.smul_mem _ (hf_mem i w ((Fintype.range_linearCombination _ _).le ⟨_, rfl⟩)) |
| 275 | · -- On `𝓧`, `(1 - k) • B₀ + k • M i` is `B₀` on the block and `M i` on the characters. |
| 276 | have hκS_apply (c : Λ) : (κS c).val x = algebraMap Λ (MvPolynomial J L) c := |
| 277 | congrFun (RingHom.congr_fun hκS c) x |
| 278 | have h_block (i : κ) : ((1 - k) • B₀ + k • M i).map (ψ x) = B₀.map (ψ x) := by |
| 279 | ext1 |
| 280 | simp [ψ, hkρ] |
| 281 | have h_chars (i : κ) (e : Fin t) : ((1 - k) • B₀ + k • M i).map (η e) = (M i).map (η e) := by |
| 282 | ext1 |
| 283 | simp [η, hkξ] |
| 284 | simp [hf_eq, hκS_apply, h_block, h_chars, map_sum, ψ, η, Λ] |
| 285 | |
| 286 | /-- The projector to the characters: if every block `ρ x` has an element `γ x` acting by a scalar |
| 287 | `y x` with `y x - 1` a unit, on which every character is `1`, then some element of `O[X j][G]` is |
| 288 | `1` on every character and `0` on every block. -/ |
| 289 | lemma exists_character_projector {r : Type} [Fintype r] [DecidableEq r] {t : ℕ} |
| 290 | {𝓧 : Type} [Fintype 𝓧] (ρ : 𝓧 → G →* Matrix r r O) {ξ : Fin t → G →* O} {γ : 𝓧 → G} {y : 𝓧 → O} |
| 291 | (hργ : ∀ x : 𝓧, ρ x (γ x) = y x • 1) (hy_unit : ∀ x : 𝓧, IsUnit (y x - 1)) |
| 292 | (hξγ : ∀ (x : 𝓧) (e : Fin t), ξ e (γ x) = 1) : |
| 293 | ∃ k : (MvPolynomial J O)[G], |
| 294 | (∀ e : Fin t, polyChar J (ξ e) k = 1) ∧ |
| 295 | ∀ x : 𝓧, polyAction J (ρ x) k = 0 := by |
| 296 | refine exists_forall_eq_one_and_forall_eq_zero (fun e ↦ polyChar J (ξ e)) |
| 297 | (fun x ↦ polyAction J (ρ x)) |
| 298 | fun x ↦ ?_ |
| 299 | obtain ⟨c, hc⟩ : ∃ c : O, c * (y x - 1) = 1 := (hy_unit x).exists_left_inv |
| 300 | let w : (MvPolynomial J O)[G] := |
| 301 | (MvPolynomial.C (y x) : MvPolynomial J O) • 1 - MonoidAlgebra.single (γ x) 1 |
| 302 | have h_char (e : Fin t) : polyChar J (ξ e) w = MvPolynomial.C (y x - 1) := by |
| 303 | simp [w, polyChar_single, hξγ] |
| 304 | have h_block : polyAction J (ρ x) w = 0 := by |
| 305 | simp [w, polyAction_single, hργ, smul_one_eq_diagonal] |
| 306 | refine ⟨(MvPolynomial.C c : MvPolynomial J O) • w, fun e ↦ ?_, ?_⟩ |
| 307 | · rw [map_smul, h_char, smul_eq_mul, ← map_mul, hc, map_one] |
| 308 | · rw [map_smul, h_block, smul_zero] |
| 309 | |
| 310 | /-- Finitely many generators. Let `u x` (`x : Y`) be finitely many matrix representations of `G` |
| 311 | over the discrete valuation ring `O`. There are a finite `s₀ ⊆ G` and vectors `z g` over `O` with |
| 312 | `u x g - 1 = ∑ z g i (u x (gen i) - 1)` for all `g` and `x` (`AreCoordinates`), where `gen` lists |
| 313 | the `δ w`, the members of `s₀` and those of `s` (`ribetGenerators`). -/ |
| 314 | lemma exists_areCoordinates_ribetGenerators (u : Y → G →* Matrix σ σ O) [DVR O] [Fintype Y] |
| 315 | [Fintype W] (δ : W → G) (s : Finset G) : |
| 316 | ∃ (s₀ : Finset G) (z : G → W ⊕ s₀ ⊕ s → O), |
| 317 | AreCoordinates u (ribetGenerators δ s₀ s) z := by |
| 318 | classical |
| 319 | let v (g : G) : Y → Matrix σ σ O := fun x ↦ u x g - 1 |
| 320 | obtain ⟨s₀, hs₀⟩ := |
| 321 | ((fg_iff_compact (⨆ g : G, O ∙ v g)).1 .of_finite).exists_finset_of_le_iSup _ le_rfl |
| 322 | let T := Fintype.linearCombination O fun i ↦ v (ribetGenerators δ s₀ s i) |
| 323 | have h_range : ⨆ g ∈ s₀, (O ∙ v g) ≤ T.range := iSup₂_le fun g hg ↦ |
| 324 | (span_singleton_le_iff_mem _ _).2 ⟨Pi.single (inr (inl ⟨g, hg⟩)) 1, by simp [T]⟩ |
| 325 | choose z hz using fun g ↦ |
| 326 | LinearMap.mem_range.1 (hs₀.trans h_range (mem_iSup_of_mem g (mem_span_singleton_self _))) |
| 327 | exact ⟨s₀, z, hz⟩ |
| 328 | |
| 329 | section CharacterRows |
| 330 | |
| 331 | variable {u : Y → G →* Matrix σ σ O} |
| 332 | variable [DVR O] [Fintype J] [LinearOrder J] [DecidableEq G] {t : ℕ} {ξ : Fin t → G →* O} |
| 333 | [Fintype W] [DecidableEq W] {δ : W → G} {o : W → O[X]} {s₀ s : Finset G} {γ a : G} {c₁ C : O} |
| 334 | {ty : J →o Fin t} {b : Fin t → ℕ∞} |
| 335 | |
| 336 | /-- Let `R` be a system of matrices for the characters `ξ e`, `e : Fin t` (`CharacterRows`). For |
| 337 | each `e` it has `R.count e` matrices `R.charMatrix e j` over `O[X j]` and weights `R.coeff e j` with |
| 338 | `∑ j, R.coeff e j det (R.charMatrix e j) = R.detSum e`. For each choice `i` of one index `i e` for |
| 339 | every `e`, it has a matrix `R.tiedMatrix i` over `O[X j][G]` whose determinant on `ξ e` is |
| 340 | `c₀ det (R.charMatrix e (i e))`, where `c₀ = (∏ o v (1)) C ^ #s`. Then the products over `e` of the |
| 341 | determinants of `R.tiedMatrix i` on the `ξ e`, summed with the weights `∏ R.coeff e (i e)`, give |
| 342 | `c₀ ^ t ∏ R.detSum e`. -/ |
| 343 | lemma CharacterRows.sum_prod_coeff_mul_prod_det_tiedMatrix |
| 344 | (R : CharacterRows u ξ δ o s₀ s γ a c₁ C p τ φ ε ty b) : |
| 345 | ∑ i : ∀ e : Fin t, Fin (R.count e), |
| 346 | (∏ e : Fin t, R.coeff e (i e)) * ∏ e : Fin t, |
| 347 | ((R.tiedMatrix i).map (polyChar J (ξ e))).det = |
| 348 | MvPolynomial.C ((∏ v : W, (o v).eval 1) * C ^ #s) ^ t * ∏ e : Fin t, R.detSum e := by |
| 349 | set c₀ : MvPolynomial J O := MvPolynomial.C ((∏ v : W, (o v).eval 1) * C ^ #s) with hc₀ |
| 350 | calc _ = ∑ i : ∀ e : Fin t, Fin (R.count e), c₀ ^ t * ∏ e, |
| 351 | R.coeff e (i e) * (R.charMatrix e (i e)).det := by |
| 352 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 353 | simp only [R.det_map, ← hc₀, prod_mul_distrib, prod_const, card_univ, Fintype.card_fin] |
| 354 | ring |
| 355 | _ = c₀ ^ t * ∏ e, ∑ j, R.coeff e j * (R.charMatrix e j).det := by |
| 356 | rw [Fintype.prod_sum, Finset.mul_sum] |
| 357 | _ = c₀ ^ t * ∏ e, R.detSum e := by simp only [R.sum_det] |
| 358 | |
| 359 | /-- Let `O` be a discrete valuation ring with additive valuation `v = addVal O`, and let `R` be a |
| 360 | system of matrices for the characters `ξ e`, `e : Fin t` (`CharacterRows`). It has polynomials |
| 361 | `R.multiplier e` in the variables `X j` with |
| 362 | `R.detSum e + R.correction e = R.multiplier e * ∏ j with ty j = e, X j`, and the constant term of |
| 363 | `R.multiplier e` has valuation at most `b e + (#{j | ty j = e} + #s) v(C)`. As the sets |
| 364 | `{j | ty j = e}` partition `J`, the constant term of `∏ R.multiplier e` has valuation at most |
| 365 | `∑ b e + (#J + t #s) v(C)`. -/ |
| 366 | lemma CharacterRows.addVal_constantCoeff_prod_le |
| 367 | (R : CharacterRows u ξ δ o s₀ s γ a c₁ C p τ φ ε ty b) : |
| 368 | addVal O (constantCoeff (∏ e : Fin t, R.multiplier e)) ≤ |
| 369 | ∑ e : Fin t, b e + (Fintype.card J + t * #s) * addVal O C := by |
| 370 | have h_card : ∑ e : Fin t, (#{j : J | ty j = e} : ℕ∞) = Fintype.card J := by |
| 371 | rw [← Nat.cast_sum, ← card_eq_sum_card_fiberwise fun _ _ ↦ mem_univ _, card_univ] |
| 372 | rw [map_prod, addVal_prod] |
| 373 | calc _ ≤ ∑ e : Fin t, (b e + (#{j : J | ty j = e} + #s) * addVal O C) := |
| 374 | sum_le_sum fun e _ ↦ R.addVal_constantCoeff_le e |
| 375 | _ = _ := by simp [sum_add_distrib, ← sum_mul, h_card] |
| 376 | |
| 377 | end CharacterRows |
| 378 | end Steps |
| 379 | |
| 380 | section Lemma |
| 381 | |
| 382 | variable {O L Y G J σ W : Type} [CommRing O] [CommRing L] [Algebra O L] [Fintype σ] [DecidableEq σ] |
| 383 | [Group G] (u : Y → G →* Matrix σ σ O) {S : Subalgebra O (Y → MvPolynomial J L)} |
| 384 | (𝒥 : Submodule S (Y → MvPolynomial J L)) |
| 385 | |
| 386 | /-- Membership in `ribetCocyclesIn`: `c` is a cocycle for `ρ`, and it obeys every linear relation |
| 387 | among the families `u · g - 1`. -/ |
| 388 | lemma mem_ribetCocyclesIn_iff {r : Type} [Fintype r] [DecidableEq r] {ρ : G →* Matrix r r O} |
| 389 | {B : Type} [AddCommGroup B] [Module O B] {c : G → r → B} : |
| 390 | c ∈ ribetCocyclesIn u ρ B ↔ c ∈ obeying (cocycleRelations ρ) B ∧ ∀ θ : G →₀ O, |
| 391 | linearCombination O (fun (g : G) (x : Y) ↦ u x g - 1) θ = 0 → linearCombination O c θ = 0 := |
| 392 | Iff.rfl |
| 393 | |
| 394 | /-- Let `u x` (`x : Y`) be matrix representations of the group `G` over `O`, and let `f` be an |
| 395 | injective linear map of coefficient modules. Then `c` is a cocycle for `ρ` with `∑ θ g • c g = 0` |
| 396 | whenever `∑ θ g • (u x g - 1) = 0` for all `x` (`ribetCocyclesIn`) if and only if `f ∘ c` is one. -/ |
| 397 | lemma comp_mem_ribetCocyclesIn_iff (u : Y → G →* Matrix σ σ O) {r : Type} [Fintype r] |
| 398 | [DecidableEq r] |
| 399 | {ρ : G →* Matrix r r O} {B B' : Type} [AddCommGroup B] [Module O B] [AddCommGroup B'] |
| 400 | [Module O B'] {f : B →ₗ[O] B'} (hf : Function.Injective f) {c : G → r → B} : |
| 401 | (fun (g : G) (i : r) ↦ f (c g i)) ∈ ribetCocyclesIn u ρ B' ↔ c ∈ ribetCocyclesIn u ρ B := by |
| 402 | have h_lc (θ : G →₀ O) : linearCombination O (fun (g : G) (i : r) ↦ f (c g i)) θ = |
| 403 | fun i : r ↦ f (linearCombination O c θ i) := by |
| 404 | ext i |
| 405 | simp [Finsupp.linearCombination_apply, Finsupp.sum, map_sum, map_smul] |
| 406 | rw [mem_ribetCocyclesIn_iff, mem_ribetCocyclesIn_iff] |
| 407 | refine and_congr (comp_mem_obeying_iff_of_injective f hf) (forall₂_congr fun θ _ ↦ ?_) |
| 408 | simp only [h_lc, map_eq_zero_iff f hf, funext_iff, Pi.zero_apply] |
| 409 | |
| 410 | /-- Let `u x` be a finite family of representations of `G` over a discrete valuation ring `O` with |
| 411 | fraction field `K`. The cocycles of `ρ` with values in `K/O` that obey the linear relations among |
| 412 | the families `(u x g - 1)_x` are torsion: by the coordinates of |
| 413 | `exists_areCoordinates_ribetGenerators` the values of a member are combinations of finitely many of |
| 414 | them, and each element of `K/O` has a nonzero denominator. -/ |
| 415 | lemma exists_smul_eq_zero_of_mem_ribetCocyclesIn [DVR O] [Fintype Y] {r : Type} [Fintype r] |
| 416 | [DecidableEq r] {ρ : G →* Matrix r r O} {c : G → r → DivisibleQuot O} |
| 417 | (hc : c ∈ ribetCocyclesIn u ρ (DivisibleQuot O)) : ∃ a : O, a ≠ 0 ∧ a • c = 0 := by |
| 418 | classical |
| 419 | obtain ⟨-, h_rel⟩ := (mem_ribetCocyclesIn_iff u).1 hc |
| 420 | obtain ⟨s₀, z, hz⟩ : ∃ (s₀ : Finset G) (z : G → Empty ⊕ s₀ ⊕ (∅ : Finset G) → O), |
| 421 | AreCoordinates u (ribetGenerators Empty.elim s₀ ∅) z := |
| 422 | exists_areCoordinates_ribetGenerators u Empty.elim ∅ |
| 423 | let gen : Empty ⊕ s₀ ⊕ (∅ : Finset G) → G := ribetGenerators Empty.elim s₀ ∅ |
| 424 | -- The value at `g` is the combination of the values at the generators with coefficients `z g`. |
| 425 | have h_val (g : G) : c g = ∑ i : Empty ⊕ s₀ ⊕ (∅ : Finset G), z g i • c (gen i) := by |
| 426 | have h_g : Fintype.linearCombination O (fun i x ↦ u x (gen i) - 1) (z g) = |
| 427 | fun x ↦ u x g - 1 := hz g |
| 428 | have hθ : linearCombination O (fun (g : G) (x : Y) ↦ u x g - 1) |
| 429 | (Finsupp.single g 1 - ∑ i : Empty ⊕ s₀ ⊕ (∅ : Finset G), Finsupp.single (gen i) (z g i)) = |
| 430 | 0 := by |
| 431 | simp [map_sub, map_sum, Finsupp.linearCombination_single, ← h_g, |
| 432 | Fintype.linearCombination_apply] |
| 433 | simpa [map_sub, map_sum, Finsupp.linearCombination_single, sub_eq_zero] using h_rel _ hθ |
| 434 | obtain ⟨a, ha, h⟩ := exists_common_denominator |
| 435 | (fun p : (Empty ⊕ s₀ ⊕ (∅ : Finset G)) × r ↦ c (gen p.1) p.2) |
| 436 | refine ⟨a, ha, funext fun g ↦ funext fun k ↦ ?_⟩ |
| 437 | simp only [Pi.smul_apply, Pi.zero_apply, h_val g, Finset.sum_apply, Finset.smul_sum] |
| 438 | exact Finset.sum_eq_zero fun i _ ↦ by rw [smul_comm a, h (i, k), smul_zero] |
| 439 | |
| 440 | /-- Dividing by a nonzero element `a` identifies the Ribet cocycles modulo `a` that vanish on |
| 441 | `T` and at `γ` with the `a`-torsion of the same cocycles in `Frac(O) / O`. In particular the two |
| 442 | modules have equal length. -/ |
| 443 | lemma length_torsionBy_ribetCocyclesVanishingOn [DVR O] {r : Type} [Fintype r] [DecidableEq r] |
| 444 | (ρ : G →* Matrix r r O) (T : Set G) (γ : G) {a : O} (ha : a ≠ 0) : |
| 445 | length O (torsionBy O (ribetCocyclesVanishingOn u ρ (DivisibleQuot O) T γ) a) = |
| 446 | length O (ribetCocyclesVanishingOn u ρ (QuotSpan a) T γ) := by |
| 447 | let V := ribetCocyclesVanishingOn u ρ (DivisibleQuot O) T γ |
| 448 | let W := ribetCocyclesVanishingOn u ρ (QuotSpan a) T γ |
| 449 | let E : (G → r → QuotSpan a) →ₗ[O] G → r → DivisibleQuot O := |
| 450 | ((divQuot a).compLeft r).compLeft G |
| 451 | have hE : Function.Injective E := (divQuot_injective ha).comp_left.comp_left |
| 452 | have h_mem (c : G → r → QuotSpan a) : E c ∈ V ↔ c ∈ W := by |
| 453 | have h_zero (g : G) : (fun i ↦ divQuot a (c g i)) = 0 ↔ c g = 0 := by |
| 454 | simp [funext_iff, map_eq_zero_iff _ (divQuot_injective ha)] |
| 455 | change (fun g i ↦ divQuot a (c g i)) ∈ ribetCocyclesVanishingOn u ρ _ T γ ↔ _ |
| 456 | simp only [W, mem_ribetCocyclesVanishingOn, |
| 457 | comp_mem_ribetCocyclesIn_iff u (divQuot_injective ha), h_zero] |
| 458 | let e := E.restrict fun z hz ↦ (h_mem z).2 hz |
| 459 | have he : Function.Injective e := fun _ _ h ↦ Subtype.ext (hE (congrArg Subtype.val h)) |
| 460 | have hr : e.range = torsionBy O V a := |
| 461 | range_restrict_compLeft_eq_torsionBy (divQuot a) (fun _ hy ↦ exists_divQuot_eq ha hy) h_mem |
| 462 | rw [← hr, ← (LinearEquiv.ofInjective e he).length_eq] |
| 463 | |
| 464 | /-- Let `u` be a finite family of representations over a discrete valuation ring `O`. If the |
| 465 | length of the Ribet cocycles vanishing on `T` and at `γ` modulo `a ≠ 0` is strictly below |
| 466 | `addVal O a`, the module modulo `a` and the module in `Frac(O) / O` have equal lengths. -/ |
| 467 | lemma length_ribetCocyclesVanishingOn_divisibleQuot_eq_of_lt [DVR O] [Fintype Y] {r : Type} |
| 468 | [Fintype r] [DecidableEq r] (ρ : G →* Matrix r r O) (T : Set G) (γ : G) {a : O} (ha : a ≠ 0) |
| 469 | (h_lt : length O (ribetCocyclesVanishingOn u ρ (QuotSpan a) T γ) < addVal O a) : |
| 470 | length O (ribetCocyclesVanishingOn u ρ (DivisibleQuot O) T γ) = |
| 471 | length O (ribetCocyclesVanishingOn u ρ (QuotSpan a) T γ) := by |
| 472 | let V := ribetCocyclesVanishingOn u ρ (DivisibleQuot O) T γ |
| 473 | have h_torsion (z : V) : ∃ d : O, d ≠ 0 ∧ d • z = 0 := by |
| 474 | obtain ⟨hc, -⟩ := (mem_ribetCocyclesVanishingOn u).1 z.property |
| 475 | obtain ⟨d, hd, hz⟩ := exists_smul_eq_zero_of_mem_ribetCocyclesIn u hc |
| 476 | exact ⟨d, hd, Subtype.ext hz⟩ |
| 477 | have h_len := length_torsionBy_ribetCocyclesVanishingOn u ρ T γ ha |
| 478 | have h_top := torsionBy_eq_top_of_length_lt_addVal h_torsion (h_len.trans_lt h_lt) |
| 479 | change length O (torsionBy O V a) = _ at h_len |
| 480 | rwa [h_top, length_top] at h_len |
| 481 | |
| 482 | /-- Ribet's lemma to first order, for any group and any discrete valuation ring. Let `u x` (`x : Y`) |
| 483 | be a finite family of matrix representations of `G` over `O` and `L` an `O`-algebra; let `S` be an |
| 484 | algebra of families `Y → L[X j]`, where `L[X j]` is `MvPolynomial J L`, and `𝒥` an `S`-module of |
| 485 | such families. (1) On `𝓧`, `u x` is, after reindexing along `blockEquiv`, a block `ρ x` plus |
| 486 | characters `ξ e` with `ξ 0 = 1`, and `ρ π` spans all matrices. (2) An element `γ x` acts on the |
| 487 | block by a scalar `y x` with `y x - 1` a unit, and trivially on the characters. (3) For `p ≠ 0` in |
| 488 | `O`, elements `τ k`, `φ k` of `G` (`k : J × Bool`) and polynomials `ε j` over `O`, `S` contains the |
| 489 | `X j` and the coefficients of the characteristic polynomials of the `u x g`, and `𝒥` contains the |
| 490 | families over `x` of the traces under `u x` of `p g` and of |
| 491 | `(τ k - 1 - X j * (φ k - 1) * (ε j)(φ k)) * g` for `g : G` and `k = (j, b)` (`IsTraceIdeal`); `ε j` |
| 492 | is `1` modulo `p` at the `ξ e (φ k)`. (4) For an element `a` of `G` and each `e`, the product of the |
| 493 | `ξ e a - ξ k a` over `k ≠ e` divides `C`; each `j` has a type `ty j`, monotone in `j`. (5) The |
| 494 | cocycles `c` of `ρ π` with values in `Frac(O) / O` that have `∑ θ g • c g = 0` whenever |
| 495 | `∑ θ g • (u x g - 1) = 0` for all `x` and vanish at the `τ k` and at `γ π` form a module of length |
| 496 | at most `b₀`. (6) The `δ v` are trivial on the characters and `o v * (X - 1)` kills every |
| 497 | `u x (δ v)`. (7) Every module `Z` of character cocycles for `ξ e` satisfies `HasTriangleCost` along |
| 498 | the `j` of type `e`, and a member of `Z` that vanishes on the finite set `s ⊆ G` is zero |
| 499 | (`IsDetectedBy`). Then the determinants of all combinations `∑ ω g (u x g - 1)` lie in `S` and |
| 500 | vanish on `𝓧`, one `f : S` multiplies them into `𝒥`, `f` has on `𝓧` no monomial properly dividing |
| 501 | `∏ X j`, and the coefficient of `∏ X j` in `f π` comes from some `c : O` of valuation at most |
| 502 | `b₀ + ∑ b e + t (∑ val (o v (1)) + 2 #s val C) + (#J + 1) val C`, with `val = addVal O` and `t` the |
| 503 | number of characters. A character cocycle for `ξ e` is a cocycle `c : G → O / p` for `ξ e` that has |
| 504 | `∑ θ g • c g = 0` whenever `∑ θ g • (u x g - 1) = 0` for all `x`, vanishes at the `δ v`, and, if it |
| 505 | vanishes at `γ π`, has `(ξ e g - 1) • c a = 0` for all `g`. `HasTriangleCost` asks for a set `A ⊆ G` |
| 506 | such that, with `Z₀` the part of `Z` vanishing on `A`: for `j` of type `e` and `c ∈ Z₀`, `C` kills |
| 507 | `c (τ (j, true)) - c (τ (j, false))` as soon as `c (τ (i, true)) = c (τ (i, false))` for all `i < j` |
| 508 | and `c (φ (i, true)) = c (φ (i, false))` for the `i < j` of type `e`; and the length of `Z / Z₀` |
| 509 | plus the length of `Z₁` modulo its `C`-torsion is at most `b e`, for every submodule `Z₁ ≤ Z₀` whose |
| 510 | members vanish at all `τ k` and have `c (φ (j, true)) = c (φ (j, false))` for `j` of type `e`. -/ |
| 511 | lemma exists_isCommonRibetElement_addVal_le (u : Y → G →* Matrix σ σ O) |
| 512 | {S : Subalgebra O (Y → MvPolynomial J L)} (𝒥 : Submodule S (Y → MvPolynomial J L)) |
| 513 | [DVR O] [Fintype Y] [Fintype J] [LinearOrder J] {r : Type} |
| 514 | [Fintype r] [DecidableEq r] {t : ℕ} [NeZero t] (blockEquiv : r ⊕ Fin t ≃ σ) |
| 515 | -- (1) on `𝓧`, `u x` is the block `ρ x` plus the characters `ξ e` |
| 516 | {𝓧 : Set Y} (π : 𝓧) (ρ : 𝓧 → G →* Matrix r r O) {ξ : Fin t → G →* O} (hξ₀ : ξ 0 = 1) |
| 517 | (hu_block : ∀ (x : 𝓧) (g : G), |
| 518 | u x g = reindex blockEquiv blockEquiv |
| 519 | (fromBlocks (ρ x g) 0 0 (diagonal fun e : Fin t ↦ ξ e g))) |
| 520 | (hρ_span : span O (Set.range (ρ π)) = ⊤) |
| 521 | -- (2) `γ x` is a scalar `y x` on the block, `y x - 1` a unit, and trivial on the characters |
| 522 | {γ : 𝓧 → G} {y : 𝓧 → O} (hργ : ∀ x : 𝓧, ρ x (γ x) = y x • 1) |
| 523 | (hy_unit : ∀ x : 𝓧, IsUnit (y x - 1)) (hξγ : ∀ (x : 𝓧) (e : Fin t), ξ e (γ x) = 1) |
| 524 | -- (3) two relations in `𝒥` for each `j : J`, indexed by `(j, true)` and `(j, false)`, whose |
| 525 | -- factors `ε` are `1` modulo `p` on the characters |
| 526 | {p : O} {τ φ : J × Bool → G} {ε : J → O[X]} (hp : p ≠ 0) |
| 527 | (h𝒥 : IsTraceIdeal 𝒥 (fun x : Y ↦ u x) p τ φ Prod.fst ε) |
| 528 | (hε : ∀ (e : Fin t) (k : J × Bool), p ∣ (ε k.1).eval (ξ e (φ k)) - 1) |
| 529 | -- (4) `a` separates the characters up to `C`; `ty j` is the character that `j` belongs to |
| 530 | (a : G) {C : O} |
| 531 | (hC_dvd : ∀ e : Fin t, ∏ k ∈ ({e}ᶜ : Finset (Fin t)), (ξ e a - ξ k a) ∣ C) (ty : J →o Fin t) |
| 532 | -- (5) the bound `b₀` for cocycles of the block with values in `K/O` that vanish at the `τ k` |
| 533 | -- and at `γ π` |
| 534 | {b₀ : ℕ} |
| 535 | (hb₀ : length O (ribetCocyclesVanishingOn u (ρ π) (DivisibleQuot O) (Set.range τ) (γ π)) ≤ b₀) |
| 536 | -- (6) elements `δ v`, trivial on the characters, with `u x (δ v)` killed by `o v * (X - 1)` |
| 537 | [Fintype W] {δ : W → G} {o : W → O[X]} (hξδ : ∀ (v : W) (e : Fin t), ξ e (δ v) = 1) |
| 538 | (hδ_poly : ∀ (v : W) (x : Y), aeval (u x (δ v)) (o v * (X - 1)) = 0) |
| 539 | -- (7) a module `Z` of cocycles of `ξ e` modulo `p` costs at most `b e` and is detected by `s` |
| 540 | {s : Finset G} {b : Fin t → ℕ∞} |
| 541 | (hb : ∀ (e : Fin t) (Z : Submodule O (G → Unit → QuotSpan p)), |
| 542 | (∀ c ∈ Z, IsCharacterCocycle u (ξ e) δ (γ π) a c) → |
| 543 | HasTriangleCost Z (fun j : J ↦ τ (j, true)) (fun j : J ↦ τ (j, false)) |
| 544 | (fun j : J ↦ φ (j, true)) (fun j : J ↦ φ (j, false)) {j : J | ty j = e} C (b e) ∧ |
| 545 | IsDetectedBy Z s) : |
| 546 | ∃ c : O, |
| 547 | -- (a) `c` is the coefficient of `∏ X j` at `π` in one Ribet element for every `ω` |
| 548 | IsCommonRibetElement 𝒥 |
| 549 | (fun (ω : G →₀ O) (x : Y) ↦ |
| 550 | algebraMap O L (linearCombination O (fun g : G ↦ u x g - 1) ω).det) |
| 551 | π (algebraMap O L c) ∧ |
| 552 | -- (b) its valuation is at most the bounds `b₀`, `b e` plus the loss |
| 553 | addVal O c ≤ b₀ + (∑ e : Fin t, b e + |
| 554 | t * (∑ v : W, addVal O (eval 1 (o v)) + 2 * #s * addVal O C) + |
| 555 | (Fintype.card J + 1) * addVal O C) := by |
| 556 | classical |
| 557 | -- Over `O[X j][G]`: a matrix `B₀` of tied rows whose determinant on the summand `ρ π` has bounded |
| 558 | -- valuation at `X j = 0`, and matrices of tied rows giving a multiple of `∏ X j` on the |
| 559 | -- characters, up to monomials that are not read, are glued by a projector `k` into one element. |
| 560 | obtain ⟨k, hkξ, hkρ⟩ : ∃ k : (MvPolynomial J O)[G], (∀ e : Fin t, polyChar J (ξ e) k = 1) ∧ |
| 561 | ∀ x : 𝓧, polyAction J (ρ x) k = 0 := exists_character_projector ρ hργ hy_unit hξγ |
| 562 | -- Elements `q e` that are `C` on the character `ξ e` and `0` on the other characters. |
| 563 | have exists_q (e : Fin t) : ∃ q : (MvPolynomial J O)[G], |
| 564 | ∀ e' : Fin t, polyChar J (ξ e') q = if e' = e then .C C else 0 := by |
| 565 | refine exists_apply_eq_ite_of_prod_dvd (fun e' ↦ polyChar J (ξ e')) (.single a 1) ?_ |
| 566 | simpa [polyChar_single] using map_dvd (MvPolynomial.C (σ := J)) (hC_dvd e) |
| 567 | choose q hq using exists_q |
| 568 | -- Generators: the `δ v`, a finite `s₀` whose `u · g - 1` span all the others, and `s`. |
| 569 | obtain ⟨s₀, z, hz⟩ : ∃ (s₀ : Finset G) (z : G → W ⊕ s₀ ⊕ s → O), |
| 570 | AreCoordinates u (ribetGenerators δ s₀ s) z := exists_areCoordinates_ribetGenerators u δ s |
| 571 | -- With `c₁ = 1 / (y π - 1)`, the element `c₁ (γ π - 1)` of `tiedNormalizer` is `1` on `ρ π`. |
| 572 | obtain ⟨c₁, hc₁⟩ : ∃ c : O, c * (y π - 1) = 1 := (hy_unit π).exists_left_inv |
| 573 | -- The block: tied rows `B₀` whose determinant on `ρ π`, at `X j = 0`, has valuation at most `b₀`. |
| 574 | obtain ⟨B₀, hB₀, hB₀_val⟩ : ∃ B₀ : Matrix (W ⊕ s₀ ⊕ s) (W ⊕ s₀ ⊕ s) (MvPolynomial J O)[G], |
| 575 | (∀ i, B₀ i ∈ tiedRows u (ribetGenerators δ s₀ s) p τ φ ε (tiedNormalizer J (γ π) a c₁)) ∧ |
| 576 | addVal O (Matrix.comp _ _ r r O (B₀.map (polyActionAtZero J (ρ π)))).det ≤ b₀ := |
| 577 | exists_tiedRows_addVal_det_le u (ρ π) hρ_span (hργ π) hc₁ a hz hb₀ |
| 578 | -- The characters: matrices `R.tiedMatrix i` of tied rows for all characters. |
| 579 | obtain ⟨R⟩ : Nonempty (CharacterRows u ξ δ o s₀ s (γ π) a c₁ C p τ φ ε ty b) := |
| 580 | nonempty_characterRows u hξδ hδ_poly hz (hξγ π) c₁ hp hε hq ty (fun e Z hZ ↦ (hb e Z hZ).1) |
| 581 | fun e Z hZ ↦ (hb e Z hZ).2 |
| 582 | -- The gluing, with the weights `∏ R.coeff e (i e)`. At `x ∈ 𝓧` the value is `F x * ∏ R.detSum e`. |
| 583 | let c₀ : O := (∏ v, (o v).eval 1) * C ^ #s |
| 584 | let D (x : 𝓧) : MvPolynomial J O := |
| 585 | (Matrix.comp _ _ r r (MvPolynomial J O) (B₀.map (polyAction J (ρ x)))).det |
| 586 | let F (x : 𝓧) : MvPolynomial J O := D x * .C (C * c₀ ^ t) |
| 587 | obtain ⟨f, hf_mem, hf_val⟩ : ∃ f : S, |
| 588 | (∀ ω : G →₀ O, f.val * (fun x : Y ↦ MvPolynomial.C |
| 589 | (algebraMap O L (linearCombination O (fun g ↦ u x g - 1) ω).det)) ∈ 𝒥) ∧ |
| 590 | ∀ x : 𝓧, f.1 x = algebraMap (MvPolynomial J O) (MvPolynomial J L) (∑ i : ∀ e, Fin (R.count e), |
| 591 | (∏ e, R.coeff e (i e)) * (.C C * D x * ∏ e, |
| 592 | ((R.tiedMatrix i).map (polyChar J (ξ e))).det)) := |
| 593 | exists_traceIdeal_multiplier_eq_sum_det u 𝒥 blockEquiv ρ hξ₀ hu_block h𝒥 hz (γ := γ π) (a := a) |
| 594 | (c₁ := c₁) |
| 595 | hkξ hkρ (μ₀ := .C C) (hq 0) B₀ hB₀ (fun i : ∀ e, Fin (R.count e) ↦ ∏ e, R.coeff e (i e)) |
| 596 | R.tiedMatrix R.tied |
| 597 | have hf_eq (x : 𝓧) : |
| 598 | f.val x = algebraMap (MvPolynomial J O) (MvPolynomial J L) (F x * ∏ e, R.detSum e) := by |
| 599 | rw [hf_val x] |
| 600 | congr 1 |
| 601 | calc ∑ i : ∀ e, Fin (R.count e), (∏ e, R.coeff e (i e)) * |
| 602 | (.C C * D x * ∏ e, ((R.tiedMatrix i).map (polyChar J (ξ e))).det) |
| 603 | = .C C * D x * ∑ i : ∀ e, Fin (R.count e), |
| 604 | (∏ e, R.coeff e (i e)) * ∏ e, ((R.tiedMatrix i).map (polyChar J (ξ e))).det := by |
| 605 | simp only [Finset.mul_sum, mul_left_comm (∏ e, R.coeff e _)] |
| 606 | _ = .C C * D x * (.C c₀ ^ t * ∏ e, R.detSum e) := by |
| 607 | rw [R.sum_prod_coeff_mul_prod_det_tiedMatrix] |
| 608 | _ = F x * ∏ e, R.detSum e := by |
| 609 | simp only [F, map_mul, map_pow] |
| 610 | ring |
| 611 | have hf_coeff (x : 𝓧) (i : J →₀ ℕ) (hi : i ≤ ∑ j : J, .single j 1) : |
| 612 | (f.val x).coeff i = algebraMap O L |
| 613 | (if ∑ j, .single j 1 = i then constantCoeff (F x * ∏ e, R.multiplier e) else 0) := by |
| 614 | rw [hf_eq, ← coeff_mul_prod_of_mem_colon ty R.correction_mem_colon R.add_eq_mul_prod (F x) hi] |
| 615 | exact MvPolynomial.coeff_map (algebraMap O L) (F x * ∏ e, R.detSum e) i |
| 616 | refine ⟨constantCoeff (F π * ∏ e, R.multiplier e), |
| 617 | ⟨C_det_linearCombination_mem u h𝒥.X_mem h𝒥.charpoly_coeff_mem hz, fun ω x ↦ ?_, |
| 618 | f, hf_mem, fun x i hi ↦ ?_, ?_⟩, ?_⟩ |
| 619 | · simp only [det_linearCombination_sub_one_eq_zero u blockEquiv hξ₀ (hu_block x), map_zero] |
| 620 | · rw [hf_coeff x i hi.le, ite_eq_right hi.ne', map_zero] |
| 621 | · rw [hf_coeff π _ le_rfl, ite_eq_left rfl] |
| 622 | · -- Add up the valuations. |
| 623 | have hD_eq : constantCoeff (D π) = |
| 624 | (Matrix.comp _ _ r r O (B₀.map (polyActionAtZero J (ρ π)))).det := by |
| 625 | simp [D, polyActionAtZero, det_apply'] |
| 626 | have hD : addVal O (constantCoeff (D π)) ≤ b₀ := by rwa [hD_eq] |
| 627 | have hc₀ : addVal O c₀ = ∑ v, addVal O (eval 1 (o v)) + #s * addVal O C := by |
| 628 | simp [c₀, addVal_prod] |
| 629 | calc addVal O (constantCoeff (F π * ∏ e, R.multiplier e)) |
| 630 | = addVal O (constantCoeff (D π)) + (addVal O C + t * addVal O c₀) + |
| 631 | addVal O (constantCoeff (∏ e, R.multiplier e)) := by |
| 632 | simp only [F, map_mul, MvPolynomial.constantCoeff_C, addVal_mul, addVal_pow, nsmul_eq_mul] |
| 633 | _ ≤ b₀ + (addVal O C + t * addVal O c₀) + |
| 634 | (∑ e, b e + (Fintype.card J + t * #s) * addVal O C) := |
| 635 | add_le_add (add_le_add hD le_rfl) R.addVal_constantCoeff_prod_le |
| 636 | _ = b₀ + (∑ e, b e + t * (∑ v, addVal O (eval 1 (o v)) + 2 * #s * addVal O C) + |
| 637 | (Fintype.card J + 1) * addVal O C) := by |
| 638 | rw [hc₀] |
| 639 | ring |
| 640 | |
| 641 | end Lemma |
| 642 | |
| 643 | end New.Selmer |
| 644 | |
| 645 | end RibetFirstOrder |