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.Data.Rat.Cast.OfScientific |
| 4 | import Std.Tactic.BVDecide.Normalize.BitVec |
| 5 | import TauCeti.NumberTheory.Padics.Complex.Basic |
| 6 | public import New.UpperBound.Divisibility.MarkedPrimes |
| 7 | public import New.UpperBound.ElementaryDivisors.ElementaryDivisorTheorem |
| 8 | import New.Reduction.Data.Sizes |
| 9 | import New.UpperBound.Divisibility.HeckeEdges |
| 10 | |
| 11 | /-! |
| 12 | # Elementary divisors of one scaled Hecke operator on the integral source forms |
| 13 | |
| 14 | Let `l` be a place of a marked set `Λ` above a prime `p`, and write `o₀ = D.o₀ p`. This file |
| 15 | applies the theorem on elementary divisors, `New.FrobeniusCycle.elementary_divisors`, to the |
| 16 | normalised Hecke operator `New.Data.IsMarked.scaledHeckeOperator` at `l`, acting on the integral |
| 17 | source forms `New.Data.integralSourceForms`. The a-places that induce `l` or its conjugate |
| 18 | form one orbit under the `o₀`-th power of the place named by `-p` |
| 19 | (`New.Data.exists_orbit_of_mem_aPlaces`). Places act by multiplication. This orbit gives a |
| 20 | Frobenius cycle. |
| 21 | |
| 22 | ## Main definitions and results |
| 23 | |
| 24 | * `New.Data.IsMarked.exists_frobeniusCycle`: such a Frobenius cycle exists. |
| 25 | * `New.Data.IsMarked.isOntoUpToColength_scaledHeckeOperator`: the operator keeps the integral source |
| 26 | forms and is onto modulo `p ^ j₀` up to a bounded colength. |
| 27 | |
| 28 | Notions from other files: |
| 29 | * `New.IsOntoUpToColength`: The endomorphism `y` keeps `M`, and for some natural number `i ≤ c` the |
| 30 | sum `y (M) + p ^ j₀ • M` has index dividing `p ^ i` in `M` (in the sense of `New.ColengthDvd`): |
| 31 | `y` is onto on `M` modulo `p ^ j₀` up to an index `p ^ i`. |
| 32 | * `New.Data.IsMarked`: a marked set `Λ` of primes of `E` is disjoint from its complex conjugate, |
| 33 | each of its primes is induced by an a-place (an element of `D.aPlaces`), `p` is exceptional |
| 34 | (`New.Data.IsExceptional`), and `p` is below `D.x₁` and not split in the imaginary quadratic |
| 35 | field. |
| 36 | * `New.Data.integralSourceForms`: the module of the elements of `D.SourceForm` of gauge at most `1`. |
| 37 | * `New.FrobeniusCycle`: ring maps `T.embedding i : W → R` for `i` in `ℤ/N`, alternately even and |
| 38 | odd, with `T.embedding (i + 1) ≡ T.embedding i ^ P` modulo `p`, where `P = p ^ frobExp` and the |
| 39 | residue field of `W` has `P ^ N` elements. |
| 40 | |
| 41 | ## Relation to the literature |
| 42 | |
| 43 | An integrally scaled Hecke operator above p, acting on forms at a-places linked in a circle by |
| 44 | Frobenius and conjugation, has elementary divisors of small mean exponent outside a small share. So |
| 45 | using it once per theta lift, to keep divisibility when the partner of an a-place is an a-place, |
| 46 | costs little colength. Slopes of T_p of at most about k/(p+1) for GL(2) over Q and regular p, and |
| 47 | integral scalings of Hecke operators, are known. Related work: Arsovski, Limiting measures of |
| 48 | supersingularities, 2019; Liu–Truong–Xiao–Zhao, Slopes of modular forms and geometry of eigencurves, |
| 49 | 2023; Fakhruddin–Pilloni, Hecke operators and the coherent cohomology of Shimura varieties, 2021. |
| 50 | -/ |
| 51 | |
| 52 | @[expose] public section |
| 53 | |
| 54 | namespace New.Data |
| 55 | |
| 56 | open Finset ZMod Nat Columns Parameters RingHom Module Real IsLocalization AtPrime NumberField |
| 57 | |
| 58 | /-- Bound `(D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p)` by `√D.b` when |
| 59 | `T.frobExp ≤ D.ceilLogLifts T.p` and `0 < D.logX₁`. -/ |
| 60 | private lemma pow_frobExp_mul_ceilLogLifts_le_sqrt_b {P : Parameters} (D : Data P) |
| 61 | {N : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 62 | (T : FrobeniusCycle N W O) (hfrobExp_le : T.frobExp ≤ D.ceilLogLifts T.p) |
| 63 | (h_logX₁ : 0 < D.logX₁) : |
| 64 | (D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p) ≤ √D.b := by |
| 65 | have : Fact T.p.Prime := ⟨T.prime⟩ |
| 66 | have h_exp : T.frobExp * (3 * D.ceilLogLifts T.p) ≤ 3 * l₀ D.towerExp ^ 2 := by |
| 67 | grw [hfrobExp_le, (ceilLogLifts_le_l₀ : D.ceilLogLifts T.p ≤ l₀ D.towerExp), sq, |
| 68 | mul_left_comm] |
| 69 | calc (D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p) = D.x₁ ^ |
| 70 | (T.frobExp * (3 * D.ceilLogLifts T.p)) := |
| 71 | (pow_mul _ _ _).symm |
| 72 | _ ≤ D.x₁ ^ (3 * l₀ D.towerExp ^ 2) := pow_le_pow_right₀ (one_le_exp h_logX₁.le) h_exp |
| 73 | _ ≤ √D.b := D.x₁_pow_le_sqrt_b |
| 74 | |
| 75 | |
| 76 | /-- Let `T` be a Frobenius cycle with `N` letters: a cycle of `N` ring maps from a local ring `W`, |
| 77 | each congruent modulo the prime `p = T.p` to the `P`-th power of the one before, with |
| 78 | `P = p ^ T.frobExp`; put `q = P ^ N`, the size of the residue field. Let `13 ≤ p < D.x₁`, let |
| 79 | `T.frobExp ≤ r`, where `r = D.ceilLogLifts p` is the least natural number with `D.m ≤ p ^ r`, |
| 80 | let `N` be at most the number of infinite places, and let `D.m ≤ T.frobExp * N`. With `k = D.k`, |
| 81 | `a = D.a` and `θ = 1 / (m ^ 2 f)` for the numerical parameters `m = D.m`, `f = D.f` of the data, the |
| 82 | size conditions `IsLargeDegree` then hold: `0 < r`, `2 r ≤ k`, `0 < θ ≤ 1`, `a ^ 4 ≤ q` and |
| 83 | `(N k log q / θ) ^ 5 P ^ (3 r) ≤ a`. -/ |
| 84 | theorem isLargeDegree_of_le_card {P : Parameters} (D : Data P) {N : ℕ} {W O : Type} |
| 85 | [CommRing W] [IsLocalRing W] [CommRing O] (T : FrobeniusCycle N W O) (h13 : 13 ≤ T.p) |
| 86 | (hp : T.p < D.x₁) |
| 87 | (hfrobExp_le : T.frobExp ≤ D.ceilLogLifts T.p) |
| 88 | (hN_le : N ≤ Fintype.card D.Φ) (hm_le : D.m ≤ T.frobExp * N) : |
| 89 | T.IsLargeDegree D.k D.a (D.ceilLogLifts T.p) (1 / (D.m ^ 2 * D.f)) := by |
| 90 | have : Fact T.p.Prime := ⟨T.prime⟩ |
| 91 | have hq : T.q = T.p ^ (T.frobExp * N) := (pow_mul _ _ _).symm |
| 92 | have h_logX₁ : 0 < D.logX₁ := HasLogBound.pos D |
| 93 | refine |
| 94 | { block_pos := T.frobExp_pos.trans_le hfrobExp_le |
| 95 | two_mul_block_le := D.nat_le_of_hasLogBound |
| 96 | proportion_pos := one_div_pos.2 (HasLogBound.pos D) |
| 97 | proportion_le_one := D.le_of_hasLogBound |
| 98 | degree_pow_le := ?_ |
| 99 | le_degree := ?_ } |
| 100 | · -- `q = p ^ (frobExp * N) ≥ 3 ^ m ≥ exp m ≥ exp (logB * 5)` |
| 101 | have h_three : 3 ^ D.m ≤ T.q := by |
| 102 | rw [hq] |
| 103 | exact (Nat.pow_le_pow_right (by norm_num) hm_le).trans (Nat.pow_le_pow_left (by lia) _) |
| 104 | rw [← Nat.cast_le (α := ℝ), Nat.cast_pow] |
| 105 | calc (D.a : ℝ) ^ 4 ≤ exp (D.logB * 5) := D.le_of_hasLogBound |
| 106 | _ ≤ exp 1 ^ D.m := (exp_le_exp.2 D.le_of_hasLogBound).trans_eq (exp_one_pow _).symm |
| 107 | _ ≤ 3 ^ D.m := by grw [exp_one_lt_three.le] |
| 108 | _ ≤ T.q := mod_cast h_three |
| 109 | · -- `log q ≤ frobExp N log x₁` and `T.P ^ (3 * ceilLogLifts p) ≤ √b`, since `p < x₁`. |
| 110 | -- The final bound compares magnitudes; it uses `hfrobExp_upper` and `hN_upper`. |
| 111 | have hfrobExp_upper : D.HasLogUpper T.frobExp (Real.log D.logX₁) := |
| 112 | D.hasLogUpper_of_le hfrobExp_le |
| 113 | have hN_upper : D.HasLogUpper N (11 * D.logX + (Real.log D.logB / 5 + P.constantBound)) := |
| 114 | D.hasLogUpper_of_le hN_le |
| 115 | have h_log : Real.log T.q ≤ T.frobExp * N * D.logX₁ := by |
| 116 | rw [hq, Nat.cast_pow, Real.log_pow, Nat.cast_mul] |
| 117 | gcongr |
| 118 | exact (log_le_iff_le_exp (by positivity)).2 hp.le |
| 119 | have h_pow : (D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p) ≤ √D.b := |
| 120 | D.pow_frobExp_mul_ceilLogLifts_le_sqrt_b T hfrobExp_le h_logX₁ |
| 121 | calc ((N : ℝ) * D.k * Real.log T.q / (1 / (D.m ^ 2 * D.f))) ^ 5 * |
| 122 | (T.P : ℝ) ^ (3 * D.ceilLogLifts T.p) |
| 123 | ≤ ((N : ℝ) * D.k * (T.frobExp * N * D.logX₁) / (1 / (D.m ^ 2 * D.f))) ^ 5 * √D.b := by |
| 124 | grw [h_log, T.p.cast_pow, hp, h_pow] |
| 125 | _ ≤ (D.a : ℝ) := D.le_of_hasLogBound |
| 126 | |
| 127 | /-- For a Frobenius cycle with `N = ℓ + ℓ` letters, prime `p = T.p` and `P = p ^ T.frobExp`, where |
| 128 | `T.frobExp ≤ r` and `r = D.ceilLogLifts p` is the least natural number with `D.m ≤ p ^ r`, the |
| 129 | divisor constant `c = T.divisorConstant D.k a r = N a (P ^ (-2 r) + r ^ 2 / (k P))` for `k = D.k` |
| 130 | and `a = D.a` satisfies `3 c ≤ 12 a ℓ / (m p)`, with `m = D.m`. -/ |
| 131 | theorem three_mul_divisorConstant_le {P : Parameters} (D : Data P) {N ℓ : ℕ} {W O : Type} |
| 132 | [CommRing W] [IsLocalRing W] [CommRing O] (T : FrobeniusCycle N W O) |
| 133 | (hfrobExp_le : T.frobExp ≤ D.ceilLogLifts T.p) (hℓ : ℓ + ℓ = N) : |
| 134 | 3 * T.divisorConstant D.k D.a (D.ceilLogLifts T.p) ≤ 12 * (D.a * ℓ : ℕ) / (D.m * T.p) := by |
| 135 | -- Each of the two terms of the bracket in `T.divisorConstant` is at most `1 / (m p)`. |
| 136 | have : Fact T.p.Prime := ⟨T.prime⟩ |
| 137 | set r : ℕ := D.ceilLogLifts T.p |
| 138 | have hp_pos : (0 : ℝ) < T.p := mod_cast T.prime.pos |
| 139 | have hm_pos : (0 : ℝ) < D.m := HasLogBound.pos D |
| 140 | have hk_pos : (0 : ℝ) < D.k := HasLogBound.pos D |
| 141 | have hp_le : T.p ≤ T.P := Nat.le_self_pow T.frobExp_pos.ne' T.p |
| 142 | have hP_pos : (0 : ℝ) < T.P := hp_pos.trans_le (mod_cast hp_le) |
| 143 | have h_first : D.m * T.p ≤ T.P ^ (2 * r) := |
| 144 | calc D.m * T.p ≤ T.p ^ r * T.p ^ r := |
| 145 | Nat.mul_le_mul (le_pow_clog T.prime.one_lt D.m) |
| 146 | (Nat.le_self_pow (T.frobExp_pos.trans_le hfrobExp_le).ne' T.p) |
| 147 | _ = T.p ^ (2 * r) := by rw [two_mul, pow_add] |
| 148 | _ ≤ T.P ^ (2 * r) := Nat.pow_le_pow_left hp_le _ |
| 149 | have h_second : (r ^ 2 / (D.k * T.P) : ℝ) ≤ 1 / (D.m * T.p) := by |
| 150 | rw [div_le_div_iff₀ (by positivity) (by positivity), one_mul, ← mul_assoc] |
| 151 | exact mul_le_mul (D.le_of_hasLogBound : (r ^ 2 * D.m : ℝ) ≤ D.k) (mod_cast hp_le) hp_pos.le |
| 152 | hk_pos.le |
| 153 | calc 3 * T.divisorConstant D.k D.a r |
| 154 | = 3 * (N * D.a * (1 / T.P ^ (2 * r) + r ^ 2 / (D.k * T.P))) := by |
| 155 | rw [FrobeniusCycle.divisorConstant] |
| 156 | _ ≤ 3 * (N * D.a * (1 / (D.m * T.p) + 1 / (D.m * T.p))) := by |
| 157 | gcongr |
| 158 | exact_mod_cast h_first |
| 159 | _ = 12 * (D.a * ℓ : ℕ) / (D.m * T.p) := by |
| 160 | rw [show (N : ℝ) = ℓ + ℓ by exact_mod_cast hℓ.symm] |
| 161 | push_cast |
| 162 | ring |
| 163 | |
| 164 | /-- For an inert prime `p` and an a-place `τ`, the a-places inducing the same prime as `τ` |
| 165 | or its conjugate form one orbit. Its step is the `o₀`-th power of the place named by `-p`, |
| 166 | where `o₀` is the order of `-p` modulo `q₀`. Index the orbit by the integers modulo the order |
| 167 | of its step. -/ |
| 168 | theorem exists_orbit_of_mem_aPlaces {P : Parameters} {p : ℕ} (D : Data P) [Fact p.Prime] |
| 169 | [PadicPlace p] (h_inert : chiK P.d p = -1) {τ : D.Φ} (hτ : τ ∈ D.aPlaces) : |
| 170 | ∃ t : ZMod (orderOf (D.placeOfInt (-p) ^ D.o₀ p)) → D.Φ, |
| 171 | t.Injective ∧ |
| 172 | (∀ i : ZMod (orderOf (D.placeOfInt (-p) ^ D.o₀ p)), |
| 173 | t (i + 1) = D.placeOfInt (-p) ^ D.o₀ p * t i) ∧ |
| 174 | ∀ σ : D.Φ, |
| 175 | σ ∈ Set.range t ↔ |
| 176 | σ ∈ D.aPlaces ∧ |
| 177 | (inducedPlace σ = inducedPlace τ ∨ inducedPlace σ = star (inducedPlace τ)) := by |
| 178 | set o : ℕ := D.o₀ p |
| 179 | let c : D.Φ := D.placeOfInt (-p) ^ o |
| 180 | have : NeZero (orderOf c) := .of_pos (orderOf_pos _) |
| 181 | refine ⟨fun i ↦ c ^ i.val * τ, fun _ _ ↦ ?_, fun i ↦ ?_, fun σ ↦ ?_⟩ |
| 182 | · simp [c, pow_inj_mod, ← natCast_eq_natCast_iff'] |
| 183 | · simp [c, _root_.pow_succ', val_add, val_one_eq_one_mod, mul_assoc] |
| 184 | · -- The places inducing `inducedPlace τ` or its conjugate are the `placeOfInt (-p) ^ i * τ`, and |
| 185 | -- such a place is an a-place exactly if `o ∣ i`. |
| 186 | have h_aPlace_iff (i : ℕ) : D.placeOfInt (-p) ^ i * τ ∈ D.aPlaces ↔ o ∣ i := by |
| 187 | simp_all [o, aPlaces, o₀, orderOf_dvd_iff_pow_eq_one] |
| 188 | have h_range : σ ∈ Set.range (fun i : ZMod (orderOf c) ↦ c ^ i.val * τ) ↔ |
| 189 | ∃ k : ℕ, D.placeOfInt (-p) ^ (o * k) * τ = σ := by |
| 190 | simp [natCast_zmod_surjective.exists, c, pow_mul] |
| 191 | rw [h_range, inducedPlace_eq_or_star_iff h_inert] |
| 192 | constructor |
| 193 | · rintro ⟨k, rfl⟩ |
| 194 | exact ⟨(h_aPlace_iff _).2 (dvd_mul_right o k), o * k, rfl⟩ |
| 195 | · rintro ⟨h_mem, i, rfl⟩ |
| 196 | obtain ⟨k, rfl⟩ := (h_aPlace_iff i).1 h_mem |
| 197 | exact ⟨k, rfl⟩ |
| 198 | |
| 199 | section Ring |
| 200 | |
| 201 | open ComplexConjugate |
| 202 | |
| 203 | variable {P : Parameters} {D : Data P} {p : ℕ} [Fact p.Prime] [PadicPlace p] {l : FinPlace D.E} |
| 204 | |
| 205 | open scoped Classical in |
| 206 | /-- The embedding at the infinite place `σ`, composed with conjugation if `σ` does not induce the |
| 207 | prime `l`. -/ |
| 208 | noncomputable def embeddingToward (l : FinPlace D.E) (σ : D.Φ) : D.E →+* ℂ := |
| 209 | if inducedPlace σ = l then Φ σ else (Φ σ).comp conj |
| 210 | |
| 211 | /-- If `σ` induces `l` or its conjugate, then `embeddingToward l σ` induces `l`. -/ |
| 212 | lemma placeOfEmb_embeddingToward {σ : D.Φ} (hσ : inducedPlace σ = l ∨ inducedPlace σ = star l) : |
| 213 | placeOfEmb (ιₚ.comp (embeddingToward l σ)) = l := by |
| 214 | rw [embeddingToward] |
| 215 | split_ifs with h |
| 216 | · exact h |
| 217 | · rw [← comp_assoc, placeOfEmb_comp_star] |
| 218 | exact star_eq_iff_star_eq.1 (hσ.resolve_left h).symm |
| 219 | |
| 220 | /-- If `σ` induces `l` or its conjugate, then `embeddingToward l σ` maps the valuation ring of `l` |
| 221 | into `embValRing`. -/ |
| 222 | lemma embeddingToward_mem_embValRing {σ : D.Φ} (hσ : inducedPlace σ = l ∨ inducedPlace σ = star l) |
| 223 | {x : D.E} (hx : x ∈ l.valuationSubringAtPrime D.E) : embeddingToward l σ x ∈ embValRing := by |
| 224 | rw [l.valuationSubringAtPrime_eq_valuationSubring, Valuation.mem_valuationSubring_iff, |
| 225 | ← placeOfEmb_embeddingToward hσ] at hx |
| 226 | exact (isEquiv_placeOfEmb (ιₚ.comp (embeddingToward l σ))).le_one_iff_le_one.2 hx |
| 227 | |
| 228 | /-- For an infinite place `σ` that induces `l` or its conjugate, `embeddingToward l σ` as a map |
| 229 | from the valuation ring of `l` to `embValRing`. -/ |
| 230 | noncomputable def letterEmbedding (σ : D.Φ) (hσ : inducedPlace σ = l ∨ inducedPlace σ = star l) : |
| 231 | l.valuationSubringAtPrime D.E →+* embValRing := |
| 232 | (embeddingToward l σ).restrict _ _ fun _ ↦ embeddingToward_mem_embValRing hσ |
| 233 | |
| 234 | lemma coe_letterEmbedding (σ : D.Φ) (hσ : inducedPlace σ = l ∨ inducedPlace σ = star l) |
| 235 | (x : l.valuationSubringAtPrime D.E) : (letterEmbedding σ hσ x : ℂ) = embeddingToward l σ x := |
| 236 | rfl |
| 237 | |
| 238 | lemma not_isUnit_natCast_embValRing : ¬IsUnit (p : embValRing) := by |
| 239 | rw [← mem_nonunits_iff, ← IsLocalRing.mem_maximalIdeal, Valuation.mem_maximalIdeal_iff] |
| 240 | change ‖ιₚ (p : ℂ)‖ < 1 |
| 241 | simpa using PadicComplex.norm_p_lt_one p |
| 242 | |
| 243 | /-- Let `D` be data for the parameters `P`, let `p` be inert in the imaginary quadratic field, let |
| 244 | `l` be a split finite place of `D.E` and let `e` be odd. The infinite places form a group `(ℤ/q₁)ˣ`, |
| 245 | in which an integer prime to `q₁` names its class; let `σ'` be the product of `σ` and the place |
| 246 | named by `-p ^ e`, and let the primes induced by both through `ιₚ : ℂ → ℂ_p` be `l` or its |
| 247 | conjugate. For every `x` in the valuation ring of `l`, the image of `x` under `letterEmbedding σ'` |
| 248 | is congruent modulo `p` to the `p ^ e`-th power of its image under `letterEmbedding σ`. -/ |
| 249 | lemma dvd_letterEmbedding_sub_pow {P : Parameters} {D : Data P} {p : ℕ} [Fact p.Prime] |
| 250 | [PadicPlace p] {l : FinPlace D.E} (h_inert : chiK P.d p = -1) (hl : l.IsSplit) {e : ℕ} |
| 251 | (he : Odd e) {σ σ' : D.Φ} (h_next : σ' = D.placeOfInt (-p ^ e) * σ) |
| 252 | (hσ : inducedPlace σ = l ∨ inducedPlace σ = star l) |
| 253 | (hσ' : inducedPlace σ' = l ∨ inducedPlace σ' = star l) (x : l.valuationSubringAtPrime D.E) : |
| 254 | (p : embValRing) ∣ letterEmbedding σ' hσ' x - letterEmbedding σ hσ x ^ p ^ e := by |
| 255 | -- Reduce modulo `p`. It is enough to compare the two ring maps on the integers of `E`. There |
| 256 | -- the automorphism `g` named by `-p ^ e` satisfies `g a ≡ (star a) ^ p ^ e`. |
| 257 | have : CharP (embValRing ⧸ Ideal.span {(p : embValRing)}) p := |
| 258 | CharP.quotient _ p not_isUnit_natCast_embValRing |
| 259 | let red : embValRing →+* embValRing ⧸ Ideal.span {(p : embValRing)} := Ideal.Quotient.mk _ |
| 260 | let j : 𝓞 D.E →+* l.valuationSubringAtPrime D.E := algebraMap _ _ |
| 261 | let ψ : 𝓞 D.E →+* embValRing ⧸ Ideal.span {(p : embValRing)} := |
| 262 | (red.comp (letterEmbedding σ hσ)).comp j |
| 263 | let g : 𝓞 D.E →+* 𝓞 D.E := galOfPlaceInt (P.placeOfInt D.towerExp (-p ^ e)) |
| 264 | have h_frob (a : 𝓞 D.E) : ψ (g a) = ψ (star a) ^ p ^ e := by |
| 265 | have h_dvd : ψ p ∣ ψ (star a ^ p ^ e - g (star (star a))) := |
| 266 | map_dvd ψ (natCast_dvd_pow_sub_galOfPlaceInt_star h_inert he (star a)) |
| 267 | have hp_zero : ψ p = 0 := (map_natCast ψ p).trans (CharP.cast_eq_zero _ p) |
| 268 | rwa [hp_zero, zero_dvd_iff, map_sub, map_pow, star_star, sub_eq_zero, eq_comm] at h_dvd |
| 269 | -- Exactly one of `σ` and `σ'` induces `l`, so exactly one embedding is conjugated. |
| 270 | have h_shift (a : 𝓞 D.E) : |
| 271 | letterEmbedding σ' hσ' (j (star a)) = letterEmbedding σ hσ (j (g a)) := by |
| 272 | have hl_ne : star l ≠ l := hl |
| 273 | have h_conj : inducedPlace σ' = star (inducedPlace σ) := by |
| 274 | rw [h_next, D.inducedPlace_neg_pow_mul_of_odd h_inert he] |
| 275 | have h_emb : Φ σ (g a : D.E) = Φ σ' a := by |
| 276 | rw [h_next, mul_comm _ σ, phi_mul] |
| 277 | rfl |
| 278 | ext |
| 279 | rw [coe_letterEmbedding, coe_letterEmbedding, embeddingToward, embeddingToward, h_conj] |
| 280 | obtain h | h := hσ |
| 281 | · rw [h, ite_eq_right hl_ne, ite_eq_left rfl] |
| 282 | change Φ σ' (star (star (a : D.E))) = Φ σ (g a : D.E) |
| 283 | rw [star_star, h_emb] |
| 284 | · rw [h, star_star, ite_eq_left rfl, ite_eq_right hl_ne] |
| 285 | change Φ σ' (star (a : D.E)) = Φ σ (star (g a : D.E)) |
| 286 | rw [map_star_complex, map_star_complex, h_emb] |
| 287 | have h_hom : red.comp (letterEmbedding σ' hσ') = |
| 288 | (iterateFrobenius _ p e).comp (red.comp (letterEmbedding σ hσ)) := by |
| 289 | refine ringHom_ext l.asIdeal.primeCompl (RingHom.ext fun a ↦ ?_) |
| 290 | obtain ⟨b, rfl⟩ : ∃ b : 𝓞 D.E, star b = a := star_involutive.surjective a |
| 291 | change red (letterEmbedding σ' hσ' (j (star b))) = ψ (star b) ^ p ^ e |
| 292 | rw [h_shift, ← h_frob b] |
| 293 | rfl |
| 294 | exact Ideal.mk_span_eq_iff_dvd_sub.1 (RingHom.congr_fun h_hom x) |
| 295 | |
| 296 | omit [PadicPlace p] in |
| 297 | /-- Let `p` be exceptional: inert in the imaginary quadratic field, not `±1` modulo the number `D.m` |
| 298 | of lifts, and with `D.o₀ p` odd and at most `D.ceilLogLifts p`. Then the residue field of a prime |
| 299 | `l` of `D.E` above `p` has `p ^ o` elements, where `o = orderOf (D.placeOfInt (-p))` is the order of |
| 300 | the infinite place named by `-p`. -/ |
| 301 | lemma IsExceptional.card_residueField (h_served : D.IsExceptional p) |
| 302 | (hpl : (p : 𝓞 D.E) ∈ l.asIdeal) : |
| 303 | Nat.card (IsLocalRing.ResidueField (l.valuationSubringAtPrime D.E)) = |
| 304 | p ^ orderOf (D.placeOfInt (-p)) := by |
| 305 | have h_even : 2 ∣ orderOf (D.placeOfInt (-p)) := D.m_even.two_dvd.trans h_served.m_dvd_orderOf |
| 306 | calc Nat.card (IsLocalRing.ResidueField (l.valuationSubringAtPrime D.E)) |
| 307 | = l.q := (Nat.card_congr (equivQuotMaximalIdeal l.asIdeal _).toEquiv).symm.trans |
| 308 | (Ideal.absNorm_eq_natCard _).symm |
| 309 | _ = p ^ (orderOf (D.placeOfInt (-p))).lcm 2 := |
| 310 | q_eq_pow_lcm_of_inert hpl h_served.chiK_eq_neg_one |
| 311 | _ = p ^ orderOf (D.placeOfInt (-p)) := by rw [Nat.lcm_eq_left h_even] |
| 312 | |
| 313 | /-- Let `Λ` be a marked set for `p`, let `l ∈ Λ`, and let `o₀ = D.o₀ p`, the order modulo `q₀` of |
| 314 | the place named by the integer `-p`. Let `o₀ N` be the order of this place itself, and let `t i`, |
| 315 | for `i` modulo `N`, be infinite places that induce `l` or its conjugate, with `t (i + 1)` the place |
| 316 | named by `-p ^ o₀` times `t i`. Then the maps `New.Data.letterEmbedding (t i)` from the valuation |
| 317 | ring of `l` to the ring `embValRing` of `p`-integral complex numbers form a Frobenius cycle for the |
| 318 | prime `p` and the exponent `o₀`: each is congruent modulo `p` to the `p ^ o₀`-th power of the one |
| 319 | before, and a letter `i` is flagged as even (`isEven`) exactly if `t i` induces `l`, so parities |
| 320 | alternate. -/ |
| 321 | theorem IsMarked.exists_frobeniusCycle {P : Parameters} {D : Data P} {p : ℕ} [Fact p.Prime] |
| 322 | [PadicPlace p] {l : FinPlace D.E} {Λ : Finset (FinPlace D.E)} (hΛ : D.IsMarked Λ) (hl : l ∈ Λ) |
| 323 | {N : ℕ} (h_order : orderOf (D.placeOfInt (-p)) = D.o₀ p * N) {t : ZMod N → D.Φ} |
| 324 | (ht_succ : ∀ i : ZMod N, t (i + 1) = D.placeOfInt (-p ^ D.o₀ p) * t i) |
| 325 | (ht_ind : ∀ i : ZMod N, inducedPlace (t i) = l ∨ inducedPlace (t i) = star l) : |
| 326 | ∃ T : FrobeniusCycle N (l.valuationSubringAtPrime D.E) embValRing, |
| 327 | T.p = p ∧ |
| 328 | T.frobExp = D.o₀ p ∧ |
| 329 | (∀ i : ZMod N, T.isEven i ↔ inducedPlace (t i) = l) ∧ |
| 330 | ∀ i : ZMod N, T.embedding i = letterEmbedding (t i) (ht_ind i) := by |
| 331 | classical |
| 332 | obtain ⟨h_inert, -, h_odd, -⟩ : D.IsExceptional p := hΛ.isExceptional |
| 333 | have h_split : l.IsSplit := hΛ.isSplit hl |
| 334 | have h13 : 13 ≤ p := P.thirteen_le_of_chiK_ne_one Fact.out hΛ.isSmallNonsplit.2 |
| 335 | obtain ⟨w, hw⟩ : ∃ w : ℂ, p = w ^ 2 := (Complex.isSquare p).exists_sq |
| 336 | have hw_mem : w ∈ embValRing := by simpa [hw, pow_le_one_iff] using natCast_mem embValRing p |
| 337 | refine ⟨{ |
| 338 | p := p |
| 339 | frobExp := D.o₀ p |
| 340 | embedding i := letterEmbedding (t i) (ht_ind i) |
| 341 | isEven i := decide (inducedPlace (t i) = l) |
| 342 | sqrtPrime := ⟨w, hw_mem⟩ |
| 343 | prime := Fact.out |
| 344 | five_le_P := (by lia : 5 ≤ p).trans (Nat.le_self_pow h_odd.pos.ne' p) |
| 345 | sqrtPrime_sq := Subtype.ext hw.symm |
| 346 | frobenius_congr i := dvd_letterEmbedding_sub_pow h_inert h_split h_odd (ht_succ i) _ _ |
| 347 | isEven_succ i := ?_ |
| 348 | card_residueField := ?_ }, rfl, rfl, fun i ↦ decide_eq_true_iff, fun i ↦ rfl⟩ |
| 349 | · -- Multiplication with the place named by `-p ^ o₀` exchanges `l` and `star l`. |
| 350 | rw [ht_succ, D.inducedPlace_neg_pow_mul_of_odd h_inert h_odd] |
| 351 | obtain h | h := ht_ind i <;> simp [h, h_split] |
| 352 | · rw [hΛ.isExceptional.card_residueField (hΛ.natCast_mem_asIdeal hl), h_order, pow_mul] |
| 353 | |
| 354 | end Ring |
| 355 | |
| 356 | /-- Let `t` list the a-places that induce `l` or `star l`, each once, and let `i` be even for the |
| 357 | Frobenius cycle `T` exactly when `t i` induces `l`. Then `D.heckeScalingExponent l` is `D.a` times |
| 358 | the number of even `i`. -/ |
| 359 | private lemma heckeScalingExponent_eq_mul_card_isEven {P : Parameters} {D : Data P} {p : ℕ} |
| 360 | [Fact p.Prime] [PadicPlace p] {l : FinPlace D.E} {N : ℕ} [NeZero N] {W R : Type} |
| 361 | [CommRing W] [IsLocalRing W] [CommRing R] {T : FrobeniusCycle N W R} {t : ZMod N → D.Φ} |
| 362 | (ht_inj : t.Injective) |
| 363 | (ht_range : ∀ σ : D.Φ, σ ∈ Set.range t ↔ |
| 364 | σ ∈ D.aPlaces ∧ (inducedPlace σ = l ∨ inducedPlace σ = star l)) |
| 365 | (hT_even : ∀ i : ZMod N, T.isEven i ↔ inducedPlace (t i) = l) : |
| 366 | heckeScalingExponent l = D.a * #{i : ZMod N | T.isEven i} := by |
| 367 | classical |
| 368 | have h_image : {σ ∈ D.aPlaces | inducedPlace σ = l} = image t {i : ZMod N | T.isEven i} := by |
| 369 | ext σ |
| 370 | simp only [mem_filter, mem_image, mem_univ, true_and, hT_even] |
| 371 | constructor |
| 372 | · rintro ⟨hσ_top, hσ_ind⟩ |
| 373 | obtain ⟨i, rfl⟩ : σ ∈ Set.range t := (ht_range σ).2 ⟨hσ_top, .inl hσ_ind⟩ |
| 374 | exact ⟨i, hσ_ind, rfl⟩ |
| 375 | · rintro ⟨i, hi, rfl⟩ |
| 376 | exact ⟨((ht_range (t i)).1 ⟨i, rfl⟩).1, hi⟩ |
| 377 | rw [heckeScalingExponent, h_image, card_image_of_injective _ ht_inj] |
| 378 | |
| 379 | /-- Let `Λ` be a marked set of finite places above `p`, let `l ∈ Λ`, and let `j₀` be a natural |
| 380 | number. The scaled Hecke operator at `l` acts on `D.SourceForm`, the forms of weight `D.columnCount` |
| 381 | and level `D.levelX 0`; it is `p ^ A` times the Hecke operator of index `r` at `l`, where |
| 382 | `A = D.heckeScalingExponent l` is `D.a` times the number of a-places inducing `l` and |
| 383 | `r = D.ceilLogLifts p` is least with `m ≤ p ^ r`. It maps the module of integral source forms (gauge |
| 384 | at most `1`) to itself, and it is onto modulo `p ^ j₀` up to an index dividing `p ^ i` for some |
| 385 | natural `i ≤ (12 A / (m p) + j₀ / (m ^ 2 f)) * dim`, the divisions being those of real numbers. Here |
| 386 | `m = D.m` and `f = D.f` are the numerical parameters of `D`, and `dim` is the complex dimension of |
| 387 | `D.SourceForm`. -/ |
| 388 | theorem IsMarked.isOntoUpToColength_scaledHeckeOperator {P : Parameters} {p : ℕ} {D : Data P} |
| 389 | [Fact p.Prime] [PadicPlace p] {Λ : Finset (FinPlace D.E)} (hΛ : D.IsMarked Λ) (j₀ : ℕ) |
| 390 | {l : FinPlace D.E} (hl : l ∈ Λ) : |
| 391 | IsOntoUpToColength (p : embValRing) D.integralSourceForms j₀ (hΛ.scaledHeckeOperator ⟨l, hl⟩) |
| 392 | ((12 * D.heckeScalingExponent l / (D.m * p) + 1 / (D.m ^ 2 * D.f) * j₀) * |
| 393 | finrank ℂ D.SourceForm) := by |
| 394 | classical |
| 395 | -- The a-places that induce `l` or `star l` form one orbit `t` under the place named by `-p ^ o₀`. |
| 396 | -- Apply the bound for the edge Hecke operator to the Frobenius cycle of this orbit. |
| 397 | have h_orbits : D.HasExceptionalOrbits p := hΛ.isExceptional.hasExceptionalOrbits |
| 398 | have h_odd : Odd (D.o₀ p) := h_orbits.odd_o₀ |
| 399 | obtain ⟨hp_lt, h_nonsplit⟩ : D.IsSmallNonsplit p := hΛ.isSmallNonsplit |
| 400 | obtain ⟨τ, hτ, hτl⟩ : ∃ τ ∈ D.aPlaces, inducedPlace τ = l := hΛ.induced_by_aPlace l hl |
| 401 | set N : ℕ := orderOf (D.placeOfInt (-p) ^ D.o₀ p) with hN_def |
| 402 | have hN : orderOf (D.placeOfInt (-p)) = D.o₀ p * N := by |
| 403 | have h_dvd : D.o₀ p ∣ orderOf (D.placeOfInt (-p)) := orderOf_map_dvd _ _ |
| 404 | rw [hN_def, orderOf_pow_of_dvd h_odd.pos.ne' h_dvd, Nat.mul_div_cancel' h_dvd] |
| 405 | have : NeZero N := .of_pos (orderOf_pos _) |
| 406 | obtain ⟨t, ht_inj, ht_succ, ht_range⟩ : ∃ t : ZMod N → D.Φ, t.Injective ∧ |
| 407 | (∀ i : ZMod N, t (i + 1) = D.placeOfInt (-p ^ D.o₀ p) * t i) ∧ |
| 408 | ∀ σ : D.Φ, σ ∈ Set.range t ↔ |
| 409 | σ ∈ D.aPlaces ∧ (inducedPlace σ = l ∨ inducedPlace σ = star l) := by |
| 410 | simpa only [Parameters.placeOfInt_pow, h_odd.neg_pow, hτl] using |
| 411 | D.exists_orbit_of_mem_aPlaces hΛ.isExceptional.chiK_eq_neg_one hτ |
| 412 | have ht_ind (i : ZMod N) : inducedPlace (t i) = l ∨ inducedPlace (t i) = star l := |
| 413 | ((ht_range _).1 ⟨i, rfl⟩).2 |
| 414 | obtain ⟨T, hT_p, hT_o₀, hT_even, hT_ι⟩ : |
| 415 | ∃ T : FrobeniusCycle N (l.valuationSubringAtPrime D.E) embValRing, |
| 416 | T.p = p ∧ T.frobExp = D.o₀ p ∧ |
| 417 | (∀ i : ZMod N, T.isEven i ↔ inducedPlace (t i) = l) ∧ |
| 418 | ∀ i : ZMod N, T.embedding i = letterEmbedding (t i) (ht_ind i) := |
| 419 | hΛ.exists_frobeniusCycle hl hN ht_succ ht_ind |
| 420 | have h_nonunit : ¬IsUnit (T.p : embValRing) := by |
| 421 | simpa only [hT_p] using not_isUnit_natCast_embValRing |
| 422 | have hι (i : ZMod N) (x : l.valuationSubringAtPrime D.E) : |
| 423 | T.embedding i x = (if T.isEven i then Φ (t i) else (Φ (t i)).comp (starRingEnd D.E)) x := by |
| 424 | simp only [hT_ι, hT_even, coe_letterEmbedding, embeddingToward] |
| 425 | have h_exponent : heckeScalingExponent l = D.a * #{i : ZMod N | T.isEven i} := |
| 426 | heckeScalingExponent_eq_mul_card_isEven ht_inj ht_range hT_even |
| 427 | have hfrobExp_le : T.frobExp ≤ D.ceilLogLifts T.p := by |
| 428 | simpa only [hT_o₀, hT_p] using h_orbits.o₀_le_ceilLogLifts |
| 429 | have h_large : T.IsLargeDegree D.k D.a (D.ceilLogLifts p) (1 / (D.m ^ 2 * D.f)) := by |
| 430 | have hm : D.m ≤ T.frobExp * N := |
| 431 | (le_of_dvd (orderOf_pos _) h_orbits.m_dvd_orderOf).trans_eq (by rw [hN, hT_o₀]) |
| 432 | have h13 : 13 ≤ p := P.thirteen_le_of_chiK_ne_one Fact.out h_nonsplit |
| 433 | rw [← hT_p] at h13 hp_lt |
| 434 | simpa only [hT_p] using |
| 435 | D.isLargeDegree_of_le_card T h13 hp_lt hfrobExp_le orderOf_le_card_univ hm |
| 436 | have h_cost : 3 * T.divisorConstant D.k D.a (D.ceilLogLifts p) ≤ |
| 437 | 12 * D.heckeScalingExponent l / (D.m * p) := by |
| 438 | simpa only [hT_p, h_exponent] using |
| 439 | D.three_mul_divisorConstant_le T hfrobExp_le T.card_isEven_add_self |
| 440 | -- The constant of the Frobenius cycle is at most the stated one. |
| 441 | obtain ⟨h_stable, i, hi, h_index⟩ : |
| 442 | IsOntoUpToColength (p : embValRing) D.integralSourceForms j₀ (hΛ.scaledHeckeOperator ⟨l, hl⟩) |
| 443 | ((3 * T.divisorConstant D.k D.a (D.ceilLogLifts p) + 1 / (D.m ^ 2 * D.f) * j₀) * |
| 444 | finrank ℂ D.SourceForm) := by |
| 445 | simpa only [hT_p] using Columns.isOntoUpToColength_scaledHeckeOperator_of_frobeniusCycle hΛ hl |
| 446 | l.valuationSubringAtPrime_eq_valuationSubring T h_nonunit hT_p (.ofInjective t ht_inj) |
| 447 | ht_range hι h_exponent h_large j₀ |
| 448 | exact ⟨h_stable, i, hi.trans (by grw [h_cost]), h_index⟩ |
| 449 | |
| 450 | end New.Data |