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.FieldTheory.Galois.Profinite |
| 4 | import Mathlib.RingTheory.PicardGroup |
| 5 | import Mathlib.Topology.Separation.CompletelyRegular |
| 6 | public import Lib.PadicHodge.Kisin.Bicommutant |
| 7 | public import Lib.General.NumberTheory.CoefficientRings |
| 8 | public import Lib.PadicHodge.TateSen |
| 9 | import Lib.General.Groups.ProfiniteCharacters |
| 10 | import Lib.PadicHodge.Kisin.KummerChartExistence |
| 11 | |
| 12 | /-! |
| 13 | # Bounded poles, φ-fixed elements of B_max, and ratios of periods fixed near 1 |
| 14 | |
| 15 | The period ring `B = B⁺[1/μ]` (`New.Period.Bmax`, `New.Period.BPlus`) lies inside `B_dR`, and `φ` |
| 16 | denotes its Frobenius. This file shows that bounded poles of the `φ^n y` control the denominators |
| 17 | of `y` in `μ`, and that a `φ`-fixed element of `B` lying in `B_dR⁺` is in `ℚ_[p]`. Using charts |
| 18 | (`New.Lift.Chart`), it shows that a ratio of two periods that is fixed by an open subgroup of `G_p` |
| 19 | lies in `W(𝔽_q)[1/p]` for some `q`. |
| 20 | |
| 21 | ## Main definitions and results |
| 22 | |
| 23 | * `New.Period.pow_smul_mem_range_BPlus`: if the image of `φ^n(y)` in `B_dR` lies in |
| 24 | `t^(−a)B_dR⁺` for every `n ≥ 0`, then `ν^a y` lies in the image of `B⁺` for every `ν` in `A_inf` |
| 25 | divisible by `μ`. |
| 26 | * `New.Period.Bmax.exists_padic_eq_of_frobEnd_fixed`: kernel in the fundamental exact sequence: an |
| 27 | element `y` of `B` with `φ(y) = y` whose image in `B_dR` lies in `B_dR⁺` belongs to `ℚ_[p]`. |
| 28 | * `New.Period.exists_pow_mul_eq_wittFq_mul_of_isChartOf`, `New.Period.Bmax.exists_witt_ratio`: a |
| 29 | ratio of two periods that is fixed by an open subgroup of `G_p` lies in `W(𝔽_q)[1/p]` for some |
| 30 | `q`, for a given chart and in general. |
| 31 | |
| 32 | Notions from other files: |
| 33 | * `New.Period.BdRPlus`: the ξ-adic completion of B⁺, with fraction field `New.Period.BdR`. |
| 34 | * `New.Period.BPlus`, `New.Period.Bmax`: B⁺ = A_max[1/p] and B = B⁺[1/μ], μ = [ε] − 1. |
| 35 | * `New.Lift.Chart.bicommutant`: the S-algebra S_B of the y in B⁺ whose multiplication commutes with |
| 36 | every S-linear endomorphism of B⁺ that keeps the image of A_max. |
| 37 | |
| 38 | ## Relation to the literature |
| 39 | |
| 40 | Known; see `Lib.PadicHodge.Crystalline.Regularity` for sources. |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | /-! ## Bounded poles and φ-fixed elements of B in B_dR⁺ -/ |
| 46 | |
| 47 | namespace New.Period |
| 48 | |
| 49 | open Algebra IsScalarTower IsLocalization.Away algebraMap Function |
| 50 | |
| 51 | variable {p : ℕ} [ThePrime p] |
| 52 | |
| 53 | /-- Let y ∈ B, a ∈ ℕ, and let ν ∈ A_inf be divisible by μ. If the image of φ^n(y) in B_dR lies |
| 54 | in t^(−a)B_dR^+ for every n ≥ 0, then ν^a y lies in the image of B^+. |
| 55 | |
| 56 | Here φ^n(y) is the action of `(ofAdd n, 1)` in `FrobGal`, and `hodgeFil (-a)` is t^(−a)B_dR^+. -/ |
| 57 | lemma pow_smul_mem_range_BPlus (y : Bmax) (a : ℕ) {ν : Ainf} (hν : mu ∣ ν) |
| 58 | (hy : ∀ n : ℕ, ↑((⟨Multiplicative.ofAdd n, 1⟩ : FrobGal) • y) ∈ hodgeFil (-a)) : |
| 59 | ∃ c : BPlus, c = ν ^ a • y := by |
| 60 | -- Write `ν = μ s` and `μ ^ N ν ^ a y = c` with `c` in `BPlus`. As long as `N > 0`, `μ` divides |
| 61 | -- `c` and can be cancelled, so `N` goes down to `0`. |
| 62 | obtain ⟨s, hs⟩ : ∃ s : Ainf, ν = mu * s := hν |
| 63 | obtain ⟨N, c, hc⟩ : ∃ (N : ℕ) (c : BPlus), |
| 64 | ν ^ a • y * algebraMap BPlus Bmax (mu : BPlus) ^ N = algebraMap BPlus Bmax c := |
| 65 | surj (mu : BPlus) (ν ^ a • y) |
| 66 | induction N generalizing c with |
| 67 | | zero => exact ⟨c, by simpa using hc.symm⟩ |
| 68 | | succ N ih => |
| 69 | obtain ⟨d, rfl⟩ : (mu : BPlus) ∣ c := by |
| 70 | -- `μ` divides whatever has `θ (φ^n ·) = 0` for all `n`, in `Ainf` and hence in `BPlus`; |
| 71 | -- and `θ (φ^n c) = 0` means `φ^n c ∈ hodgeFil 1` |
| 72 | refine c.dvd_of_thetaBPlus_frobEnd_eq_zero mu_dvd_of_theta_frobEnd fun n ↦ ?_ |
| 73 | rw [← thetaBdR_algebraMap_BPlus, ← algebraMap_mem_hodgeFil_one_iff] |
| 74 | set w : BdRPlus := ↑(frobEnd^[n] s ^ a) * ↑(frobEnd^[n] mu) ^ (a + (N + 1)) with hw |
| 75 | -- apply `φ^n` to `hc` and map it to `BdR` |
| 76 | have h_eq : |
| 77 | (((frobEnd^[n] c : BPlus) : BdRPlus) : BdR) = ↑((⟨.ofAdd n, 1⟩ : FrobGal) • y) * ↑w := by |
| 78 | have hc_frob : (((⟨.ofAdd n, 1⟩ : FrobGal) • algebraMap BPlus Bmax c : Bmax) : BdR) = |
| 79 | (((⟨.ofAdd n, 1⟩ : FrobGal) • |
| 80 | (ν ^ a • y * algebraMap BPlus Bmax (mu : BPlus) ^ (N + 1)) : Bmax) : BdR) := by |
| 81 | rw [hc] |
| 82 | simpa [hs, hw, smul_def, ← algebraMap_apply, FrobGal.smul_def, pow_add, mul_pow, |
| 83 | mul_comm, mul_assoc] using hc_frob |
| 84 | -- `ξ` divides `φ^n μ`, so `w ∈ hodgeFil (a + N + 1)`, while `φ^n y ∈ hodgeFil (-a)` |
| 85 | have h_xi : xi ∣ frobEnd^[n] mu := theta_eq_zero_iff_xi_dvd.mp (theta_iterate_frobEnd_mu n) |
| 86 | have hw_mem : (w : BdR) ∈ hodgeFil (a + (N + 1) : ℕ) := |
| 87 | algebraMap_mem_hodgeFil_iff_xi_pow_dvd.mpr |
| 88 | ((pow_dvd_pow_of_dvd (map_dvd _ h_xi) _).mul_left _) |
| 89 | simpa only [h_eq] using hodgeFil_anti (by lia) (mul_mem_hodgeFil (hy n) hw_mem) |
| 90 | -- cancel one factor `μ` in `hc` |
| 91 | refine ih d ((algebraMap_isUnit (mu : BPlus)).mul_left_cancel ?_) |
| 92 | rw [← map_mul, ← hc] |
| 93 | ring |
| 94 | |
| 95 | /-- Kernel in the fundamental exact sequence: an element y of B with φ(y) = y whose image in |
| 96 | B_dR lies in B_dR^+ belongs to Q_p. -/ |
| 97 | lemma Bmax.exists_padic_eq_of_frobEnd_fixed {y : Bmax} (hy : frobEnd y = y) {x : BdRPlus} |
| 98 | (hx : (y : BdR) = x) : |
| 99 | ∃ a : ℚ_[p], a = y := by |
| 100 | -- All `φ^n y = y` lie in `hodgeFil 0`, so `y` comes from a `φ`-fixed `c` in `BPlus`. A multiple |
| 101 | -- `p ^ m c` comes from `Amax`, so by contraction `p ^ (m + 1) c` comes from `Ainf`, where the |
| 102 | -- fixed points of `φ` lie in `ℤ_[p]`. |
| 103 | have h_mem (n : ℕ) : |
| 104 | ↑((⟨Multiplicative.ofAdd n, 1⟩ : FrobGal) • y) ∈ hodgeFil (-((0 : ℕ) : ℤ)) := by |
| 105 | simp [FrobGal.smul_def, iterate_fixed hy, hx] |
| 106 | obtain ⟨c, rfl⟩ : ∃ c : BPlus, c = y := by |
| 107 | simpa using pow_smul_mem_range_BPlus y 0 dvd_rfl h_mem |
| 108 | have hc : frobEnd c = c := by simpa [injective_BPlus_Bmax.eq_iff] using hy |
| 109 | obtain ⟨m, w, hw⟩ : ∃ (m : ℕ) (w : Amax), p ^ m * c = w := c.exists_p_pow_mul_eq_amax |
| 110 | have h_amax : ∀ v ∈ ({p ^ m * c} : Set BPlus), v ∈ amaxImage := |
| 111 | fun v hv ↦ ⟨w, hw.symm.trans hv.symm⟩ |
| 112 | have h_frob : ∀ v ∈ ({p ^ m * c} : Set BPlus), |
| 113 | ∃ w ∈ ({p ^ m * c} : Set BPlus), xi ^ 0 • v = (1 : Ainf) • frobEnd w := by |
| 114 | simp [hc] |
| 115 | obtain ⟨a, ha⟩ : ∃ a : Ainf, a = p ^ 1 * (p ^ m * c) := |
| 116 | exists_Ainf_eq_of_contraction {p ^ m * c} 0 1 h_amax h_frob _ rfl |
| 117 | have ha_fixed : frobEnd a = a := (coe_inj _ BPlus).mp (by simp [← frobEnd_algebraMap, ha, hc]) |
| 118 | obtain ⟨b, rfl⟩ : ∃ b : ℤ_[p], algebraMap ℤ_[p] Ainf b = a := |
| 119 | exists_algebraMap_eq_of_frobenius_eq a (by rwa [← frobEnd_eq_frobenius]) |
| 120 | refine ⟨b / (p * p ^ m), (coe_inj _ BdR).mp ?_⟩ |
| 121 | -- after clearing the denominator this is the image of `ha` in `BdR` |
| 122 | simpa [field, algebraMap_apply _ ℚ_[p] BdR b, NeZero.ne, ← algebraMap_apply] using |
| 123 | congrArg (algebraMap BPlus BdR) ha |
| 124 | |
| 125 | end New.Period |
| 126 | |
| 127 | /-! |
| 128 | ## Regularity of the period ring B |
| 129 | |
| 130 | A chart (`New.Lift.Chart`) is a map `W(𝔽_q)⟦X⟧ → A_inf` with image `S = c.S`, sending `X` to |
| 131 | `z = c.z`. For `j : Γ → G_p`, `c.IsChartOf j` says that every `g` in `G_p` that fixes `θ(S)` |
| 132 | pointwise lies in `j Γ`. `c.extendToBPlus f` extends an `S`-linear map `f` of `A_inf` to `B⁺`, |
| 133 | linearly over `c.bicommutant`. `New.Period.localFieldOf Γ` is the subfield of `Q̄_p` fixed by `j Γ`, |
| 134 | and `New.Lift.WittFq f` is `W(𝔽_{p^f})`. |
| 135 | -/ |
| 136 | |
| 137 | namespace New |
| 138 | |
| 139 | open Period BPlus BdRPlus Lift Polynomial IsLocalization IsScalarTower Algebra IsSeparable |
| 140 | algebraMap |
| 141 | |
| 142 | variable {p : ℕ} [ThePrime p] {Γ : Type} [Group Γ] [𝒥 : OverGp Γ p] {c : Chart} |
| 143 | |
| 144 | /-- Newton's iteration: if `x` is a root of a separable polynomial over `K` and lies in the image |
| 145 | of `T` modulo `π`, then it lies in the image of `T` modulo every power of `π`. -/ |
| 146 | lemma exists_pow_dvd_sub_of_separable {K T R : Type*} [Field K] [CommRing T] [CommRing R] |
| 147 | [Algebra K T] [Algebra K R] [Algebra T R] [IsScalarTower K T R] {P : K[X]} (hP : P.Separable) |
| 148 | {x π : R} (hx : aeval x P = 0) {t : T} (ht : π ∣ algebraMap T R t - x) (m : ℕ) : |
| 149 | ∃ s : T, π ^ m ∣ algebraMap T R s - x := by |
| 150 | -- with `g P' ≡ 1` modulo `P`, the polynomial `F = X - g P` has `F x = x` and `F' x = 0` |
| 151 | obtain ⟨f₀, g, h_bezout⟩ : ∃ f₀ g : K[X], f₀ * P + g * derivative P = 1 := hP |
| 152 | let F : K[X] := X - g * P |
| 153 | have h_gP' : aeval x g * aeval x (derivative P) = 1 := by |
| 154 | simpa [hx] using congrArg (aeval x) h_bezout |
| 155 | -- each step squares the modulus, so prove the claim for `π ^ 2 ^ n` |
| 156 | suffices h_two_pow : ∀ n : ℕ, ∃ s : T, π ^ 2 ^ n ∣ algebraMap T R s - x from |
| 157 | (h_two_pow m).imp fun s ↦ (pow_dvd_pow π m.lt_two_pow_self.le).trans |
| 158 | intro n |
| 159 | induction n with |
| 160 | | zero => exact ⟨t, by simpa using ht⟩ |
| 161 | | succ n ih => |
| 162 | obtain ⟨s, hs⟩ := ih |
| 163 | -- by Taylor's formula `F s - x` is a multiple of `(s - x) ^ 2` |
| 164 | obtain ⟨r, hr⟩ := (F.map (algebraMap K R)).binomExpansion x (algebraMap T R s - x) |
| 165 | have h_taylor : algebraMap T R (aeval s F) - x = r * (algebraMap T R s - x) ^ 2 := by |
| 166 | simp_all [aeval_algebraMap_apply, F] |
| 167 | refine ⟨aeval s F, ?_⟩ |
| 168 | rw [h_taylor, pow_succ, pow_mul] |
| 169 | exact (pow_dvd_pow_of_dvd hs 2).mul_left r |
| 170 | |
| 171 | /-- Let `c` be a chart for `toGp` (`hc`): `c` is a Λ-algebra map Λ[[X]] → A_inf sending X to a |
| 172 | Teichmüller lift z, and every g in G_p fixing Λ pointwise and fixing θ(z) lies in the image of |
| 173 | `toGp`. Let `a l` be finitely many elements of the field fixed by `toGp Γ`, `y l ∈ B⁺`, and `f` a |
| 174 | `c.S`-linear endomorphism of `A_inf`, with chosen `c.S`-linear extension `c.extendToBPlus f` to |
| 175 | `B⁺`. Then `∑ l, a l * y l` divides `∑ l, a l * c.extendToBPlus f (y l)` in `B_dR⁺`. In particular |
| 176 | the second sum vanishes if the first does. -/ |
| 177 | lemma Lift.Chart.IsChartOf.dvd_extendToBPlus (hc : c.IsChartOf 𝒥.toGp) {ι : Type*} [Fintype ι] |
| 178 | (a : ι → PadicAlgCl p) (ha : ∀ l : ι, a l ∈ localFieldOf Γ) (f : Ainf →ₗ[c.S] Ainf) |
| 179 | (y : ι → BPlus) : |
| 180 | ∑ l : ι, a l * algebraMap BPlus BdRPlus (y l) ∣ |
| 181 | ∑ l : ι, (a l : BdRPlus) * c.extendToBPlus f (y l) := by |
| 182 | -- Approximate each `a l` modulo `ξ ^ m` by an element of `c.bicommutant`, over which |
| 183 | -- `c.extendToBPlus f` is linear: every `ξ ^ m` that divides the first sum then divides the |
| 184 | -- second, and `BdRPlus` is a DVR with uniformiser `ξ`. |
| 185 | -- `T` is `c.bicommutant` as a `ℚ_[p]`-subalgebra (`ℤ_[p]`-linear maps on `BPlus` are |
| 186 | -- `ℚ_[p]`-linear). |
| 187 | have h_scalar (r : ℚ_[p]) : algebraMap ℚ_[p] BPlus r ∈ c.bicommutant := fun G _ ↦ |
| 188 | LinearMap.ext |
| 189 | ((linearMap_compatibleSMul (nonZeroDivisors ℤ_[p]) ..).map_smul (G.restrictScalars ℤ_[p]) r) |
| 190 | let T : Subalgebra ℚ_[p] BPlus := ⟨c.bicommutant.toSubsemiring, h_scalar⟩ |
| 191 | have h_approx (m : ℕ) (l : ι) : ∃ t : T, (xi : BdRPlus) ^ m ∣ t - a l := by |
| 192 | -- by Galois theory `a l = θ t` with `t` in `T`: what fixes `θ` of `c.S` lies in `toGp Γ` |
| 193 | have ha_fixed (g : Gp p) |
| 194 | (hg : ∀ n : ℕ, ∀ x ∈ (c.thetaPhiInvS n).range, x ∈ T.map thetaBPlus → g • x = x) : |
| 195 | g (a l) = a l := by |
| 196 | have h_fix (s : c.S) : g • c.thetaPhiInvS 0 s = c.thetaPhiInvS 0 s := |
| 197 | hg 0 _ ⟨s, rfl⟩ ⟨_, Chart.ainfToBPlus_mem_bicommutant _, thetaBPlus_ainf _⟩ |
| 198 | have h_const : FixesLambda c.f g := fun b ↦ by |
| 199 | simpa [smul_algebraMap_wittFq_eq_iff, thetaPhiInv, ← coe_wittToQpBar] using |
| 200 | h_fix ⟨_, c.S.algebraMap_mem b⟩ |
| 201 | have h_range : g ∈ 𝒥.toGp.range := hc g ⟨h_const, Subtype.ext (h_fix c.z)⟩ |
| 202 | exact ha l ⟨g, h_range⟩ |
| 203 | obtain ⟨t, ht, h_theta⟩ : (a l : ℂ_[p]) ∈ T.map thetaBPlus := |
| 204 | c.mem_of_fixed_thetaPhiInvS ha_fixed |
| 205 | -- so `ξ ∣ t - a l`, which Newton's iteration improves to `ξ ^ m` |
| 206 | have h_xi_dvd : (xi : BdRPlus) ∣ algebraMap T BdRPlus ⟨t, ht⟩ - a l := by |
| 207 | simpa [← thetaBdR_eq_zero_iff, sub_eq_zero] |
| 208 | exact exists_pow_dvd_sub_of_separable (isSeparable ℚ_[p] (a l)) |
| 209 | (by simp [aeval_algebraMap_apply]) h_xi_dvd m |
| 210 | choose t ht using h_approx |
| 211 | -- divisibility of `∑ a l * y l` by `ξ ^ m` can be read off in `BPlus`, with `t m l` for `a l` |
| 212 | -- and `c.E`, an associate of `ξ` that lies in `c.S`, for `ξ` |
| 213 | have h_iff (m : ℕ) (y : ι → BPlus) : |
| 214 | algebraMap Ainf BPlus c.E ^ m ∣ ∑ l, (t m l : BPlus) * y l ↔ |
| 215 | (xi : BdRPlus) ^ m ∣ ∑ l, (a l : BdRPlus) * algebraMap BPlus BdRPlus (y l) := by |
| 216 | have h_sum : (xi : BdRPlus) ^ m ∣ |
| 217 | ∑ l, (((t m l : BPlus) : BdRPlus) - a l) * algebraMap BPlus BdRPlus (y l) := |
| 218 | Finset.dvd_sum fun l _ ↦ (ht m l).mul_right _ |
| 219 | calc _ ↔ algebraMap Ainf BPlus xi ^ m ∣ ∑ l, (t m l : BPlus) * y l := |
| 220 | (c.associated_E_xi.map _).pow_pow.dvd_iff_dvd_left |
| 221 | _ ↔ (xi : BdRPlus) ^ m ∣ algebraMap BPlus BdRPlus (∑ l, (t m l : BPlus) * y l) := |
| 222 | xi_pow_dvd_iff.symm |
| 223 | _ ↔ _ := dvd_iff_dvd_of_dvd_sub (by simpa [sub_mul, Finset.sum_sub_distrib] using h_sum) |
| 224 | -- `c.extendToBPlus f` is linear over `c.bicommutant`, which contains `c.E` and the `t m l` |
| 225 | have h_pow (m : ℕ) : |
| 226 | (xi : BdRPlus) ^ m ∣ ∑ l, (a l : BdRPlus) * algebraMap BPlus BdRPlus (y l) → |
| 227 | (xi : BdRPlus) ^ m ∣ |
| 228 | ∑ l, (a l : BdRPlus) * algebraMap BPlus BdRPlus (c.extendToBPlus f (y l)) := by |
| 229 | rw [← h_iff m y, ← h_iff m fun l ↦ c.extendToBPlus f (y l)] |
| 230 | rintro ⟨u, hu⟩ |
| 231 | refine ⟨c.extendToBPlus f u, ?_⟩ |
| 232 | simpa [c.extendToBPlus_mul, pow_mem] using congrArg (c.extendToBPlus f) hu |
| 233 | -- in a DVR, divisibility is a comparison of valuations, tested on the powers of `ξ` |
| 234 | simpa [← IsDiscreteValuationRing.addVal_le_iff_dvd, prime_xi.irreducible, |
| 235 | ENat.forall_natCast_le_iff_le] using h_pow |
| 236 | |
| 237 | /-- If a nonzero `x` algebraic over the field `K ⊆ R` equals `z * v` with `z` in `R` and `v` |
| 238 | integral over `R`, then `z` is a unit of `R`. -/ |
| 239 | lemma isUnit_of_isIntegral_eq_mul {K R L : Type*} [Field K] [CommRing R] [Field L] [Algebra K R] |
| 240 | [Algebra R L] [Algebra K L] [IsScalarTower K R L] [FaithfulSMul R L] {x v : L} {z : R} |
| 241 | (hx : IsIntegral K x) (hx₀ : x ≠ 0) (hv : IsIntegral R v) (hx_eq : x = algebraMap R L z * v) : |
| 242 | IsUnit z := by |
| 243 | -- `z` has the inverse `x⁻¹ * v` in the integral closure, and integral extensions reflect units |
| 244 | have h_faithful : FaithfulSMul R (integralClosure R L) := .tower_bot R _ L |
| 245 | refine .of_map (algebraMap R (integralClosure R L)) z |
| 246 | (.of_mul_eq_one ⟨x⁻¹ * v, hx.inv.tower_top.mul hv⟩ (Subtype.ext ?_)) |
| 247 | simpa [mul_left_comm, inv_mul_eq_one₀ hx₀] using hx_eq |
| 248 | |
| 249 | /-- Let `c` be a chart for `j = 𝒥.toGp`, let `a` lie in the field fixed by `j Γ`, and let |
| 250 | `B, C ∈ B⁺` satisfy `B = a C` in `B_dR`. Then the `i`-th extended coordinates of the chart satisfy |
| 251 | the same relation: `extendedCoord i B = a * extendedCoord i C` in `B_dR`. -/ |
| 252 | lemma Lift.Chart.IsChartOf.extendedCoord_eq_mul_of_eq_mul (hc : c.IsChartOf 𝒥.toGp) |
| 253 | {a : PadicAlgCl p} (ha : a ∈ localFieldOf Γ) {B C : BPlus} |
| 254 | (hBC : algebraMap BPlus BdR B = algebraMap (PadicAlgCl p) BdR a * algebraMap BPlus BdR C) |
| 255 | (i : c.adicBasis.Index) : |
| 256 | algebraMap BPlus BdR (c.extendedCoord i B) = |
| 257 | algebraMap (PadicAlgCl p) BdR a * algebraMap BPlus BdR (c.extendedCoord i C) := by |
| 258 | -- `B - a C` divides `extendedCoord i B - a extendedCoord i C` in `B_dR⁺`, and it is zero |
| 259 | obtain ⟨q, h_coord⟩ := hc.dvd_extendToBPlus ![1, -a] (by simpa using ha) |
| 260 | (Algebra.linearMap c.S Ainf ∘ₗ c.adicBasis.coord i) ![B, C] |
| 261 | have h_coord_BdR : algebraMap BPlus BdR (c.extendedCoord i B) - |
| 262 | algebraMap (PadicAlgCl p) BdR a * algebraMap BPlus BdR (c.extendedCoord i C) = |
| 263 | (algebraMap BPlus BdR B - algebraMap (PadicAlgCl p) BdR a * algebraMap BPlus BdR C) * q := by |
| 264 | simpa [← coe_inj _ BdR, ← IsScalarTower.algebraMap_apply, sub_eq_add_neg] using h_coord |
| 265 | rwa [hBC, sub_self, zero_mul, sub_eq_zero] at h_coord_BdR |
| 266 | |
| 267 | /-- Let `b, b' ∈ B` and `α ∈ B_dR` with `b = α b'` in `B_dR`, and let `w₀, w₁ ∈ W(𝔽_{p^f})` with |
| 268 | `w₁ ≠ 0` and `α w₁ = w₀`. Then `p ^ r b = w b'` for some `r` and some `w ∈ W(𝔽_{p^f})`. -/ |
| 269 | lemma Period.exists_pow_mul_eq_wittFq_mul_of_mul_eq {f : ℕ+} {b b' : Bmax} {α : BdR} |
| 270 | (hab : algebraMap Bmax BdR b = α * algebraMap Bmax BdR b') {w₀ w₁ : WittFq f} (hw₁ : w₁ ≠ 0) |
| 271 | (h_mul : α * algebraMap Ainf BdR (algebraMap (WittFq f) Ainf w₁) = |
| 272 | algebraMap Ainf BdR (algebraMap (WittFq f) Ainf w₀)) : |
| 273 | ∃ r : ℕ, ∃ w : WittFq f, p ^ r * b = (w : Ainf) * b' := by |
| 274 | -- with `w₁ = p ^ r * u` for a unit `u`, `h_mul` gives `p ^ r * α = u⁻¹ * w₀` |
| 275 | obtain ⟨r, u, rfl⟩ : ∃ (r : ℕ) (u : (WittFq f)ˣ), w₁ = p ^ r * u := |
| 276 | w₁.exists_eq_pow_p_mul' hw₁ |
| 277 | have hα : (p : BdR) ^ r * α = |
| 278 | algebraMap Ainf BdR (algebraMap (WittFq f) Ainf (↑u⁻¹ * w₀)) := by |
| 279 | rw [map_mul, map_mul, ← h_mul, mul_left_comm, ← map_mul, ← map_mul, |
| 280 | mul_left_comm (↑u⁻¹ : WittFq f), u.inv_mul] |
| 281 | simp [mul_comm] |
| 282 | refine ⟨r, ↑u⁻¹ * w₀, (coe_inj _ BdR).mp ?_⟩ |
| 283 | simpa [← IsScalarTower.algebraMap_apply, hab, ← mul_assoc] using |
| 284 | congrArg (fun x : BdR ↦ x * algebraMap Bmax BdR b') hα |
| 285 | |
| 286 | /-- Let `c` be a chart over the prime `p`, let `m : ℕ` and `γ, u : Fin 2 → B⁺`, and let |
| 287 | `w : Fin 2 → W(𝔽_{p^f})`, where `f = c.f` and `z = c.z`, be such that |
| 288 | `p ^ m * γ l = w l + z * u l` in `B⁺` for `l = 0, 1`. If `γ 0 = a γ 1` in `B_dR` for some |
| 289 | `a ∈ Q̄_p`, and `γ 0`, `γ 1` are not both divisible by `z`, then `a w 1 = w 0` in `B_dR`. -/ |
| 290 | private lemma Lift.Chart.mul_wittFq_eq_of_pow_mul_eq {a : PadicAlgCl p} {γ : Fin 2 → BPlus} |
| 291 | (h_not_dvd : ¬(fun _ : Fin 2 ↦ Chart.ainfToBPlus c.z : Fin 2 → BPlus) ∣ γ) |
| 292 | (hγa : algebraMap BPlus BdR (γ 0) = |
| 293 | algebraMap (PadicAlgCl p) BdR a * algebraMap BPlus BdR (γ 1)) |
| 294 | {m : ℕ} {w : Fin 2 → WittFq c.f} {u : Fin 2 → BPlus} |
| 295 | (h_dec : ∀ l : Fin 2, p ^ m * γ l = |
| 296 | Chart.ainfToBPlus (algebraMap (WittFq c.f) Ainf (w l)) + Chart.ainfToBPlus c.z * u l) : |
| 297 | (a : BdR) * (w 1 : Ainf) = (w 0 : Ainf) := by |
| 298 | have hw_int (v : WittFq c.f) : IsIntegral ℚ_[p] ((v : Ainf) : BdR) := |
| 299 | (IsIntegral.of_finite ℤ_[p] _).algebraMap.algebraMap.tower_top |
| 300 | have ha_int : IsIntegral ℚ_[p] (a : BdR) := (isIntegral ℚ_[p] a).algebraMap |
| 301 | -- `a w 1 - w 0` is algebraic over `ℚ_[p]` and, by `hγa` and `h_dec`, a multiple of `z`; |
| 302 | -- if it were not zero, `z` would be a unit of `BPlus` and would divide `γ` |
| 303 | by_contra h_ne |
| 304 | -- `w 0 + z u 0 = p ^ m γ 0 = a p ^ m γ 1 = a (w 1 + z u 1)` |
| 305 | have h_dec_BdR (l : Fin 2) : (p : BdR) ^ m * (γ l : BdR) = |
| 306 | ((w l : Ainf) : BdR) + ((c.z : Ainf) : BdR) * (u l : BdR) := by |
| 307 | simpa [← IsScalarTower.algebraMap_apply] using congrArg (algebraMap BPlus BdR) (h_dec l) |
| 308 | have h_eq : (a : BdR) * ((w 1 : Ainf) : BdR) - ((w 0 : Ainf) : BdR) = |
| 309 | ((c.z : Ainf) : BdR) * ((u 0 : BdR) - (u 1 : BdR) * (a : BdR)) := by |
| 310 | linear_combination h_dec_BdR 0 - (a : BdR) * h_dec_BdR 1 - (p : BdR) ^ m * hγa |
| 311 | have h_alg : IsIntegral ℚ_[p] ((a : BdR) * (w 1 : Ainf) - (w 0 : Ainf)) := |
| 312 | (ha_int.mul (hw_int _)).sub (hw_int _) |
| 313 | have h_int : IsIntegral BPlus ((u 0 : BdR) - u 1 • (a : BdR)) := |
| 314 | isIntegral_algebraMap.sub (ha_int.tower_top.smul (u 1)) |
| 315 | have hz_unit : IsUnit (Chart.ainfToBPlus c.z : BPlus) := |
| 316 | isUnit_of_isIntegral_eq_mul h_alg (sub_ne_zero.mpr h_ne) h_int |
| 317 | (by simpa [smul_def, ← IsScalarTower.algebraMap_apply] using h_eq) |
| 318 | exact h_not_dvd (Pi.isUnit_iff.mpr fun _ ↦ hz_unit).dvd |
| 319 | |
| 320 | /-- Let `γ 0, γ 1` lie in `c.bicommutant`, not both divisible by `z = c.z`, with `γ 0 = a γ 1` in |
| 321 | `B_dR` for some `a ∈ Q̄_p`. Here `c.bicommutant` is the ring S_B of elements of `B⁺` commuting with |
| 322 | every `c.S`-linear map of `B⁺` that keeps the image of A_max, and `z` is the image of `X` under the |
| 323 | chart. Then `a w₁ = w₀` in `B_dR` for some `w₀, w₁ ∈ W(𝔽_{p^f})`, `f = c.f`, with `w₁ ≠ 0`. -/ |
| 324 | lemma Lift.Chart.exists_wittFq_mul_eq_of_eq_mul {a : PadicAlgCl p} {γ : Fin 2 → BPlus} |
| 325 | (hγ_mem : ∀ l : Fin 2, γ l ∈ c.bicommutant) |
| 326 | (h_not_dvd : ¬(fun _ : Fin 2 ↦ Chart.ainfToBPlus c.z : Fin 2 → BPlus) ∣ γ) |
| 327 | (hγa : algebraMap BPlus BdR (γ 0) = |
| 328 | algebraMap (PadicAlgCl p) BdR a * algebraMap BPlus BdR (γ 1)) : |
| 329 | ∃ w₀ w₁ : WittFq c.f, w₁ ≠ 0 ∧ |
| 330 | (a : BdR) * algebraMap Ainf BdR (algebraMap (WittFq c.f) Ainf w₁) = |
| 331 | algebraMap Ainf BdR (algebraMap (WittFq c.f) Ainf w₀) := by |
| 332 | -- reduce modulo `z`: `p ^ m * γ l = w l + z * u l` with `w l` in `WittFq c.f` |
| 333 | obtain ⟨m, hm⟩ : ∃ m : ℕ, ∀ l : Fin 2, ∃ w : WittFq c.f, ∃ u ∈ c.bicommutant, |
| 334 | p ^ m * γ l = |
| 335 | Chart.ainfToBPlus (algebraMap (WittFq c.f) Ainf w) + Chart.ainfToBPlus c.z * u := |
| 336 | (Filter.eventually_all.mpr fun l ↦ c.eventually_exists_pow_mul_eq_add_z_mul (hγ_mem l)).exists |
| 337 | choose w u hu_mem h_dec using hm |
| 338 | -- `a w 1 = w 0`: the difference is algebraic over `ℚ_[p]` and a multiple of `z` |
| 339 | have h_aw : (a : BdR) * (w 1 : Ainf) = (w 0 : Ainf) := |
| 340 | Chart.mul_wittFq_eq_of_pow_mul_eq h_not_dvd hγa h_dec |
| 341 | -- `w 1 ≠ 0`: otherwise `w 0 = 0` too, and `z` would divide `p ^ m * γ l`, hence `γ` |
| 342 | refine ⟨w 0, w 1, fun hw₁_zero ↦ h_not_dvd ?_, h_aw⟩ |
| 343 | have hw₀_zero : algebraMap (WittFq c.f) Ainf (w 0) = 0 := by simpa [hw₁_zero] using h_aw.symm |
| 344 | have h_pγ : (fun _ : Fin 2 ↦ (p : BPlus) ^ m) * γ = (fun _ ↦ Chart.ainfToBPlus c.z) * u := by |
| 345 | simp [funext_iff, h_dec, hw₀_zero, hw₁_zero] |
| 346 | have h_unit : IsUnit fun _ : Fin 2 ↦ (p : BPlus) ^ m := Pi.isUnit_iff.mpr fun _ ↦ isUnit_p.pow m |
| 347 | exact h_unit.dvd_mul_left.mp ⟨u, h_pγ⟩ |
| 348 | |
| 349 | /-- Let `j = 𝒥.toGp : Γ → G_p` have open image, and let `c` be a chart for j (`c.IsChartOf`: every g |
| 350 | that fixes θ(S) pointwise lies in j Γ), S the ring of the chart over W(F_{p^f}), f = `c.f`. If b, |
| 351 | b' ∈ B, b' ≠ 0 and g(b)b' = b·g(b') for all g in Γ, then p^m b = wb' for some m and some |
| 352 | w ∈ W(F_{p^f}). |
| 353 | |
| 354 | Part of Fontaine's theorem on Galois invariants of the fraction field of the crystalline period |
| 355 | ring: only the nontrivial inclusion, with denominators cleared. -/ |
| 356 | lemma Period.exists_pow_mul_eq_wittFq_mul_of_isChartOf (hc : c.IsChartOf 𝒥.toGp) {b b' : Bmax} |
| 357 | (hb' : b' ≠ 0) (h_ratio : ∀ g : Γ, b' * 𝒥.toGp g • b = toGp g • b' * b) : |
| 358 | ∃ m : ℕ, ∃ w : WittFq c.f, p ^ m * b = (w : Ainf) * b' := by |
| 359 | -- The quotient `b / b'` in `BdR` is fixed by `toGp Γ`, so it is some `a` in `localFieldOf Γ` |
| 360 | -- (the invariants of `BdR` under an open subgroup). A coordinate of the chart turns |
| 361 | -- `b = a b'` into a relation in `c.bicommutant`, which is then reduced modulo `z = c.z`. |
| 362 | obtain ⟨a, ha, hab⟩ : ∃ a ∈ localFieldOf Γ, |
| 363 | algebraMap Bmax BdR b = algebraMap (PadicAlgCl p) BdR a * algebraMap Bmax BdR b' := by |
| 364 | simpa [Subtype.exists, div_eq_iff, hb'] using |
| 365 | BdR.exists_eq_of_forall_smul_eq Γ (x := (b : BdR) / (b' : BdR)) fun g ↦ by |
| 366 | have h_ne : toGp g • b' ≠ 0 := by simpa [smul_eq_zero_iff_eq] using hb' |
| 367 | simp_all [smul_div₀', ← map_mul, field, mul_comm] |
| 368 | -- clear denominators: `B = b d` and `C = b' d` lie in `BPlus` for a power `d` of `μ` |
| 369 | obtain ⟨B, C, d, hB, hC⟩ : ∃ B C : BPlus, ∃ d : Submonoid.powers (mu : BPlus), |
| 370 | b * algebraMap BPlus Bmax d = algebraMap BPlus Bmax B ∧ |
| 371 | b' * algebraMap BPlus Bmax d = algebraMap BPlus Bmax C := |
| 372 | surj₂ (.powers (mu : BPlus)) _ b b' |
| 373 | have hBC : algebraMap BPlus BdR B = |
| 374 | algebraMap (PadicAlgCl p) BdR a * algebraMap BPlus BdR C := by |
| 375 | rw [IsScalarTower.algebraMap_apply BPlus Bmax BdR B, |
| 376 | IsScalarTower.algebraMap_apply BPlus Bmax BdR C, ← hB, ← hC, map_mul, map_mul, hab, mul_assoc] |
| 377 | -- some coordinate of `C` is not zero, as `C` is the `p`-adic limit of its coordinate expansions |
| 378 | obtain ⟨i, hi⟩ : ∃ i : c.adicBasis.Index, c.extendedCoord i C ≠ 0 := by |
| 379 | by_contra! h_zero |
| 380 | have hC_zero : C = 0 := eq_zero_of_p_pow_amaxImage fun m ↦ by |
| 381 | simpa [h_zero] using (c.eventually_approx_sum_extendedCoord C m).exists |
| 382 | -- then `b' d = 0` with `d` a unit, so `b' = 0` |
| 383 | rw [hC_zero, map_zero, (IsLocalization.map_units Bmax d).mul_left_eq_zero] at hC |
| 384 | exact hb' hC |
| 385 | -- the `i`-th coordinates of `B`, `C` are `z ^ n * γ`, with `γ 0`, `γ 1` not both divisible by `z` |
| 386 | obtain ⟨n, γ, hγ, h_not_dvd⟩ := exists_eq_pow_mul_of_not_forall_dvd |
| 387 | (fun _ ↦ Chart.ainfToBPlus c.z) (c.extendedCoord i ∘ ![B, C]) |
| 388 | fun h_dvd ↦ hi (c.eq_zero_of_z_pow_dvd fun n ↦ pi_dvd_iff.mp (h_dvd n) 1) |
| 389 | replace hγ (l : Fin 2) : c.extendedCoord i (![B, C] l) = Chart.ainfToBPlus c.z ^ n * γ l := |
| 390 | congrFun hγ l |
| 391 | have hzn : (Chart.ainfToBPlus c.z : BPlus) ^ n ≠ 0 := |
| 392 | left_ne_zero_of_mul ((hγ 1).symm.trans_ne hi) |
| 393 | have hγ_mem (l : Fin 2) : γ l ∈ c.bicommutant := by |
| 394 | refine c.mem_bicommutant_of_mul (by bound) hzn ?_ |
| 395 | simpa only [← hγ l] using c.extendedCoord_mem_bicommutant i (![B, C] l) |
| 396 | -- as `B = a C`, the `i`-th coordinates satisfy `z ^ n γ 0 = a z ^ n γ 1`; cancel `z ^ n` |
| 397 | have h_coord : algebraMap BPlus BdR (Chart.ainfToBPlus c.z ^ n * γ 0) = |
| 398 | algebraMap (PadicAlgCl p) BdR a * |
| 399 | algebraMap BPlus BdR (Chart.ainfToBPlus c.z ^ n * γ 1) := by |
| 400 | rw [← hγ, ← hγ] |
| 401 | exact hc.extendedCoord_eq_mul_of_eq_mul ha hBC i |
| 402 | rw [map_mul, map_mul, mul_left_comm, mul_right_inj' (by simpa using hzn)] at h_coord |
| 403 | -- reduce `p ^ m γ l` modulo `z`: `a w₁ = w₀` with `w₀, w₁` in `WittFq c.f`, `w₁ ≠ 0` |
| 404 | obtain ⟨w₀, w₁, hw₁, h_mul⟩ := Chart.exists_wittFq_mul_eq_of_eq_mul hγ_mem h_not_dvd h_coord |
| 405 | exact exists_pow_mul_eq_wittFq_mul_of_mul_eq hab hw₁ h_mul |
| 406 | |
| 407 | /-- If a, b ∈ B, b ≠ 0 and g(a)b = a·g(b) for all g near 1 in G_p, then p^n a = wb for some n, some |
| 408 | f and some w ∈ W(F_{p^f}). |
| 409 | |
| 410 | A form of Fontaine's computation of the Galois invariants of the fraction field of the crystalline |
| 411 | period ring: a quotient a/b fixed by all g near 1 lies in W(F_{p^f})[1/p] for some unspecified |
| 412 | degree f. -/ |
| 413 | lemma Period.Bmax.exists_witt_ratio {a b : Bmax} (hb : b ≠ 0) |
| 414 | (h_ratio : ∀ᶠ g : Gp p in nhds 1, b * g • a = g • b * a) : |
| 415 | ∃ (f : ℕ+) (n : ℕ), ∃ w : WittFq f, p ^ n * a = (w : Ainf) * b := by |
| 416 | -- The relation holds on an open subgroup `U`; apply `exists_pow_mul_eq_wittFq_mul_of_isChartOf` |
| 417 | -- to a chart for `U`. |
| 418 | obtain ⟨U, hU⟩ : ∃ U : OpenSubgroup (Gp p), (U : Set (Gp p)) ⊆ {g | b * g • a = g • b * a} := |
| 419 | NonarchimedeanGroup.is_nonarchimedean _ h_ratio |
| 420 | let instU : OverGp U.toSubgroup p := ⟨U.toSubgroup.subtype, ⟨by simpa using U.isOpen⟩⟩ |
| 421 | obtain ⟨k, -⟩ := exists_kummerChart U.toSubgroup |
| 422 | exact ⟨_, exists_pow_mul_eq_wittFq_mul_of_isChartOf k.chart_isChartOf hb fun g ↦ hU g.property⟩ |
| 423 | |
| 424 | end New |