Lean source
Lib.PadicHodge.PeriodRings.ThetaKernel
Its 50 declarations
toWittResiduedef, lines 18–19Witt.lemma, lines 23–24p_dvd_iff Ainf.lemma, lines 27–28isUnit_iff_isUnit_constantCoeff Witt.lemma, lines 30–33exists_map_sub_mul_map_eq Witt.lemma, lines 40–42artin_schreier_witt Witt.lemma, lines 44–45pow_dvd_sub_iff_coeff_eq Witt.lemma, lines 47–49mem_span_pair_iff Witt.lemma, lines 53–57dvd_of_mem_of_constantCoeff_dvd frobEnd_eq_frobeniuslemma, line 61smul_teichmullerlemma, line 63frobEnd_teichmullerlemma, lines 65–66untilt_frobGal_smullemma, lines 68–69theta_smullemma, lines 71–72constantCoeff_frobEndlemma, line 74associated_smul_of_dvdlemma, lines 79–80(instance)instance, lines 86–87theta_eq_zero_iff_dvd_of_untilt_dvdlemma, lines 91–94(instance)instance, line 96isUnit_WittCFlat_of_not_p_dvdlemma, lines 98–99exists_algebraMap_eq_of_frobenius_eqlemma, lines 103–106frobEnd_bijectivelemma, lines 108–109theta_surjectivelemma, line 111frobEnd_taulemma, line 113theta_tau_ne_zerolemma, lines 115–116theta_iterate_frobEnd_mulemma, lines 118–119theta_iterate_frobEnd_xilemma, lines 121–122theta_xilemma, lines 124–125toWittResidue_taulemma, lines 127–128associated_p_xi_sub_teichmullerlemma, lines 130–133untilt_constantCoeff_xi_dvd_plemma, lines 137–138toWittResidue_smul_of_isFroblemma, lines 142–148not_p_dvd_taulemma, line 150constantCoeff_mu_ne_zerolemma, lines 154–155theta_eq_zero_iff_xi_dvdlemma, lines 159–160not_p_dvd_xilemma, line 164OFlat.lemma, lines 166–167exists_dvd_pow OFlat.lemma, lines 171–182isHausdorff_and_shiftDiff_surjective mu_dvd_of_theta_frobEndlemma, lines 185–196tau_dvd_of_theta_frobEndlemma, lines 200–201Ainf.lemma, line 204prime_p Ainf.lemma, lines 206–207mem_radical_of_not_isUnit Ainf.lemma, lines 209–210exists_frobEnd_sub_xi_pow_mul_eq dvd_of_approxlemma, lines 214–221Ainf.lemma, lines 223–227shiftDiff_surjective Ainf.lemma, line 230prime_xi associated_smul_taulemma, lines 232–233smul_xi_mem_spanlemma, lines 235–236Ainf.lemma, lines 240–246isAdicComplete_span_pair Ainf.lemma, lines 248–249isAdicComplete_span_singleton (instance)instance, line 251
import Lib.General.Algebra.SuccessiveApproximport Lib.PadicHodge.PeriodRings.Ainf/-! Part of: Fontaine's period rings and the fundamental exact sequence (known result; seeLib.PadicHodge.PeriodRings.BdR).This file: A_inf: kernel of θ, divisibility by μ and τ, φ-equations, completeness. -/attribute [local instance high] RingHomClass.toMonoidHomClass SubringClass.toSubsemiringClassattribute [-simp] pow_eq_one_iff IsUnit.dvd map_eq_zero map_smulopen WittVector IsLocalRing MulSemiringAction ZMod Setvariable {p} [ThePrime p]/-- The ring homomorphism A_inf = W(O^♭) → W(k), k the residue field of O^♭, that reduces eachWitt coordinate. -/noncomputable def toWittResidue : Ainf →ₐ[ℤ_[p]] WittVector p (ResidueField OFlat) := ⟨map (residue _), wittVector_map_algebraMap _⟩variable {k} [CommRing k] [CharP k p] [PerfectRing k p] {a c : WittVector p k}lemma Witt.p_dvd_iff : ↑p ∣ a ↔ constantCoeff a = 0 := by simp [← Ideal.mem_span_singleton, ← ker_constantCoeff]omit [PerfectRing k p] inlemma Ainf.isUnit_iff_isUnit_constantCoeff : IsUnit a ↔ IsUnit (constantCoeff a) := ⟨.map _, (⟨mkUnit ·.unit_spec.symm, rfl⟩)⟩lemma Witt.exists_map_sub_mul_map_eq (F G : k →+* k) s (h : (F - constantCoeff s • ⇑G).Surjective) : ∃ b, map F b - s * map G b = a := mem_range_of_approx ((map F).toAddMonoidHom - .comp (.mulLeft s) (map G).toAddMonoidHom) (map_natCast_smul _ (type_of% s) (type_of% s) p) id (·.1 0 |> h |>.imp' (teichmuller p) (by simp_all [← sub_eq_iff_eq_add', ← dvd_def, p_dvd_iff, map_sub, map_mul])) aopen Ideal Witt Function RingHom PadicComplex Pi OFlat NeZero Fact SModEq IsUltrametricDist/-- Artin–Schreier–Witt equations: if k is a non-zero perfect, absolutely integrally closed ringof characteristic p, then for all a, s in W(k) the equation φ(y) − sy = a has a solution yin W(k), φ the Frobenius. -/lemma Witt.artin_schreier_witt [Nontrivial k] [h : IsAIC k] s a : ∃ y : WittVector p k, frobenius y - s * y = a := frobenius_eq_map_frobenius p (R := k) ▸ exists_map_sub_mul_map_eq _ 1 s (h.exists_pow_sub_mul_eq p _)lemma Witt.pow_dvd_sub_iff_coeff_eq {m} : p.cast ^ m ∣ a - c ↔ ∀ i < m, a.1 i = c.1 i := by rw [ ← mem_span_singleton, mem_span_p_pow_iff_le_coeff_eq_zero, le_coeff_eq_iff_le_sub_coeff_eq_zero]lemma Witt.mem_span_pair_iff : a ∈ span {↑p, c} ↔ constantCoeff c ∣ constantCoeff a := by simp [span_insert, ← ker_constantCoeff, sup_comm, mem_span_singleton, ← comap_map_of_surjective', constantCoeff_surjective]/-- Let I be an ideal of W(k), k perfect of characteristic p, such that px ∈ I implies x ∈ I. Ifc ∈ I and its zeroth Witt coordinate divides that of every element of I, then c generates I. -/lemma Witt.dvd_of_mem_of_constantCoeff_dvd {I : Ideal _} (hc : c ∈ I) (hp : ∀ x, p.cast * x ∈ I → x ∈ I) (h : ∀ a ∈ I, constantCoeff c ∣ constantCoeff a) : ∀ a ∈ I, c ∣ a := by simpa [eq_comm] using! (mem_range_of_approx (.mulLeft c) (mul_smul_comm (p : type_of% c) c) I.subtype fun ⟨x, k⟩ ↦ have ⟨a, b, _⟩ := mem_span_pair.1 (mem_span_pair_iff.2 (h x k)) ⟨b, ⟨a, by grind [mul_mem_left, add_mem_cancel_right]⟩, by simp; grind⟩)variable (g : Gp p) (m : FrobGal) (t : OFlat) (a : Ainf)lemma frobEnd_eq_frobenius : frobEnd a = frobenius a := by ext; simpa using! frobEnd_apply _lemma smul_teichmuller : m • teichmuller p t = teichmuller p (m • t) := map_teichmuller ..@[simp] lemma frobEnd_teichmuller : frobEnd (teichmuller p t) = teichmuller p t ^ p := by erw [map_teichmuller, frobEnd_apply, map_pow]lemma untilt_frobGal_smul : (m • t).untilt = (m.2 • t.untilt) ^ p ^ m.1.toAdd := by erw [map_pow]; simp@[simp] lemma theta_smul : theta (g • a) = g • theta a := (fontaineTheta_map_tiltMap (toRingHom ..) a).subst (by congr with; apply pow_one)lemma constantCoeff_frobEnd : constantCoeff (frobEnd a) = constantCoeff a ^ p := frobEnd_apply _variable {c a δ y : Ainf}open Ainf Multiplicativelemma associated_smul_of_dvd (h : ∀ g : Gp p, a ∣ g • a) : Associated (g • a) a := associated_of_dvd_dvd (by simpa using map_dvd (toRingHom _ _ g) (h g⁻¹)) (h g)attribute [local simp] p_dvd_iff epsTilt tau constantCoeff_frobEnd algebraMap_toAlgebra Ainf.isUnit_iff_isUnit_constantCoeff mem_span_pair_iff toWittResidue map_sub associated_smul_of_dvd mu epsRoot faithfulSMul_iff_algebraMap_injectiveinstance : FaithfulSMul ℤ_[p] (WittVector p k) := by simpa using map_injective _ (castHom_injective k)/-- Let c ∈ A_inf with θ(c) = 0, and let c₀ ∈ O^♭ be its reduction modulo p. If c₀^♯ divides pin the integers of C_p, then c generates the kernel of θ. -/lemma theta_eq_zero_iff_dvd_of_untilt_dvd (h : theta c = 0) (h' : (constantCoeff c).untilt ∣ p) : theta a = 0 ↔ c ∣ a := ⟨dvd_of_mem_of_constantCoeff_dvd (mem_ker.2 h) (by simp [ne]) (fun _ _ ↦ untilt_dvd_iff.1 (h'.trans (by simp_all [ ← Quotient.eq_zero_iff_dvd, ← mk_fontaineTheta]))) a, by simp_all [dvd_def]⟩instance : FaithfulSMul Ainf WittCFlat := by simpa using map_injective _ (by aesop_cat)lemma isUnit_WittCFlat_of_not_p_dvd (h : ¬↑p ∣ a) : IsUnit (algebraMap _ WittCFlat a) := by simp_all [WittCFlat]/-- Let k be a domain of characteristic p. Every p-typical Witt vector a in W(k) fixed by the Wittvector Frobenius is the image of some c in ℤ_p under the structure map ℤ_p → W(k). -/lemma exists_algebraMap_eq_of_frobenius_eq {k} [CommRing k] [IsDomain k] [CharP k p] (a : WittVector p k) (h : frobenius a = a) : ∃ c, algebraMap ℤ_[p] _ c = a := .imp' (equiv p ⟨·⟩) (by aesop) (Classical.skolem.1 ((GaloisField.splits_zmod_X_pow_sub_X p).mem_range_of_isRoot (i := castHom _ k) (FiniteField.X_pow_card_sub_X_ne_zero _ out) <| by simpa using congr(coeff $h ·)))lemma frobEnd_bijective : Bijective (frobEnd : Ainf → _) := funext frobEnd_eq_frobenius ▸ frobenius_bijective ..lemma theta_surjective : Surjective theta := fontaineTheta_surjective_of_isAIC@[simp] lemma frobEnd_tau : frobEnd tau = mu := by simp@[simp] lemma theta_tau_ne_zero : theta tau ≠ 0 := by simp [(isPrimitiveRoot_untilt_epsPow _).ne_one, ne, elim]@[simp] lemma theta_iterate_frobEnd_mu j : theta (frobEnd^[j] mu) = 0 := by induction j <;> simp_all [-epsTilt]lemma theta_iterate_frobEnd_xi j : theta (frobEnd^[j + 1] xi) = p := by have := theta_iterate_frobEnd_mu j; simp_all [← coe_pow, xi]@[simp] lemma theta_xi : theta xi = 0 := by simpa [-tau, ↓← xi_mul_tau] using theta_iterate_frobEnd_mu 0lemma toWittResidue_tau : toWittResidue tau = 0 := (by simp_all [← isUnit_map_iff (residue _)] : ¬IsUnit tau → _) (by simpa [-tau, -epsTilt] using ·.map (theta.comp frobEnd))lemma associated_p_xi_sub_teichmuller : Associated ↑p (xi - teichmuller p (constantCoeff xi)) := Dvd.elim (by simp) fun u e ↦ ⟨IsUnit.unit (by have := toWittResidue_tau; apply_fun toWittResidue at e; simp_all [← map_coeff, p_nonzero, xi, CharP.cast_eq_zero, ← isUnit_map_iff (residue _)]), e.symm⟩attribute [local simp] mul_assoc mul_pow isUnit_iff_dvd_onelemma untilt_constantCoeff_xi_dvd_p : xi.constantCoeff.untilt ∣ p := by simpa using (associated_p_xi_sub_teichmuller.map theta).dvd'variable {t g}lemma toWittResidue_smul_of_isFrob {m} (h : IsFrob (intQpBar p) (p ^ m) g⁻¹) a : toWittResidue ((ofAdd m, g) • a) = toWittResidue a := .symm (ext fun n ↦ sub_mem.2 fun u ↦ absurd (@(g • (a.1 n).untilt).1.induction_on _ _ _ (isClosed_imp (isOpen_closedBall 0 (ne 1)) ((isClosed_ball 0 1).preimage (.fun_sub (continuous_const_smul g⁻¹) (continuous_pow _)))) (by simpa [↓smul_coe_Cp, coe_eq, ← map_pow, ← map_sub] using! h.2) (by simp [← mem_OC])) (by simpa [untilt_frobGal_smul, OC.dvd_iff_norm_le] using (isUnit_iff_isUnit_constantCoeff.2 ((map_sub _ (teichmuller p _) (teichmuller p _)).symm.subst u)).map theta))lemma not_p_dvd_tau : ¬↑p ∣ tau := theta_tau_ne_zero ∘ by aesopattribute [-simp] constantCoeff_apply tau mulemma constantCoeff_mu_ne_zero : constantCoeff mu ≠ 0 := by simpa [← frobEnd_tau, ne] using not_p_dvd_tau/-- For a in A_inf, θ(a) = 0 if and only if ξ divides a; that is, the kernel of Fontaine's map θis generated by ξ. -/lemma theta_eq_zero_iff_xi_dvd : theta a = 0 ↔ xi ∣ a := theta_eq_zero_iff_dvd_of_untilt_dvd theta_xi untilt_constantCoeff_xi_dvd_pattribute [local simp ←] theta_eq_zero_iff_xi_dvd xi_mul_tau mk_fontaineTheta@[simp] lemma not_p_dvd_xi : ¬↑p ∣ xi := constantCoeff_mu_ne_zero ∘ by aesoplemma OFlat.exists_dvd_pow {u} (h : ¬IsUnit u) (k : t ≠ 0) : ∃ n, t ∣ u ^ n := by simp_all [OFlat, ← zero_dvd_iff, ← untilt_dvd_iff, OC.exists_dvd_pow, ← theta_teichmuller]/-- If t in O^♭ is not a unit, then O^♭ is t-adically separated, and the map (x_j) ↦ (x_j − tx_{j+1}) on sequences in O^♭ is surjective. -/lemma OFlat.isHausdorff_and_shiftDiff_surjective (h : ¬IsUnit t) : IsHausdorff (span {t}) OFlat ∧ Surjective (shiftDiff OFlat t) := by choose N H using fun k ↦ (exists_dvd_pow h (pow_ne_zero (p ^ k) constantCoeff_mu_ne_zero)).imp fun _ ↦ (by simpa [OFlat, ← iterate_frobenius, PreTilt.coeff_iterate_frobenius', constantCoeff_apply, id theta_xi] using map_dvd (PreTilt.coeff k) ·) use ⟨fun x e ↦ Perfection.ext fun k ↦ by simpa [H] using! map_dvd (PreTilt.coeff k) (smodEq_span_pow_iff_dvd.1 (e (N k)))⟩, fun b ↦ ?_ choose u hu U using fun k ↦ ((Module.End.isUnit_iff (1 - t.coeff k • LinearMap.funLeft (ModP OC p) _ .succ)).1 (IsNilpotent.isUnit_one_sub ⟨N k, by simp [smul_pow, H]⟩)).existsUnique (b · |>.coeff k) exact ⟨(⟨_, fun k ↦ congrFun (U k _ (by simpa [funext_iff, sub_pow_char] using congr($(hu k.succ) ^ p))) ·⟩), funext fun n ↦ Perfection.ext (congr($(hu ·) n))⟩/-- If a ∈ A_inf satisfies θ(φ^j a) = 0 for all j ≥ 0, then μ divides a in A_inf. -/lemma mu_dvd_of_theta_frobEnd (h : ∀ j, theta (frobEnd^[j] a) = 0) : mu ∣ a := by apply dvd_of_mem_of_constantCoeff_dvd (I := ⨅ j, ker (theta.comp (frobEnd ^ j))) <;> simp [ne p, h, iterate_fixed, -xi_mul_tau] by_contra! ⟨a, h, this⟩; choose c e using (ValuationRing.dvd_total ..).resolve_left this refine constantCoeff_mu_ne_zero ((c.isHausdorff_and_shiftDiff_surjective (by aesop)).1.1 _ fun n ↦ ?_) grw [smodEq_span_pow_iff_dvd, @n.lt_pow_self p out]; clear this induction' n with _ ih generalizing a c; aesop obtain ⟨b, rfl⟩ := theta_eq_zero_iff_xi_dvd.1 (h 0) exact pow_mul' c .. ▸ ih (frobEnd b) (by simpa [-iterate_succ, theta_iterate_frobEnd_xi, ne] using! h ·.succ) _ (frobEnd_tau ▸ by simp_all [← p_dvd_iff, -frobEnd_tau])/-- If a in A_inf satisfies θ(φ^j a) = 0 for all j ≥ 1, then τ = [ε^{1/p}] − 1 divides a inA_inf. -/lemma tau_dvd_of_theta_frobEnd (h : ∀ j, theta (frobEnd^[j + 1] a) = 0) : tau ∣ a := (map_dvd_iff (MulEquiv.ofBijective _ frobEnd_bijective)).1 (frobEnd_tau ▸ mu_dvd_of_theta_frobEnd h)/-- The prime number p is a prime element of the ring A_inf = W(O^♭). -/lemma Ainf.prime_p : Prime (p : Ainf) := by simp [Prime, p_nonzero]lemma Ainf.mem_radical_of_not_isUnit (h : ¬IsUnit a) (hδ : ¬↑p ∣ δ) : a ∈ radical (span {↑p, δ}) := by simp_all [radical, exists_dvd_pow, ↓isUnit_iff_isUnit_constantCoeff]lemma Ainf.exists_frobEnd_sub_xi_pow_mul_eq n x : ∃ c, frobEnd c - xi ^ n * c = x := by simp [frobEnd_eq_frobenius, artin_schreier_witt, isAIC]/-- Let a, c be non-units of A_inf and δ, y ∈ A_inf with δ not divisible by p. If for every mthere is x with y − δx ∈ (a, c)^m, then δ divides y. -/lemma dvd_of_approx (ha : ¬IsUnit a) (hc : ¬IsUnit c) (hδ : ¬↑p ∣ δ) (h : ∀ m, ∃ x, y - δ * x ∈ span {a, c} ^ m) : δ ∣ y := dvd_of_mem_of_constantCoeff_dvd (I := ⨅ m, span {↑(p ^ m), δ}) (by aesop) (by simpa [mem_span_insert', mem_span_singleton] using fun _ h m ↦ (h m.succ).imp fun _ _ ↦ (prime_p.left_dvd_or_dvd_right_of_dvd_mul (by grind)).resolve_left hδ) (fun _ ↦ (by simpa using mem_iInf.1 · 1)) y (mem_iInf.2 fun m ↦ (Submodule.sub_mem_iff_left _ (mul_mem_right _ _ (by bound))).1 ((exists_pow_le_of_le_radical_of_fg (span_le.2 fun _ _ ↦ radical_le_radical_iff.2 (span_le.2 (pair_subset ⟨m, by bound⟩ ⟨1, by bound⟩)) (mem_radical_of_not_isUnit (by grind) hδ)) ⟨{a, c}, by simp⟩).choose_spec (h _).choose_spec))lemma Ainf.shiftDiff_surjective (h : ¬IsUnit a) : Surjective (shiftDiff Ainf a) := fun b ↦ (@exists_map_sub_mul_map_eq p _ _ _ _ ⟨(bijective_frobenius ..).comp_left⟩ ⟨swap (b · |>.1)⟩ 1 (.pi (evalRingHom _ ·.succ)) (algebraMap _ _ a) (isHausdorff_and_shiftDiff_surjective (h ∘ isUnit_iff_isUnit_constantCoeff.2)).2).imp' _ fun _ e ↦ funext (by simpa using! congr(($e).map <| evalRingHom _ ·))/-- The element ξ, the sum of [ε^{1/p}]^i for 0 ≤ i < p, is a prime element of the ring A_inf. -/lemma Ainf.prime_xi : Prime xi := ⟨constantCoeff_mu_ne_zero ∘ by aesop, by simp⟩lemma associated_smul_tau : Associated (g • tau) tau := by simp [tau_dvd_of_theta_frobEnd, ← Commute.iterate_right (smul_frobEnd _) .., -xi_mul_tau]lemma smul_xi_mem_span : m • xi ∈ span {↑p, xi} := mem_span_pair_iff.2 ((map_dvd _ (by simp : xi ∣ m.2 • xi)).trans (pow_dvd_pow _ one_le))/-- If a and c are non-units of A_inf, then A_inf is complete and separated for the adictopology of the ideal (a, c). -/lemma Ainf.isAdicComplete_span_pair (h : ¬IsUnit a) (k : ¬IsUnit c) : IsAdicComplete (span {a, c}) Ainf := { isPrecomplete_of_shiftDiff_surjective (shiftDiff_surjective h) (shiftDiff_surjective k) with haus' x e := by_contra (by choose n y _ _ using exists_eq_pow_p_mul x · have := dvd_of_approx h k (prime_p.not_dvd_mul not_p_dvd_xi (by simpa)) (⟨0, by simpa [zero] using e ·⟩) simp_all [mul_dvd_mul_iff_right]) }lemma Ainf.isAdicComplete_span_singleton (h : ¬IsUnit a) : IsAdicComplete (span {a}) Ainf := by simpa using isAdicComplete_span_pair h hinstance : IsAdicComplete (span {↑p, xi}) Ainf := by simp [isAdicComplete_span_pair]