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 Mathlib.Algebra.CharP.Subring |
| 4 | public import Mathlib.RingTheory.Polynomial.DegreeLT |
| 5 | public import Mathlib.RingTheory.PowerSeries.Basic |
| 6 | import Mathlib.Algebra.GroupWithZero.Submonoid.CancelMulZero |
| 7 | import Mathlib.RingTheory.AdicCompletion.Completeness |
| 8 | import Mathlib.RingTheory.Coalgebra.IsFrobenius |
| 9 | import Mathlib.RingTheory.Henselian |
| 10 | import Mathlib.RingTheory.HopfAlgebra.Basic |
| 11 | import Mathlib.RingTheory.PiTensorProduct |
| 12 | import Mathlib.RingTheory.PowerSeries.Expand |
| 13 | import Mathlib.RingTheory.PowerSeries.Ideal |
| 14 | import Mathlib.RingTheory.PowerSeries.WeierstrassPreparation |
| 15 | import Mathlib.RingTheory.RegularLocalRing.Defs |
| 16 | import TauCeti.NumberTheory.Padics.Complex.Basic |
| 17 | import TauCeti.RingTheory.PowerSeries.Trunc |
| 18 | import TauCeti.RingTheory.WittVector.Frobenius |
| 19 | public import Lib.PadicHodge.PeriodRings.CrystallineRings |
| 20 | import Lib.General.Topology |
| 21 | import Lib.PadicHodge.PeriodRings.DeRhamPeriods |
| 22 | |
| 23 | /-! |
| 24 | # Power series charts Λ⟦z⟧ in A_inf: Weierstrass division and fixed elements |
| 25 | |
| 26 | A chart `c` presents a power series ring `S = Λ⟦z⟧` inside `New.Period.Ainf` (A_inf), the Witt |
| 27 | vectors of the tilt `New.Period.OFlat` of the integers of `ℂ_p`. Here `Λ` is the ring of Witt |
| 28 | vectors of the field with `p ^ f` elements, and `z = [ϖ^♭]` is the Teichmüller lift of the chart's |
| 29 | element `ϖ^♭ = c.varpiFlat` of the tilt (`c.seriesMap_X`). The chart sends `X ^ e * A + p`, where |
| 30 | `A` is the unit series `c.unitSeries`, to a generator `E` of the kernel of Fontaine's map `θ` |
| 31 | (`New.Period.theta`). ξ = `New.Period.xi` also generates the kernel of `θ`. `New.Gp p` = G_p, the |
| 32 | absolute Galois group of `ℚ_p`, acts on A_inf; the class `ThePrime p` fixes the prime `p` |
| 33 | throughout. The maps `θ ∘ φ^{-n}` show that elements of the tilt fixed by the Galois elements fixing |
| 34 | `S` are approximated from `S`. `S`-linear maps of A_inf extend to B^+ = `BPlus` = A_max[1/p], where |
| 35 | A_max = `Amax` has image `amaxImage` in B^+. |
| 36 | |
| 37 | This file constructs charts and their ring `S`, and gives A_inf a topological basis over `S`. It |
| 38 | proves that Frobenius preserves `S` and proves Weierstrass division by `φ^n E`. It studies the maps |
| 39 | `θ ∘ φ^{-n}` and proves the approximation theorem for fixed elements of the tilt. The extension of |
| 40 | `S`-linear maps to B^+ is treated in `Lib.PadicHodge.Kisin.Bicommutant`. |
| 41 | |
| 42 | ## Main definitions and results |
| 43 | |
| 44 | * `New.Lift.Chart.φ`: Frobenius preserves `S`. `New.Lift.Chart.weierstrass_division`: division by |
| 45 | `φ^n E`. |
| 46 | * `New.Lift.thetaPhiInv`: the map `θ ∘ φ^{-n}` to the integers of `ℂ_p`. Modulo `p` it is the `n`-th |
| 47 | component of the reduction modulo `p` (`New.Lift.mk_thetaPhiInv_eq_coeff`), and its kernel is |
| 48 | generated by `φ^n E` (`New.Lift.frobE_dvd_iff`). |
| 49 | * `New.Lift.Chart.eventually_exists_coeff_eq_of_fixed`: the approximation theorem, from Ax's theorem |
| 50 | (`New.Period.ax_mem_closure_fixedField`) and `New.Lift.Chart.mem_of_fixed_thetaPhiInvS`. |
| 51 | |
| 52 | Notions from other files: |
| 53 | * `New.Lift.AdicBasis`: A topological basis of `M` over `S` for the `I`-adic topology: vectors `b i` |
| 54 | whose finite combinations are dense, with linear forms `coord i` on `M` that read off the |
| 55 | coefficients of a finite combination. |
| 56 | * `New.Period.FrobGal`: The monoid ℕ × G_p; the pair (n, g) acts on A_inf as φ^n g. |
| 57 | |
| 58 | ## Relation to the literature |
| 59 | |
| 60 | Known; see `Lib.PadicHodge.Kisin.PeriodMatrixFrame` for sources. |
| 61 | -/ |
| 62 | |
| 63 | @[expose] public section |
| 64 | |
| 65 | noncomputable section |
| 66 | |
| 67 | namespace New.Lift |
| 68 | |
| 69 | /-! |
| 70 | ## Charts, Frobenius and Weierstrass division |
| 71 | |
| 72 | * `New.Lift.Chart.dvd_smul_sub_of_fixesLambda`, `New.Lift.Chart.smul_theta_of_fixesThetaZ`: the |
| 73 | Galois action on `S` is controlled by the action on `Λ` and on `z`. |
| 74 | -/ |
| 75 | |
| 76 | section Chart |
| 77 | |
| 78 | open Period Ainf Set Ideal Fact NeZero IsLocalRing PowerSeries Witt WittVector WithIdeal |
| 79 | |
| 80 | variable {p : ℕ} [ThePrime p] (f : ℕ+) |
| 81 | |
| 82 | /-! ### The ring of constants -/ |
| 83 | |
| 84 | /-- The subring of the x with x^{p^f} = x in O^♭ = `OFlat`, the tilt of the integers of ℂ_p; it is |
| 85 | a field with p^f elements. -/ |
| 86 | def flatFq : Subring OFlat := (iterateFrobenius OFlat p f).eqLocus (RingHom.id OFlat) |
| 87 | |
| 88 | /-- The subring `flatFq f` of the x in `OFlat` (O^♭, the tilt of the integers of ℂ_p) with |
| 89 | x^{p^f} = x has p^f elements. -/ |
| 90 | @[simp] |
| 91 | lemma card_flatFq : Nat.card (flatFq f) = p ^ f.val := open Polynomial in by |
| 92 | -- The elements of `flatFq f` are the roots of the separable polynomial `X ^ p ^ f - X`, which |
| 93 | -- splits over `OFlat`: its roots in the algebraically closed fraction field `CFlat` are integral |
| 94 | -- over `OFlat`, hence lie in `OFlat` (`OFlat.isAbsIntegrallyClosed`). |
| 95 | let P : Polynomial OFlat := Polynomial.X ^ p ^ f.val - Polynomial.X |
| 96 | have h_monic : P.IsMonicOfDegree (p ^ f.val) := |
| 97 | (isMonicOfDegree_X_pow OFlat (p ^ f.val)).sub (by simp [elim]) |
| 98 | have h_nodup : P.roots.Nodup := nodup_roots (galois_poly_separable p _ (by simp)) |
| 99 | have h_inj : Function.Injective (algebraMap OFlat CFlat) := IsFractionRing.injective OFlat CFlat |
| 100 | have h_integral (x : CFlat) (hx : x ∈ (P.map (algebraMap OFlat CFlat)).roots) : |
| 101 | IsIntegral OFlat x := |
| 102 | ⟨P, h_monic.monic, (mem_roots_map_of_injective h_inj h_monic.ne_zero).mp hx⟩ |
| 103 | have h_splits : P.Splits := (IsAlgClosed.splits _).of_splits_map_of_injective h_inj |
| 104 | fun x hx ↦ OFlat.isAbsIntegrallyClosed.mem_range_of_isIntegralElem (h_integral x hx) |
| 105 | have h_mem (x : OFlat) : x ∈ P.roots ↔ x ∈ flatFq f := by |
| 106 | aesop (add simp [h_monic.ne_zero, sub_eq_zero, P]) |
| 107 | calc Nat.card (flatFq f) = P.roots.card := Nat.subtype_card ⟨P.roots, h_nodup⟩ h_mem |
| 108 | _ = P.natDegree := h_splits.natDegree_eq_card_roots.symm |
| 109 | _ = p ^ f.val := h_monic.natDegree_eq |
| 110 | |
| 111 | instance : Finite (flatFq f) := Nat.finite_of_card_ne_zero (by simp [NeZero.ne]) |
| 112 | |
| 113 | instance : Field (flatFq f) := (Finite.isField_of_domain _).toField |
| 114 | |
| 115 | /-- The ring Λ = W(k) of p-typical Witt vectors over the field k of elements x of O^♭ with |
| 116 | x^{p^f} = x. -/ |
| 117 | @[reducible] |
| 118 | def WittFq : Type := WittVector p (flatFq f) |
| 119 | deriving CommRing |
| 120 | |
| 121 | instance : Algebra (WittFq f) Ainf := inferInstance |
| 122 | |
| 123 | deriving instance Algebra (WittFq f) for @WittCFlat p _ |
| 124 | |
| 125 | /-! ### Charts and their existence -/ |
| 126 | |
| 127 | /-- A chart is a Λ-algebra map Λ[[X]] → A_inf, with Λ = W(F_{p^f}) = `WittFq f`. It sends X to a |
| 128 | non-unit Teichmüller lift z = [ϖ^♭], where ϖ^♭ is the field `varpiFlat`, and it sends a series |
| 129 | X^e A + p, with A a unit, to ξ times a unit. -/ |
| 130 | structure Chart where |
| 131 | /-- The positive integer `f`: the constants are `Λ = WittFq f`, the Witt vectors of the field |
| 132 | with `p ^ f` elements. -/ |
| 133 | f : ℕ+ |
| 134 | /-- The map of `Λ`-algebras `Λ⟦X⟧ → A_inf`, `Λ = WittFq f`; the image of `X` is called |
| 135 | `z`. -/ |
| 136 | seriesMap : (WittFq f)⟦X⟧ →ₐ[WittFq f] Ainf |
| 137 | /-- The unit power series `A` that multiplies `X ^ e` in `X ^ e * A + p`. -/ |
| 138 | unitSeries : (WittFq f)⟦X⟧ˣ |
| 139 | /-- `z` is not a unit of `A_inf`. -/ |
| 140 | not_isUnit_z : ¬IsUnit (seriesMap X) |
| 141 | /-- The element `ϖ^♭` of `O^♭` whose Teichmüller lift is `z`. -/ |
| 142 | varpiFlat : OFlat |
| 143 | /-- The exponent `e` of `X` in `X ^ e * A + p`. -/ |
| 144 | e : ℕ |
| 145 | /-- The series `X ^ e * A + p` is sent to `ξ` times a unit of `A_inf`. -/ |
| 146 | associated_xi : Associated (seriesMap (X ^ e * Units.val unitSeries + p.cast)) xi |
| 147 | /-- `z = [ϖ^♭]`. -/ |
| 148 | seriesMap_X : seriesMap X = teichmuller p varpiFlat |
| 149 | |
| 150 | variable (c : Chart) {Γ : Type} [Group Γ] |
| 151 | |
| 152 | /-- Power series over `Λ` can be evaluated at an element `z` of an ideal `I` of a `Λ`-algebra `R` |
| 153 | that is `I`-adically complete: some map of `Λ`-algebras `Λ⟦X⟧ → R` sends `X` to `z`. -/ |
| 154 | lemma exists_algHom_X_eq (Λ : Type*) {R : Type*} [CommRing Λ] [CommRing R] [Algebra Λ R] |
| 155 | {I : Ideal R} [h : IsAdicComplete I R] {z : R} (hz : z ∈ I) : |
| 156 | ∃ e : Λ⟦X⟧ →ₐ[Λ] R, e X = z := by |
| 157 | -- With the `I`-adic topology on `R` and the discrete one on `Λ`, the element `z` is |
| 158 | -- topologically nilpotent in a complete separated ring, so power series can be evaluated at it. |
| 159 | let withIdeal_R : WithIdeal R := ⟨I⟩ |
| 160 | let uniformSpace_Λ : UniformSpace Λ := ⊥ |
| 161 | obtain ⟨h_complete, h_t2⟩ : CompleteSpace R ∧ T2Space R := |
| 162 | (IsAdic.isAdicComplete_iff (by rfl)).mp h |
| 163 | have h_smul : ContinuousSMul Λ R := DiscreteTopology.instContinuousSMul Λ R |
| 164 | exact ⟨aeval (isTopologicallyNilpotent_of_mem hz), by simp [coe_aeval]⟩ |
| 165 | |
| 166 | /-- Existence of charts. A chart consists of `f`, a `Λ`-algebra map `ev : Λ⟦X⟧ → Ainf` with |
| 167 | `Λ = WittFq f`, an exponent `e`, a unit series `A` and `ϖ^♭ ∈ O^♭` (the field `varpiFlat`), such |
| 168 | that `ev X = [ϖ^♭]` is a non-unit and `ev (X ^ e * A + p)` is a generator ξ of `ker θ` times a unit. |
| 169 | Let `x : OC` (an integer of `ℂ_p`) have `x ^ e * v = -p` for a unit `v`. Then (a) some such `ev` has |
| 170 | `θ (ev X) = x`, and (b) every unit series `A` with `θ (ev A) = v` belongs to a chart `c` with |
| 171 | `c.f = f`, map `ev`, exponent `e`, unit `A` and `(ϖ^♭)^♯ = x` (`♯` the untilt); map and unit are |
| 172 | compared by `≍`, as their types depend on `c.f`. -/ |
| 173 | lemma exists_chart_of_pow_mul_eq_neg (f : ℕ+) {x : OC} {e : ℕ} (v : OCˣ) (h : x ^ e * v = -p) : |
| 174 | ∃ ev : (WittFq f)⟦X⟧ →ₐ[WittFq f] Ainf, |
| 175 | -- (a) `θ` takes the value of `X` to `x` |
| 176 | theta (ev X) = x ∧ |
| 177 | -- (b) each unit series that `θ` takes to `v` completes these data to a chart |
| 178 | ∀ A : (WittFq f)⟦X⟧ˣ, theta (ev A.val) = v → ∃ c : Chart, |
| 179 | c.f = f ∧ |
| 180 | c.seriesMap ≍ ev ∧ |
| 181 | c.varpiFlat.untilt = x ∧ |
| 182 | c.e = e ∧ |
| 183 | c.unitSeries ≍ A := by |
| 184 | -- Write `x = u^♯` and evaluate power series at `z = [u]`; the generator of `ker θ` is the |
| 185 | -- value of `E₀ = X ^ e * A + p`. |
| 186 | obtain ⟨u, hu⟩ : ∃ u : OFlat, u.untilt = x := Variety.untilt_surjective_of_isAbsIntegrallyClosed x |
| 187 | -- `[u]` is not a unit, or else `x ^ e * v = -p` would be one. |
| 188 | have h_nonunit : ¬IsUnit (teichmuller p u : Ainf) := by |
| 189 | intro h_unit |
| 190 | have hx_unit : IsUnit x := by simpa [hu] using h_unit.map theta |
| 191 | have hp_unit : IsUnit (p : OC) := by simpa [h] using (hx_unit.pow e).mul v.isUnit |
| 192 | have hp_nonunit : ¬IsUnit (p : OC) := out |
| 193 | exact hp_nonunit hp_unit |
| 194 | have h_complete : IsAdicComplete (span {teichmuller p u}) Ainf := |
| 195 | isAdicComplete_span_singleton h_nonunit |
| 196 | obtain ⟨ev, hev⟩ : ∃ ev : (WittFq f)⟦X⟧ →ₐ[WittFq f] Ainf, ev X = teichmuller p u := |
| 197 | exists_algHom_X_eq (WittFq f) (Ideal.mem_span_singleton_self (teichmuller p u)) |
| 198 | refine ⟨ev, by simp [hev, hu], fun A hA ↦ ?_⟩ |
| 199 | let E₀ : (WittFq f)⟦X⟧ := X ^ e * A.val + p.cast |
| 200 | have h_ker : theta (ev E₀) = 0 := by simp [E₀, hev, hu, hA, h] |
| 201 | -- Modulo `p` the element `ev E₀` is `u ^ e` times a unit, and `x ^ e` divides `p`. |
| 202 | have h_dvd : (WittVector.constantCoeff (ev E₀)).untilt ∣ p := by |
| 203 | have h_u : WittVector.constantCoeff (teichmuller p u) = u := by simp |
| 204 | -- Without `-constantCoeff_apply`, simp turns `constantCoeff` into `coeff 0` and stops there. |
| 205 | have h_coeff : (WittVector.constantCoeff (ev E₀)).untilt = |
| 206 | x ^ e * (WittVector.constantCoeff (ev A.val)).untilt := by |
| 207 | simp [E₀, hev, h_u, hu, -constantCoeff_apply, p_dvd_iff.mp] |
| 208 | -- `IsUnit.map` through `untilt`, `constantCoeff` and `ev` needs a discharger depth of 4. |
| 209 | have hA_unit : IsUnit (WittVector.constantCoeff (ev A.val)).untilt := by |
| 210 | simp (maxDischargeDepth := 4) [-constantCoeff_apply, IsUnit.map] |
| 211 | rw [h_coeff] |
| 212 | exact hA_unit.mul_right_dvd.mpr ⟨-(v : OC), by simp [h]⟩ |
| 213 | -- An element of `ker θ` whose reduction modulo `p` has an untilt dividing `p` generates `ker θ`. |
| 214 | have h_assoc : Associated (ev E₀) xi := |
| 215 | associated_of_dvd_dvd (dvd_of_theta_eq_zero_of_untilt_dvd h_ker h_dvd (by simp)) |
| 216 | (theta_eq_zero_iff_xi_dvd.mp h_ker) |
| 217 | let chart : Chart := |
| 218 | { f := f, seriesMap := ev, unitSeries := A, not_isUnit_z := by rwa [hev] |
| 219 | varpiFlat := u, e := e, associated_xi := h_assoc, seriesMap_X := hev } |
| 220 | exact ⟨chart, rfl, .rfl, hu, rfl, .rfl⟩ |
| 221 | |
| 222 | /-- The ring `WittFq f` of Witt vectors of the field with `p ^ f` elements is a finite |
| 223 | `ℤ_p`-module. -/ |
| 224 | instance {f : ℕ+} : Module.Finite ℤ_[p] (WittFq f) := by |
| 225 | -- The finitely many Teichmüller lifts generate `WittFq f` modulo `p`, hence generate it. |
| 226 | let T : (flatFq f →₀ ℤ_[p]) →ₗ[ℤ_[p]] WittFq f := |
| 227 | Finsupp.lift (WittFq f) ℤ_[p] (flatFq f) (teichmuller p) |
| 228 | have h_haus : IsHausdorff (maximalIdeal ℤ_[p]) (WittFq f) := by |
| 229 | simp [(isAdicComplete_over_base _).toIsHausdorff, PadicInt.maximalIdeal_eq_span_p] |
| 230 | have mod_p : |
| 231 | Function.Surjective ((maximalIdeal ℤ_[p] • ⊤ : Submodule ℤ_[p] (WittFq f)).mkQ ∘ₗ T) := by |
| 232 | rintro ⟨a⟩ |
| 233 | refine ⟨Finsupp.single (a.coeff 0) 1, SModEq.sub_mem.mpr ?_⟩ |
| 234 | simp [T, p_dvd_iff, map_sub, PadicInt.maximalIdeal_eq_span_p, map_span, mem_span_singleton] |
| 235 | exact .of_surjective T (surjective_of_mkQ_comp_surjective mod_p) |
| 236 | |
| 237 | /-- Frobenius and the Galois group, acting through the monoid `FrobGal`, map the constants |
| 238 | `WittFq f` of `Ainf` to constants. -/ |
| 239 | lemma WittFq.exists_smul_algebraMap_eq {f : ℕ+} (m : FrobGal) (c : WittFq f) : |
| 240 | ∃ b : WittFq f, m • algebraMap (WittFq f) Ainf c = algebraMap (WittFq f) Ainf b := by |
| 241 | -- `m` acts on `Ainf` coordinate by coordinate, through a ring endomorphism of `OFlat`, which |
| 242 | -- keeps the relation `t ^ p ^ f = t` that defines `flatFq f`. |
| 243 | have h_mem (n : ℕ) : m • (c.coeff n : OFlat) ∈ flatFq f := |
| 244 | (smul_pow' m (c.coeff n : OFlat) (p ^ (f : ℕ))).symm.trans (congrArg _ (c.coeff n).prop) |
| 245 | exact ⟨WittVector.mk p fun n ↦ ⟨m • (c.coeff n : OFlat), h_mem n⟩, rfl⟩ |
| 246 | |
| 247 | /-- Reduction of the coordinates from `flatFq f` to the residue field of `OFlat` is injective on |
| 248 | Witt vectors. -/ |
| 249 | lemma wittFq_map_residue_injective {f : ℕ+} : |
| 250 | (WittVector.map ((residue OFlat).comp (flatFq f).subtype) : |
| 251 | WittFq f → WittVector p (ResidueField OFlat)).Injective := |
| 252 | map_injective _ (RingHom.injective _) |
| 253 | |
| 254 | /-- The element g of G_p fixes the image of Λ = W(F_{p^f}) in A_inf pointwise. -/ |
| 255 | abbrev FixesLambda (f : ℕ+) (g : Gp p) : Prop := |
| 256 | ∀ a : WittFq f, g • algebraMap (WittFq f) Ainf a = algebraMap (WittFq f) Ainf a |
| 257 | |
| 258 | namespace Chart |
| 259 | |
| 260 | /-! ### The ring of a chart: a complete local Noetherian ring -/ |
| 261 | |
| 262 | /-- For a chart, the Λ-subalgebra S of A_inf that is the image of the chart's map Λ[[X]] → |
| 263 | A_inf. -/ |
| 264 | def S : Subalgebra (WittFq c.f) Ainf := c.seriesMap.range |
| 265 | |
| 266 | /-- For a chart, the image z of the variable X, as an element of S. -/ |
| 267 | def z : c.S := ⟨c.seriesMap X, X, rfl⟩ |
| 268 | |
| 269 | /-- For a chart, the ideal (p, z) of S, which is its maximal ideal. -/ |
| 270 | abbrev maxIdeal : Ideal c.S := span {↑p, c.z} |
| 271 | |
| 272 | /-- The element g of G_p fixes the image of Λ in A_inf pointwise and fixes θ(z), z the |
| 273 | coordinate of the chart c. The two parts are `New.Lift.Chart.FixesThetaZ.fixesLambda` and |
| 274 | `New.Lift.Chart.FixesThetaZ.smul_theta_z`. -/ |
| 275 | abbrev FixesThetaZ (g : Gp p) : Prop := FixesLambda c.f g ∧ g • theta c.z = theta c.z |
| 276 | |
| 277 | /-- If `g : Gp p` satisfies `c.FixesThetaZ g`, then `FixesLambda c.f g` |
| 278 | holds. -/ |
| 279 | lemma FixesThetaZ.fixesLambda {c : Chart} {g : Gp p} (h : c.FixesThetaZ g) : FixesLambda c.f g := |
| 280 | h.left |
| 281 | |
| 282 | /-- If `g : Gp p` satisfies `c.FixesThetaZ g`, then `g • theta c.z = theta c.z`. -/ |
| 283 | lemma FixesThetaZ.smul_theta_z {c : Chart} {g : Gp p} (h : c.FixesThetaZ g) : |
| 284 | g • theta c.z = theta c.z := |
| 285 | h.right |
| 286 | |
| 287 | /-- The chart `c` is a chart of a group homomorphism `j : Γ →* G_p`: every g in G_p that fixes Λ |
| 288 | pointwise and fixes θ(z) lies in the image of j. So the field fixed by all g that fix Λ pointwise |
| 289 | and fix θ(z) contains the field fixed by the image of j. -/ |
| 290 | def IsChartOf (j : Γ →* Gp p) : Prop := ∀ g : Gp p, c.FixesThetaZ g → g ∈ j.range |
| 291 | |
| 292 | /-- The element `z` is the Teichmüller lift `[ϖ♭]` of `c.varpiFlat`. -/ |
| 293 | lemma z_eq_teichmuller : c.z = teichmuller p c.varpiFlat := c.seriesMap_X |
| 294 | |
| 295 | /-- The exponent `e` of a chart is not zero. -/ |
| 296 | instance : NeZero c.e := by |
| 297 | -- If `e = 0` then `A + p` evaluates to a unit, and so the prime `ξ` would be one. |
| 298 | refine ⟨fun h_e_zero ↦ prime_xi.not_isUnit (c.associated_xi.isUnit ?_)⟩ |
| 299 | -- Without `-constantCoeff_apply`, simp turns `constantCoeff` into `coeff 0` and stops there. |
| 300 | simp [h_e_zero, p_dvd_iff.mp, -constantCoeff_apply, isUnit_iff_isUnit_constantCoeff, IsUnit.map] |
| 301 | |
| 302 | /-- For a chart there is `b` in A_inf with `z ∣ ξ - p * b`; so ξ lies in the ideal of A_inf |
| 303 | generated by p and z. -/ |
| 304 | lemma exists_z_dvd_xi_sub_p_mul : ∃ b : Ainf, c.z.val ∣ xi - p * b := by |
| 305 | -- `xi` is `(z ^ e * A + p) * b` for a unit `b`, and `e ≠ 0`. |
| 306 | obtain ⟨b, hb⟩ := c.associated_xi |
| 307 | exact ⟨b, by simp [← hb, add_mul, z, IsUnit.map, NeZero.ne]⟩ |
| 308 | |
| 309 | /-- `p` does not divide `z` in `A_inf`. -/ |
| 310 | lemma not_p_dvd_z : ¬↑p ∣ c.z.val := by |
| 311 | -- Otherwise `p` would divide `ξ - p * b`, hence `ξ`. |
| 312 | intro h_dvd |
| 313 | obtain ⟨b, hb⟩ := c.exists_z_dvd_xi_sub_p_mul |
| 314 | simpa [dvd_sub_left] using h_dvd.trans hb |
| 315 | |
| 316 | /-- The map Λ[[X]] → A_inf of a chart is injective. -/ |
| 317 | lemma seriesMap_injective : Function.Injective c.seriesMap := by |
| 318 | -- Write `F = X ^ n * G` with `n` the order of `F`. Then `G` evaluates to `0`. The reduction |
| 319 | -- `toWittResidue` to the Witt vectors of the residue field of `OFlat` kills `z` and is injective |
| 320 | -- on constants, so the constant term of `G` vanishes; hence `F = 0`. |
| 321 | refine (injective_iff_map_eq_zero _).mpr fun F hF ↦ ?_ |
| 322 | have z_ne : c.seriesMap X ≠ 0 := fun h_zero ↦ c.not_p_dvd_z (by simp [z, h_zero]) |
| 323 | have hG : c.seriesMap F.divXPowOrder = 0 := by |
| 324 | simpa [z_ne, hF] using congrArg c.seriesMap F.X_pow_order_mul_divXPowOrder |
| 325 | have red_z : toWittResidue (c.seriesMap X) = 0 := by |
| 326 | have h_nonunit : ¬IsUnit (c.seriesMap X) := c.not_isUnit_z |
| 327 | ext (_ | n) |
| 328 | · -- The first coordinate is the residue of `ϖ^♭`, which is not a unit. |
| 329 | simp_all [seriesMap_X, toWittResidue, (residue_eq_zero_iff _).mpr, |
| 330 | isUnit_iff_isUnit_constantCoeff] |
| 331 | · -- The higher coordinates of a Teichmüller lift are zero. |
| 332 | simp [seriesMap_X, toWittResidue] |
| 333 | have red_const : toWittResidue |
| 334 | (algebraMap (WittFq c.f) Ainf (PowerSeries.constantCoeff F.divXPowOrder)) = 0 := by |
| 335 | simpa [hG, red_z, C_eq_algebraMap] using |
| 336 | (congrArg (toWittResidue ∘ c.seriesMap) F.divXPowOrder.eq_X_mul_shift_add_const).symm |
| 337 | exact constantCoeff_divXPowOrder_eq_zero_iff.mp |
| 338 | (wittFq_map_residue_injective (red_const.trans (map_zero _).symm)) |
| 339 | |
| 340 | /-- For a chart, the Λ-algebra isomorphism from Λ[[X]] onto S given by the chart's map, which is |
| 341 | injective. -/ |
| 342 | def seriesEquiv : (WittFq c.f)⟦X⟧ ≃ₐ[WittFq c.f] c.S := |
| 343 | AlgEquiv.ofInjective c.seriesMap c.seriesMap_injective |
| 344 | |
| 345 | /-- Coercing `c.seriesEquiv F` to `Ainf` equals `c.seriesMap F`. -/ |
| 346 | lemma coe_seriesEquiv_apply (F : (WittFq c.f)⟦X⟧) : (c.seriesEquiv F : Ainf) = c.seriesMap F := rfl |
| 347 | |
| 348 | /-- For a chart, the image E in S of the series X^e A + p; it equals ξ times a unit of A_inf. -/ |
| 349 | @[irreducible, local simp] |
| 350 | def E : c.S := c.z ^ c.e * c.seriesEquiv c.unitSeries + p |
| 351 | |
| 352 | /-- For a chart `c`, `c.E.val` is associated to `xi` in `Ainf`. -/ |
| 353 | lemma associated_E_xi : Associated c.E.val xi := by |
| 354 | simpa [z, coe_seriesEquiv_apply] using c.associated_xi |
| 355 | |
| 356 | /-- Evaluating `theta` on `c.E` gives `0`. -/ |
| 357 | lemma theta_E : theta c.E = 0 := theta_eq_zero_iff_xi_dvd.mpr c.associated_E_xi.dvd' |
| 358 | |
| 359 | lemma z_dvd_E_sub_p : c.z ∣ c.E - p := by simp [NeZero.ne] |
| 360 | |
| 361 | @[simp] |
| 362 | lemma seriesEquiv_symm_z : c.seriesEquiv.symm c.z = X := c.seriesEquiv.left_inv X |
| 363 | |
| 364 | lemma seriesEquiv_X : c.seriesEquiv X = c.z := rfl |
| 365 | |
| 366 | lemma z_pow_mem_span : c.z ^ c.e ∈ span {c.E, ↑p} := by |
| 367 | simp [span_insert (_ * _), mem_sup_left, mem_span_singleton] |
| 368 | |
| 369 | /-- Every `s` in `S` is a constant of `Λ` plus `z` times some `t` in `S`. -/ |
| 370 | lemma exists_eq_const_add_z_mul (s : c.S) : |
| 371 | ∃ (a : WittFq c.f) (t : c.S), s = algebraMap (WittFq c.f) c.S a + c.z * t := by |
| 372 | -- In power series: a series is its constant term plus `X` times its shift. |
| 373 | obtain ⟨F, rfl⟩ : ∃ F : (WittFq c.f)⟦X⟧, c.seriesEquiv F = s := c.seriesEquiv.surjective s |
| 374 | refine ⟨PowerSeries.constantCoeff F, |
| 375 | c.seriesEquiv (PowerSeries.mk fun n ↦ PowerSeries.coeff (n + 1) F), ?_⟩ |
| 376 | conv_lhs => rw [F.eq_X_mul_shift_add_const] |
| 377 | rw [map_add, map_mul, seriesEquiv_X, C_eq_algebraMap, AlgEquiv.commutes, add_comm] |
| 378 | |
| 379 | /-- The ideal `(p, z)` of the ring `S` of a chart is maximal. -/ |
| 380 | instance : c.maxIdeal.IsMaximal := by |
| 381 | -- The maximal ideal of the power series ring is `(p, X)`; transport it along `c.seriesEquiv`. |
| 382 | have h_const : |
| 383 | span {(p : WittFq c.f)} = (maximalIdeal (WittFq c.f)⟦X⟧).map PowerSeries.constantCoeff := |
| 384 | (irreducible p).maximalIdeal_eq.symm.trans |
| 385 | (map_maximalIdeal_of_surjective (PowerSeries.constantCoeff : (WittFq c.f)⟦X⟧ →+* _) |
| 386 | constantCoeff_surj).symm |
| 387 | have h_max : maximalIdeal (WittFq c.f)⟦X⟧ = span {X, C (p : WittFq c.f)} := by |
| 388 | simpa using eq_span_insert_X_of_X_mem_of_span_eq prime_X.not_isUnit h_const |
| 389 | have h_map : (maximalIdeal (WittFq c.f)⟦X⟧).map c.seriesEquiv = c.maxIdeal := by |
| 390 | simp [h_max, pair_comm X, map_span, seriesEquiv_X] |
| 391 | rw [← h_map] |
| 392 | exact map_isMaximal_of_equiv c.seriesEquiv |
| 393 | |
| 394 | /-- The ring `S` of a chart is complete and separated for its maximal ideal `(p, z)`. -/ |
| 395 | instance : IsAdicComplete c.maxIdeal c.S := by |
| 396 | -- `S` is a Noetherian domain, so it is separated by Krull's intersection theorem. |
| 397 | have haus : IsHausdorff c.maxIdeal c.S := by |
| 398 | have h_noetherian : IsNoetherianRing c.S := isNoetherianRing_range c.seriesMap.toRingHom |
| 399 | exact .of_isDomain c.maxIdeal IsPrime.ne_top' |
| 400 | -- Limits exist in power series, as `shiftDiff` is surjective both for `p` and for `X`. |
| 401 | have precomplete : IsPrecomplete (span {(p : (WittFq c.f)⟦X⟧), X}) (WittFq c.f)⟦X⟧ := by |
| 402 | refine isPrecomplete_of_shiftDiff_surjective (fun b ↦ ?_) out |
| 403 | -- For `p`, solve the equations coefficient by coefficient. |
| 404 | have h_solve (n : ℕ) : ∃ a : ℕ → WittFq c.f, |
| 405 | shiftDiff (WittFq c.f) (p : WittFq c.f) a = fun j ↦ PowerSeries.coeff n (b j) := |
| 406 | (out : (shiftDiff (WittFq c.f) (p : WittFq c.f)).Surjective) _ |
| 407 | choose a ha using h_solve |
| 408 | refine ⟨fun j ↦ .mk fun n ↦ a n j, funext fun j ↦ PowerSeries.ext fun n ↦ ?_⟩ |
| 409 | simpa [shiftDiff, ← nsmul_eq_mul] using congrFun (ha n) j |
| 410 | have h_map : (span {(p : (WittFq c.f)⟦X⟧), X}).map c.seriesEquiv.toRingEquiv = c.maxIdeal := by |
| 411 | simp [map_span, seriesEquiv_X] |
| 412 | refine (isAdicComplete_iff c.maxIdeal c.S).mpr ⟨haus, ?_⟩ |
| 413 | rw [← h_map] |
| 414 | exact (IsPrecomplete.congr_ringEquiv _ c.seriesEquiv.toRingEquiv).mpr precomplete |
| 415 | |
| 416 | /-- The `m`-th power of the maximal ideal `(p, z)` of `S`, acting on `Ainf`, is the `m`-th power of |
| 417 | the ideal `(p, z)` of `Ainf`, seen as an `S`-submodule. -/ |
| 418 | private lemma maxIdeal_pow_smul_top_eq_restrictScalars (m : ℕ) : |
| 419 | c.maxIdeal ^ m • (⊤ : Submodule c.S Ainf) = |
| 420 | ((span {(p : Ainf), c.seriesMap X} : Ideal Ainf) ^ m).restrictScalars c.S := by |
| 421 | rw [Ideal.smul_top_eq_map, Ideal.map_pow, map_span, image_pair] |
| 422 | simp [z] |
| 423 | |
| 424 | /-- A high enough power of the maximal ideal `(p, z)` of `S`, extended to `Ainf`, lies in the `n`-th |
| 425 | power of the ideal `(p, ξ)`. -/ |
| 426 | lemma exists_maxIdeal_pow_le (n : ℕ) : |
| 427 | ∃ N : ℕ, c.maxIdeal ^ N • ⊤ ≤ (span {↑p, xi} ^ n).restrictScalars c.S := by |
| 428 | -- `p` and `z` lie in the radical of `(p, ξ)` (every non-unit does, as `p ∤ ξ`), so some power |
| 429 | -- `(p, z) ^ k` lies in `(p, ξ)`. |
| 430 | have hz_rad : c.seriesMap X ∈ radical (span {↑p, xi} : Ideal Ainf) := |
| 431 | mem_radical_of_not_isUnit c.not_isUnit_z (by simp) |
| 432 | have h_rad : span {↑p, c.seriesMap X} ≤ radical (span {↑p, xi} : Ideal Ainf) := |
| 433 | span_le.mpr (pair_subset (le_radical (subset_span (Set.mem_insert _ _))) hz_rad) |
| 434 | obtain ⟨k, hk⟩ : ∃ k : ℕ, span {↑p, c.seriesMap X} ^ k ≤ (span {↑p, xi} : Ideal Ainf) := |
| 435 | exists_pow_le_of_le_radical_of_fg h_rad (Submodule.fg_span (toFinite _)) |
| 436 | refine ⟨k * n, ?_⟩ |
| 437 | rw [c.maxIdeal_pow_smul_top_eq_restrictScalars, pow_mul] |
| 438 | exact fun x hx ↦ pow_right_mono hk n hx |
| 439 | |
| 440 | /-- `Ainf` is separated for the ideal `(p, z)` of the ring `S` of a chart. -/ |
| 441 | instance : IsHausdorff c.maxIdeal Ainf := by |
| 442 | apply (IsHausdorff.map_algebraMap_iff (S := Ainf)).mp |
| 443 | rw [map_span, image_pair] |
| 444 | -- The ideal `(p, z)` of `Ainf` is a pair of non-units, for which `Ainf` is complete. |
| 445 | simpa [z] using (isAdicComplete_span_pair prime_p.not_isUnit c.not_isUnit_z).toIsHausdorff |
| 446 | |
| 447 | /-! ### Coordinates of `Ainf` over the ring of a chart -/ |
| 448 | |
| 449 | /-- For a chart, A_inf has a topological basis `d` over its ring S for the adic topology of the |
| 450 | maximal ideal `c.maxIdeal = (p, z)` of S, with an index `i` whose coordinate form |
| 451 | `d.coord i : A_inf → S` is the identity on S. -/ |
| 452 | lemma exists_adicBasis_coord_eq_self : |
| 453 | ∃ d : AdicBasis c.maxIdeal Ainf, ∃ i : d.Index, ∀ s : c.S, d.coord i s = s := by |
| 454 | -- `1` is independent modulo `maxIdeal`, since `z` is not a unit. By `exists_adicBasis` such a |
| 455 | -- family extends to a topological basis once `p, z` is a regular sequence on `Ainf`. |
| 456 | have indep : LinearIndepOn (c.S ⧸ c.maxIdeal) (c.maxIdeal • ⊤ : Submodule c.S Ainf).mkQ {1} := by |
| 457 | let field_quot : Field (c.S ⧸ c.maxIdeal) := Quotient.field c.maxIdeal |
| 458 | -- For the one vector `1` this says that `1 ∉ (p, z) Ainf`; otherwise `z` would be a unit. |
| 459 | have h_one : (1 : Ainf) ∉ (c.maxIdeal • ⊤ : Submodule c.S Ainf) := by |
| 460 | simpa [mem_span_pair_iff, ← isUnit_iff_dvd_one, map_span, image_pair, |
| 461 | isUnit_iff_isUnit_constantCoeff, z] using c.not_isUnit_z |
| 462 | rw [linearIndepOn_iff_notMem_span] |
| 463 | intro i hi |
| 464 | simpa [mem_singleton_iff.mp hi, Submodule.Quotient.mk_eq_zero] using h_one |
| 465 | -- `z` is regular modulo `p`, because `p` is prime and does not divide `z`. |
| 466 | have z_reg (a b : Ainf) (h_eq : c.z • a = (p : c.S) • b) : ∃ a' : Ainf, a = (p : c.S) • a' := |
| 467 | (prime_p.dvd_or_dvd ⟨b, h_eq⟩).resolve_left c.not_p_dvd_z |
| 468 | -- `p` is not a zero divisor on `Ainf`. |
| 469 | have hp_smul : ∀ a : Ainf, (p : c.S) • a = 0 → (p : c.S) = 0 ∨ a = 0 := by simp |
| 470 | obtain ⟨d, hd⟩ : ∃ d : AdicBasis c.maxIdeal Ainf, {(1 : Ainf)} ⊆ Set.range d.b := |
| 471 | exists_adicBasis rfl z_reg {1} indep hp_smul |
| 472 | obtain ⟨i, hi⟩ : ∃ i : d.Index, d.b i = 1 := hd (mem_singleton 1) |
| 473 | refine ⟨d, i, fun s ↦ ?_⟩ |
| 474 | -- `s` is the finite combination with the single coefficient `s` at `i`. |
| 475 | have h_comb : Finsupp.linearCombination c.S d.b (Finsupp.single i s) = (s : Ainf) := by |
| 476 | simp [hi, c.S.smul_def] |
| 477 | rw [← h_comb, d.dual i (Finsupp.single i s), Finsupp.single_eq_same] |
| 478 | |
| 479 | /-- For a chart, a chosen (p, z)-adic topological basis (b_i) of A_inf over its ring S, with its |
| 480 | S-linear coordinates λ_i, such that one coordinate is the identity on S. -/ |
| 481 | def adicBasis : AdicBasis c.maxIdeal Ainf := c.exists_adicBasis_coord_eq_self.choose |
| 482 | |
| 483 | /-- For a chart, a chosen index of the topological basis `New.Lift.Chart.adicBasis` of A_inf over S |
| 484 | whose coordinate function A_inf → S is the identity on S (`New.Lift.Chart.coord₀_coe`). -/ |
| 485 | def oneIndex : c.adicBasis.Index := c.exists_adicBasis_coord_eq_self.choose_spec.choose |
| 486 | |
| 487 | /-- The S-linear coordinate λ₀: A_inf → S of the chosen topological basis of A_inf over S that |
| 488 | is the identity on S. -/ |
| 489 | abbrev coord₀ : Ainf →ₗ[c.S] c.S := c.adicBasis.coord c.oneIndex |
| 490 | |
| 491 | /-- The coordinate λ₀ is the identity on S. -/ |
| 492 | lemma coord₀_coe : ∀ s : c.S, c.coord₀ s.val = s := |
| 493 | c.exists_adicBasis_coord_eq_self.choose_spec.choose_spec |
| 494 | |
| 495 | /-- Divisibility in S can be tested in A_inf, as S is a direct summand of A_inf. -/ |
| 496 | lemma dvd_iff_coe_dvd {a b : c.S} : a ∣ b ↔ a.val ∣ b := by |
| 497 | refine ⟨map_dvd c.S.val, fun ⟨x, hx⟩ ↦ ⟨c.coord₀ x, ?_⟩⟩ |
| 498 | -- Apply to `b = a * x` the `S`-linear coordinate that restricts to the identity on `S`. |
| 499 | rw [← c.coord₀_coe b, hx] |
| 500 | exact map_smul _ a x |
| 501 | |
| 502 | /-! ### Frobenius, the Galois action and Weierstrass division -/ |
| 503 | |
| 504 | /-- Two ring maps from a power series ring agree if they agree on constants and |
| 505 | the variable, and the target is separated for the ideal generated by the image of the variable. -/ |
| 506 | private lemma powerSeries_ringHom_ext_of_isHausdorff {Λ R : Type*} [CommRing Λ] [CommRing R] |
| 507 | {f g : Λ⟦X⟧ →+* R} [IsHausdorff (Ideal.span {f X}) R] |
| 508 | (hC : ∀ a : Λ, f (C a) = g (C a)) (hX : f X = g X) : f = g := by |
| 509 | -- Agreement on polynomials gives agreement on each truncation of a series. |
| 510 | have h_poly : f.comp Polynomial.coeToPowerSeries.ringHom = |
| 511 | g.comp Polynomial.coeToPowerSeries.ringHom := |
| 512 | Polynomial.ringHom_ext (fun a ↦ by simpa using hC a) (by simpa using hX) |
| 513 | ext F |
| 514 | refine eq_of_forall_pow_dvd_sub (f X) fun n ↦ ?_ |
| 515 | have h_trunc : f (trunc n F : Λ⟦X⟧) = g (trunc n F : Λ⟦X⟧) := |
| 516 | DFunLike.congr_fun h_poly (trunc n F) |
| 517 | -- Both tails are multiples of the same power of the image of X. |
| 518 | have h_tail := X_pow_dvd_sub_trunc n F |
| 519 | have h_f : f X ^ n ∣ f F - f (trunc n F : Λ⟦X⟧) := by simpa using map_dvd f h_tail |
| 520 | have h_g : f X ^ n ∣ g F - g (trunc n F : Λ⟦X⟧) := by simpa [← hX] using map_dvd g h_tail |
| 521 | have h_diff := dvd_sub h_f h_g |
| 522 | rwa [h_trunc, sub_sub_sub_cancel_right] at h_diff |
| 523 | |
| 524 | /-- Frobenius on the values of a chart acts on the coefficients by Witt Frobenius |
| 525 | and substitutes `X ^ p` for `X`. -/ |
| 526 | private lemma frobEnd_seriesMap (q : (WittFq c.f)⟦X⟧) : |
| 527 | frobEnd (c.seriesMap q) = |
| 528 | c.seriesMap (expand p out (PowerSeries.map WittVector.frobenius q)) := by |
| 529 | let σ : WittFq c.f →+* WittFq c.f := WittVector.frobenius |
| 530 | let F : (WittFq c.f)⟦X⟧ →+* Ainf := frobEnd.comp c.seriesMap.toRingHom |
| 531 | let G : (WittFq c.f)⟦X⟧ →+* Ainf := |
| 532 | c.seriesMap.toRingHom.comp ((expand p out).toRingHom.comp (PowerSeries.map σ)) |
| 533 | have hFX : F X = c.seriesMap X ^ p := by simp [F, c.seriesMap_X, frobEnd_teichmuller] |
| 534 | have hGX : G X = c.seriesMap X ^ p := by simp [G] |
| 535 | have h_consts (a : WittFq c.f) : F (C a) = G (C a) := by |
| 536 | change frobEnd (c.seriesMap (C a)) = |
| 537 | c.seriesMap (expand p out (PowerSeries.map σ (C a))) |
| 538 | rw [PowerSeries.map_C, PowerSeries.expand_C, C_eq_algebraMap, C_eq_algebraMap, |
| 539 | AlgHom.commutes, AlgHom.commutes, frobEnd_eq_frobenius] |
| 540 | exact (WittVector.map_frobenius (flatFq c.f).subtype a).symm |
| 541 | have hFX_not_unit : ¬IsUnit (F X) := by rw [hFX]; simp [c.not_isUnit_z, NeZero.ne] |
| 542 | have : IsAdicComplete (span {F X}) Ainf := isAdicComplete_span_singleton hFX_not_unit |
| 543 | have h_eq : F = G := powerSeries_ringHom_ext_of_isHausdorff h_consts (hFX.trans hGX.symm) |
| 544 | exact DFunLike.congr_fun h_eq q |
| 545 | |
| 546 | /-- The Frobenius φ of A_inf maps the ring S of a chart into itself. -/ |
| 547 | lemma frobEnd_mem (s : c.S) : frobEnd s.val ∈ c.S := by |
| 548 | obtain ⟨q, hq⟩ := s.property |
| 549 | change c.seriesMap q = s.val at hq |
| 550 | rw [← hq, c.frobEnd_seriesMap q] |
| 551 | exact ⟨_, rfl⟩ |
| 552 | |
| 553 | /-- For a chart, the ring endomorphism of S obtained by restricting the Frobenius φ of A_inf. -/ |
| 554 | def φ : c.S →+* c.S := (frobEnd.comp c.S.val.toRingHom).codRestrict c.S c.frobEnd_mem |
| 555 | |
| 556 | /-- For a chart and n ≥ 0, the element φ^n(E) of its ring S, where E = `c.E` is the image of |
| 557 | X^e A + p and φ = `c.φ` is the Frobenius of S. -/ |
| 558 | def frobE (n : ℕ) : c.S := (c.φ ^ n) c.E |
| 559 | |
| 560 | /-- The Frobenius `c.φ` of S is the Frobenius of A_inf on values. -/ |
| 561 | lemma coe_phi_apply (r : c.S) : (c.φ r).val = frobEnd r.val := rfl |
| 562 | |
| 563 | /-- The n-th power of the Frobenius `c.φ` of S is the n-th iterate of the Frobenius of A_inf on |
| 564 | values. -/ |
| 565 | lemma coe_phi_pow (n : ℕ) : ∀ r : c.S, ((c.φ ^ n) r).val = frobEnd^[n] ↑r := by |
| 566 | induction n with |
| 567 | | zero => simp |
| 568 | | succ n ih => |
| 569 | intro r |
| 570 | rw [pow_succ, RingHom.mul_def, RingHom.comp_apply, ih, Function.iterate_succ_apply, |
| 571 | coe_phi_apply] |
| 572 | |
| 573 | /-- The coordinate z is a Teichmüller lift, so φ^n z = z^(p^n). -/ |
| 574 | lemma phi_pow_z (n : ℕ) : (c.φ ^ n) c.z = c.z ^ p ^ n := by |
| 575 | apply Subtype.ext |
| 576 | simp [coe_phi_pow, z_eq_teichmuller, -RingHom.coe_pow] |
| 577 | |
| 578 | /-- The element φ^n E is congruent to p modulo z. -/ |
| 579 | lemma z_dvd_frobE_sub_p (n : ℕ) : c.z ∣ c.frobE n - p := by |
| 580 | -- Apply `φ^n` to `z ∣ E - p`; it sends `z` to `z ^ p ^ n`. |
| 581 | have h_map : (c.φ ^ n) c.z ∣ (c.φ ^ n) (c.E - p) := map_dvd (c.φ ^ n) c.z_dvd_E_sub_p |
| 582 | rw [phi_pow_z, RingHom.map_sub, map_natCast] at h_map |
| 583 | exact (dvd_pow_self c.z (NeZero.ne (p ^ n))).trans h_map |
| 584 | |
| 585 | /-- If g in G_p fixes Λ = W(F_{p^f}) pointwise and d in A_inf divides gz − z, then d divides gs − s |
| 586 | for every s in the ring S of the chart. -/ |
| 587 | lemma dvd_smul_sub_of_fixesLambda {g : Gp p} {d : Ainf} (hz : d ∣ g • c.z.val - c.z) |
| 588 | (hg : FixesLambda c.f g) (s : c.S) : |
| 589 | d ∣ g • s - s := by |
| 590 | -- Successive approximation along `z`: writing `s = a + z * t` with a constant `a`, one has |
| 591 | -- `g • s - s = (g • z - z) * g • t + z * (g • t - t)`, and `Ainf` is `z`-adically complete. |
| 592 | have h_complete : IsAdicComplete (span {c.seriesMap X}) Ainf := |
| 593 | isAdicComplete_span_singleton c.not_isUnit_z |
| 594 | have step (s : c.S) : |
| 595 | ∃ n : Ainf, ∃ t : c.S, g • s.val - s = d * n + c.seriesMap X • (g • t.val - t) := by |
| 596 | obtain ⟨a, t, hs⟩ := c.exists_eq_const_add_z_mul s |
| 597 | obtain ⟨n, hn⟩ : d ∣ (g • c.z.val - c.z) * g • t.val := hz.mul_right (g • t.val) |
| 598 | exact ⟨n, t, by simp [hs, ← hn, hg, sub_mul, z, mul_sub]⟩ |
| 599 | obtain ⟨n, hn⟩ : ∃ n : Ainf, d * n = g • s.val - s := |
| 600 | mem_range_of_approx (.mulLeft d) (mul_smul_comm (c.seriesMap X) d) |
| 601 | (fun s : c.S ↦ g • s.val - s) step s |
| 602 | exact Dvd.intro n hn |
| 603 | |
| 604 | /-- If `g` in the Galois group `Gp p` fixes the constants `Λ` in `Ainf` pointwise and fixes `θ z`, |
| 605 | then `g` fixes `θ s` for every `s` in the ring `S` of the chart. -/ |
| 606 | lemma smul_theta_of_fixesThetaZ {g : Gp p} (h : c.FixesThetaZ g) (s : c.S) : |
| 607 | g • theta s = theta s := by |
| 608 | -- `g` fixes `θ a` exactly when `g • a - a` lies in `ker θ = (ξ)`. |
| 609 | have h_fix_iff (a : Ainf) : g • theta a = theta a ↔ xi ∣ g • a - a := by |
| 610 | simp [← theta_eq_zero_iff_xi_dvd, sub_eq_zero] |
| 611 | exact (h_fix_iff s).mpr |
| 612 | (c.dvd_smul_sub_of_fixesLambda ((h_fix_iff c.z).mp h.smul_theta_z) h.fixesLambda s) |
| 613 | |
| 614 | open Polynomial hiding C X |
| 615 | |
| 616 | /-- Weierstrass division by φ^n E. Let S be the image in A_inf of the chart's map Λ⟦X⟧ → A_inf |
| 617 | (Λ = `WittFq c.f`), z = `c.z` the image of X, E ∈ S the image of X^e A + p, and φ the Frobenius of |
| 618 | S. For s in S and N = p^n e, there is a unique polynomial r over Λ of degree < N (an element of |
| 619 | `(WittFq c.f)[X]_N`) with φ^n E dividing s − r(z) in S. -/ |
| 620 | lemma weierstrass_division (n : ℕ) {N : ℕ} (hN : p ^ n * c.e = N) (s : c.S) : |
| 621 | ∃! r : (WittFq c.f)[X]_N, c.frobE n ∣ s - r.val.aeval c.z := by |
| 622 | -- Transport along `c.seriesEquiv` to power series over `WittFq c.f` and divide by the series `G` |
| 623 | -- that corresponds to `φ^n E`. |
| 624 | let G : (WittFq c.f)⟦X⟧ := c.seriesEquiv.symm (c.frobE n) |
| 625 | have hp : (p : (ResidueField (WittFq c.f))⟦X⟧) = 0 := by |
| 626 | simpa using congrArg C |
| 627 | ((residue_eq_zero_iff (p : WittFq c.f)).mpr (irreducible p).not_isUnit) |
| 628 | -- `φ^n E = z ^ N * φ^n A + p`, with `A` the unit series of the chart. Here and below the power |
| 629 | -- `c.φ ^ n` is kept as a ring map (`-RingHom.coe_pow`), so that `phi_pow_z`, `IsUnit.map` apply. |
| 630 | have h_frobE : c.frobE n = c.z ^ N * (c.φ ^ n) (c.seriesEquiv c.unitSeries) + p := by |
| 631 | rw [frobE, E, RingHom.map_add, RingHom.map_mul, map_pow, phi_pow_z, map_natCast, ← pow_mul, hN] |
| 632 | -- Modulo `p` the series `G` is `X ^ N` times a unit, so its order is `N`. |
| 633 | obtain ⟨hG, rfl⟩ : G.map (residue _) ≠ 0 ∧ (G.map (residue _)).order.toNat = N := by |
| 634 | simp [G, h_frobE, order_mul, hp, order_zero_of_isUnit, IsUnit.ne_zero, IsUnit.map, |
| 635 | -RingHom.coe_pow] |
| 636 | have h_iff (r : (WittFq c.f)[X]) : |
| 637 | c.frobE n ∣ s - r.aeval c.z ↔ ∃ q : (WittFq c.f)⟦X⟧, c.seriesEquiv.symm s = G * q + r := by |
| 638 | simp [G, ← map_dvd_iff c.seriesEquiv.symm, map_sub c.seriesEquiv.symm, -map_sub, |
| 639 | ← aeval_algHom_apply, dvd_def, sub_eq_iff_eq_add, |
| 640 | aeval_def X, eval₂_C_X_eq_coe] |
| 641 | -- `WittFq c.f` is complete for its maximal ideal `(p)`, so Weierstrass division applies. |
| 642 | have h_complete : IsAdicComplete (maximalIdeal (WittFq c.f)) (WittFq c.f) := by |
| 643 | rw [(irreducible p).maximalIdeal_eq] |
| 644 | infer_instance |
| 645 | obtain ⟨q, r, H⟩ := exists_isWeierstrassDivision (c.seriesEquiv.symm s) hG |
| 646 | -- The remainder `r` works, and any other remainder is a second Weierstrass division. |
| 647 | refine ⟨⟨r, mem_degreeLT.mpr H.degree_lt⟩, (h_iff r).mpr ⟨q, H.eq_mul_add⟩, fun r' hr' ↦ ?_⟩ |
| 648 | obtain ⟨q', hq'⟩ := (h_iff r'.val).mp hr' |
| 649 | obtain ⟨-, hr_eq⟩ : q = q' ∧ r = r'.val := H.elim hG ⟨mem_degreeLT.mp r'.property, hq'⟩ |
| 650 | exact Subtype.ext hr_eq.symm |
| 651 | |
| 652 | /-- Every `s` in `S` is congruent modulo `φ^n E` to a combination of `1, z, …, z ^ (N - 1)` with |
| 653 | coefficients in `Λ`, where `N = p ^ n * e`. -/ |
| 654 | lemma exists_dvd_sub_sum_z_pow (n : ℕ) {N : ℕ} (hN : p ^ n * c.e = N) (s : c.S) : |
| 655 | ∃ w : Fin N → WittFq c.f, c.frobE n ∣ s - ∑ i : Fin N, w i • c.z ^ i.val := by |
| 656 | -- `w` lists the coefficients of the remainder of the Weierstrass division. |
| 657 | simpa [(degreeLT.basis (WittFq c.f) N).equivFun.exists_congr_left] using |
| 658 | (c.weierstrass_division n hN s).exists |
| 659 | |
| 660 | end Chart |
| 661 | |
| 662 | end Chart |
| 663 | |
| 664 | /-! |
| 665 | ## The maps θφ^{-n} and approximation of fixed elements |
| 666 | |
| 667 | An element of the tilt is a sequence of components `PreTilt.coeff n` in the integers of `ℂ_p` modulo |
| 668 | `p`, each the `p`-th power of the next; `constantCoeff` is reduction of Witt vectors modulo `p`. |
| 669 | |
| 670 | * `New.Lift.thetaPhiInv`: the map θ ∘ φ^{-n}; modulo `p` it reads off the `n`-th component |
| 671 | (`New.Lift.mk_thetaPhiInv_eq_coeff`), and its kernel is generated by φ^n E |
| 672 | (`New.Lift.frobE_dvd_iff`). |
| 673 | * `New.Lift.Chart.mem_of_fixed_thetaPhiInvS`: Galois theory for the values of these maps on `S`, |
| 674 | which are algebraic over `ℚ_p`. |
| 675 | * `New.Lift.Chart.eventually_exists_coeff_eq_of_fixed`: an element of the tilt fixed by the |
| 676 | Galois elements that fix `S` has each component approximated by values on `S`. |
| 677 | -/ |
| 678 | |
| 679 | section ChartFixedPoints |
| 680 | |
| 681 | open Period Ideal WittVector RingEquiv PreTilt Set NeZero OC Witt Algebra RingHom nonZeroDivisors |
| 682 | |
| 683 | variable {p : ℕ} [ThePrime p] (c : Chart) (n : ℕ) |
| 684 | |
| 685 | /-- For n ≥ 0, the ring homomorphism θ ∘ φ^{−n} from A_inf to O_C, with φ the Frobenius of A_inf |
| 686 | and θ Fontaine's map. -/ |
| 687 | def thetaPhiInv : Ainf →+* OC := |
| 688 | theta.comp ((ofBijective frobEnd frobEnd_bijective)⁻¹ ^ n).toRingHom |
| 689 | |
| 690 | /-- θ ∘ φ^{−(n+1)} of φ a is θ ∘ φ^{−n} of a. -/ |
| 691 | @[simp] |
| 692 | lemma thetaPhiInv_succ (a : Ainf) : thetaPhiInv (n + 1) (frobEnd a) = thetaPhiInv n a := |
| 693 | congrArg (thetaPhiInv n) (symm_apply_apply (ofBijective frobEnd frobEnd_bijective) a) |
| 694 | |
| 695 | /-- Modulo `p`, the value `θ (φ^{-n} a)` is the `n`-th component of the reduction of `a` modulo |
| 696 | `p`, an element of the tilt. Here `ModP OC p` is `OC ⧸ (p)`, and the ascription to it is the |
| 697 | quotient map `Ideal.Quotient.mk`. -/ |
| 698 | lemma mk_thetaPhiInv_eq_coeff (a : Ainf) : |
| 699 | (thetaPhiInv n a : ModP OC p) = PreTilt.coeff n a.constantCoeff := by |
| 700 | induction n generalizing a with |
| 701 | | zero => exact mk_fontaineTheta a |
| 702 | | succ n ih => |
| 703 | -- Write `a = φ b`: `φ` shifts both sides by one step. |
| 704 | obtain ⟨b, rfl⟩ : ∃ b : Ainf, frobEnd b = a := frobEnd_bijective.surjective a |
| 705 | rw [thetaPhiInv_succ, constantCoeff_frobEnd, ih b, ← frobenius_def] |
| 706 | exact (PreTilt.coeff_frobenius n (constantCoeff b)).symm |
| 707 | |
| 708 | /-- The map θ ∘ φ^{-n} commutes with the action of G_p. -/ |
| 709 | @[simp] |
| 710 | lemma thetaPhiInv_smul (g : Gp p) : ∀ a : Ainf, thetaPhiInv n (g • a) = g • thetaPhiInv n a := by |
| 711 | induction n with |
| 712 | | zero => exact theta_smul g |
| 713 | | succ n ih => |
| 714 | -- Write `a = φ b`; the action commutes with `φ`. |
| 715 | intro a |
| 716 | obtain ⟨b, rfl⟩ : ∃ b : Ainf, frobEnd b = a := frobEnd_bijective.surjective a |
| 717 | rw [smul_frobEnd, thetaPhiInv_succ, thetaPhiInv_succ, ih b] |
| 718 | |
| 719 | /-- An element a of `Ainf` is divisible by φ^n E if and only if it lies in the kernel of θ ∘ |
| 720 | φ^{-n}. -/ |
| 721 | lemma frobE_dvd_iff {c : Chart} {n : ℕ} {a : Ainf} : (c.frobE n).val ∣ a ↔ thetaPhiInv n a = 0 := by |
| 722 | -- `φ^n` is a ring automorphism `σ` of `Ainf`: it carries `c.E`, associated to `xi`, to |
| 723 | -- `c.frobE n`, and `thetaPhiInv n` is `θ ∘ σ⁻¹`. |
| 724 | let σ : Ainf ≃+* Ainf := ofBijective frobEnd frobEnd_bijective ^ n |
| 725 | have h_frobE : (c.frobE n).val = σ c.E := by |
| 726 | rw [Chart.frobE, c.coe_phi_pow, RingAut.coe_pow, RingEquiv.coe_ofBijective] |
| 727 | have h_theta : thetaPhiInv n a = theta (σ.symm a) := by |
| 728 | simp only [thetaPhiInv, σ, inv_pow] |
| 729 | rfl |
| 730 | rw [h_frobE, h_theta, theta_eq_zero_iff_xi_dvd, ← c.associated_E_xi.dvd_iff_dvd_left, |
| 731 | ← map_dvd_iff σ (a := (c.E : Ainf)) (b := σ.symm a), RingEquiv.apply_symm_apply] |
| 732 | |
| 733 | /-- An element of A_inf that every θ ∘ φ^{−n} kills is zero: the ideal of such elements is |
| 734 | saturated for p, and its elements vanish modulo p. -/ |
| 735 | lemma eq_zero_of_forall_thetaPhiInv_eq_zero {a : Ainf} (h : ∀ n : ℕ, thetaPhiInv n a = 0) : |
| 736 | a = 0 := by |
| 737 | -- Modulo `p` the value `thetaPhiInv n b` is the `n`-th component of `b`. |
| 738 | have h_const : ∀ b ∈ ⨅ n, ker (thetaPhiInv (p := p) n), b.constantCoeff = 0 := by |
| 739 | refine fun b hb ↦ Perfection.ext fun n ↦ Eq.trans ?_ (map_zero _).symm |
| 740 | change PreTilt.coeff n b.constantCoeff = 0 |
| 741 | rw [← mk_thetaPhiInv_eq_coeff, mem_ker.mp (mem_iInf.mp hb n)] |
| 742 | exact map_zero _ |
| 743 | -- The ideal is saturated for `p`, and an element vanishing modulo `p` is divisible by it. |
| 744 | have h_zero_dvd : ∀ b ∈ ⨅ n, ker (thetaPhiInv (p := p) n), (0 : Ainf) ∣ b := |
| 745 | dvd_of_mem_of_constantCoeff_dvd (zero_mem _) (by simp [NeZero.ne]) |
| 746 | fun b hb ↦ ⟨0, by simp [h_const b hb]⟩ |
| 747 | exact zero_dvd_iff.mp (h_zero_dvd a (mem_iInf.mpr fun n ↦ mem_ker.mpr (h n))) |
| 748 | |
| 749 | namespace Chart |
| 750 | |
| 751 | /-- Let f: A_inf → S be S-linear, α in S, r in A_inf, and θ_n = θ∘φ^{−n}. If θ_n(α) divides θ_n(r) |
| 752 | in O_C, then φ^n E divides f(r) − αx for some x in S. -/ |
| 753 | lemma exists_frobE_dvd_sub_of_dvd (f : Ainf →ₗ[c.S] c.S) (α : c.S) (r : Ainf) |
| 754 | (h : thetaPhiInv n α.val ∣ thetaPhiInv n r) : |
| 755 | ∃ x : c.S, c.frobE n ∣ f r - α * x := by |
| 756 | -- Lift the quotient to `a` in `Ainf`; then `r - α * a` lies in the kernel of `thetaPhiInv n`, |
| 757 | -- which is generated by `c.frobE n ∈ S`. Apply `f` and take `x = f a`. |
| 758 | obtain ⟨a, ha⟩ : ∃ a : Ainf, thetaPhiInv n r = thetaPhiInv n α.val * thetaPhiInv n a := |
| 759 | (theta_surjective.comp (Equiv.surjective _)).exists.mp h |
| 760 | have h_ker : thetaPhiInv n (r - α • a) = 0 := by simp [smul_def, ha] |
| 761 | obtain ⟨b, hb⟩ : ∃ b : Ainf, r - α • a = c.frobE n • b := frobE_dvd_iff.mpr h_ker |
| 762 | have h_f : f r - α * f a = c.frobE n * f b := by simpa [map_smul] using congrArg f hb |
| 763 | exact ⟨f a, f b, h_f⟩ |
| 764 | |
| 765 | /-- For a chart and n ≥ 0, the Z_p-algebra homomorphism S → C_p given by restricting θ ∘ φ^{−n} to |
| 766 | the ring S of the chart. -/ |
| 767 | abbrev thetaPhiInvS : c.S →ₐ[ℤ_[p]] ℂ_[p] := toPadicIntAlgHom ((thetaPhiInv n).comp c.S.val) |
| 768 | |
| 769 | /-- Let K be a Q_p-subalgebra of C_p and y in Q̄_p. If every g in G_p fixing all those |
| 770 | θφ^{−n}(s), n ≥ 0, s in S, that lie in K also fixes y, then y lies in K. -/ |
| 771 | lemma mem_of_fixed_thetaPhiInvS {K : Subalgebra ℚ_[p] ℂ_[p]} {y : PadicAlgCl p} |
| 772 | (h : ∀ g : Gp p, (∀ n : ℕ, ∀ x ∈ (c.thetaPhiInvS n).range, x ∈ K → g • x = x) → g y = y) : |
| 773 | ↑y ∈ K := by |
| 774 | -- By Galois theory it suffices that every `g` fixing the algebraic elements of `K` fixes `y`; |
| 775 | -- such a `g` fixes each `x ∈ K` in the range of `c.thetaPhiInvS n`, because `x` is algebraic. |
| 776 | let L : IntermediateField ℚ_[p] (PadicAlgCl p) := |
| 777 | subalgebraEquivIntermediateField (K.comap (algHom ℚ_[p] (PadicAlgCl p) ℂ_[p])) |
| 778 | suffices hy : y ∈ IntermediateField.fixedField L.fixingSubgroup from |
| 779 | (InfiniteGalois.fixedField_fixingSubgroup L).le hy |
| 780 | intro g |
| 781 | refine h g fun n x hx hxK ↦ ?_ |
| 782 | -- The range of `c.thetaPhiInvS n` is finite over `ℤ_[p]`: dividing by `c.frobE n`, which is |
| 783 | -- killed, leaves a polynomial in `c.z` of degree less than `p ^ n * c.e` over the finite |
| 784 | -- `WittFq c.f`. |
| 785 | let poly : (Fin (p ^ n * c.e) → WittFq c.f) →ₗ[WittFq c.f] c.S := |
| 786 | Fintype.linearCombination _ fun i ↦ c.z ^ i.val |
| 787 | have h_rem (t : c.S) : |
| 788 | ∃ w : Fin (p ^ n * c.e) → WittFq c.f, c.thetaPhiInvS n (poly w) = c.thetaPhiInvS n t := by |
| 789 | obtain ⟨w, hw⟩ : ∃ w : Fin (p ^ n * c.e) → WittFq c.f, |
| 790 | c.frobE n ∣ t - ∑ i : Fin (p ^ n * c.e), w i • c.z ^ i.val := |
| 791 | c.exists_dvd_sub_sum_z_pow n rfl t |
| 792 | have h_ker : thetaPhiInv n (t.val - (poly w).val) = 0 := |
| 793 | frobE_dvd_iff.mp (c.dvd_iff_coe_dvd.mp hw) |
| 794 | have h_eq : thetaPhiInv n t.val = thetaPhiInv n (poly w).val := (sub_mem_ker_iff _).mp h_ker |
| 795 | exact ⟨w, congrArg (fun z : OC ↦ (z : ℂ_[p])) h_eq.symm⟩ |
| 796 | have h_fg : (c.thetaPhiInvS n).range.toSubmodule.FG := |
| 797 | (Submodule.fg_range ((c.thetaPhiInvS n).toLinearMap ∘ₗ poly.restrictScalars ℤ_[p])).of_le |
| 798 | (forall_mem_range.mpr h_rem) |
| 799 | obtain ⟨x', rfl⟩ : x ∈ (algebraMap (PadicAlgCl p) ℂ_[p]).range := |
| 800 | Variety.IsAbsIntegrallyClosed.mem_range_of_isIntegralElem |
| 801 | (IsIntegral.of_mem_of_fg _ h_fg _ hx).tower_top |
| 802 | -- `g` fixes `x'`, which lies in the field of `K`. |
| 803 | have h_fix : (g : Gp p) x' = x' := g.property ⟨x', hxK⟩ |
| 804 | exact (UniformSpace.Completion.algEquiv_smul_coe (g : Gp p) x').trans |
| 805 | (congrArg (algebraMap (PadicAlgCl p) ℂ_[p]) h_fix) |
| 806 | |
| 807 | /-- Let `z ∈ O_C` and let `a` be a nonzero element of `ℤ_[p]`. If `a • z` is the value of some |
| 808 | `s ∈ c.S` under `thetaPhiInv n`, then so is `z`: the retraction `c.coord₀` lets us divide by `a` |
| 809 | inside `c.S`. -/ |
| 810 | private lemma exists_thetaPhiInv_eq_of_smul_eq {a : ℤ_[p]} (ha : a ∈ ℤ_[p]⁰) {z : OC} {s : c.S} |
| 811 | (hs : (thetaPhiInv n s.val : ℂ_[p]) = a • (z : ℂ_[p])) : |
| 812 | ∃ s' : c.S, (z : ℂ_[p]) = thetaPhiInv n s'.val := by |
| 813 | obtain ⟨α, hα⟩ : ∃ α : c.S, (thetaPhiInv n α.val : ℂ_[p]) = a • (1 : ℂ_[p]) := |
| 814 | (c.thetaPhiInvS n).range.smul_mem (one_mem _) a |
| 815 | -- The value `a` of `α` divides the value `a • z` of `s`. |
| 816 | have dvd : thetaPhiInv n α.val ∣ thetaPhiInv n s.val := by |
| 817 | refine ⟨z, Subtype.ext ?_⟩ |
| 818 | rw [MulMemClass.coe_mul, hs, hα, smul_one_mul] |
| 819 | -- The coordinate `c.coord₀` is the retraction (`coord₀_coe`). |
| 820 | obtain ⟨s', hs'⟩ : ∃ s' : c.S, thetaPhiInv n (s - α * s').val = 0 := by |
| 821 | simpa only [coord₀_coe, dvd_iff_coe_dvd, frobE_dvd_iff] using |
| 822 | c.exists_frobE_dvd_sub_of_dvd n c.coord₀ α s dvd |
| 823 | -- Cancelling `a`, the value of `s'` is `z`. |
| 824 | have h_mul : thetaPhiInv n s.val = thetaPhiInv n α.val * thetaPhiInv n s'.val := by |
| 825 | rw [← sub_eq_zero, ← map_mul, ← map_sub] |
| 826 | exact hs' |
| 827 | have h_smul : a • (z : ℂ_[p]) = a • (thetaPhiInv n s'.val : ℂ_[p]) := by |
| 828 | rw [← hs, h_mul, MulMemClass.coe_mul, hα, smul_one_mul] |
| 829 | refine ⟨s', ?_⟩ |
| 830 | rw [← algebraMap_smul ℚ_[p] a, ← algebraMap_smul ℚ_[p] a] at h_smul |
| 831 | exact smul_right_injective ℂ_[p] (by simpa using ne_zero ha) h_smul |
| 832 | |
| 833 | /-- Let `c.S` be the image in A_inf of the chart's map Λ⟦X⟧ → A_inf, and let y ∈ O^♭ be fixed by |
| 834 | every g ∈ G_p that fixes S pointwise. Then for every N and all large n, the N-th component of y in |
| 835 | O_C/p equals the n-th component of the 0-th Witt component (an element of O^♭) of some s ∈ S. -/ |
| 836 | lemma eventually_exists_coeff_eq_of_fixed {y : OFlat} |
| 837 | (h : ∀ g : Gp p, (∀ s : c.S, g • s.val = s) → g • y = y) (N : ℕ) : |
| 838 | ∀ᶠ n : ℕ in Filter.atTop, ∃ s : c.S, y.coeff N = PreTilt.coeff n s.val.constantCoeff := by |
| 839 | -- By Ax's theorem `t = θ φ^{-N} [y]` is congruent modulo `p` to an algebraic `x` with the same |
| 840 | -- invariance. Galois theory puts `x` in the `ℚ_[p]`-algebra generated by the `thetaPhiInvS n s`, |
| 841 | -- so `a • x` is a value `thetaPhiInvS n s` for some `a ≠ 0` in `ℤ_[p]`. An `S`-linear retraction |
| 842 | -- of `Ainf` onto `S` lets us divide by `a` inside `S`. |
| 843 | let t : OC := thetaPhiInv N (teichmuller p y) |
| 844 | have t_fixed (g : Gp p) (hg : g ∈ fixingSubgroup (Gp p) c.S.carrier) : g • (t : ℂ_[p]) = t := by |
| 845 | -- `g` acts on `Ainf` through the monoid `FrobGal`, and commutes with Teichmüller lifts. |
| 846 | have h_teich : g • teichmuller p y = teichmuller p (g • y) := smul_teichmuller _ _ |
| 847 | simp only [t, ← coe_smul, ← thetaPhiInv_smul, h_teich, h g hg] |
| 848 | obtain ⟨_, ⟨x, x_fixed, rfl⟩, x_near : ‖(t : ℂ_[p]) - x‖ < ‖(p : ℂ_[p])‖⟩ := |
| 849 | SeminormedAddCommGroup.mem_closure_iff.mp (ax_mem_closure_fixedField _ t_fixed) ‖(p : ℂ_[p])‖ |
| 850 | (by simp [Nat.pos_of_neZero]) |
| 851 | -- The ranges increase, because `thetaPhiInvS (n + 1) (φ s) = thetaPhiInvS n s`. |
| 852 | have h_succ (n : ℕ) (s : c.S) : c.thetaPhiInvS (n + 1) (c.φ s) = c.thetaPhiInvS n s := by |
| 853 | simp [φ] |
| 854 | have mono : Monotone fun n ↦ (c.thetaPhiInvS n).range := |
| 855 | monotone_nat_of_le_succ fun n x ⟨s, hs⟩ ↦ ⟨c.φ s, (h_succ n s).trans hs⟩ |
| 856 | -- An element `g` that fixes all values `thetaPhiInvS n s` fixes `S`, since `g • s - s` is |
| 857 | -- killed by every `thetaPhiInv n`; hence `g` fixes `x`. |
| 858 | have x_mem : ↑x ∈ adjoin ℚ_[p] (SetLike.coe (⨆ n, (c.thetaPhiInvS n).range)) := by |
| 859 | refine c.mem_of_fixed_thetaPhiInvS fun g hg ↦ |
| 860 | x_fixed ⟨g, fun s ↦ eq_of_sub_eq_zero (eq_zero_of_forall_thetaPhiInv_eq_zero fun n ↦ ?_)⟩ |
| 861 | -- `g` fixes the value of `s` under `thetaPhiInvS n`, which lies in the adjoined algebra. |
| 862 | let s_S : c.S := ⟨s, s.property⟩ |
| 863 | have h_fix_val : g • c.thetaPhiInvS n s_S = c.thetaPhiInvS n s_S := |
| 864 | hg n _ ⟨s_S, rfl⟩ (subset_adjoin (mem_iSup_of_mem n ⟨s_S, rfl⟩)) |
| 865 | simpa [s_S, Subtype.ext_iff, sub_eq_zero] using h_fix_val |
| 866 | -- Clear denominators: `a • x` lies in the `ℤ_[p]`-algebra, the increasing union of the ranges. |
| 867 | obtain ⟨⟨a, ha⟩, ax_mem⟩ : ∃ a : ℤ_[p]⁰, |
| 868 | a • (x : ℂ_[p]) ∈ adjoin ℤ_[p] (SetLike.coe (⨆ n, (c.thetaPhiInvS n).range)) := |
| 869 | multiple_mem_adjoin_of_mem_localization_adjoin ℤ_[p]⁰ (hx := x_mem) |
| 870 | obtain ⟨n₀, hn₀⟩ : ∃ n₀ : ℕ, a • (x : ℂ_[p]) ∈ ((c.thetaPhiInvS n₀).range : Set ℂ_[p]) := |
| 871 | mem_iUnion.mp ((Subalgebra.coe_iSup_of_directed mono.directed_le).le (adjoin_le le_rfl ax_mem)) |
| 872 | filter_upwards [Filter.eventually_ge_atTop n₀] with n hn |
| 873 | obtain ⟨s, hs⟩ : ∃ s : c.S, (thetaPhiInv n s.val : ℂ_[p]) = a • (x : ℂ_[p]) := mono hn hn₀ |
| 874 | -- `x = t - (t - x)` is integral, so we may divide `a • x` by `a` inside `S`. |
| 875 | let x_int : OC := |
| 876 | t - ⟨(t : ℂ_[p]) - x, mem_valRingCp.mpr (x_near.trans (PadicComplex.norm_p_lt_one p)).le⟩ |
| 877 | have hx_int : (x_int : ℂ_[p]) = x := by simp [x_int] |
| 878 | obtain ⟨s', h_x_eq⟩ := |
| 879 | c.exists_thetaPhiInv_eq_of_smul_eq n ha (z := x_int) (by rw [hs, hx_int]) |
| 880 | rw [hx_int] at h_x_eq |
| 881 | -- So the value of `s'` is `x`, which is congruent to `t` modulo `p`. |
| 882 | have congr_p : ↑p ∣ t - thetaPhiInv n s'.val := by |
| 883 | rw [valRingCp.dvd_iff_norm_le, AddSubgroupClass.coe_sub, ← h_x_eq] |
| 884 | exact x_near.le |
| 885 | -- Modulo `p`, `thetaPhiInv N [y]` reads off `y.coeff N` (`mk_thetaPhiInv_eq_coeff`). |
| 886 | exact ⟨s', by simpa [t, mk_thetaPhiInv_eq_coeff] using mk_span_eq_iff_dvd_sub.mpr congr_p⟩ |
| 887 | |
| 888 | end Chart |
| 889 | |
| 890 | end ChartFixedPoints |
| 891 | |
| 892 | end New.Lift |
| 893 | |
| 894 | end |