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.Algebra.Order.Star.Int |
| 5 | import Mathlib.Algebra.Order.Star.Real |
| 6 | import Mathlib.Analysis.SpecialFunctions.RegularizedHypergeometric |
| 7 | import Mathlib.FieldTheory.Galois.Profinite |
| 8 | import Mathlib.RingTheory.TotallySplit |
| 9 | public import New.Congruences.Lifting.CupOrthogonalityBounds |
| 10 | public import New.Congruences.LocalLoss.Basic |
| 11 | |
| 12 | /-! |
| 13 | # Crystalline cocycles and the defect of a crystalline lattice at a place above ℓ |
| 14 | |
| 15 | This file gives local estimates at a place above ℓ for the module `New.Period.crysCocycles` of |
| 16 | crystalline cocycles of a Galois lattice `L` over a coefficient ring `O`. Throughout, the instance |
| 17 | `OverGp Γ ℓ` gives a homomorphism j from `Γ` to G_ℓ = Gal(ℚ̄_ℓ / ℚ_ℓ) with open image. |
| 18 | `New.CoeffRing.normLength` normalises lengths so that `O / ℓ` has length `1`. For a crystalline |
| 19 | lattice, the defect `New.Lift.dualDefect` for a class of lattices is the length of the cocycles |
| 20 | modulo those in the annihilator `New.Lift.cupOrthogonal` of the lattices in the class. This file |
| 21 | computes the rank of the crystalline cocycles and bounds the normalised defect of a lattice whose |
| 22 | jumps lie in windows, under the size conditions `New.Selmer.CrystallineSizes`. |
| 23 | |
| 24 | ## Main definitions and results |
| 25 | |
| 26 | * `New.Selmer.finrank_crysCocycles_eq_add_neg_jumps`: the rank is `rank L` plus the number of |
| 27 | negative Hodge–Tate jumps at the embeddings that belong to the place. |
| 28 | * `New.Selmer.normLength_dualDefect_le_of_hasCupExponent`: if a power ℓ^k carries the cocycles into |
| 29 | the annihilator of a class of lattices, as `New.Lift.HasCupExponent` says, then the defect is |
| 30 | bounded in terms of k. |
| 31 | * `New.Selmer.normLength_dualDefect_le_of_crystallineSizes`: the defect bound uses any loss |
| 32 | satisfying the size and divisibility conditions at `ℓ`. |
| 33 | |
| 34 | Notions from other files: |
| 35 | * `New.Lift.GalLattice`: A finite free O-module with a compatible ℤ_ℓ-module structure, together |
| 36 | with an O-linear representation of the group Γ on it. |
| 37 | * `New.Period.IsPotentiallyCrystalline`: for a representation on T and the crystalline period ring |
| 38 | B, the elements of B⊗T fixed by all g with j(g) near 1 span B⊗T over B. |
| 39 | * `New.Period.crysCocycles`: Z_f(T), the module, over the coefficient ring, of maps c: Γ → T such |
| 40 | that some y in B⊗T has 1⊗c(g) = gy − y for all g. |
| 41 | * `New.Period.jump`: The multiplicity of the Hodge–Tate jump u at γ: the dimension over ℚ̄_ℓ (zero |
| 42 | if infinite) of the space `New.Period.hodgeTateMaps`. |
| 43 | |
| 44 | ## Relation to the literature |
| 45 | |
| 46 | See `New.Congruences.LocalLoss.CrystallineDefect` for related work. |
| 47 | -/ |
| 48 | |
| 49 | @[expose] public section |
| 50 | |
| 51 | /-! |
| 52 | ## Rank of crystalline cocycles and a length bound |
| 53 | |
| 54 | `New.Period.HasJumps ρ γ J` says that `J` is the multiset of jumps at the coefficient embedding `γ`. |
| 55 | -/ |
| 56 | |
| 57 | namespace New.Selmer |
| 58 | |
| 59 | export Lift (InClass) |
| 60 | |
| 61 | open Lift Period crysCocycles Module Set Multiset Finset DFunLike Submodule Finite TensorProduct |
| 62 | |
| 63 | variable {ℓ : ℕ} [ThePrime ℓ] {O : CoeffRing ℓ} {Γ : Type} {n : Type} [Group Γ] [Fintype n] |
| 64 | [DecidableEq n] [𝒥 : OverGp Γ ℓ] {R : Type} [CommRing R] [Algebra ℤ_[ℓ] R] [TopologicalSpace Γ] |
| 65 | {L : GalLattice O Γ} |
| 66 | |
| 67 | /-- The Γ-lattice over R given by the module R^n with Γ acting through the matrix representation |
| 68 | ρ. -/ |
| 69 | noncomputable abbrev matrixLattice (ρ : Γ →* Matrix n n R) : GalLattice R Γ where |
| 70 | Carrier := n → R |
| 71 | ρ := actionRep R (n → R) ρ |
| 72 | |
| 73 | open scoped Classical in |
| 74 | /-- Let `E` be a CM field containing a primitive `5040`-th root of unity, `e` an embedding of `E` |
| 75 | into `ℚ̄_ℓ`, and let `𝒥.toGp : Γ → G_ℓ` be an open embedding onto the elements of |
| 76 | `G_ℓ = Gal(ℚ̄_ℓ / ℚ_ℓ)` that fix `e E` (`h_group`). Let `O` be the ring of integers of a finite |
| 77 | Galois extension of `ℚ_ℓ` and `L` a potentially crystalline `O`-lattice with action of `Γ`. For `g` |
| 78 | in `G_ℓ`, `coefficientEmbedding O g` is the embedding `x ↦ g x` of `O` into `ℂ_ℓ`, and |
| 79 | `complexEmbeddingOf e g` is the complex embedding `ι⁻¹ ∘ g⁻¹ ∘ e` of `E`, with `ι : ℂ ≃ ℚ̄_ℓ` the |
| 80 | isomorphism fixed by `PadicIso ℓ`. Suppose that for each `g` the Hodge–Tate jumps of `L` at the |
| 81 | first are the multiset `J` at the second. Then the rank of the module of crystalline cocycles of `L` |
| 82 | is `rank L` plus the number of negative jumps, summed over the distinct embeddings `ι⁻¹ ∘ g⁻¹ ∘ e` |
| 83 | of `E`. |
| 84 | |
| 85 | A case of the Bloch–Kato rank formula for crystalline cocycles. -/ |
| 86 | lemma finrank_crysCocycles_eq_add_neg_jumps {E : Type*} [Field E] [CMFieldWithRoot5040 E] |
| 87 | {e : E →+* PadicAlgCl ℓ} [PadicIso ℓ] (h_group : IsCompletionGroup e 𝒥.toGp) |
| 88 | (h_crys : IsPotentiallyCrystalline L.ρ) {J : (E →+* ℂ) → Multiset ℤ} |
| 89 | (hJ : ∀ g : Gp ℓ, HasJumps L.ρ (coefficientEmbedding O g) (J (complexEmbeddingOf e g))) : |
| 90 | finrank O (crysCocycles L.ρ) = |
| 91 | finrank O L + ∑ σ : E →+* ℂ with ∃ g : Gp ℓ, complexEmbeddingOf e g = σ, |
| 92 | (J σ).countP (· < 0) := by |
| 93 | -- Apply the rank formula over `ℤ_ℓ`, count the jumps in two ways, and divide by `[O : ℤ_ℓ]`. |
| 94 | have : Module.Finite O (crysCocycles L.ρ) := fg h_crys |
| 95 | -- Every embedding `φ` of `O` is `coefficientEmbedding O (s φ)`; `K φ` are the jumps at `φ`. |
| 96 | choose s hs using coefficientEmbedding_surjective (O := O) |
| 97 | choose K hK using fun φ : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ] ↦ |
| 98 | (h_crys.exists_hasJumps φ).imp fun _ h_jumps ↦ h_jumps.2 |
| 99 | -- Over `ℤ_ℓ` the jumps are those at all the embeddings of `O` together. |
| 100 | have jumps_sum : HasJumps (overZp L.ρ) (Algebra.ofId ℤ_[ℓ] ℂ_[ℓ]) (∑ φ, K φ) := fun u ↦ by |
| 101 | simpa [← h_crys.sum_jump_eq_jump_overZp.1 u, count_sum'] using |
| 102 | sum_congr rfl fun φ _ ↦ hK φ u |
| 103 | have K_eq (g : Gp ℓ) : K (coefficientEmbedding O g) = J (complexEmbeddingOf e g) := |
| 104 | ext' fun u ↦ (hK (coefficientEmbedding O g) u).symm.trans (hJ g u) |
| 105 | -- `φ ↦ coefficientEmbedding O (g * s φ)` permutes the embeddings of `O`. |
| 106 | have sum_K (g : Gp ℓ) : ∑ φ, K (coefficientEmbedding O (g * s φ)) = ∑ φ, K φ := by |
| 107 | refine (Function.Injective.bijective_of_finite fun φ ψ h_eq ↦ ?_).sum_comp K |
| 108 | -- Both sides are `g` applied to the values of `s φ` and `s ψ`, and `g` is injective. |
| 109 | rw [← hs φ, ← hs ψ] |
| 110 | simpa [coefficientEmbedding, ext_iff] using h_eq |
| 111 | -- Left translation by `g⁻¹` permutes the cosets. Under the embedding equivalence this |
| 112 | -- sends the embedding represented by `q.out⁻¹` to the one represented by `q.out⁻¹ * g`. |
| 113 | let emb := h_group.cosetEquivEmbeddings |
| 114 | let := Fintype.ofEquiv _ emb.symm |
| 115 | have sum_J (g : Gp ℓ) : |
| 116 | ∑ q : Gp ℓ ⧸ 𝒥.toGp.range, J (complexEmbeddingOf e (q.out⁻¹ * g)) = |
| 117 | ∑ σ : range (complexEmbeddingOf e), J σ := by |
| 118 | refine Fintype.sum_equiv ((MulAction.toPerm g⁻¹).trans emb) _ _ fun q ↦ ?_ |
| 119 | change _ = J (emb (g⁻¹ • q)) |
| 120 | simp [emb, h_group.cosetEquivEmbeddings_smul] |
| 121 | -- Sum over the coefficient embeddings first, then over the cosets. |
| 122 | have double_count : |
| 123 | 𝒥.toGp.range.index • ∑ φ, K φ = finrank ℤ_[ℓ] O • ∑ σ : range (complexEmbeddingOf e), J σ := |
| 124 | calc _ = ∑ q : Gp ℓ ⧸ 𝒥.toGp.range, ∑ φ, K (coefficientEmbedding O (q.out⁻¹ * s φ)) := by |
| 125 | simp [sum_K, Subgroup.index] |
| 126 | _ = ∑ φ, ∑ q : Gp ℓ ⧸ 𝒥.toGp.range, K (coefficientEmbedding O (q.out⁻¹ * s φ)) := sum_comm |
| 127 | _ = _ := by simp [K_eq, sum_J, card_algHom_eq_finrank] |
| 128 | -- Multiplied by `[O : ℤ_ℓ]`, the ranks become ranks over `ℤ_ℓ`. There `crysCocycles.finrank_eq` |
| 129 | -- gives the rank of `L` plus the index times the number of negative jumps, which `double_count` |
| 130 | -- evaluates. |
| 131 | have h_neg : 𝒥.toGp.range.index * (∑ φ, K φ).countP (· < 0) = |
| 132 | finrank ℤ_[ℓ] O * |
| 133 | ∑ σ : E →+* ℂ with ∃ g : Gp ℓ, complexEmbeddingOf e g = σ, (J σ).countP (· < 0) := by |
| 134 | simpa [← coe_countPAddMonoidHom, sum_set_coe, ← filter_mem_univ_eq_toFinset] using |
| 135 | congrArg (countP (· < 0)) double_count |
| 136 | refine Nat.mul_left_cancel (finrank_pos (R := ℤ_[ℓ]) (M := O)) ?_ |
| 137 | rw [mul_add, finrank_mul_finrank, finrank_mul_finrank, (finrank_eq h_crys jumps_sum).2, h_neg] |
| 138 | |
| 139 | /-- From an exponent to the defect. Let `L` be potentially crystalline, and let `ℓ ^ k` carry the |
| 140 | crystalline cocycles of `L` into `cupOrthogonal 𝒬 L`, the functions orthogonal to the lattices in |
| 141 | `𝒬` under the cup product (this is `HasCupExponent 𝒬 L k`). The defect `dualDefect 𝒬 L` is the |
| 142 | length of the crystalline cocycles modulo `cupOrthogonal 𝒬 L`. Then this defect, normalised so that |
| 143 | `O / ℓ` has length `1` (`normLength`), is at most `y` times the index of the image of `Γ` under |
| 144 | `𝒥.toGp` in `G_ℓ`, for any `y ≥ 2 k · rank L`. -/ |
| 145 | lemma normLength_dualDefect_le_of_hasCupExponent {k : ℕ} (hL : IsPotentiallyCrystalline L.ρ) |
| 146 | {𝒬 : GalLattice O Γ → Prop} {y : NNReal} |
| 147 | (hy : finrank O L * (2 * k) ≤ y) (h_exp : HasCupExponent 𝒬 L k) : |
| 148 | O.normLength (dualDefect 𝒬 L) ≤ 𝒥.toGp.range.index * y := by |
| 149 | -- The defect is the length of a quotient of `crysCocycles / ℓ ^ k`, that is of `(O / ℓ ^ k) ^ r`, |
| 150 | -- with `r` the `O`-rank of `crysCocycles`; this has normalised length `r * k`. Bloch–Kato bounds |
| 151 | -- `r` by `2 * index * rank L`. |
| 152 | have : Module.Finite O (crysCocycles L.ρ) := fg hL |
| 153 | obtain ⟨K, hK_card, hK⟩ := hL.exists_hasJumps (ρ := overZp L.ρ) (Algebra.ofId ℤ_[ℓ] ℂ_[ℓ]) |
| 154 | set m : ℕ := 𝒥.toGp.range.index |
| 155 | have hm : 0 < m := (𝒥.toGp.range.quotient_finite_of_isOpen 𝒥.isOpen_range.out).card_pos |
| 156 | -- The rank over `ℤ_ℓ`: at most `rank L` of the jumps `K` are negative. |
| 157 | have h_rankZ : finrank ℤ_[ℓ] (crysCocycles L.ρ) ≤ 2 * (m * finrank ℤ_[ℓ] L) := |
| 158 | calc _ = finrank ℤ_[ℓ] L + m * K.countP (· < 0) := (finrank_eq hL hK).2 |
| 159 | _ ≤ finrank ℤ_[ℓ] L + m * finrank ℤ_[ℓ] L := by grw [countP_le_card, hK_card] |
| 160 | _ ≤ _ := by linarith [Nat.le_mul_of_pos_left (finrank ℤ_[ℓ] L) hm] |
| 161 | -- The rank over `O`: divide by the degree of `O` over `ℤ_ℓ`. |
| 162 | have h_rank : finrank O (crysCocycles L.ρ) ≤ 2 * (m * finrank O L) := by |
| 163 | rw [← finrank_mul_finrank ℤ_[ℓ] O, ← finrank_mul_finrank ℤ_[ℓ] O L] at h_rankZ |
| 164 | exact le_of_mul_le_mul_left (by linarith) (finrank_pos (R := ℤ_[ℓ]) (M := O)) |
| 165 | let I : Ideal O := Ideal.span {(ℓ : ↑O) ^ k} |
| 166 | have h_sub : I • ⊤ ≤ (cupOrthogonal 𝒬 L).submoduleOf (crysCocycles L.ρ) := by |
| 167 | rw [ideal_span_singleton_smul] |
| 168 | rintro _ ⟨c, -, rfl⟩ |
| 169 | exact h_exp _ c.property |
| 170 | calc _ ≤ O.normLength (length O (crysCocycles L.ρ ⧸ I • (⊤ : Submodule O _))) := by |
| 171 | grw [dualDefect, relLength, length_le_of_surjective _ (factor_surjective h_sub)] |
| 172 | _ = finrank O (crysCocycles L.ρ) * k := by |
| 173 | rw [← (quotTensorEquivQuotSMul (crysCocycles L.ρ) I).length_eq, |
| 174 | (equivFinsuppOfBasisRight (M := O ⧸ I) (finBasis O (crysCocycles L.ρ))).length_eq] |
| 175 | simp [I] |
| 176 | _ ≤ m * (finrank O L * (2 * k)) := mod_cast by linarith [Nat.mul_le_mul_right k h_rank] |
| 177 | _ ≤ m * y := mul_le_mul_right (mod_cast hy) _ |
| 178 | |
| 179 | end New.Selmer |
| 180 | |
| 181 | /-! |
| 182 | ## The defect of a crystalline lattice with jumps in a window |
| 183 | |
| 184 | `New.Lift.FitsWindows η ε b W U` says that the jump set `U` lies in the union of the low window |
| 185 | `[-η, η]` and the far window `ε [b, b + W]`. |
| 186 | -/ |
| 187 | |
| 188 | section CrystallineBound |
| 189 | |
| 190 | open New Lift Nat Module Finset Period Real |
| 191 | |
| 192 | /-- The crystalline loss `crystallineLoss h b ℓ` is the `ℓ`-adic valuation of `(2 b)!` times the |
| 193 | `h³`-th power of the product of the positive integers in `(b - 30 h³, b + 30 h³]`. If `ℓ ^ n` |
| 194 | divides this number, then `n ≤ crystallineLoss h b ℓ`. -/ |
| 195 | lemma New.Selmer.le_crystallineLoss_of_pow_dvd {ℓ h b n : ℕ} [ThePrime ℓ] |
| 196 | (hn : ℓ ^ n ∣ (2 * b)! * (∏ k ∈ Ioc (b - 30 * h ^ 3) (b + 30 * h ^ 3), k) ^ h ^ 3) : |
| 197 | n ≤ crystallineLoss h b ℓ := by |
| 198 | rwa [crystallineLoss, Nat.padicValNat_def, |
| 199 | ← multiplicity_dvd_iff_le (by simp [factorial_ne_zero, prod_eq_zero_iff])] |
| 200 | |
| 201 | /-- The bound `2 b < ℓ (crystallineLoss h b ℓ + 1)` on the crystalline loss `crystallineLoss h b ℓ`, |
| 202 | the `ℓ`-adic valuation of `(2 b)! (∏ k) ^ h³`, where `k` runs over the positive integers in |
| 203 | `(b - 30 h³, b + 30 h³]`. The factor `(2 b)!` alone gives it. -/ |
| 204 | lemma New.Selmer.two_mul_lt_mul_crystallineLoss_succ {ℓ : ℕ} [hp : ThePrime ℓ] (h b : ℕ) : |
| 205 | 2 * b < ℓ * (crystallineLoss h b ℓ + 1) := by |
| 206 | have h_val : multiplicity ℓ (2 * b)! ≤ crystallineLoss h b ℓ := |
| 207 | le_crystallineLoss_of_pow_dvd ((pow_multiplicity_dvd ℓ _).mul_right _) |
| 208 | have h_div : 2 * b / ℓ ≤ multiplicity ℓ (2 * b)! := by |
| 209 | rw [← multiplicity_mul_div_factorial, multiplicity_factorial_mul] |
| 210 | exact Nat.le_add_left _ _ |
| 211 | calc 2 * b < ℓ * (2 * b / ℓ + 1) := lt_mul_div_succ _ hp.out.pos |
| 212 | _ ≤ ℓ * (crystallineLoss h b ℓ + 1) := by grw [h_div, h_val] |
| 213 | |
| 214 | /-- If `ℓ` divides some positive integer in `(b - 30 h³, b + 30 h³]`, then the crystalline loss |
| 215 | `crystallineLoss h b ℓ` is at least `h³`. -/ |
| 216 | lemma New.Selmer.cube_le_crystallineLoss_of_dvd {ℓ h b n : ℕ} [ThePrime ℓ] |
| 217 | (hn : n ∈ Ioc (b - 30 * h ^ 3) (b + 30 * h ^ 3)) (hℓ : ℓ ∣ n) : h ^ 3 ≤ crystallineLoss h b ℓ := |
| 218 | le_crystallineLoss_of_pow_dvd |
| 219 | ((pow_dvd_pow_of_dvd (hℓ.trans (dvd_prod_of_mem _ hn)) _).mul_left _) |
| 220 | |
| 221 | /-- If `H ≤ 4 b` and `2 log (4 b) < m`, then `⌊log_ℓ H⌋ < m`, because `log ℓ ≥ 1 / 2`. -/ |
| 222 | lemma New.Selmer.natLog_lt_of_two_mul_log_lt {ℓ H b m : ℕ} [hp : ThePrime ℓ] |
| 223 | (hm : 2 * Real.log (4 * b : ℝ) < m) (hH : H ≤ 4 * b) : ℓ.log H < m := by |
| 224 | have h_half : (2 : ℝ)⁻¹ ≤ Real.log ℓ := by |
| 225 | grw [← hp.out.two_le, cast_two, ← one_sub_inv_le_log_of_pos two_pos] |
| 226 | norm_num |
| 227 | have h_nonneg : 0 ≤ Real.log (4 * b : ℝ) := by exact_mod_cast log_natCast_nonneg (4 * b) |
| 228 | rw [← Nat.cast_lt (α := ℝ)] |
| 229 | calc (ℓ.log H : ℝ) ≤ ℓ.log (4 * b) := by grw [hH] |
| 230 | _ ≤ logb ℓ (4 * b : ℕ) := natLog_le_logb _ _ |
| 231 | _ = Real.log (4 * b : ℝ) / Real.log ℓ := by simp [logb] |
| 232 | _ ≤ Real.log (4 * b : ℝ) / 2⁻¹ := by gcongr |
| 233 | _ = 2 * Real.log (4 * b : ℝ) := by ring |
| 234 | _ < m := hm |
| 235 | |
| 236 | /-- Suppose that `ℓ > G + δ + n` divides no integer in `(b - c, b + c]` and that `δ + n < c`. Then |
| 237 | `NoMultipleNear ℓ n a` holds for `a = b + δ` and for `a = G + δ`: `ℓ` divides no nonzero integer |
| 238 | within `n` of `0` or `± a`. -/ |
| 239 | lemma New.Selmer.noMultipleNear_of_forall_not_dvd {ℓ n G b c δ a : ℕ} (h_large : G + δ + n < ℓ) |
| 240 | (hc : δ + n < c) (h_not : ∀ u ∈ Ioc (b - c) (b + c), ¬ℓ ∣ u) (ha : a = b + δ ∨ a = G + δ) : |
| 241 | Lift.NoMultipleNear ℓ n a := by |
| 242 | intro u hu₀ hu h_dvd |
| 243 | -- a nonzero multiple of `ℓ` is too large for the windows at `0` and `± (G + δ)` |
| 244 | have h_le : ℓ ≤ u.natAbs := Int.natAbs_le_of_dvd_ne_zero h_dvd hu₀ |
| 245 | refine h_not u.natAbs ?_ (Int.natCast_dvd.mp h_dvd) |
| 246 | simp only [abs_le, mem_Ioc] at hu ⊢ |
| 247 | omega |
| 248 | |
| 249 | /-- The size conditions of the crystalline bound: `Q² ≪ h`, `h³ ≪ G`, `h³ G ≪ b`, `log b ≪ m` and |
| 250 | `Q η ≪ h³`, with `δ < η`. Here `A ≪ B` stands for `99 A ≤ B`, except in the logarithmic one. -/ |
| 251 | structure New.Selmer.CrystallineSizes (Q m h G b δ η W : ℕ) : Prop where |
| 252 | /-- The bound `Q` for small primes is positive. -/ |
| 253 | bound_pos : 0 < Q |
| 254 | /-- `Q² ≪ h`, with room for the width `W` of the far windows and for `m`. -/ |
| 255 | sq_le : 99 * (Q * Q + (W + 1) * Q + Q + W + m) ≤ h |
| 256 | /-- `h³ ≪ G`. -/ |
| 257 | cube_le : 99 * h ^ 3 ≤ G |
| 258 | /-- `h³ G ≪ b`. -/ |
| 259 | mul_cube_le : 99 * (G * h ^ 3 + G) ≤ b |
| 260 | /-- `2 log (4 b) < m`. -/ |
| 261 | log_lt : 2 * Real.log (4 * b : ℝ) < m |
| 262 | /-- The shift `δ` of the far windows is less than the radius `η` of the low window. -/ |
| 263 | shift_lt : δ < η |
| 264 | /-- `Q η ≪ h³`, with room for `W Q` and `h`. -/ |
| 265 | low_le : 99 * ((η + W) * Q + η + h) ≤ h ^ 3 |
| 266 | |
| 267 | /-- The lattice `L` has few low jumps: at each embedding the negative members of `U` and `U'` are |
| 268 | at most `-h / 2`, and at most `μ` jumps of `L` lie in `[-η, η]`. -/ |
| 269 | structure New.Selmer.HasFewLowJumps {ℓ : ℕ} [ThePrime ℓ] {Γ : Type} [Group Γ] [OverGp Γ ℓ] |
| 270 | {O : CoeffRing ℓ} (L : GalLattice O Γ) (h μ η : ℕ) (U U' : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ) : |
| 271 | Prop where |
| 272 | /-- The negative members of `U g` and `U' g` are at most `-h / 2`. -/ |
| 273 | two_mul_le (g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) (u : ℤ) (hu : u < 0) (h_mem : u ∈ U g ∨ u ∈ U' g) : |
| 274 | 2 * u ≤ -h |
| 275 | /-- At most `μ` jumps of `L` at `g`, counted with multiplicity, lie in `[-η, η]`. -/ |
| 276 | sum_jump_le (g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) : ∑ u ∈ Icc (-η : ℤ) η, jump L.ρ g u ≤ μ |
| 277 | |
| 278 | /-- `LettersReadThick k letter th ε Q h T s`: for embeddings `g` indexed by `ι`, with thickness |
| 279 | `th g` and sign `ε g`, the value `letter g` in `ℂ_ℓ` determines both by the functions `T` and `s`, |
| 280 | at thick `g` and, if `Q < ℓ`, at every `g`. Here `k` is a Kummer chart, the prime `ℓ` is small if |
| 281 | `ℓ ≤ Q`, and `h` bounds the ramification. The degree of `k` is the index of `Γ`, the chart is |
| 282 | unramified with `ℓ ≥ 7`, or `ℓ ≤ Q` and all signs agree; for `ℓ ≤ Q` thick letters are sparse. -/ |
| 283 | structure New.Selmer.LettersReadThick {ℓ : ℕ} [ThePrime ℓ] {Γ : GroupOverGp ℓ} |
| 284 | (k : KummerChart Γ) {ι : Type} (letter : ι → ℂ_[ℓ]) (th : ι → Prop) (ε : ι → ℤˣ) (Q h : ℕ) |
| 285 | (T : ℂ_[ℓ] → Prop) (s : ℂ_[ℓ] → ℤˣ) : Prop where |
| 286 | /-- The degree `e f` of the chart is the index of the image of `Γ` in `G_ℓ`. -/ |
| 287 | e_mul_f_eq_index : k.e * k.f = Γ.overGp.toGp.range.index |
| 288 | /-- The ramification `e` of the chart is at most `h`. -/ |
| 289 | e_le : k.e ≤ h |
| 290 | /-- The letter reads thickness at thick embeddings, and at all embeddings if `Q < ℓ`. -/ |
| 291 | thick_iff (g : ι) (hg : th g ∨ Q < ℓ) : th g ↔ T (letter g) |
| 292 | /-- The letter reads the sign at thick embeddings, and at all embeddings if `Q < ℓ`. -/ |
| 293 | sign_eq (g : ι) (hg : th g ∨ Q < ℓ) : ε g = s (letter g) |
| 294 | /-- The chart is unramified with `ℓ ≥ 7`, or `ℓ ≤ Q` and all letters have the same sign. -/ |
| 295 | isUnramified_or_sign_eq : k.IsUnramified ∧ 7 ≤ ℓ ∨ ℓ ≤ Q ∧ ∀ z z' : ℂ_[ℓ], s z = s z' |
| 296 | /-- For `ℓ ≤ Q` no three thick letters, that is letters with `T`, follow one another at |
| 297 | distances `≤ log_ℓ h³` in an orbit of `z ↦ z ^ ℓ`. -/ |
| 298 | not_thick_pow (hℓ : ℓ ≤ Q) (z : ℂ_[ℓ]) (a : ℕ) (ha : a ∈ Icc 1 (ℓ.log (h ^ 3))) (a' : ℕ) |
| 299 | (ha' : a' ∈ Icc 1 (ℓ.log (h ^ 3))) (hz : T z) (hz' : T (z ^ ℓ ^ a)) : ¬T (z ^ ℓ ^ (a + a')) |
| 300 | |
| 301 | open scoped Classical in |
| 302 | /-- Let `k` be a Kummer chart of `Γ`. Its letters `i` are the units of `𝔽_{ℓ^f}`, and |
| 303 | `ω = theta (k.letterTeich i)` is the root of unity in `ℂ_ℓ` that Fontaine's map `θ` gives to the |
| 304 | Teichmüller lift of `i`; `ζ` in `O` has `ζ ^ (ℓ ^ f - 1) = 1`. `FitsWindows η ε a W V` says |
| 305 | `V ⊆ [-η, η] ∪ ε · [a, a + W]`. Let the jump sets `U g` fit the windows with sign `ε g`, with |
| 306 | `a = b + δ` at thick `g` (`th g`) and `a = G + δ` at thin ones, and let `g ζ` determine thickness |
| 307 | and sign through `T` and `s` at thick `g`, and at all `g` if `Q < ℓ`. Then `k.letterJumps ζ U i`, |
| 308 | the union of `{0}` and the `U g` with `g ζ = ω`, fits the windows given by `T ω` and `s ω`, with the |
| 309 | low window widened to `[-2 G, 2 G]` if `ℓ ≤ Q`: it holds the old low window as `η ≤ G`, and the far |
| 310 | windows of the thin `g` as `δ + W ≤ G`. -/ |
| 311 | lemma New.Selmer.fitsWindows_letterJumps {ℓ : ℕ} [ThePrime ℓ] [Γ : GroupOverGp ℓ] |
| 312 | {O : CoeffRing ℓ} {k : KummerChart Γ} {ζ : k.LetterRoot O} {Q G b δ η W : ℕ} |
| 313 | {th : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Prop} {ε : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → ℤˣ} |
| 314 | {U : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ} {T : ℂ_[ℓ] → Prop} {s : ℂ_[ℓ] → ℤˣ} |
| 315 | (h_thick : ∀ g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ], th g ∨ Q < ℓ → (th g ↔ T (g ζ))) |
| 316 | (h_sign : ∀ g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ], th g ∨ Q < ℓ → ε g = s (g ζ)) |
| 317 | (hU : ∀ g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ], FitsWindows η (ε g) ((if th g then b else G) + δ) W (U g)) |
| 318 | (hη : η ≤ G) (hW : δ + W ≤ G) (i : k.Letter) : |
| 319 | FitsWindows (if ℓ ≤ Q then 2 * G else η) (s (theta (k.letterTeich i))) |
| 320 | (if T (theta (k.letterTeich i)) then b + δ else G + δ) W (k.letterJumps ζ U i) := by |
| 321 | intro u hu |
| 322 | obtain rfl | hu := mem_insert.1 hu |
| 323 | · exact .inl ⟨by omega, by omega⟩ |
| 324 | obtain ⟨g, h_letter, hu_g⟩ : |
| 325 | ∃ g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ], g ζ = theta (k.letterTeich i) ∧ u ∈ U g := by |
| 326 | simpa using mem_biUnion.1 hu |
| 327 | -- `u` is in the low window or in the far window of `g`, as `FitsWindows` says. |
| 328 | have h_win := hU g u hu_g |
| 329 | rw [← h_letter] |
| 330 | by_cases h_read : th g ∨ Q < ℓ |
| 331 | · -- The letter reads `th g` and `ε g`, so only the low window changes. |
| 332 | simp only [← h_sign g h_read, ← h_thick g h_read, ← ite_add] |
| 333 | exact h_win.imp_left fun h_low ↦ by split_ifs <;> omega |
| 334 | · -- The embedding is thin and `ℓ ≤ Q`: both windows of `g` lie in `[-2 G, 2 G]`. |
| 335 | obtain ⟨h_thin, hℓ⟩ := not_or.1 h_read |
| 336 | rw [ite_eq_right h_thin] at h_win |
| 337 | rw [ite_eq_left (not_lt.1 hℓ)] |
| 338 | omega |
| 339 | |
| 340 | /-- Assume the size conditions `CrystallineSizes`, that the ramification index `e` of the Kummer |
| 341 | chart `k` is at most `h`, and that `2 (b + δ) < h² K`. Then `20 (⌊log_ℓ h³⌋ + 1 + d) · 2 G + ⌊log_ℓ |
| 342 | (2 (b + δ + 10 G))⌋ ≤ K`, where `d = k.differentBound` is `0` if `e = 1` and `v_ℓ(e) + 1` |
| 343 | otherwise. -/ |
| 344 | lemma New.Selmer.CrystallineSizes.differentBound_mul_add_log_le {ℓ : ℕ} [ThePrime ℓ] |
| 345 | [Γ : GroupOverGp ℓ] {k : KummerChart Γ} {Q m h G b δ η W K : ℕ} |
| 346 | (h_sizes : CrystallineSizes Q m h G b δ η W) (he : k.e ≤ h) (hK : 2 * (b + δ) < h ^ 2 * K) : |
| 347 | 20 * (ℓ.log (h ^ 3) + 1 + k.differentBound) * (2 * G) + |
| 348 | ℓ.log (2 * (b + δ + 5 * (2 * G))) ≤ K := by |
| 349 | -- The bracket is at most `h`, the logarithm at most `h G`, and `41 G h ≤ K` because |
| 350 | -- `198 G h³ ≤ 2 b < h² K`. |
| 351 | have ⟨_, (hQ : 99 * (Q * Q + (W + 1) * Q + Q + W + m) ≤ h), (hG : 99 * h ^ 3 ≤ G), |
| 352 | (hb : 99 * (G * h ^ 3 + G) ≤ b), _, (hδ : δ < η), |
| 353 | (hη : 99 * ((η + W) * Q + η + h) ≤ h ^ 3)⟩ := h_sizes |
| 354 | have h_log {H : ℕ} (hH : H ≤ 4 * b) : ℓ.log H < m := |
| 355 | natLog_lt_of_two_mul_log_lt h_sizes.log_lt hH |
| 356 | have h_bracket : ℓ.log (h ^ 3) + 1 + k.differentBound ≤ h := by |
| 357 | have h_cube : ℓ.log (h ^ 3) < m := h_log (by omega) |
| 358 | have h_val : padicValNat ℓ k.e < m := by |
| 359 | rw [Nat.padicValNat_def] |
| 360 | exact (multiplicity_le_nat_log k.e).trans_lt (h_log (by omega)) |
| 361 | grw [KummerChart.differentBound, ite_le_sup] |
| 362 | omega |
| 363 | have h_last : ℓ.log (2 * (b + δ + 5 * (2 * G))) ≤ h * G := |
| 364 | calc _ ≤ m := (h_log (by omega)).le |
| 365 | _ ≤ h := by omega |
| 366 | _ ≤ h * G := Nat.le_mul_of_pos_right h (by omega) |
| 367 | grw [h_bracket, h_last] |
| 368 | nlinarith only [hK, hb] |
| 369 | |
| 370 | /-- The exponent for small primes `ℓ ≤ Q`. Let `Γ → G_ℓ` be an open embedding. The hypothesis |
| 371 | `h_sizes` is the list of inequalities `Q² ≪ h`, `m ≪ h`, `W Q ≪ h`, `h³ ≪ G`, `h³ G ≪ b`, |
| 372 | `Q η ≪ h³`, `2 log (4 b) < m` and `δ < η`. `InClass ⊤ ⊥ U` is the class of crystalline lattices |
| 373 | whose Hodge–Tate jumps at each embedding `g` of `O` lie in `U g`; let `L` lie in the class for `U'`. |
| 374 | Let `k` be a Kummer chart of `Γ`. The letters `i` of `k` are the units of `𝔽_{ℓ^f}`; `ζ` in `O` has |
| 375 | `ζ ^ (ℓ ^ f - 1) = 1`, and `k.letterJumps ζ U i` is the union of `{0}` and the sets `U g` for the |
| 376 | embeddings `g : O → ℂ_ℓ` such that `g ζ` is the Teichmüller root of unity of `i`. The predicate `T` |
| 377 | (thick) and the sign `s` on `ℂ_ℓ` satisfy `LettersReadThick`: the ramification of `k` is at most |
| 378 | `h`, the chart is unramified with `ℓ ≥ 7` or `s` is constant, and thick values are sparse along |
| 379 | `z ↦ z ^ ℓ`; `ι`, `letter`, `th`, `ε` enter only through `h_chart`. At each letter let the jumps |
| 380 | from `U` and `U'` lie in the union of `[-2 G, 2 G]` and opposite far windows of width `W`, starting |
| 381 | at `b + δ` if the letter is thick and at `G + δ` otherwise. If `2 (b + δ) < h² K`, then |
| 382 | `ℓ ^ (1600 K (⌊log_ℓ h³⌋ + 1))` times any crystalline cocycle of `L` is orthogonal under cup |
| 383 | products to the class for `U`. -/ |
| 384 | lemma New.Selmer.LettersReadThick.hasCupExponent_of_le {ℓ : ℕ} [hp : ThePrime ℓ] |
| 385 | [Γ : GroupOverGp ℓ] [TopologicalSpace Γ] {O : CoeffRing ℓ} {L : GalLattice O Γ} |
| 386 | {U U' : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ} {k : KummerChart Γ} {ι : Type} {letter : ι → ℂ_[ℓ]} |
| 387 | {th : ι → Prop} {ε : ι → ℤˣ} {Q m h G b δ η W K : ℕ} {T : ℂ_[ℓ] → Prop} [DecidablePred T] |
| 388 | {s : ℂ_[ℓ] → ℤˣ} (h_chart : LettersReadThick k letter th ε Q h T s) |
| 389 | (h_sizes : CrystallineSizes Q m h G b δ η W) (hℓ : ℓ ≤ Q) (hK : 2 * (b + δ) < h ^ 2 * K) |
| 390 | (ζ : k.LetterRoot O) (h_open : Topology.IsOpenEmbedding Γ.overGp.toGp) (hL : InClass ⊤ ⊥ U' L) |
| 391 | (hU : ∀ i : k.Letter, FitsWindows (2 * G) (-s (theta (k.letterTeich i))) |
| 392 | (if T (theta (k.letterTeich i)) then b + δ else G + δ) W (k.letterJumps ζ U i)) |
| 393 | (hU' : ∀ i : k.Letter, FitsWindows (2 * G) (s (theta (k.letterTeich i))) |
| 394 | (if T (theta (k.letterTeich i)) then b + δ else G + δ) W (k.letterJumps ζ U' i)) : |
| 395 | HasCupExponent (InClass ⊤ ⊥ U) L (1600 * (K * (ℓ.log (h ^ 3) + 1))) := by |
| 396 | -- The thick letters are sparse, with gaps measured up to `J = ⌊log_ℓ h³⌋`, so |
| 397 | -- `hasCupExponent_sparse_thick` applies with low window `[-2 G, 2 G]` and costs `2 K` and `K`. |
| 398 | have ⟨_, hQ, (hG : 99 * h ^ 3 ≤ G), (hb : 99 * (G * h ^ 3 + G) ≤ b), _, hδ, hη⟩ := h_sizes |
| 399 | have he : k.e ≤ h := h_chart.e_le |
| 400 | have h_pow : h ^ 3 ≤ ℓ ^ (ℓ.log (h ^ 3) + 1) := (lt_pow_succ_log_self hp.out.one_lt _).le |
| 401 | have h_depth : k.e * (2 * (b + δ + 5 * (2 * G))) ≤ ℓ ^ (ℓ.log (h ^ 3) + 1) * (2 * K) := by |
| 402 | have h_le : 2 * (b + δ + 5 * (2 * G)) ≤ 2 * (2 * (b + δ)) := by omega |
| 403 | grw [← h_pow, h_le, hK, he] |
| 404 | linarith |
| 405 | have h_far : 10 * ℓ ^ ℓ.log (h ^ 3) * (2 * G) ≤ b + δ := by |
| 406 | grw [pow_log_le_self _ (by omega)] |
| 407 | linarith |
| 408 | have h_sign : k.IsUnramified ∧ 7 ≤ ℓ ∧ 10 * ℓ ^ ℓ.log (h ^ 3) * (2 * G) ≤ b + δ ∨ |
| 409 | (∀ i i' : k.Letter, s (theta (k.letterTeich i)) = s (theta (k.letterTeich i'))) ∧ |
| 410 | 8 * k.e ≤ ℓ ^ (ℓ.log (h ^ 3) + 1) := by |
| 411 | obtain ⟨h_un, h_seven⟩ | ⟨-, h_same⟩ := h_chart.isUnramified_or_sign_eq |
| 412 | · exact .inl ⟨h_un, h_seven, h_far⟩ |
| 413 | · exact .inr ⟨fun i i' ↦ h_same _ _, h_pow.trans' (by omega)⟩ |
| 414 | have h_gaps : 1 ≤ ℓ.log (h ^ 3) := Nat.log_pos hp.out.one_lt (by omega) |
| 415 | have h_sparse (i : k.Letter) : ∀ a ∈ Icc 1 (ℓ.log (h ^ 3)), ∀ a' ∈ Icc 1 (ℓ.log (h ^ 3)), |
| 416 | T (theta (k.letterTeich i)) → T (theta (k.letterTeich ((k.letterFrob ^ a) i))) → |
| 417 | ¬T (theta (k.letterTeich ((k.letterFrob ^ (a + a')) i))) := by |
| 418 | -- The Frobenius on letters is `z ↦ z ^ ℓ`. |
| 419 | have h_shift (t : ℕ) : ⇑(k.letterFrob ^ t) = fun i ↦ i ^ ℓ ^ t := |
| 420 | (k.letterFrob.coe_pow t).trans (pow_iterate ℓ t) |
| 421 | simpa [h_shift] using h_chart.not_thick_pow hℓ (theta (k.letterTeich i)) |
| 422 | have h_exp := k.hasCupExponent_sparse_thick ζ h_open (by omega) hL hU hU' (by omega) |
| 423 | h_gaps h_sparse h_sign h_depth (h_sizes.differentBound_mul_add_log_le he hK) |
| 424 | have hK_pos : 0 < K := Nat.pos_of_ne_zero fun h0 ↦ by simp [h0] at hK |
| 425 | exact h_exp.mono (by nlinarith only [Nat.mul_le_mul_left K h_gaps, hK_pos]) |
| 426 | |
| 427 | /-- The exponent for large primes `ℓ > Q` and large loss `v ≥ h³`. Let `Γ → G_ℓ` be an open |
| 428 | embedding and `ℓ ≥ 7`. The hypothesis `h_sizes` is the list of inequalities `Q² ≪ h`, `m ≪ h`, |
| 429 | `W Q ≪ h`, `h³ ≪ G`, `h³ G ≪ b`, `Q η ≪ h³`, `2 log (4 b) < m` and `δ < η`. `InClass ⊤ ⊥ U` is the |
| 430 | class of crystalline lattices whose Hodge–Tate jumps at each embedding `g` of `O` lie in `U g`; let |
| 431 | `L` lie in the class for `U'`. Let `k` be a Kummer chart of `Γ`, unramified. The letters `i` of `k` |
| 432 | are the units of `𝔽_{ℓ^f}`; `ζ` in `O` has `ζ ^ (ℓ ^ f - 1) = 1`, and `k.letterJumps ζ U i` is the |
| 433 | union of `{0}` and the sets `U g` for the embeddings `g : O → ℂ_ℓ` such that `g ζ` is the |
| 434 | Teichmüller root of unity of `i`. At each letter let the jumps from `U` and `U'` lie in the union of |
| 435 | `[-η, η]` and the far windows `-s i · [a, a + W]` and `s i · [a, a + W]`, where `a = b + δ` if `T i` |
| 436 | holds and `a = G + δ` otherwise. If `2 b < ℓ (v + 1)` and `2 v < (K + 1) Q`, then `ℓ ^ (1600 K m)` |
| 437 | times any crystalline cocycle of `L` is orthogonal under cup products to the class for `U`. -/ |
| 438 | lemma New.Selmer.CrystallineSizes.hasCupExponent_of_cube_le {ℓ : ℕ} [ThePrime ℓ] |
| 439 | [Γ : GroupOverGp ℓ] [TopologicalSpace Γ] {O : CoeffRing ℓ} {L : GalLattice O Γ} |
| 440 | {Q m h G b δ η W v K : ℕ} {U U' : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ} |
| 441 | (h_sizes : CrystallineSizes Q m h G b δ η W) {k : KummerChart Γ} (h_un : k.IsUnramified) |
| 442 | (h_seven : 7 ≤ ℓ) (hℓ : Q < ℓ) (ζ : k.LetterRoot O) |
| 443 | (h_open : Topology.IsOpenEmbedding Γ.overGp.toGp) (hL : InClass ⊤ ⊥ U' L) |
| 444 | {T : k.Letter → Prop} [DecidablePred T] {s : k.Letter → ℤˣ} |
| 445 | (hU : ∀ i : k.Letter, |
| 446 | FitsWindows η (-s i) (if T i then b + δ else G + δ) W (k.letterJumps ζ U i)) |
| 447 | (hU' : ∀ i : k.Letter, |
| 448 | FitsWindows η (s i) (if T i then b + δ else G + δ) W (k.letterJumps ζ U' i)) |
| 449 | (h_loss : 2 * b < ℓ * (v + 1)) (hv : h ^ 3 ≤ v) (hK : 2 * v < K * Q + Q) : |
| 450 | HasCupExponent (InClass ⊤ ⊥ U) L (1600 * (K * m)) := by |
| 451 | have ⟨_, hQ, hG, (hb : 99 * (G * h ^ 3 + G) ≤ b), _, (hδ : δ < η), |
| 452 | (hη : 99 * ((η + W) * Q + η + h) ≤ h ^ 3)⟩ := h_sizes |
| 453 | have hQ_le : Q ≤ h ^ 3 := by omega |
| 454 | -- `K` is large enough for `hasCupExponent_any_pattern`. |
| 455 | have hbK : b + δ < K * ℓ ^ 2 := by nlinarith only [h_loss, hℓ, hb, hη, hδ, hv, hK, hQ_le] |
| 456 | have hGK : 2 * (G + δ) < K * ℓ := by nlinarith only [h_loss, hℓ, hb, hη, hδ, hv, hK, hQ_le] |
| 457 | have hWK : W + 4 * η ≤ K := by nlinarith only [hη, hv, hK, hQ_le] |
| 458 | have h_exp := k.hasCupExponent_any_pattern ζ h_open h_un h_seven (by omega) le_rfl hL hU hU' |
| 459 | (by omega) (Nat.add_le_add_right (by omega) δ) hbK hGK hWK |
| 460 | have h_log : ℓ.log (2 * (b + δ + (W + 4 * η))) < m := |
| 461 | natLog_lt_of_two_mul_log_lt h_sizes.log_lt (by omega) |
| 462 | have hK_pos : 1 ≤ K := by omega |
| 463 | exact h_exp.mono (by nlinarith only [Nat.mul_le_mul_left K (Nat.succ_le_of_lt h_log), |
| 464 | Nat.mul_le_mul_right (ℓ.log (2 * (b + δ + (W + 4 * η)))) hK_pos, hK_pos]) |
| 465 | |
| 466 | /-- The gap condition for small loss. Under the size conditions `h_sizes`, let `2 b < ℓ (v + 1)` |
| 467 | with `v < h³`, and let `ℓ` divide no integer in `(b - 30 h³, b + 30 h³]`. Then `ℓ` divides no |
| 468 | nonzero integer within `6 (2 (v + 1) + η + W)` of `0` or `± a`, for `a = b + δ` and `a = G + δ`. -/ |
| 469 | lemma New.Selmer.CrystallineSizes.noMultipleNear {ℓ Q m h G b δ η W v a : ℕ} |
| 470 | (h_sizes : CrystallineSizes Q m h G b δ η W) (h_loss : 2 * b < ℓ * (v + 1)) (hv : v < h ^ 3) |
| 471 | (h_not : ∀ u ∈ Ioc (b - 30 * h ^ 3) (b + 30 * h ^ 3), ¬ℓ ∣ u) (ha : a = b + δ ∨ a = G + δ) : |
| 472 | NoMultipleNear ℓ (6 * (2 * (v + 1) + η + W)) a := by |
| 473 | have ⟨_, (hQ : 99 * (Q * Q + (W + 1) * Q + Q + W + m) ≤ h), (hG : 99 * h ^ 3 ≤ G), |
| 474 | (hb : 99 * (G * h ^ 3 + G) ≤ b), _, (hδ : δ < η), |
| 475 | (hη : 99 * ((η + W) * Q + η + h) ≤ h ^ 3)⟩ := h_sizes |
| 476 | have h_large : 9 * G ≤ ℓ := by nlinarith only [h_loss, hv, hb] |
| 477 | have h_lt : G + δ + 6 * (2 * (v + 1) + η + W) < ℓ := by omega |
| 478 | exact noMultipleNear_of_forall_not_dvd h_lt (by omega) h_not ha |
| 479 | |
| 480 | /-- Let `Γ → G_ℓ` be an open embedding, `ℓ ≥ 7`, and `O` the ring of integers of a finite Galois |
| 481 | extension of `ℚ_ℓ`. The hypothesis `h_sizes` is the list of inequalities `Q² ≪ h`, `m ≪ h`, |
| 482 | `W Q ≪ h`, `h³ ≪ G`, `h³ G ≪ b`, `Q η ≪ h³`, `2 log (4 b) < m` and `δ < η`. `InClass ⊤ ⊥ U` is the |
| 483 | class of crystalline lattices whose Hodge–Tate jumps at each embedding `g` of `O` lie in `U g`; let |
| 484 | the `O`-lattice `L` lie in the class for `U'`. Let `k` be a Kummer chart of `Γ`, unramified and with |
| 485 | `f = [G_ℓ : Γ]`. The letters `i` of `k` are the units of `𝔽_{ℓ^f}`; `ζ` in `O` has |
| 486 | `ζ ^ (ℓ ^ f - 1) = 1`, and `k.letterJumps ζ U i` is the union of `{0}` and the sets `U g` for the |
| 487 | embeddings `g : O → ℂ_ℓ` such that `g ζ` is the Teichmüller root of unity of `i`. Assume: |
| 488 | * `hU`, `hU'`: at each letter the jumps from `U` and `U'` lie in the union of `[-η, η]` and the far |
| 489 | windows `-s i · [a, a + W]` and `s i · [a, a + W]`, where `a = b + δ` if `T i` holds and |
| 490 | `a = G + δ` otherwise; |
| 491 | * `h_jumps`: either the negative members of all `U g` and `U' g` are at most `-h / 2` and at most |
| 492 | `μ` jumps of `L` at each `g` lie in `[-η, η]`, or every `U' g` lies in `[-η, 0]`; |
| 493 | * `2 b < ℓ (v + 1)`, `v < h³` and `2 v < (K + 1) Q`; |
| 494 | * `h_gap`: `ℓ` divides no nonzero integer within `2 (2 (v + 1) + η + W)` of `0` or `± a`. |
| 495 | |
| 496 | Then the defect of `L` for the class of `U`, the length of the crystalline cocycles modulo those |
| 497 | orthogonal, under cup products, to the crystalline cocycles of the lattices in the class, normalised |
| 498 | so that `O / ℓ` has length `1`, is at most `[G_ℓ : Γ] · y` for any |
| 499 | `y ≥ 3200 rank L · K m + 33 μ v`. -/ |
| 500 | lemma New.Selmer.normLength_dualDefect_le_of_noMultipleNear {ℓ : ℕ} [ThePrime ℓ] [Γ : GroupOverGp ℓ] |
| 501 | [TopologicalSpace Γ] {O : CoeffRing ℓ} {L : GalLattice O Γ} {Q m h μ G b δ η W v K : ℕ} |
| 502 | {U U' : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ} (h_sizes : CrystallineSizes Q m h G b δ η W) |
| 503 | {k : KummerChart Γ} (h_un : k.IsUnramified) (h_seven : 7 ≤ ℓ) |
| 504 | (h_index : k.f = Γ.overGp.toGp.range.index) (ζ : k.LetterRoot O) |
| 505 | (h_open : Topology.IsOpenEmbedding Γ.overGp.toGp) (hL : InClass ⊤ ⊥ U' L) |
| 506 | {T : k.Letter → Prop} [DecidablePred T] {s : k.Letter → ℤˣ} |
| 507 | (hU : ∀ i : k.Letter, |
| 508 | FitsWindows η (-s i) (if T i then b + δ else G + δ) W (k.letterJumps ζ U i)) |
| 509 | (hU' : ∀ i : k.Letter, |
| 510 | FitsWindows η (s i) (if T i then b + δ else G + δ) W (k.letterJumps ζ U' i)) |
| 511 | (h_jumps : HasFewLowJumps L h μ η U U' ∨ ∀ g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ], U' g ⊆ Icc (-η : ℤ) 0) |
| 512 | (h_loss : 2 * b < ℓ * (v + 1)) (hv : v < h ^ 3) (hK : 2 * v < K * Q + Q) |
| 513 | (h_gap : ∀ i : k.Letter, |
| 514 | NoMultipleNear ℓ (2 * (2 * (v + 1) + η + W)) (if T i then b + δ else G + δ : ℕ)) |
| 515 | {y : NNReal} (hy : (3200 * (finrank O L * (K * m)) + 33 * (μ * v) : ℕ) ≤ y) : |
| 516 | O.normLength (dualDefect (InClass ⊤ ⊥ U) L) ≤ Γ.overGp.toGp.range.index * y := by |
| 517 | have ⟨hQ_pos, (hQ : 99 * (Q * Q + (W + 1) * Q + Q + W + m) ≤ h), (hG : 99 * h ^ 3 ≤ G), |
| 518 | (hb : 99 * (G * h ^ 3 + G) ≤ b), h_log, (hδ : δ < η), |
| 519 | (hη : 99 * ((η + W) * Q + η + h) ≤ h ^ 3)⟩ := h_sizes |
| 520 | have h_height (i : k.Letter) : |
| 521 | (if T i then b + δ else G + δ) + W + η ≤ (ℓ - 3) * (2 * (v + 1)) := by |
| 522 | grw [ite_le_sup, mul_left_comm, tsub_mul] |
| 523 | omega |
| 524 | have h_far (i : k.Letter) : 2 * (2 * (v + 1) + η + W) < if T i then b + δ else G + δ := by |
| 525 | split_ifs <;> omega |
| 526 | -- The two bounds of `dualDefect_eq_zero_and_dualDefect_le`, for the length `2 (v + 1)`. The |
| 527 | -- defect vanishes if `U` and `U'` avoid `[-2 (v + 1), 0)` or `U'` lies in `[-η, 0]`. If at most |
| 528 | -- `n` jumps lie in `[-η, η]`, it is at most `f (n (16 (v + 1) + 1) + 3 rank L · (W + 1))` times |
| 529 | -- the length of `O / ℓ`. |
| 530 | obtain ⟨h_zero, h_defect_le⟩ := |
| 531 | k.dualDefect_eq_zero_and_dualDefect_le ζ h_open h_un (by omega) h_height (by omega) h_far h_gap |
| 532 | hL hU hU' |
| 533 | by_cases h_few : h / 5 ≤ v ∧ HasFewLowJumps L h μ η U U' |
| 534 | · -- At most `μ` low jumps, and `⌊h / 5⌋ ≤ v`: the bound `h_defect_le` is at most |
| 535 | -- `f (33 μ v + 3 rank L · K)` times the length of `O / ℓ`, and `f` is the index. |
| 536 | obtain ⟨hv_large, h_low⟩ := h_few |
| 537 | have hW_lt_K : W + 1 ≤ K := Nat.le_of_mul_le_mul_right (by omega) hQ_pos |
| 538 | have hm_pos : 1 ≤ m := |
| 539 | Nat.zero_lt_of_lt (natLog_lt_of_two_mul_log_lt (ℓ := ℓ) h_log (Nat.zero_le _)) |
| 540 | have h_bound : k.f * (μ * (8 * (2 * (v + 1)) + 1) + finrank O L * (3 * (W + 1))) ≤ |
| 541 | k.f * (3200 * (finrank O L * (K * m)) + 33 * (μ * v)) := by |
| 542 | grw [show 8 * (2 * (v + 1)) + 1 ≤ 33 * v by omega, ← hm_pos, hW_lt_K] |
| 543 | ring_nf |
| 544 | omega |
| 545 | -- The normalised length of `O / ℓ` is `1`. |
| 546 | grw [h_defect_le μ h_low.sum_jump_le, O.normLength_natCast_mul, ← hy, ← h_index, h_bound] |
| 547 | simp |
| 548 | · -- Otherwise `U` and `U'` avoid `[-2 (v + 1), 0)`, since `h / 2 > 2 (v + 1)`, or `U'` lies in |
| 549 | -- `[-η, 0]`; in both cases the defect vanishes. |
| 550 | have h_vanish : dualDefect (InClass ⊤ ⊥ U) L = 0 := by |
| 551 | refine h_zero (h_jumps.imp_left fun h_low g u h_mem hu ↦ ?_) |
| 552 | have hv_small : v < h / 5 := not_le.1 fun hv' ↦ h_few ⟨hv', h_low⟩ |
| 553 | obtain ⟨hu_ge, hu_neg⟩ : -(2 * (v + 1) : ℕ) ≤ u ∧ u < 0 := mem_Ico.1 hu |
| 554 | have hu_le : 2 * u ≤ -h := h_low.two_mul_le g u hu_neg h_mem |
| 555 | omega |
| 556 | simp [h_vanish] |
| 557 | |
| 558 | open scoped Classical in |
| 559 | /-- Let `Γ → G_ℓ = Gal(ℚ̄_ℓ / ℚ_ℓ)` be an open embedding (`h_open`), `O` the ring of integers of a |
| 560 | finite Galois extension of `ℚ_ℓ`, and `L` a finite free `O`-module with an action of `Γ`. Each |
| 561 | embedding `g` of `O` into `ℂ_ℓ` is thick (`th g`) or thin, has a sign `ε g`, and has finite sets |
| 562 | `U g` and `U' g` of allowed Hodge–Tate jumps; `InClass ⊤ ⊥ U` is the class of crystalline lattices |
| 563 | whose jumps at each `g` lie in `U g`. Assume: |
| 564 | * `h_sizes`: `Q² ≪ h`, `h³ ≪ G`, `h³ G ≪ b`, `Q η ≪ h³`, `2 log (4 b) < m` and `δ < η`, in the |
| 565 | explicit form of `CrystallineSizes`; |
| 566 | * `hU`, `hU'`: with `a = b + δ` at thick `g` and `a = G + δ` at thin `g`, the set `U g` lies in |
| 567 | `[-η, η] ∪ -ε g · [a, a + W]` and `U' g` lies in `[-η, η] ∪ ε g · [a, a + W]`; |
| 568 | * `hL`: `L` is crystalline with jumps in `U'`; |
| 569 | * `h_jumps`: either the negative members of all `U g` and `U' g` are at most `-h / 2` and at most |
| 570 | `μ` jumps of `L` at each `g` lie in `[-η, η]`, or every `U' g` lies in `[-η, 0]`; |
| 571 | * `h_chart`: `k` is a Kummer chart of `Γ` of degree `e f = [G_ℓ : Γ]` and ramification `e ≤ h`, and |
| 572 | `ζ` in `O` has `ζ ^ (ℓ ^ f - 1) = 1`. At thick `g`, and at all `g` if `Q < ℓ`, thickness is |
| 573 | `T (g ζ)` and the sign is `s (g ζ)`. The chart is unramified with `ℓ ≥ 7`, or `ℓ ≤ Q` and `s` is |
| 574 | constant. If `ℓ ≤ Q`, no three values with `T` follow one another at distances at most `log_ℓ h³` |
| 575 | along `z ↦ z ^ ℓ`; |
| 576 | * `v`, `K`: `2 b < ℓ (v + 1)` and `2 v < (K + 1) Q`. If `ℓ` divides some positive integer in |
| 577 | `(b - 30 h³, b + 30 h³]`, also assume `h³ ≤ v`; |
| 578 | * `hy`: `y ≥ 3200 rank L · K m + 33 μ v`. |
| 579 | |
| 580 | The defect `dualDefect (InClass ⊤ ⊥ U) L` is the length of the crystalline cocycles of `L` modulo |
| 581 | those orthogonal, under cup products, to the crystalline cocycles of all lattices in the class. |
| 582 | Normalised so that `O / ℓ` has length `1`, it is at most `[G_ℓ : Γ] · y`. -/ |
| 583 | lemma New.Selmer.normLength_dualDefect_le_of_crystallineSizes {ℓ : ℕ} [hp : ThePrime ℓ] |
| 584 | [Γ : GroupOverGp ℓ] [TopologicalSpace Γ] {O : CoeffRing ℓ} {L : GalLattice O Γ} |
| 585 | (Q m h μ : ℕ) {G b δ η W : ℕ} {th : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Prop} {ε : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → ℤˣ} |
| 586 | {U U' : (O →ₐ[ℤ_[ℓ]] ℂ_[ℓ]) → Finset ℤ} (h_sizes : CrystallineSizes Q m h G b δ η W) |
| 587 | (hU : ∀ g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ], FitsWindows η (-ε g) ((if th g then b else G) + δ) W (U g)) |
| 588 | (hU' : ∀ g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ], FitsWindows η (ε g) ((if th g then b else G) + δ) W (U' g)) |
| 589 | (hL : InClass ⊤ ⊥ U' L) |
| 590 | (h_jumps : HasFewLowJumps L h μ η U U' ∨ ∀ g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ], U' g ⊆ Icc (-η : ℤ) 0) |
| 591 | {v K : ℕ} (h_loss : 2 * b < ℓ * (v + 1)) (hK : 2 * v < K * Q + Q) |
| 592 | (h_cube : ∀ ⦃n : ℕ⦄, n ∈ Ioc (b - 30 * h ^ 3) (b + 30 * h ^ 3) → ℓ ∣ n → h ^ 3 ≤ v) |
| 593 | {y : NNReal} (hy : (3200 * (finrank O L * (K * m)) + 33 * (μ * v) : ℕ) ≤ y) |
| 594 | (h_open : Topology.IsOpenEmbedding Γ.overGp.toGp) |
| 595 | (k : KummerChart Γ) (ζ : k.LetterRoot O) {T : ℂ_[ℓ] → Prop} {s : ℂ_[ℓ] → ℤˣ} |
| 596 | (h_chart : LettersReadThick k (fun g : O →ₐ[ℤ_[ℓ]] ℂ_[ℓ] ↦ g ζ) th ε Q h T s) : |
| 597 | O.normLength (dualDefect (InClass ⊤ ⊥ U) L) ≤ Γ.overGp.toGp.range.index * y := by |
| 598 | -- If `ℓ ≤ Q` or `v ≥ h³`, a power `ℓ ^ (1600 K x)` with `x ≤ m` carries |
| 599 | -- `crysCocycles` into the annihilator. Otherwise `ℓ` divides no nonzero integer near the windows, |
| 600 | -- so `normLength_dualDefect_le_of_noMultipleNear` applies. |
| 601 | have hQ : 99 * (Q * Q + (W + 1) * Q + Q + W + m) ≤ h := h_sizes.sq_le |
| 602 | have hG : 99 * h ^ 3 ≤ G := h_sizes.cube_le |
| 603 | have hb : 99 * (G * h ^ 3 + G) ≤ b := h_sizes.mul_cube_le |
| 604 | have hδ : δ < η := h_sizes.shift_lt |
| 605 | have hη : 99 * ((η + W) * Q + η + h) ≤ h ^ 3 := h_sizes.low_le |
| 606 | have hη_le : η ≤ G := by omega |
| 607 | have hW_le : δ + W ≤ G := by omega |
| 608 | -- The windows in terms of the letters. |
| 609 | have h_winU (i : k.Letter) : |
| 610 | FitsWindows (if ℓ ≤ Q then 2 * G else η) (-s (theta (k.letterTeich i))) |
| 611 | (if T (theta (k.letterTeich i)) then b + δ else G + δ) W (k.letterJumps ζ U i) := |
| 612 | fitsWindows_letterJumps (s := fun z ↦ -s z) h_chart.thick_iff |
| 613 | (fun g hg ↦ congrArg Neg.neg (h_chart.sign_eq g hg)) hU hη_le hW_le i |
| 614 | have h_winU' (i : k.Letter) : |
| 615 | FitsWindows (if ℓ ≤ Q then 2 * G else η) (s (theta (k.letterTeich i))) |
| 616 | (if T (theta (k.letterTeich i)) then b + δ else G + δ) W (k.letterJumps ζ U' i) := |
| 617 | fitsWindows_letterJumps h_chart.thick_iff h_chart.sign_eq hU' hη_le hW_le i |
| 618 | -- An exponent `1600 K x` with `x ≤ m` is small enough for the bound. |
| 619 | have h_exp {x : ℕ} (hx : x ≤ m) : finrank O L * (2 * (1600 * (K * x) : ℕ)) ≤ y := by |
| 620 | refine hy.trans' (mod_cast ?_) |
| 621 | grw [hx] |
| 622 | ring_nf |
| 623 | omega |
| 624 | by_cases hℓ : ℓ ≤ Q |
| 625 | · -- For small `ℓ` the thick letters are sparse. |
| 626 | simp only [hℓ, ite_true] at h_winU h_winU' |
| 627 | have hbK : 2 * (b + δ) < h ^ 2 * K := by |
| 628 | have h_add : h + δ ≤ b := by omega |
| 629 | nlinarith only [hK, h_loss, hℓ, hQ, h.le_mul_self, h_add] |
| 630 | have h_log : ℓ.log (h ^ 3) < m := natLog_lt_of_two_mul_log_lt h_sizes.log_lt (by omega) |
| 631 | exact normLength_dualDefect_le_of_hasCupExponent hL.isPotentiallyCrystalline (h_exp h_log) |
| 632 | (h_chart.hasCupExponent_of_le h_sizes hℓ hbK ζ h_open hL h_winU h_winU') |
| 633 | -- From now on `ℓ > Q`, so the chart is unramified and `ℓ ≥ 7`. |
| 634 | simp only [hℓ, ite_false] at h_winU h_winU' |
| 635 | obtain ⟨h_un, h_seven⟩ : k.IsUnramified ∧ 7 ≤ ℓ := |
| 636 | h_chart.isUnramified_or_sign_eq.resolve_right fun ⟨h_le, _⟩ ↦ hℓ h_le |
| 637 | by_cases hv : h ^ 3 ≤ v |
| 638 | · exact normLength_dualDefect_le_of_hasCupExponent hL.isPotentiallyCrystalline (h_exp le_rfl) |
| 639 | (h_sizes.hasCupExponent_of_cube_le h_un h_seven (not_le.1 hℓ) ζ h_open hL h_winU h_winU' |
| 640 | h_loss hv hK) |
| 641 | -- If `v < h³`, then `ℓ` divides no integer near `b`. |
| 642 | have h_gap (z : ℂ_[ℓ]) : |
| 643 | NoMultipleNear ℓ (6 * (2 * (v + 1) + η + W)) (if T z then b + δ else G + δ : ℕ) := |
| 644 | h_sizes.noMultipleNear h_loss (not_le.1 hv) (fun u hu h_dvd ↦ hv (h_cube hu h_dvd)) |
| 645 | (ite_eq_or_eq (T z) (b + δ) (G + δ)) |
| 646 | have h_index : k.f = Γ.overGp.toGp.range.index := by |
| 647 | obtain ⟨-, he_one : k.e = 1, -⟩ := h_un |
| 648 | rw [← h_chart.e_mul_f_eq_index, he_one, one_mul] |
| 649 | exact normLength_dualDefect_le_of_noMultipleNear h_sizes h_un h_seven h_index ζ h_open hL |
| 650 | h_winU h_winU' h_jumps h_loss (not_le.1 hv) hK |
| 651 | (fun i y hy₀ h_near ↦ h_gap (theta (k.letterTeich i)) y hy₀ (by omega)) hy |
| 652 | |
| 653 | end CrystallineBound |