Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import New.Congruences.Lifting.SidePoints |
| 4 | import Lib.PadicHodge.Kisin.FrameTheorem |
| 5 | |
| 6 | /-! |
| 7 | # The long gap lemma for a side of a Kummer chart, by expansion in powers of E |
| 8 | |
| 9 | This file concerns a side `S` over a Kummer chart, whose distinguished element is written `E`. It |
| 10 | defines the constants modulo `E ^ A` and expands vectors in powers of `E` with such constants as |
| 11 | coefficients. It then proves the long gap lemma. The proof multiplies a lift by `f(E)`, with `f` |
| 12 | monic of degree `N`, and takes the `N`-th Taylor coefficient of `p ^ (4 δ)` times the product. |
| 13 | |
| 14 | ## Main definitions and results |
| 15 | |
| 16 | * `New.Lift.KummerChart.JumpLattice.constantsModE`: the constants modulo E^A, with exponents |
| 17 | `New.Lift.KummerChart.JumpLattice.shiftedStdOrders`. |
| 18 | * `New.Lift.KummerChart.PairingSide.pointsOver_nonempty_of_long_gap`: the long gap lemma. On an |
| 19 | unramified Kummer chart, if `E ^ s` kills the cokernel at `i` and `p ^ κ` kills it at |
| 20 | `i.stepBack l`, the jumps at `i` and the `l - 1` letters before it are at most `g`, `3 ≤ p ^ l`, |
| 21 | `A ≤ p ^ l * δ`, and there is the long gap `s + g * ∑ a < l, p ^ a < A`, then a constant of the |
| 22 | trivial lattice lifts, up to a power of p, to a point of the extension at `i` with a large order |
| 23 | at E at the very negative jumps. |
| 24 | |
| 25 | Notions from other files: |
| 26 | * `New.Lift.KummerChart`: a ring `k.S` = Λ⟦z⟧ in A_inf, where Λ = `WittFq k.f` = W(𝔽_{p^f}), and a |
| 27 | subgroup Γ' of Γ of index prime to p that fixes Λ. It is unramified (`IsUnramified`) if E = z + p |
| 28 | and the ramification index `k.e` is 1. The number `k.differentBound` is 0 if `k.e = 1` and |
| 29 | v_p(e) + 1 otherwise. |
| 30 | * `New.Lift.KummerChart.Coeffs`: a ring of coefficients O, a finite free Z_p-algebra with an element |
| 31 | ζ such that ζ^{p^f−1} = 1; ζ cuts out the letters. |
| 32 | * `New.Lift.KummerChart.Letter`: the letters of a Kummer chart, that is, the multiplicative group of |
| 33 | the field with p^f elements in the tilt of the ring of integers of C_p; `i.stepBack a` is the |
| 34 | letter `a` Frobenius steps back. |
| 35 | * `New.Lift.KummerChart.JumpLattice.withOrders`: for a lattice `L` with a finite set of jumps at |
| 36 | each letter, the vectors of W(C^♭)⊗L at a letter whose value at φ^a E on the forms of jump u is |
| 37 | divisible by t^{c(a,u)}; they are said to have the orders `c`. |
| 38 | * `New.Lift.KummerChart.PairingSide`, `New.Lift.KummerChart.PairingSide.KillsCokernel`: one side of |
| 39 | a pairing: lattices Y and C (`paramLattice`), an O-linear map `cocycleMap` from C to the |
| 40 | crystalline cocycles Z_f(Y), and for each letter a finite set of integers that contains 0, the |
| 41 | jumps. The extension `extensionLattice` of C by Y maps by `projTrivial` to `trivialLattice`, the |
| 42 | lattice C with trivial action. `KillsCokernel`: `p ^ κ * E ^ s` multiplies the part of A_inf ⊗ C |
| 43 | at a letter into the image of the standard module of level 0 of the extension. |
| 44 | * `New.Lift.KummerChart.PairingSide.pointsOver`: `S.pointsOver c i e o d` is the set of the vectors |
| 45 | `x` of the Kisin module of the extension, with all φ^a E inverted, that lie over `p ^ e c` at `i`, |
| 46 | have the orders `o` and have the depth `d`: every `g • x - x` with `g` in Γ' has exponents `d`. |
| 47 | |
| 48 | ## Relation to the literature |
| 49 | |
| 50 | See `New.Congruences.Lifting.CutExponentBounds` for related work. |
| 51 | -/ |
| 52 | |
| 53 | @[expose] public section |
| 54 | |
| 55 | namespace New.Lift.KummerChart |
| 56 | |
| 57 | section LongGap |
| 58 | |
| 59 | open Period Submodule Finset Polynomial JumpLattice algebraMap |
| 60 | |
| 61 | variable {p : ℕ} [ThePrime p] [Γ : GroupOverGp p] |
| 62 | {k : KummerChart Γ} {O : Coeffs} {L : JumpLattice O} |
| 63 | |
| 64 | /-- The system of exponents obtained from the standard one of level `l` (`0` for `a < l`, `-u` for |
| 65 | `a ≥ l`) by adding `o u` at `a = 0`, that is, at `E`. Here `a` stands for the element φ^a E. -/ |
| 66 | abbrev JumpLattice.shiftedStdOrders (l : ℕ) (o : ℤ → ℤ) (a : ℕ) (u : ℤ) : ℤ := |
| 67 | stdOrders l a u + if 0 = a then o u else 0 |
| 68 | |
| 69 | /-- The constants modulo `E ^ A` at the letter `i` of a lattice `L`. Let `x` lie in |
| 70 | `L.stdOrdersPart l i`: in the Kisin module of `L` with all `φ^a E` inverted, at `i`, with the |
| 71 | standard orders of level `l`. This means that the value at `φ^a E` of each form of jump `u` is |
| 72 | divisible by `t ^ c`, where `c` is `0` for `a < l` and `-u` for `a ≥ l`. It is a constant if every |
| 73 | `g • x - x`, for `g` in the subgroup `Γ'` of the chart, has these orders raised by `A` at `E`, that |
| 74 | is, at `a = 0`. The constants form a ℤ_p-module. -/ |
| 75 | noncomputable def JumpLattice.constantsModE (l : ℕ) (A : ℕ) (i : k.Letter) : |
| 76 | Submodule ℤ_[p] (Ambient (k := k) (O := O) (L := L)) := |
| 77 | (L.stdOrdersPart l i).restrictScalars ℤ_[p] ⊓ |
| 78 | invariantsMod (withOrders i (shiftedStdOrders l fun _ : ℤ ↦ A)) |
| 79 | |
| 80 | section ConstantsModE |
| 81 | |
| 82 | variable {x : L.Ambient} {l A : ℕ} {i : k.Letter} {o : ℤ → ℤ} |
| 83 | |
| 84 | /-- If `x` has the standard orders of level `l` raised by `o` at `E`, it has them raised by any |
| 85 | `o' ≤ o`. -/ |
| 86 | lemma JumpLattice.mem_withOrders_shiftedStdOrders_of_le {o' : ℤ → ℤ} |
| 87 | (hx : x ∈ L.withOrders i (shiftedStdOrders l o)) (h_le : ∀ u : ℤ, o' u ≤ o u) : |
| 88 | x ∈ L.withOrders i (shiftedStdOrders l o') := |
| 89 | mem_withOrders_of_le hx (by grind) |
| 90 | |
| 91 | /-- The power `E ^ m` adds `m` to the exponents `o` by which the standard ones are raised at `E`. |
| 92 | Here `k.frobEUnit 0` is `E` as a unit. -/ |
| 93 | lemma JumpLattice.frobEUnit_zpow_smul_mem_withOrders_shiftedStdOrders (m : ℤ) |
| 94 | (hx : x ∈ L.withOrders i (shiftedStdOrders l o)) : |
| 95 | k.frobEUnit 0 ^ m • x ∈ L.withOrders i (shiftedStdOrders l fun u : ℤ ↦ o u + m) := |
| 96 | frobEUnit_zpow_smul_mem_withOrders 0 m hx (by grind) |
| 97 | |
| 98 | lemma JumpLattice.shiftedStdOrders_zero : shiftedStdOrders l (fun _ : ℤ ↦ (0 : ℤ)) = stdOrders l := |
| 99 | funext₂ fun a u ↦ by simp [shiftedStdOrders] |
| 100 | |
| 101 | /-- The constants modulo `E ^ A` are stable under multiplication by the unramified Witt vectors |
| 102 | `W(𝔽_{p^f})`. -/ |
| 103 | lemma JumpLattice.wittFq_smul_mem_constantsModE (w : WittFq k.f) |
| 104 | (hx : x ∈ L.constantsModE l A i) : (w : k.S) • x ∈ L.constantsModE l A i := by |
| 105 | obtain ⟨hx_part, hx_inv⟩ := hx |
| 106 | refine ⟨smul_mem (L.stdOrdersPart l i) (w : k.S) hx_part, fun g ↦ ?_⟩ |
| 107 | obtain ⟨_, γ, rfl⟩ := g |
| 108 | -- `Γ'` fixes the coefficient `w`. |
| 109 | simpa [fixes, smul_eq_val_smul, frobGroup_smul_smul, smul_sub] using smul_mem _ _ |
| 110 | (hx_inv ⟨_, γ, rfl⟩) |
| 111 | |
| 112 | /-- A map of lattices `F : L → L'` sends constants modulo `E ^ A` to constants modulo `E ^ A`, if |
| 113 | the jump sets of `L'` lie in those of `L`. -/ |
| 114 | lemma JumpLattice.Hom.wittMap_mem_constantsModE {L' : JumpLattice O} (F : L.Hom L') |
| 115 | (hU : L'.jumpSet ≤ L.jumpSet) (hx : x ∈ L.constantsModE l A i) : |
| 116 | F.wittMap x ∈ L'.constantsModE l A i := by |
| 117 | obtain ⟨⟨hx_loc, hx_std⟩, hx_inv⟩ := hx |
| 118 | refine ⟨⟨F.wittMap_mem_kisinLoc hx_loc, F.wittMap_mem_withOrders hU hx_std⟩, fun g ↦ ?_⟩ |
| 119 | simpa [k.galMonoid.smul_def] using F.wittMap_mem_withOrders hU (hx_inv g) |
| 120 | |
| 121 | lemma JumpLattice.frobEUnit_zero_smul : k.frobEUnit 0 • x = k.E • x := rfl |
| 122 | |
| 123 | /-- The standard orders of level `l` (`stdOrders l`) are `0` for `a < l` and `-u` for `a ≥ l`; |
| 124 | `shiftedStdOrders l o` adds `o u` to them at `a = 0`. Let `0 < l`, let `ξ` be a constant modulo |
| 125 | `E ^ A` (standard orders, and all `g • ξ - ξ` with `g ∈ Γ'` have them raised by `A` at `a = 0`) and |
| 126 | let `y` have the standard orders. If `ξ + E • y` has the orders `shiftedStdOrders l o`, then `ξ` has |
| 127 | the standard orders raised by `A` at `a = 0` on the jumps `u` with `0 < o u`. -/ |
| 128 | lemma JumpLattice.mem_withOrders_of_add_E_smul_mem (hl : 0 < l) {ξ y : L.Ambient} |
| 129 | (hξ : ξ ∈ L.constantsModE l A i) (hy : y ∈ L.withOrders i (stdOrders l)) |
| 130 | (h_exp : ξ + k.E • y ∈ L.withOrders i (shiftedStdOrders l o)) : |
| 131 | ξ ∈ L.withOrders i (shiftedStdOrders l fun u : ℤ ↦ if o u ≤ 0 then 0 else A) := by |
| 132 | -- `E • y` has exponent `1` at `E`, so `ξ` has `min 1 o`. As `ξ` is a constant modulo `E ^ A`, |
| 133 | -- a positive exponent improves to `A`. |
| 134 | obtain ⟨-, hξ_inv⟩ := hξ |
| 135 | have hEy : k.E • y ∈ L.withOrders i (shiftedStdOrders l fun u : ℤ ↦ min 1 (o u)) := by |
| 136 | rw [← frobEUnit_zero_smul, ← zpow_one (k.frobEUnit 0)] |
| 137 | exact frobEUnit_zpow_smul_mem_withOrders 0 1 hy (by grind) |
| 138 | have h_min : ξ ∈ L.withOrders i (shiftedStdOrders l fun u : ℤ ↦ min 1 (o u)) := by |
| 139 | rw [← add_mem_cancel_right hEy] |
| 140 | exact mem_withOrders_shiftedStdOrders_of_le h_exp fun u ↦ min_le_right 1 (o u) |
| 141 | have h_improved : ∀ a : ℕ, ∀ u ∈ L.jumpSet (i.stepBack a), |
| 142 | shiftedStdOrders l (fun v : ℤ ↦ if o v ≤ 0 then 0 else A) a u ≤ |
| 143 | improvedOrders (shiftedStdOrders l fun v : ℤ ↦ min 1 (o v)) |
| 144 | (shiftedStdOrders l fun _ : ℤ ↦ A) a u := by grind |
| 145 | exact mem_withOrders_of_le (mem_withOrders_improvedOrders h_min hξ_inv) h_improved |
| 146 | |
| 147 | /-- Let `0 < l`, let all `ξ n` be constants modulo `E ^ A` and let `y` have the standard orders. If |
| 148 | `∑ n ≤ N, E ^ n • ξ n + E ^ (N + 1) • y` has the standard orders raised by `o ≤ A` at `E`, then |
| 149 | `ξ N` has them raised by `A` at the jumps `u` with `N < o u`. -/ |
| 150 | lemma JumpLattice.mem_withOrders_of_expansion_mem (hl : 0 < l) {ξ : ℕ → L.Ambient} |
| 151 | {y : L.Ambient} {N : ℕ} (hξ : ∀ n : ℕ, ξ n ∈ L.constantsModE l A i) |
| 152 | (hy : y ∈ L.withOrders i (stdOrders l)) (ho : ∀ u : ℤ, o u ≤ A) |
| 153 | (h_exp : ∑ n ∈ range (N + 1), k.E ^ n • ξ n + k.E ^ (N + 1) • y ∈ |
| 154 | L.withOrders i (shiftedStdOrders l o)) : |
| 155 | ξ N ∈ L.withOrders i (shiftedStdOrders l fun u : ℤ ↦ if o u ≤ N then 0 else A) := by |
| 156 | -- Peel off the constant term and divide by `E`; this lowers `N` and `o` by one. |
| 157 | induction N generalizing ξ o with |
| 158 | | zero => exact mem_withOrders_of_add_E_smul_mem hl (hξ 0) hy (by simpa using h_exp) |
| 159 | | succ N ih => |
| 160 | set y' : L.Ambient := ∑ n ∈ range (N + 1), k.E ^ n • ξ (n + 1) + k.E ^ (N + 1) • y with hy' |
| 161 | have h_split : ∑ n ∈ range (N + 1 + 1), k.E ^ n • ξ n + k.E ^ (N + 1 + 1) • y = |
| 162 | ξ 0 + k.E • y' := by |
| 163 | rw [sum_range_succ', add_right_comm, add_comm] |
| 164 | simp only [hy', smul_add, smul_sum, pow_succ', mul_smul, pow_zero, one_smul] |
| 165 | rw [h_split] at h_exp |
| 166 | have hy'_std : y' ∈ L.withOrders i (stdOrders l) := by |
| 167 | refine add_mem (sum_mem fun n _ ↦ ?_) (smul_of_tower_mem _ _ hy) |
| 168 | obtain ⟨⟨-, h_std⟩, -⟩ := hξ (n + 1) |
| 169 | exact smul_of_tower_mem _ _ h_std |
| 170 | have h_le : ∀ u : ℤ, o u ≤ (if o u ≤ 0 then 0 else A : ℤ) := by grind |
| 171 | have h_const : ξ 0 ∈ L.withOrders i (shiftedStdOrders l o) := |
| 172 | mem_withOrders_shiftedStdOrders_of_le |
| 173 | (mem_withOrders_of_add_E_smul_mem hl (hξ 0) hy'_std h_exp) h_le |
| 174 | have hy'_exp : y' ∈ L.withOrders i (shiftedStdOrders l fun u : ℤ ↦ o u + -1) := by |
| 175 | rw [add_mem_cancel_left h_const, ← frobEUnit_zero_smul] at h_exp |
| 176 | simpa only [zpow_neg_one, inv_smul_smul] using |
| 177 | frobEUnit_zpow_smul_mem_withOrders_shiftedStdOrders (-1) h_exp |
| 178 | have h_index : ∀ u : ℤ, (if o u ≤ (N + 1 : ℕ) then 0 else A : ℤ) ≤ |
| 179 | (if o u + -1 ≤ N then 0 else A : ℤ) := by aesop |
| 180 | exact mem_withOrders_shiftedStdOrders_of_le (ih (fun n ↦ hξ (n + 1)) (by grind) hy'_exp) h_index |
| 181 | |
| 182 | /-- The forms of `L` are the `A_inf`-linear maps `μ : W(C^♭) ⊗ L → B_dR` that are equivariant on |
| 183 | `1 ⊗ L` for the subgroup `Γ'` (`k.subgroup`) of the chart; `toGp` maps it to the Galois group. Let |
| 184 | `0 < l`. Let `x` lie in the image under `φ ^ l` of the `A_inf`-module `L.kisinAinf`, and let all |
| 185 | forms take values at `x` in the field `𝒦₀ = k.valueField 0`. Let `g μ(x) - μ(x)` lie in |
| 186 | `hodgeFil A = t ^ A B_dR⁺` for all forms `μ` and all `g` in `Γ'`. Then the projection |
| 187 | `L.letterProj i x` of `x` to the letter `i` is a constant modulo `E ^ A`: it has the standard |
| 188 | orders of level `l`, and every `g • y - y` for this projection `y` has them raised by `A` at |
| 189 | `E`. -/ |
| 190 | lemma JumpLattice.letterProj_mem_constantsModE (hl : 0 < l) (i : k.Letter) |
| 191 | (hx_points : x ∈ L.valueFieldPoints (frobKisinAinf l)) |
| 192 | (hx_forms : ∀ μ ∈ L.forms, ∀ g : k.subgroup, toGp g • μ x - μ x ∈ hodgeFil A) : |
| 193 | L.letterProj i x ∈ L.constantsModE l A i := by |
| 194 | have h_part : L.letterProj i x ∈ stdOrdersPart l i := |
| 195 | letterProj_mem_stdOrdersPart hx_points |
| 196 | -- `g • y - y` keeps the standard exponents, so only the exponent `A` at `E` (`a = 0`) is new. |
| 197 | refine ⟨h_part, fun g ↦ ?_⟩ |
| 198 | obtain ⟨⟨h_value, -⟩, h_std⟩ := h_part |
| 199 | obtain ⟨_, γ, rfl⟩ := g |
| 200 | refine mem_withOrders_of_mem_hodgeFil (smul_sub_mem_withOrders h_std _) |
| 201 | fun a u _ h_lt μ hμ ↦ ?_ |
| 202 | obtain rfl : 0 = a := by_contra fun h_ne ↦ by simp [shiftedStdOrders, h_ne] at h_lt |
| 203 | obtain ⟨hμ_form, -⟩ := hμ |
| 204 | -- The hypothesis on `x` applies to the form `μ ∘ letterProj i`. |
| 205 | have h_mem : toGp γ • μ (L.letterProj i x) - μ (L.letterProj i x) ∈ hodgeFil A := |
| 206 | hx_forms _ (comp_letterProj_mem_forms hμ_form) γ |
| 207 | have h_exponent : shiftedStdOrders l (fun _ : ℤ ↦ A) 0 u = A := by |
| 208 | simp [shiftedStdOrders, stdOrders, hl] |
| 209 | rwa [valueAt_smul_sub h_value hμ_form, h_exponent, valueAt_zero] |
| 210 | |
| 211 | /-- On an unramified chart (`E = z + p`), every `s` in the ring `k.S = Λ⟦z⟧` has an expansion in |
| 212 | powers of `E` with coefficients in `Λ = WittFq k.f = W(𝔽_{p^f})`: there are `w n` such that |
| 213 | `s = ∑ n < N, E ^ n * w n` modulo `E ^ N` for all `N`. -/ |
| 214 | lemma exists_expansion_pow_E (hk : k.IsUnramified) (s : k.S) : |
| 215 | ∃ w : ℕ → WittFq k.f, ∀ N : ℕ, ∃ t : k.S, |
| 216 | s = ∑ n ∈ range N, k.E ^ n * (w n : k.S) + k.E ^ N * t := by |
| 217 | -- As `e = 1`, division by `E` leaves a remainder in `W(𝔽_{p^f})`; divide repeatedly. |
| 218 | choose w t h_div using exists_sub_smul_one_eq_E_mul hk |
| 219 | -- The remainders of the iterated quotients `t^[n] s` are the digits. |
| 220 | refine ⟨fun n : ℕ ↦ w (t^[n] s), fun N ↦ ⟨t^[N] s, ?_⟩⟩ |
| 221 | induction N with |
| 222 | | zero => simp |
| 223 | | succ N ih => |
| 224 | rw [sum_range_succ, Function.iterate_succ_apply'] |
| 225 | simp only [Algebra.smul_def, mul_one] at h_div |
| 226 | linear_combination ih + k.E ^ N * h_div (t^[N] s) |
| 227 | |
| 228 | /-- Expansion in powers of `E` with nearly invariant coefficients, on an unramified chart (`e = 1`). |
| 229 | Let `x` be a vector of the Kisin module of `L` with all `φ^a E` inverted at the letter `i`, with the |
| 230 | standard orders of level `l`: the value at `φ^a E` on the jump `u` has order `0` for `a < l` and |
| 231 | `-u` for `a ≥ l`. Let `0 < l`, `3 ≤ p ^ l`, and let `δ` be a natural number with `A ≤ p ^ l * δ`; |
| 232 | the price of the expansion is the factor `p ^ (4 * δ)`. Then there are constants `ξ n` modulo |
| 233 | `E ^ A` such that for every `N` the vector `p ^ (4 * δ) • x` is `∑ n < N, E ^ n • ξ n` plus `E ^ N` |
| 234 | times a vector of `L.stdOrdersPart l i`. -/ |
| 235 | lemma JumpLattice.exists_taylor_expansion_of_mem_stdOrdersPart (hl : 0 < l) |
| 236 | (hk : k.IsUnramified) {δ : ℕ} (h_three : 3 ≤ p ^ l) (h_depth : A ≤ p ^ l * δ) |
| 237 | (hx : x ∈ L.stdOrdersPart l i) : |
| 238 | ∃ ξ : ℕ → L.Ambient, |
| 239 | (∀ n : ℕ, ξ n ∈ L.constantsModE l A i) ∧ |
| 240 | ∀ N : ℕ, ∃ y ∈ L.stdOrdersPart l i, |
| 241 | p ^ (4 * δ) • x = ∑ n ∈ range N, k.E ^ n • ξ n + k.E ^ N • y := by |
| 242 | -- The frame theorem writes `p ^ (4 * δ) • x` as `∑ a, r a • b a` with `r a` in `S` and `b a` |
| 243 | -- constants modulo `E ^ A`. Expand each `r a` in powers of `E` and collect the terms. |
| 244 | obtain ⟨h_points, h_letter⟩ := mem_valueFieldPoints_and_letterPart_of_mem_stdOrdersPart hx |
| 245 | have ⟨_, (he : k.e = 1), _⟩ := hk |
| 246 | let almostFixed : Set L.Ambient := |
| 247 | {y ∈ L.valueFieldPoints (L.frobKisinAinf l) | |
| 248 | ∀ μ ∈ L.forms, ∀ g : k.subgroup, toGp g • μ y - μ y ∈ hodgeFil A} |
| 249 | have hx_span : p ^ (4 * δ) • x ∈ span k.S almostFixed := |
| 250 | frame_theorem.pow_smul_mem_span_of_mem_valueFieldPoints l A δ (by rwa [he, mul_one]) |
| 251 | (by rwa [he, one_mul]) x h_points |
| 252 | obtain ⟨m, r, v, h_sum⟩ : ∃ (m : ℕ) (r : Fin m → k.S) (v : Fin m → almostFixed), |
| 253 | ∑ a : Fin m, r a • (v a : L.Ambient) = p ^ (4 * δ) • x := mem_span_set'.1 hx_span |
| 254 | let b : Fin m → L.Ambient := fun a ↦ L.letterProj i (v a) |
| 255 | have hb (a : Fin m) : b a ∈ L.constantsModE l A i := by |
| 256 | obtain ⟨hv_points, hv_forms⟩ := (v a).property |
| 257 | exact letterProj_mem_constantsModE hl i hv_points hv_forms |
| 258 | have h_comb : p ^ (4 * δ) • x = ∑ a : Fin m, r a • b a := by |
| 259 | simpa [mem_letterPart_iff_letterProj.1 h_letter] using congrArg (L.letterProj i) h_sum.symm |
| 260 | have h_expand : ∀ a : Fin m, ∃ w : ℕ → WittFq k.f, ∀ N : ℕ, ∃ t : k.S, |
| 261 | r a = ∑ n ∈ range N, k.E ^ n * (w n : k.S) + k.E ^ N * t := |
| 262 | fun a ↦ exists_expansion_pow_E hk (r a) |
| 263 | choose w t h_digits using h_expand |
| 264 | refine ⟨fun n : ℕ ↦ ∑ a : Fin m, (w a n : k.S) • b a, |
| 265 | fun n ↦ sum_mem fun a _ ↦ wittFq_smul_mem_constantsModE (w a n) (hb a), |
| 266 | fun N ↦ ⟨∑ a : Fin m, t a N • b a, sum_smul_mem _ _ fun a _ ↦ (hb a).left, ?_⟩⟩ |
| 267 | calc p ^ (4 * δ) • x = ∑ a : Fin m, r a • b a := h_comb |
| 268 | _ = ∑ a : Fin m, (∑ n ∈ range N, k.E ^ n * (w a n : k.S) + k.E ^ N * t a N) • b a := by |
| 269 | simp only [← h_digits] |
| 270 | _ = ∑ n ∈ range N, k.E ^ n • ∑ a : Fin m, (w a n : k.S) • b a + |
| 271 | k.E ^ N • ∑ a : Fin m, t a N • b a := by |
| 272 | simp only [add_smul, sum_smul, mul_smul, smul_sum, sum_add_distrib] |
| 273 | rw [sum_comm] |
| 274 | |
| 275 | lemma JumpLattice.frobEUnit_zpow_natCast_smul (a n : ℕ) : |
| 276 | k.frobEUnit a ^ (n : ℤ) • x = k.frobE a ^ n • x := by |
| 277 | rw [zpow_natCast, frobEUnit_pow_smul] |
| 278 | rfl |
| 279 | |
| 280 | /-- On an unramified chart, let `y` be a vector of `W(C^♭) ⊗ L` with orders |
| 281 | `raisedOrdersAtZero (-s)` at the letter `i`: the value at `φ^a E` of a form of jump `u` is divisible |
| 282 | by `t` to the power `-u - s` for `a = 0` and `-u` for the other `a`. Then there is a monic `f` in |
| 283 | `ℤ[X]` of degree `s + g * ∑ j < l, p ^ j` such that `f(E) • y` has orders `g - u` at `φ^a E` for |
| 284 | `a < l` and `-u` for `a ≥ l`. -/ |
| 285 | lemma JumpLattice.exists_isMonicOfDegree_aeval_smul_mem (hk : k.IsUnramified) {s : ℕ} (g l : ℕ) |
| 286 | {y : L.Ambient} (hy : y ∈ L.withOrders i (raisedOrdersAtZero (-s))) : |
| 287 | ∃ f : ℤ[X], |
| 288 | f.IsMonicOfDegree (s + g * ∑ t ∈ range l, p ^ t) ∧ |
| 289 | aeval k.E f • y ∈ L.withOrders i fun (a : ℕ) (u : ℤ) ↦ (if a < l then g else 0) - u := by |
| 290 | -- Take `f(E) = E^s ∏_{a<l} (φ^a E)^g`, which is monic in `E` since `φ^a E = (E - p)^(p^a) + p`. |
| 291 | obtain ⟨hE, -⟩ := hk |
| 292 | induction l with |
| 293 | | zero => |
| 294 | refine ⟨X ^ s, by simpa using isMonicOfDegree_X_pow ℤ s, ?_⟩ |
| 295 | rw [map_pow, aeval_X, show k.E = k.frobE 0 by rfl, ← frobEUnit_zpow_natCast_smul] |
| 296 | exact frobEUnit_zpow_smul_mem_withOrders 0 s hy (by grind) |
| 297 | | succ l ih => |
| 298 | obtain ⟨f, hf, hfy⟩ := ih |
| 299 | let F : ℤ[X] := (X - Polynomial.C (p : ℤ)) ^ p ^ l + (p : ℤ[X]) |
| 300 | have hF : F.IsMonicOfDegree (1 * p ^ l) := |
| 301 | ((isMonicOfDegree_X_sub_one _).pow (p ^ l)).add_right (q := p) (by simp [NeZero.pos]) |
| 302 | have h_eval : aeval k.E F = k.frobE l := |
| 303 | Subtype.ext (by simp [F, val_frobE, phi_pow_smul_z, hE]) |
| 304 | refine ⟨F ^ g * f, ?_, ?_⟩ |
| 305 | · rw [sum_range_succ, mul_add, ← add_assoc, add_comm, mul_comm g] |
| 306 | simpa only [one_mul] using (hF.pow g).mul hf |
| 307 | · rw [map_mul, map_pow, h_eval, mul_smul, ← frobEUnit_zpow_natCast_smul] |
| 308 | exact frobEUnit_zpow_smul_mem_withOrders l g hfy (by grind) |
| 309 | |
| 310 | /-- Let `0 < l`, let `f` be monic of degree `N < A`, let all `ξ n` be constants modulo `E ^ A` in |
| 311 | the extension and let `y` have the standard orders. Suppose that `projTrivial` sends |
| 312 | `∑ n ≤ N, E ^ n • ξ n + E ^ (N + 1) • y` to `p ^ e • f(E) • c`, where `c` stands for |
| 313 | `S.constantAt i c`, the image of `1 ⊗ c` at the letter `i`. Then it sends `ξ N` to `p ^ e • c` up to |
| 314 | a vector that has the standard orders raised by `A` at `E`. -/ |
| 315 | lemma PairingSide.projTrivial_coeff_sub_mem_withOrders {S : PairingSide O} (hl : 0 < l) |
| 316 | {f : ℤ[X]} {N e : ℕ} (hf : f.IsMonicOfDegree N) (hA : N < A) {c : S.paramLattice} |
| 317 | {ξ : ℕ → S.extensionLattice.Ambient} {y : S.extensionLattice.Ambient} |
| 318 | (hξ : ∀ n : ℕ, ξ n ∈ S.extensionLattice.constantsModE l A i) |
| 319 | (hy : y ∈ S.extensionLattice.withOrders i (stdOrders l)) |
| 320 | (h_over : S.projTrivial.wittMap (∑ n ∈ range (N + 1), k.E ^ n • ξ n + k.E ^ (N + 1) • y) = |
| 321 | p ^ e • aeval k.E f • S.constantAt i c) : |
| 322 | S.projTrivial.wittMap (ξ N) - p ^ e • S.constantAt i c ∈ |
| 323 | S.trivialLattice.withOrders i (shiftedStdOrders l fun _ : ℤ ↦ A) := by |
| 324 | -- The differences `η n` of the coefficients on the two sides are constants modulo `E ^ A` and |
| 325 | -- form an expansion of `0`. |
| 326 | have hU : S.trivialLattice.jumpSet ≤ S.extensionLattice.jumpSet := fun j ↦ |
| 327 | singleton_subset_iff.2 (S.zero_mem j) |
| 328 | have hc : S.constantAt i c ∈ S.trivialLattice.constantsModE l A i := |
| 329 | ⟨constantAt_mem_stdOrdersPart c, fun g ↦ by |
| 330 | simp [k.galMonoid.smul_def, constantAt, gal_smul_letterProj]⟩ |
| 331 | set η : ℕ → S.trivialLattice.Ambient := |
| 332 | fun n ↦ S.projTrivial.wittMap (ξ n) - p ^ e • f.coeff n • S.constantAt i c with hη_def |
| 333 | have hη (n : ℕ) : η n ∈ S.trivialLattice.constantsModE l A i := |
| 334 | sub_mem (S.projTrivial.wittMap_mem_constantsModE hU (hξ n)) (nsmul_mem (zsmul_mem hc _) _) |
| 335 | have h_poly : p ^ e • aeval k.E f • S.constantAt i c = |
| 336 | ∑ n ∈ range (N + 1), k.E ^ n • p ^ e • f.coeff n • S.constantAt i c := by |
| 337 | simp only [aeval_eq_sum_range, hf.natDegree_eq, sum_smul, smul_sum, smul_assoc, |
| 338 | smul_comm (k.E ^ _)] |
| 339 | have h_zero : ∑ n ∈ range (N + 1), k.E ^ n • η n + k.E ^ (N + 1) • S.projTrivial.wittMap y = |
| 340 | 0 := by |
| 341 | simp only [hη_def, smul_sub, sum_sub_distrib] |
| 342 | rw [← h_poly, ← h_over, sub_add_eq_add_sub, sub_eq_zero] |
| 343 | simp |
| 344 | have hη_exp : η N ∈ S.trivialLattice.withOrders i |
| 345 | (shiftedStdOrders l fun _ : ℤ ↦ if (A : ℤ) ≤ N then 0 else A) := |
| 346 | mem_withOrders_of_expansion_mem hl hη (S.projTrivial.wittMap_mem_withOrders hU hy) |
| 347 | (fun _ ↦ le_rfl) (by simp only [h_zero, ZeroMemClass.zero_mem]) |
| 348 | have h_lead : f.coeff N = 1 := by rw [← hf.natDegree_eq, hf.monic.coeff_natDegree] |
| 349 | simpa only [hη_def, h_lead, one_smul, Nat.cast_le, hA.not_ge, ite_false] using hη_exp |
| 350 | |
| 351 | end ConstantsModE |
| 352 | |
| 353 | /-- Let `p ^ κ` kill the cokernel of the side `S` at the letter `l` steps before `i`. Let `z` be a |
| 354 | vector of the trivial lattice `S.trivialLattice` at `i` with the standard orders of level `l` |
| 355 | (`stdOrdersPart l i`). Then `p ^ κ • z` is the image under `projTrivial` of a vector of the |
| 356 | extension `S.extensionLattice` with the same exponents at `i`. -/ |
| 357 | lemma PairingSide.exists_lift_pow_smul_of_killsCokernel_stepBack {l κ : ℕ} {i : k.Letter} |
| 358 | {S : PairingSide O} (h_kill : S.KillsCokernel (i.stepBack l) κ 0) {z : S.trivialLattice.Ambient} |
| 359 | (hz : z ∈ S.trivialLattice.stdOrdersPart l i) : |
| 360 | ∃ x ∈ S.extensionLattice.stdOrdersPart l i, S.projTrivial.wittMap x = p ^ κ • z := by |
| 361 | -- `φ ^ l` carries the ideal of the killers at the letter `i.stepBack l` to that at `i`. |
| 362 | have h_mem : ((p ^ κ : k.S) : Ainf) ∈ S.liftIdeal 0 l i := by |
| 363 | simpa [-CharP.cast_eq_zero] using (phi_pow_smul_mem_liftIdeal_iff l).2 h_kill |
| 364 | obtain ⟨t, ht⟩ := exists_lift_of_mem_liftIdeal (f := p ^ κ) h_mem |
| 365 | simpa [← Nat.cast_smul_eq_nsmul Ainf] using ht z hz |
| 366 | |
| 367 | /-- The Taylor coefficient in the long gap lemma. Let `S` be a side, with lattices Y and |
| 368 | `C = S.paramLattice`, cocycles, and a finite jump set `S.jumpSet` at each letter. Let the chart be |
| 369 | unramified (`E = z + p` and `e = 1`). Let `0 < l`, `3 ≤ p ^ l` and `A ≤ p ^ l δ`. Let `E ^ s` kill |
| 370 | the cokernel at `i` (`KillsCokernel i 0 s`: it multiplies `A_inf ⊗ C` at `i` into the image of the |
| 371 | extension of level `0`). Let the jumps at the `l` letters `i.stepBack a` (`a` Frobenius steps before |
| 372 | `i`, `a < l`) be at most `g`, and let `N = s + g (1 + p + ⋯ + p ^ (l - 1)) < A`. Then for each `c` |
| 373 | in `C` there is a `ξ` in `constantsModE l A i` of the extension lattice, a constant modulo `E ^ A`. |
| 374 | It has the standard orders of level `l` (`0` below `l`, `-u` on the jump `u` from `l` on), raised by |
| 375 | `A` at `E` at the jumps `u < -N`. Moreover `projTrivial` sends `ξ` to `p ^ (4 δ) • S.constantAt i c` |
| 376 | up to a vector of the trivial lattice with these orders raised by `A` at `E` at every jump. -/ |
| 377 | lemma PairingSide.exists_wittMap_sub_smul_constantAt_mem_of_long_gap {l A s g δ N : ℕ} |
| 378 | {i : k.Letter} {S : PairingSide O} (hl : 0 < l) (hk : k.IsUnramified) (h_three : 3 ≤ p ^ l) |
| 379 | (h_depth : A ≤ p ^ l * δ) (h_kill : S.KillsCokernel i 0 s) |
| 380 | (h_jumps : ∀ a : ℕ, a < l → ∀ u ∈ S.jumpSet (i.stepBack a), u ≤ g) |
| 381 | (hN : s + g * ∑ a ∈ range l, p ^ a = N) (h_long : N < A) (c : S.paramLattice) : |
| 382 | ∃ ξ ∈ S.extensionLattice.constantsModE l A i, |
| 383 | ξ ∈ S.extensionLattice.withOrders i (shiftedStdOrders l fun u : ℤ ↦ if u < -N then A else 0) ∧ |
| 384 | S.projTrivial.wittMap ξ - p ^ (4 * δ) • S.constantAt i c ∈ |
| 385 | S.trivialLattice.withOrders i (shiftedStdOrders l fun _ : ℤ ↦ A) := by |
| 386 | -- Multiply a point `y` over `c` by `f(E)` with `f` monic of degree `N`, and take the `N`-th |
| 387 | -- Taylor coefficient of `p^(4δ) f(E) y`. |
| 388 | -- As the jumps are at most `g`, the exponents of `f(E) y` are at least these two systems. |
| 389 | have h_std (a : ℕ) (u : ℤ) (hu : u ∈ S.jumpSet (i.stepBack a)) : |
| 390 | stdOrders l a u ≤ (if a < l then g else 0) - u := by grind |
| 391 | have h_shifted (a : ℕ) (u : ℤ) (hu : u ∈ S.jumpSet (i.stepBack a)) : |
| 392 | shiftedStdOrders l (fun v : ℤ ↦ min (A : ℤ) (g - v)) a u ≤ (if a < l then g else 0) - u := by |
| 393 | grind |
| 394 | obtain ⟨y, hy, hy_over, hy_exp, -⟩ : |
| 395 | (S.pointsOver c i 0 (raisedOrdersAtZero (-s)) (raisedOrdersAtZero (-s))).Nonempty := |
| 396 | pointsOver_nonempty_of_killsCokernel h_kill c |
| 397 | obtain ⟨f, hf, hfy⟩ : ∃ f : ℤ[X], f.IsMonicOfDegree N ∧ |
| 398 | aeval k.E f • y ∈ S.extensionLattice.withOrders i |
| 399 | fun (a : ℕ) (u : ℤ) ↦ (if a < l then g else 0) - u := by |
| 400 | rw [← hN] |
| 401 | exact exists_isMonicOfDegree_aeval_smul_mem hk g l hy_exp |
| 402 | have hfy_part : aeval k.E f • y ∈ S.extensionLattice.stdOrdersPart l i := |
| 403 | ⟨smul_mem _ _ hy, mem_withOrders_of_le hfy h_std⟩ |
| 404 | obtain ⟨ξ, hξ, h_taylor⟩ : ∃ ξ : ℕ → S.extensionLattice.Ambient, |
| 405 | (∀ n : ℕ, ξ n ∈ S.extensionLattice.constantsModE l A i) ∧ |
| 406 | ∀ M : ℕ, ∃ y' ∈ S.extensionLattice.stdOrdersPart l i, |
| 407 | p ^ (4 * δ) • aeval k.E f • y = ∑ n ∈ range M, k.E ^ n • ξ n + k.E ^ M • y' := |
| 408 | exists_taylor_expansion_of_mem_stdOrdersPart hl hk h_three h_depth hfy_part |
| 409 | obtain ⟨y', ⟨-, hy'⟩, h_sum⟩ := h_taylor (N + 1) |
| 410 | -- The exponents of `ξ N` at `E`, from the exponents `min A (g - u)` of `f(E) y`. |
| 411 | have hξ_exp : ξ N ∈ S.extensionLattice.withOrders i |
| 412 | (shiftedStdOrders l fun u : ℤ ↦ if min (A : ℤ) (g - u) ≤ N then 0 else A) := by |
| 413 | refine mem_withOrders_of_expansion_mem hl hξ hy' (fun u ↦ min_le_left (A : ℤ) (g - u)) ?_ |
| 414 | rw [← h_sum] |
| 415 | exact nsmul_mem (mem_withOrders_of_le hfy h_shifted) _ |
| 416 | -- If `u < -N`, then `N < g - u`, so `ξ N` has exponent `A` at `E`. |
| 417 | refine ⟨ξ N, hξ N, mem_withOrders_shiftedStdOrders_of_le hξ_exp fun u ↦ by omega, ?_⟩ |
| 418 | refine projTrivial_coeff_sub_mem_withOrders hl hf h_long hξ hy' ?_ |
| 419 | simp [← h_sum, hy_over] |
| 420 | |
| 421 | /-- Long gap, for a side `S` with lattice `C = S.paramLattice` and finite jump sets at the letters. |
| 422 | Let the chart be unramified, `3 ≤ p ^ l` and `A ≤ p ^ l δ`. Let `p ^ κ` kill the cokernel at the |
| 423 | letter `l` steps before `i`, and `E ^ s` the cokernel at `i`. Let the jumps at the `l` letters up to |
| 424 | `i` be at most `g`, and let `N = s + g (1 + p + ⋯ + p ^ (l - 1)) < A`. Then for each `c` in `C` the |
| 425 | extension has a point `x` at `i` over `p ^ (κ + 4 δ) c` with the standard orders of level `l`, |
| 426 | raised by `A` at `E` at the jumps `u < -N`, such that all `γ x - x` with `γ` in the subgroup `Γ'` of |
| 427 | the chart have the standard orders raised by `A` at `E` at every jump. -/ |
| 428 | lemma PairingSide.pointsOver_nonempty_of_long_gap {l A κ s g δ N : ℕ} {i : k.Letter} |
| 429 | {S : PairingSide O} (hk : k.IsUnramified) (h_three : 3 ≤ p ^ l) (h_depth : A ≤ p ^ l * δ) |
| 430 | (h_kill_before : S.KillsCokernel (i.stepBack l) κ 0) (h_kill : S.KillsCokernel i 0 s) |
| 431 | (h_jumps : ∀ a : ℕ, a < l → ∀ u ∈ S.jumpSet (i.stepBack a), u ≤ g) |
| 432 | (hN : s + g * ∑ a ∈ range l, p ^ a = N) (h_long : N < A) (c : S.paramLattice) : |
| 433 | (S.pointsOver c i (κ + 4 * δ) (shiftedStdOrders l fun u : ℤ ↦ if u < -N then A else 0) |
| 434 | (shiftedStdOrders l fun _ : ℤ ↦ A)).Nonempty := by |
| 435 | -- Take the Taylor coefficient `ξ` over `p^(4δ) c` up to an error `w` divisible by `E^A`. The |
| 436 | -- killer `p^κ` lifts the error, so it can be removed. |
| 437 | have hl : 0 < l := Nat.pos_of_ne_zero fun h_zero ↦ by simp [h_zero] at h_three |
| 438 | obtain ⟨ξ, ⟨⟨hξ_loc, -⟩, hξ_inv⟩, hξ_order, hw_exp⟩ : |
| 439 | ∃ ξ ∈ S.extensionLattice.constantsModE l A i, |
| 440 | ξ ∈ S.extensionLattice.withOrders i (shiftedStdOrders l fun u : ℤ ↦ if u < -N then A else 0) |
| 441 | ∧ |
| 442 | S.projTrivial.wittMap ξ - p ^ (4 * δ) • S.constantAt i c ∈ |
| 443 | S.trivialLattice.withOrders i (shiftedStdOrders l fun _ : ℤ ↦ A) := |
| 444 | exists_wittMap_sub_smul_constantAt_mem_of_long_gap hl hk h_three h_depth h_kill h_jumps hN |
| 445 | h_long c |
| 446 | set w : S.trivialLattice.Ambient := S.projTrivial.wittMap ξ - p ^ (4 * δ) • S.constantAt i c with |
| 447 | hw |
| 448 | have hw_loc : w ∈ S.trivialLattice.kisinLoc := by |
| 449 | obtain ⟨hc_loc, -⟩ := constantAt_mem_stdOrdersPart (l := l) (i := i) c |
| 450 | exact sub_mem (S.projTrivial.wittMap_mem_kisinLoc hξ_loc) (nsmul_mem hc_loc _) |
| 451 | -- As `E ^ (-A) w` has the standard exponents, the killer lifts it, times `p ^ κ`, to some `x`. |
| 452 | obtain ⟨x, ⟨hx, hx_exp⟩, hx_over⟩ : ∃ x ∈ S.extensionLattice.stdOrdersPart l i, |
| 453 | S.projTrivial.wittMap x = p ^ κ • k.frobEUnit 0 ^ (-A : ℤ) • w := by |
| 454 | refine exists_lift_pow_smul_of_killsCokernel_stepBack h_kill_before |
| 455 | ⟨frobEUnit_zpow_smul_mem_kisinLoc_iff.2 hw_loc, ?_⟩ |
| 456 | simpa [shiftedStdOrders_zero] using frobEUnit_zpow_smul_mem_withOrders_shiftedStdOrders (-A) |
| 457 | hw_exp |
| 458 | have hEx_exp : k.frobEUnit 0 ^ (A : ℤ) • x ∈ |
| 459 | S.extensionLattice.withOrders i (shiftedStdOrders l fun _ : ℤ ↦ A) := by |
| 460 | rw [← shiftedStdOrders_zero] at hx_exp |
| 461 | simpa only [zero_add] using frobEUnit_zpow_smul_mem_withOrders_shiftedStdOrders A hx_exp |
| 462 | set z : S.extensionLattice.Ambient := p ^ κ • ξ - k.frobEUnit 0 ^ (A : ℤ) • x with hz |
| 463 | have hz_loc : z ∈ S.extensionLattice.kisinLoc := |
| 464 | sub_mem (nsmul_mem hξ_loc _) (frobEUnit_zpow_smul_mem_kisinLoc_iff.2 hx) |
| 465 | have hz_over : S.projTrivial.wittMap z = p ^ (κ + 4 * δ) • S.constantAt i c := by |
| 466 | have h_over : S.projTrivial.wittMap ξ = w + p ^ (4 * δ) • S.constantAt i c := by simp [hw] |
| 467 | simp [hz, h_over, hx_over, smul_comm (_ ^ A) (p ^ κ), pow_add, mul_smul, smul_add, |
| 468 | -nsmul_eq_mul] |
| 469 | have hz_exp : z ∈ |
| 470 | S.extensionLattice.withOrders i (shiftedStdOrders l fun u : ℤ ↦ if u < -N then A else 0) := |
| 471 | sub_mem (nsmul_mem hξ_order _) (mem_withOrders_shiftedStdOrders_of_le hEx_exp fun u ↦ by omega) |
| 472 | have hz_inv : z ∈ invariantsMod (S.extensionLattice.withOrders i |
| 473 | (shiftedStdOrders l fun _ : ℤ ↦ A)) := |
| 474 | sub_mem (nsmul_mem hξ_inv _) (smul_sub_mem_withOrders hEx_exp) |
| 475 | exact ⟨z, hz_loc, hz_over, hz_exp, hz_inv⟩ |
| 476 | |
| 477 | end LongGap |
| 478 | |
| 479 | end New.Lift.KummerChart |