module import Mathlib.Algebra.Module.Torsion.PrimaryComponent import Mathlib.RingTheory.PiTensorProduct public import Lib.PadicHodge.Kisin.Charts /-! # The ring S_B of a chart and extension of S-linear maps of A_inf to B^+ This file works in B^+ = `BPlus` = A_max[1/p], where A_max = `Amax` has image `amaxImage` in B^+. It defines the ring S_B of a chart, the elements of B^+ whose multiplication commutes with all `S`-linear maps of B^+ that keep `amaxImage`. It shows that every `S`-linear map of A_inf extends to an S_B-linear map of B^+ that keeps `amaxImage`. Most identities for the extensions are checked on A_inf by a density principle: an additive map of B^+ that keeps `amaxImage` and kills A_inf is zero (`New.Lift.Chart.eq_zero_of_map_ainfToBPlus_eq_zero`). The file ends with results on divisibility by `z` in B^+. ## Main definitions and results * `New.Lift.Chart.bicommutant`: the ring S_B of the elements of B^+ whose multiplication commutes with all S-linear maps B^+ → B^+ that keep the image of A_max. * `New.Lift.Chart.extendToBPlus`: an S-linear map of A_inf extends to an S_B-linear map of B^+ keeping the image of A_max. Notions from other files: * `New.Period.Amax`: Colmez's period ring A_max, the p-adic completion of A_inf[X]/(pX − ξ). * `New.Period.FrobGal`: The monoid ℕ × G_p; the pair (n, g) acts on A_inf as φ^n g. * `New.Lift.Chart.S`: the ring `S`, the image in A_inf of the chart's map Λ[[X]] → A_inf. * `New.Lift.Chart.E`: the image `E` in `S` of the series X^e A + p; it equals ξ times a unit. * `New.Lift.Chart.adicBasis`: a chosen (p, z)-adic topological basis of A_inf over `S`, whose coordinate at `New.Lift.Chart.oneIndex` is the identity on `S`. ## Relation to the literature Known; see `Lib.PadicHodge.Kisin.PeriodMatrixFrame` for sources. -/ @[expose] public section noncomputable section namespace New.Lift section ChartScalars open Period BPlus Amax Ideal IsScalarTower Algebra Witt Variety Filter NeZero variable {p : ℕ} [ThePrime p] (c : Chart) /-! ### Preliminaries on B^+ -/ /-- An element `y` of B^+ that is `p ^ n` times an element of `amaxImage` (the image of A_max) for every `n` is zero. -/ lemma eq_zero_of_p_pow_amaxImage {y : BPlus} (h : ∀ n : ℕ, ∃ w ∈ amaxImage, y = p ^ n * w) : y = 0 := by -- By the case `n = 0`, `y` comes from some `b` in `Amax`, which is `p`-adically separated. obtain ⟨_, ⟨b, rfl⟩, hy⟩ := h 0 rw [pow_zero, one_mul] at hy have h_dvd (n : ℕ) : (p : Amax) ^ n ∣ b - 0 := by obtain ⟨_, ⟨b', rfl⟩, hy'⟩ := h n have h_eq : b = (p : Amax) ^ n * b' := injective_Amax_BPlus (by simpa [hy] using hy') simp [h_eq] rw [hy, eq_of_forall_pow_dvd_sub (p : Amax) h_dvd, map_zero] /-- An additive map `G` of B^+ commutes with multiplication by `p ^ n`. -/ lemma map_p_pow_mul {F : Type*} [FunLike F BPlus BPlus] [AddMonoidHomClass F BPlus BPlus] (G : F) (n : ℕ) (y : BPlus) : G (p ^ n * y) = p ^ n * G y := by simpa [nsmul_eq_mul] using map_nsmul G (p ^ n) y /-- Each `m` in `FrobGal` (acting as `φ ^ n g`) keeps `amaxImage`, the image of A_max. -/ lemma smul_mem_amaxImage {m : FrobGal} : ∀ y ∈ amaxImage, m • y ∈ amaxImage := by rintro _ ⟨b, rfl⟩ exact ⟨m • b, (smul_algebraMap_eq_algebraMap_smul m b).symm⟩ namespace Chart /-- The structure ring homomorphism from A_inf to B^+. -/ abbrev ainfToBPlus : Ainf →+* BPlus := algebraMap Ainf BPlus /-- θ(z) divides p in O_C. -/ lemma theta_z_dvd_p : theta c.z ∣ p := by -- `z` divides `E - p`, and `θ E = 0`. grw [c.dvd_iff_coe_dvd.mp c.z_dvd_E_sub_p] simp [theta_E] /-- θ(z) is not zero, as it divides `p`. -/ lemma theta_z_ne_zero : theta c.z ≠ 0 := ne_zero_of_dvd_ne_zero (out : (p : OC) ≠ 0) c.theta_z_dvd_p /-- The ring S_B of the chart: the elements of `BPlus` whose multiplication commutes with every `c.S`-linear map of `BPlus` that keeps `amaxImage`, the image of A_max. -/ def bicommutant : Subalgebra c.S BPlus := Subalgebra.comap (lmul c.S BPlus) (Subalgebra.centralizer c.S {G : Module.End c.S BPlus | ∀ y ∈ amaxImage, G y ∈ amaxImage}) /-- An element `y` of B^+ lies in S_B = `c.bicommutant` if and only if multiplication by `y` commutes with every `c.S`-linear map `G` of B^+ that keeps `amaxImage`. -/ lemma mem_bicommutant_iff {y : BPlus} : y ∈ c.bicommutant ↔ ∀ G : BPlus →ₗ[c.S] BPlus, (∀ w ∈ amaxImage, G w ∈ amaxImage) → ∀ x : BPlus, G (y * x) = y * G x := forall₂_congr fun _ _ ↦ LinearMap.ext_iff @[simp] lemma ainfToBPlus_mem_bicommutant {c : Chart} (s : c.S) : ainfToBPlus s ∈ c.bicommutant := c.bicommutant.algebraMap_mem' s /-- A `c.S`-linear endomorphism `f` of `Ainf` preserves divisibility by `p ^ n` in `Amax`, since it preserves the ideal `(p, E) ^ n = (p, ξ) ^ n`. -/ private lemma p_pow_dvd_map_of_dvd (f : Ainf →ₗ[c.S] Ainf) {n : ℕ} {a : Ainf} (ha : (p : Amax) ^ n ∣ algebraMap Ainf Amax a) : (p : Amax) ^ n ∣ algebraMap Ainf Amax (f a) := by have h_mem_pow : a ∈ span {↑p, xi} ^ n → f a ∈ span {↑p, xi} ^ n := by simpa [span_singleton_eq_span_singleton.mpr c.associated_E_xi, span_insert, Ideal.map_pow, Ideal.map_sup, map_span] using (span {↑p, c.E} ^ n).smul_top_le_comap_smul_top f (x := a) exact p_pow_dvd_of_mem_pow (h_mem_pow (mem_span_pow_of_p_pow_dvd ha)) /-- Every `y ∈ Amax` is congruent modulo `p` to some `x ∈ Amax` for which `(x, z)` lies in the `p`-saturation of the graph of `f` (meaning `p ^ d * (x, z) = (a, f a)` for some `d` and `a ∈ Ainf`). -/ private lemma exists_graph_approx_mod_p (f : Ainf →ₗ[c.S] Ainf) (y : Amax) : ∃ x : Amax, (∃ (z : Amax) (d : ℕ) (a : Ainf), algebraMap Ainf Amax a = p ^ d * x ∧ algebraMap Ainf Amax (f a) = p ^ d * z) ∧ (p : Amax) ∣ x - y := by obtain ⟨d, a, w, hw⟩ : ∃ (d : ℕ) (a : Ainf) (w : Amax), algebraMap Ainf Amax a = p ^ d * (y - p ^ 1 * w) := y.exists_algebraMap_eq_p_pow_mul_sub 1 obtain ⟨z, hz⟩ : (p : Amax) ^ d ∣ algebraMap Ainf Amax (f a) := c.p_pow_dvd_map_of_dvd f ⟨y - p ^ 1 * w, hw⟩ exact ⟨y - p ^ 1 * w, ⟨z, d, a, hw, hz⟩, ⟨-w, by ring⟩⟩ /-- `p`-adic continuity on the `p`-saturation of the graph of `f`: if `p ^ d * (x, z) = (a, f a)` and `p ^ n ∣ x`, then `p ^ n ∣ z`. -/ private lemma p_pow_dvd_of_graph_p_pow_dvd (f : Ainf →ₗ[c.S] Ainf) {n d : ℕ} {x z : Amax} {a : Ainf} (hx : algebraMap Ainf Amax a = p ^ d * x) (hz : algebraMap Ainf Amax (f a) = p ^ d * z) (h_dvd_x : (p : Amax) ^ n ∣ x) : (p : Amax) ^ n ∣ z := by have h_dvd_a : (p : Amax) ^ (d + n) ∣ algebraMap Ainf Amax a := by rw [hx, pow_add] exact mul_dvd_mul_left _ h_dvd_x have h_dvd_fa : (p : Amax) ^ d * p ^ n ∣ p ^ d * z := by rw [← pow_add, ← hz] exact c.p_pow_dvd_map_of_dvd f h_dvd_a exact (mul_dvd_mul_iff_left (pow_ne_zero d (NeZero.ne (p : Amax)))).mp h_dvd_fa /-- Every `c.S`-linear endomorphism `f` of `Ainf` extends to a `c.S`-linear endomorphism `G₀` of `Amax` agreeing with `f` on `Ainf`, constructed by `p`-adic continuity on the `p`-saturation of the graph of `f`. -/ private lemma exists_extendToAmax (f : Ainf →ₗ[c.S] Ainf) : ∃ G₀ : Amax →ₗ[c.S] Amax, ∀ a : Ainf, G₀ (algebraMap Ainf Amax a) = algebraMap Ainf Amax (f a) := by let i : Ainf →ₗ[c.S] Amax := (toAlgHom c.S Ainf Amax).toLinearMap -- Form the `p`-saturation of the graph of `f`; by `exists_adic_extension` the second projection -- factors through the first, using density modulo `p` and `p`-adic continuity. let saturation : Submodule c.S (Amax × Amax) := (primaryComponent _ (span {↑p})).comap (i.prod (i ∘ₗ f)).range.mkQ have h_mem (x z : Amax) : (x, z) ∈ saturation ↔ ∃ (d : ℕ) (a : Ainf), algebraMap Ainf Amax a = p ^ d * x ∧ algebraMap Ainf Amax (f a) = p ^ d * z := by simp [saturation, i, primaryComponent_mem, ← Submodule.Quotient.mk_smul, smul_def (A := Amax), span_singleton_pow] have h_smul_top (n : ℕ) (y : Amax) : y ∈ (span {(p : c.S)} ^ n • ⊤ : Submodule c.S Amax) ↔ (p : Amax) ^ n ∣ y := by simp [span_singleton_pow, map_span, mem_span_singleton] obtain ⟨G₀, hG₀⟩ : ∃ G₀ : Amax →ₗ[c.S] Amax, ∀ q : saturation, G₀ q.val.1 = q.val.2 := by refine exists_adic_extension (span {↑p}) (LinearMap.fst c.S Amax Amax ∘ₗ saturation.subtype) (LinearMap.snd c.S Amax Amax ∘ₗ saturation.subtype) ?_ fun n q hq ↦ ?_ · rintro ⟨y⟩ obtain ⟨x, ⟨z, d, a, ha, hz⟩, hxy⟩ := c.exists_graph_approx_mod_p f y refine ⟨⟨(x, z), (h_mem x z).mpr ⟨d, a, ha, hz⟩⟩, (Submodule.Quotient.eq _).mpr ?_⟩ simpa using (h_smul_top 1 (x - y)).mpr (by simpa using hxy) · obtain ⟨d, a, ha, hz⟩ := (h_mem q.val.1 q.val.2).mp q.prop have h_dvd_x : (p : Amax) ^ n ∣ q.val.1 := (pow_dvd_pow _ (Nat.le_add_right n n)).trans ((h_smul_top (n + n) _).mp hq) exact (h_smul_top n _).mpr (c.p_pow_dvd_of_graph_p_pow_dvd f ha hz h_dvd_x) exact ⟨G₀, fun a ↦ hG₀ ⟨(algebraMap Ainf Amax a, algebraMap Ainf Amax (f a)), (h_mem _ _).mpr ⟨0, a, by simp, by simp⟩⟩⟩ /-- Every `c.S`-linear map `f` from A_inf to itself extends along `ainfToBPlus` to a `c.S`-linear map from B^+ to itself that keeps `amaxImage`, the image of A_max in B^+. Here `c.S` is the subring of A_inf that is the image of the chart's map Λ⟦X⟧ → A_inf, and `BPlus` is B^+ = A_max[1/p], with A_max the period ring `Amax`. -/ lemma exists_extendToBPlus (f : Ainf →ₗ[c.S] Ainf) : ∃ G : BPlus →ₗ[c.S] BPlus, (∀ a : Ainf, G (ainfToBPlus a) = ainfToBPlus (f a)) ∧ ∀ y ∈ amaxImage, G y ∈ amaxImage := by -- Extend `f` to `G₀ : Amax →ₗ[c.S] Amax` by `p`-adic continuity, then invert `p` to `BPlus`. obtain ⟨G₀, hG₀_ainf⟩ := c.exists_extendToAmax f let j : Amax →ₗ[c.S] BPlus := (toAlgHom c.S Amax BPlus).toLinearMap have h_away : IsLocalization.Away (algebraMap c.S Amax p) BPlus := by simpa using (inferInstance : IsLocalization.Away (p : Amax) BPlus) -- `hG x`: the extension sends `j x` to `j (G₀ x)`. have hG := IsLocalizedModule.map_apply (.powers ↑p) j j G₀ refine ⟨IsLocalizedModule.map (.powers ↑p) j j G₀, fun a ↦ ?_, ?_⟩ · -- On `Ainf` the extension is `G₀`, which is `f` there. exact (hG _).trans (congrArg j (hG₀_ainf a)) · -- It sends the image of `x` in `Amax` to the image of `G₀ x` (`hG x`), so it keeps -- `amaxImage`. rintro _ ⟨x, rfl⟩ exact ⟨G₀ x, (hG x).symm⟩ /-- For a `c.S`-linear map `f` of A_inf, a chosen `c.S`-linear extension of `f` to B^+ that keeps `amaxImage`; it is even linear over S_B = `c.bicommutant` (`New.Lift.Chart.extendToBPlus_mul`). -/ def extendToBPlus (f : Ainf →ₗ[c.S] Ainf) : BPlus →ₗ[c.S] BPlus := (c.exists_extendToBPlus f).choose /-- On the image of A_inf the extension of `f` is `f`. -/ lemma extendToBPlus_ainfToBPlus (f : Ainf →ₗ[c.S] Ainf) (a : Ainf) : c.extendToBPlus f (ainfToBPlus a) = ainfToBPlus (f a) := (c.exists_extendToBPlus f).choose_spec.left a lemma extendToBPlus_mem_amaxImage (f : Ainf →ₗ[c.S] Ainf) : ∀ y ∈ amaxImage, c.extendToBPlus f y ∈ amaxImage := (c.exists_extendToBPlus f).choose_spec.right /-- Let `f` be a `c.S`-linear endomorphism of A_inf, and let `c.extendToBPlus f` be its chosen `c.S`-linear extension to B^+ = A_max[1/p] that preserves the image of A_max. This extension is linear over S_B = `c.bicommutant` (the elements of B^+ whose multiplication commutes with all such maps): it commutes with multiplication by every `y` in S_B. -/ lemma extendToBPlus_mul {y : BPlus} (f : Ainf →ₗ[c.S] Ainf) (hy : y ∈ c.bicommutant) (x : BPlus) : c.extendToBPlus f (y * x) = y * c.extendToBPlus f x := -- Multiplication by `y` commutes with every map that keeps `amaxImage`, such as the extension. c.mem_bicommutant_iff.mp hy (c.extendToBPlus f) (c.extendToBPlus_mem_amaxImage f) x /-- For a chart and an index `i`, the extension to B^+ of the coordinate `c.adicBasis.coord i : Ainf → c.S` followed by the inclusion into A_inf, as a `c.S`-linear map B^+ → B^+. -/ abbrev extendedCoord (i : c.adicBasis.Index) : BPlus →ₗ[c.S] BPlus := c.extendToBPlus (Algebra.linearMap c.S Ainf ∘ₗ c.adicBasis.coord i) /-! ### The density principle and membership in S_B -/ /-- Density: an additive map `G` from B^+ to itself that keeps `amaxImage` (the image of A_max) and vanishes on the image of A_inf is zero at every `y`. -/ lemma eq_zero_of_map_ainfToBPlus_eq_zero {y : BPlus} (G : BPlus →+ BPlus) (hG_amax : ∀ y ∈ amaxImage, G y ∈ amaxImage) (hG_ainf : ∀ a : Ainf, G (ainfToBPlus a) = 0) : G y = 0 := by -- From `p ^ m * y = ainfToBPlus a + p ^ (m + n) * w` we get `G y = p ^ n * G w` for every `n`. refine eq_zero_of_p_pow_amaxImage fun n ↦ ?_ obtain ⟨m, a, w, hw, hy⟩ : ∃ (m : ℕ) (a : Ainf), ∃ w ∈ amaxImage, (p : BPlus) ^ m * y = ainfToBPlus a + (p : BPlus) ^ (m + n) * ainfToBPlus mu ^ 0 * w := y.exists_Ainf_approx n 0 refine ⟨G w, hG_amax w hw, ?_⟩ -- Apply `G` to `hy`: it kills `a` and commutes with powers of `p`; then cancel `p ^ m`. have hG_eq : p ^ m * G y = p ^ m * (p ^ n * G w) := by rw [← map_p_pow_mul, hy, map_add, hG_ainf, zero_add, pow_zero, mul_one, map_p_pow_mul, pow_add, mul_assoc] exact mul_left_cancel₀ (pow_ne_zero m isUnit_p.ne_zero) hG_eq /-- Let `m = (n, g)` in `FrobGal` act as `φ ^ n g`. If `m • f a` lies in `c.S` for every `a` in A_inf, then `m • c.extendToBPlus f y` lies in S_B = `c.bicommutant` for every `y` in B^+. -/ lemma smul_extendToBPlus_mem_bicommutant {m : FrobGal} {y : BPlus} {f : Ainf →ₗ[c.S] Ainf} (hf : ∀ a : Ainf, m • f a ∈ c.S) : m • c.extendToBPlus f y ∈ c.bicommutant := by -- Show multiplication by `m • c.extendToBPlus f y` commutes with `G` on `p ^ n * x ∈ amaxImage`, -- then cancel `p ^ n`. refine c.mem_bicommutant_iff.2 fun G hG x => ?_ obtain ⟨n, b, hb⟩ := x.exists_p_pow_mul_eq_amax let w : BPlus := (p : BPlus) ^ n * x have hw : w ∈ amaxImage := ⟨b, hb.symm⟩ let H : BPlus →+ BPlus := (G * .mulRight c.S w - .mulRight c.S (G w)).toAddMonoidHom.comp (m • c.extendToBPlus f) have h_pow : G (m • c.extendToBPlus f y * w) = m • c.extendToBPlus f y * G w := sub_eq_zero.1 <| eq_zero_of_map_ainfToBPlus_eq_zero H (by aesop (add simp [extendToBPlus_mem_amaxImage, smul_mem_amaxImage])) fun a => by simpa [H, extendToBPlus_ainfToBPlus, sub_eq_zero, smul_def] using G.map_smul (⟨m • f a, hf a⟩ : c.S) w simp only [w, mul_left_comm _ ((p : BPlus) ^ n), map_p_pow_mul] at h_pow exact mul_left_cancel₀ (pow_ne_zero n isUnit_p.ne_zero) h_pow /-- For each index `i`, take the coordinate `c.adicBasis.coord i : A_inf → c.S` of the chosen topological basis of A_inf over `c.S`, and extend it `c.S`-linearly to `c.extendedCoord i : B^+ → B^+`, where B^+ = A_max[1/p]. This extension takes all its values in S_B = `c.bicommutant`, the set of elements of B^+ whose multiplication commutes with every `c.S`-linear endomorphism of B^+ that preserves the image of A_max. -/ lemma extendedCoord_mem_bicommutant (i : c.adicBasis.Index) (y : BPlus) : c.extendedCoord i y ∈ c.bicommutant := by rw [← one_smul FrobGal (c.extendedCoord i y)] -- The coordinate takes its values in `c.S`. exact c.smul_extendToBPlus_mem_bicommutant fun a ↦ by simp /-- If `v ≠ 0` and `v * u` lie in S_B = `c.bicommutant`, so does `u`. -/ lemma mem_bicommutant_of_mul {u v : BPlus} (hv : v ∈ c.bicommutant) (hv_ne : v ≠ 0) (hvu : v * u ∈ c.bicommutant) : u ∈ c.bicommutant := by rw [mem_bicommutant_iff] at hv hvu ⊢ intro G hG x -- `v * G (u * x) = G (v * u * x) = v * u * G x`, and `v ≠ 0` cancels. have h_v : G (v * (u * x)) = v * G (u * x) := hv G hG (u * x) have h_vu : G (v * u * x) = v * u * G x := hvu G hG x apply mul_left_cancel₀ hv_ne rw [← h_v, ← mul_assoc, h_vu, mul_assoc] /-- A unit of `BPlus` in the bicommutant has its inverse there as well. -/ private lemma exists_bicommutant_mul_eq_one {v : BPlus} (hv : v ∈ c.bicommutant) (h_unit : IsUnit v) : ∃ u ∈ c.bicommutant, u * v = 1 := ⟨↑h_unit.unit⁻¹, c.mem_bicommutant_of_mul hv h_unit.ne_zero (h_unit.mul_val_inv.symm ▸ one_mem _), h_unit.val_inv_mul⟩ /-- The inverse of `p` in B^+ lies in S_B = `c.bicommutant`. -/ lemma exists_bicommutant_mul_p_eq_one : ∃ u ∈ c.bicommutant, u * p = 1 := c.exists_bicommutant_mul_eq_one (natCast_mem c.bicommutant p) isUnit_p /-! ### Coordinates, Frobenius and decompositions on S_B -/ /-- Let B^+ = A_max[1/p], and let S_B = `c.bicommutant` be the set of elements of B^+ whose multiplication commutes with every `c.S`-linear endomorphism of B^+ that preserves the image of A_max. The coordinate at `c.oneIndex` of the chosen topological basis of A_inf over `c.S` is the identity on `c.S`. Its `c.S`-linear extension `c.extendedCoord c.oneIndex` to B^+ fixes every `y` in S_B. -/ lemma extendedCoord_oneIndex_eq_self {y : BPlus} (hy : y ∈ c.bicommutant) : c.extendedCoord c.oneIndex y = y := by -- The extension is linear over S_B, and the coordinate of `1` is `1`. have h_one : c.adicBasis.coord c.oneIndex 1 = 1 := c.coord₀_coe 1 have h_ext_one : c.extendedCoord c.oneIndex 1 = 1 := by rw [← map_one ainfToBPlus, extendToBPlus_ainfToBPlus] simp [h_one] calc c.extendedCoord c.oneIndex y = y * c.extendedCoord c.oneIndex 1 := by simpa using c.extendToBPlus_mul (Algebra.linearMap c.S Ainf ∘ₗ c.adicBasis.coord c.oneIndex) hy 1 _ = y := by rw [h_ext_one, mul_one] /-- For `y` in B^+ and `m : ℕ`, for all large enough finite sets `F` of indices, `y - ∑ i ∈ F, b i • c.extendedCoord i y` is `p ^ m` times an element of `amaxImage`, the image of the period ring A_max in B^+. Here `b i = c.adicBasis.b i` is the topological basis of A_inf over `c.S`, and `c.extendedCoord i` extends its `i`-th coordinate to B^+. -/ lemma eventually_approx_sum_extendedCoord (y : BPlus) (m : ℕ) : ∀ᶠ F : Finset c.adicBasis.Index in Filter.atTop, ∃ w ∈ amaxImage, y - ∑ i ∈ F, c.adicBasis.b i • c.extendedCoord i y = p ^ m * w := by -- Write `p ^ k * y = a + p ^ (k + m) * w` with `a` in `Ainf`, and expand `a` in the basis. obtain ⟨k, a, w, hw, hy⟩ : ∃ (k : ℕ) (a : Ainf), ∃ w ∈ amaxImage, (p : BPlus) ^ k * y = ainfToBPlus a + (p : BPlus) ^ (k + m) * ainfToBPlus mu ^ 0 * w := y.exists_Ainf_approx m 0 -- The remainder lies in `(p, z) ^ N ⊆ (p, ξ) ^ (k + m)`, so `p ^ (k + m)` divides it in `Amax`. obtain ⟨N, hN⟩ : ∃ N : ℕ, c.maxIdeal ^ N • (⊤ : Submodule c.S Ainf) ≤ (span {(p : Ainf), xi} ^ (k + m)).restrictScalars c.S := c.exists_maxIdeal_pow_le (k + m) filter_upwards [c.adicBasis.eventually_sub_sum_mem a N] with F hF obtain ⟨b, hb⟩ : (p : Amax) ^ (k + m) ∣ algebraMap Ainf Amax (a - ∑ i ∈ F, c.adicBasis.coord i a • c.adicBasis.b i) := p_pow_dvd_of_mem_pow (hN hF) have h_sum_mem : ∑ i ∈ F, ainfToBPlus (c.adicBasis.b i) * c.extendedCoord i w ∈ amaxImage := sum_mem fun i _ ↦ mul_mem (amaxImage.algebraMap_mem (c.adicBasis.b i)) (c.extendToBPlus_mem_amaxImage _ w hw) refine ⟨w - ∑ i ∈ F, ainfToBPlus (c.adicBasis.b i) * c.extendedCoord i w + algebraMap Amax BPlus b, add_mem (sub_mem hw h_sum_mem) ⟨b, rfl⟩, ?_⟩ -- Apply `T = 1 - ∑ b i • extendedCoord i` to `hy`, insert `hb` for the part of `a`, cancel -- `p ^ k`. let T : BPlus →ₗ[c.S] BPlus := 1 - ∑ i ∈ F, c.adicBasis.b i • c.extendedCoord i have h_applied : T ((p : BPlus) ^ k * y) - algebraMap Amax BPlus ((p : Amax) ^ (k + m) * b) = T (ainfToBPlus a + (p : BPlus) ^ (k + m) * ainfToBPlus mu ^ 0 * w) - algebraMap Amax BPlus (algebraMap Ainf Amax (a - ∑ i ∈ F, c.adicBasis.coord i a • c.adicBasis.b i)) := by rw [hy, hb] -- `↓commutes`: without it the products `b i * coord i a` are left in two orders. simpa [T, ← mul_add, map_add, ← algebraMap_apply, ↓commutes (R := c.S), sub_eq_iff_eq_add, smul_def, map_p_pow_mul, pow_add, mul_assoc, extendToBPlus_ainfToBPlus, IsUnit.ne_zero] using h_applied /-- The Frobenius of B^+ maps S_B = `c.bicommutant` into itself. -/ lemma frobEnd_mem_bicommutant {y : BPlus} (hy : y ∈ c.bicommutant) : frobEnd y ∈ c.bicommutant := by -- `y = extendedCoord oneIndex y`, and `φ` maps the values of the coordinate, which lie in `S`, -- into `S`. rw [← c.extendedCoord_oneIndex_eq_self hy] exact c.smul_extendToBPlus_mem_bicommutant fun a ↦ (c.φ (c.adicBasis.coord c.oneIndex a)).property /-- The image of `φ E` in B^+ has an inverse in S_B = `c.bicommutant`. -/ lemma exists_bicommutant_mul_phi_E_eq_one : ∃ u ∈ c.bicommutant, u * ainfToBPlus (c.φ c.E) = 1 := by -- `φ E` is associated to `φ ξ`, hence to `p` in `Amax`, and `p` is a unit of `BPlus`. have h_assoc : Associated (p : Amax) (algebraMap Ainf Amax (frobEnd c.E.val)) := associated_p_frobEnd_xi.trans ((c.associated_E_xi.map frobEnd).map (algebraMap Ainf Amax)).symm have h_unit : IsUnit (ainfToBPlus (c.φ c.E)) := by -- `ainfToBPlus` is the composite of the maps `Ainf → Amax → BPlus`. change IsUnit (algebraMap Amax BPlus (algebraMap Ainf Amax (frobEnd c.E.val))) exact (h_assoc.map (algebraMap Amax BPlus)).isUnit (by rw [map_natCast]; exact isUnit_p) exact c.exists_bicommutant_mul_eq_one (ainfToBPlus_mem_bicommutant (c.φ c.E)) h_unit /-- Let `ν` in `c.S` have `ξ ∈ (p, ν)` in A_inf, and let `b` be in A_max. For every `M`, the extended coordinate at `c.oneIndex` (the one that is the identity on `c.S`) satisfies `p ^ M * c.extendedCoord c.oneIndex b = s + ν ^ M * w` with `s` in `c.S` and `w` in S_B = `c.bicommutant`. -/ lemma exists_pow_mul_extendedCoord_eq_add (ν : c.S) (hν : ∃ b : Ainf, ν.val ∣ xi - p * b) (b : Amax) (M : ℕ) : ∃ s : c.S, ∃ w ∈ c.bicommutant, p ^ M * c.extendedCoord c.oneIndex (algebraMap Amax BPlus b) = ainfToBPlus s + ainfToBPlus ν ^ M * w := by -- Apply `extendedCoord oneIndex` to `p ^ M * b = a + ν ^ M * x`; it is `S`-linear and `ν ∈ S`. obtain ⟨a, x, hb⟩ : ∃ (a : Ainf) (x : Amax), (p : Amax) ^ M * b = algebraMap Ainf Amax a + algebraMap Ainf Amax ν ^ M * x := exists_p_pow_mul_eq_add hν M b refine ⟨c.adicBasis.coord c.oneIndex a, c.extendedCoord c.oneIndex (algebraMap Amax BPlus x), c.extendedCoord_mem_bicommutant c.oneIndex (algebraMap Amax BPlus x), ?_⟩ -- The image of `hb` in `BPlus`; the coordinate is linear over `c.S` and fixes `ν ^ M`. have h_image : (p : BPlus) ^ M * algebraMap Amax BPlus b = ainfToBPlus a + ainfToBPlus ν ^ M * algebraMap Amax BPlus x := by simpa [← algebraMap_apply] using congrArg (algebraMap Amax BPlus) hb rw [← map_p_pow_mul, h_image, map_add, extendToBPlus_ainfToBPlus, c.extendToBPlus_mul _ (pow_mem (ainfToBPlus_mem_bicommutant ν) M)] -- `algebraMap c.S Ainf s` is the inclusion `↑s`. rfl /-- For every `y` in S_B = `c.bicommutant` and all large enough `m`, there are `w` in the ring `WittFq c.f` of constants of the chart and `x` in S_B with `p ^ m * y = w + z * x`. -/ lemma eventually_exists_pow_mul_eq_add_z_mul {y : BPlus} (hy : y ∈ c.bicommutant) : ∀ᶠ m : ℕ in Filter.atTop, ∃ w : WittFq c.f, ∃ x ∈ c.bicommutant, p ^ m * y = ainfToBPlus (algebraMap (WittFq c.f) Ainf w) + ainfToBPlus c.z * x := by -- Write `p ^ k * y = b ∈ Amax`, apply `exists_pow_mul_extendedCoord_eq_add` to `p ^ n * b`, -- and split the constant off `s`. obtain ⟨k, b, (hb : (p : BPlus) ^ k * y = algebraMap Amax BPlus b)⟩ := y.exists_p_pow_mul_eq_amax filter_upwards [Ioi_mem_atTop k] with m hm obtain ⟨n, rfl⟩ := Nat.le.dest hm obtain ⟨s, x, hx, h_dec⟩ := c.exists_pow_mul_extendedCoord_eq_add c.z c.exists_z_dvd_xi_sub_p_mul (p ^ n * b) 1 obtain ⟨w, r, hr⟩ := c.exists_eq_const_add_z_mul s refine ⟨w, ainfToBPlus r + x, add_mem (ainfToBPlus_mem_bicommutant r) hx, ?_⟩ rw [map_mul, map_pow, map_natCast, ← hb, map_p_pow_mul, map_p_pow_mul, c.extendedCoord_oneIndex_eq_self hy] at h_dec have h_pow : (p : BPlus) ^ (k + 1 + n) * y = p ^ 1 * (p ^ n * (p ^ k * y)) := by ring simpa [hr, mul_add, add_assoc] using h_pow.trans h_dec /-! ### Divisibility by z -/ /-- If `g` in G_p fixes the constants `WittFq c.f` pointwise and `y` is in S_B = `c.bicommutant`, then `z` divides `g • y - y` in B^+. -/ lemma z_dvd_sub {y : BPlus} {g : Gp p} (hg : FixesLambda c.f g) (hy : y ∈ c.bicommutant) : ainfToBPlus c.z ∣ g • y - y := by -- In `p ^ k * y = w + z * x` the constant `w` is fixed by `g`, and `z` divides `g • z`; -- the unit `p ^ k` cancels. obtain ⟨k, w, x, -, hk⟩ : ∃ (k : ℕ) (w : WittFq c.f), ∃ x ∈ c.bicommutant, (p : BPlus) ^ k * y = ainfToBPlus (algebraMap (WittFq c.f) Ainf w) + ainfToBPlus c.z * x := (c.eventually_exists_pow_mul_eq_add_z_mul hy).exists obtain ⟨u, hu⟩ : c.z.val ∣ g • c.z.val := by change c.z.val ∣ ((1, g) : FrobGal) • c.z.val rw [z_eq_teichmuller, smul_teichmuller] simp [map_dvd, PreTilt.untilt_dvd_untilt_iff.mp, valRingCp.dvd_iff_norm_le, untilt_frobGal_smul] have h_dvd : ainfToBPlus c.z ∣ g • ((p : BPlus) ^ k * y) - (p : BPlus) ^ k * y := by rw [hk] simp [hg, hu, mul_assoc, ← mul_sub, -isUnit_map_iff] simpa [← mul_sub, IsUnit.pow, -isUnit_map_iff] using h_dvd /-- An element of B^+ that is divisible by every power of z is zero. -/ lemma eq_zero_of_z_pow_dvd {y : BPlus} (h_dvd : ∀ n : ℕ, ainfToBPlus c.z ^ n ∣ y) : y = 0 := by -- With `E * u = ξ` and `E = z ^ e * A + p`, `A` a unit, the element `ξ - p * u` is `z ^ e` times -- a unit; so all its powers divide `y`. obtain ⟨u, hu⟩ : ∃ u : Ainfˣ, c.seriesMap (PowerSeries.X ^ c.e * c.unitSeries.val + p.cast) * u = xi := c.associated_xi refine eq_zero_of_forall_pow_dvd u ?_ simp_all (maxDischargeDepth := 4) [← hu, add_mul, ← pow_mul, mul_pow, IsUnit.map, z, IsUnit.pow, -isUnit_map_iff] /-- A_inf ∩ y B^+[1/E] = y A_inf, where `E = c.E` is ξ times a unit. Let `y` in A_inf not be divisible by `p`, let ξ lie in the ideal `(p, y)`, and let `θ y ≠ 0`. If `a` is in A_inf and `y` divides `E ^ k * a` in B^+, then `y` divides `a` in A_inf. -/ lemma dvd_of_dvd_E_pow_mul {y a : Ainf} {k : ℕ} (hy_p : ¬(p : Ainf) ∣ y) (hy_xi : ∃ b : Ainf, y ∣ xi - p * b) (hy_theta : theta y ≠ 0) (h_dvd : ainfToBPlus y ∣ ainfToBPlus (c.E ^ k * a)) : y ∣ a := by have h_bplus : ainfToBPlus y ∣ ainfToBPlus (xi ^ k * a) := by grw [c.associated_E_xi.dvd] at h_dvd exact h_dvd have h_ainf : y ∣ xi ^ k * a := dvd_of_algebraMap_BPlus_dvd hy_p hy_xi h_bplus -- The prime ξ does not divide `y`, since `θ y ≠ 0`. have hxi_y : ¬xi ∣ y := mt theta_eq_zero_iff_xi_dvd.mpr hy_theta exact dvd_of_dvd_prime_pow_mul Ainf.prime_xi hxi_y h_ainf /-- Let `c` be a chart, `z = c.z` the image of `X` in A_inf and `E = c.E` the image of `X ^ e * A + p`, which is ξ times a unit, and let `a` be in A_inf. If the image of `z` divides the image of `E ^ k * a` in B^+, then `z` divides `a` in A_inf. -/ lemma z_dvd_of_dvd_E_pow_mul {k : ℕ} {a : Ainf} (h : ainfToBPlus c.z ∣ ainfToBPlus (c.E ^ k * a)) : c.z.val ∣ a := c.dvd_of_dvd_E_pow_mul c.not_p_dvd_z c.exists_z_dvd_xi_sub_p_mul c.theta_z_ne_zero h end Chart end ChartScalars end New.Lift end