Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import Mathlib |
| 2 | |
| 3 | /-! # Period Ring -/ |
| 4 | |
| 5 | namespace OAI |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace NumberTheory.PadicHodge.PeriodInvariants.PeriodRing |
| 10 | |
| 11 | /-! |
| 12 | # Concrete period-ring foundations for PeriodInvariants |
| 13 | |
| 14 | The coefficient ring in this file is the actual valuation ring of `ℂ_p`. |
| 15 | Its completeness and the domain property of its tilt are proved here, rather |
| 16 | than included as assumptions of a comparison interface. |
| 17 | |
| 18 | The divided-power completion and cyclotomic logarithm follow the construction |
| 19 | in Brinon--Conrad, *CMI notes on p-adic Hodge theory*, §9.1: |
| 20 | https://math.stanford.edu/~conrad/papers/notes.pdf |
| 21 | |
| 22 | The definitions below do not yet establish nontriviality of `Bcris`, its fixed |
| 23 | scalars, an action of `G_K` on `Bcris`, or the geometric comparison theorem. |
| 24 | -/ |
| 25 | |
| 26 | open Valuation _root_.Topology Filter |
| 27 | open scoped NNReal |
| 28 | |
| 29 | variable (p : ℕ) [hp : Fact p.Prime] |
| 30 | |
| 31 | theorem complex_valuation_norm (x : ℂ_[p]) : |
| 32 | ((Valued.v x : ℝ≥0) : ℝ) = ‖x‖ := by |
| 33 | rw [PadicComplex.norm_eq_norm, Valuation.norm_def, |
| 34 | PadicComplex.RankOne.hom_eq_embedding, embedding_restrict] |
| 35 | |
| 36 | instance complexInt_complete : CompleteSpace 𝓞_ℂ_[p] := |
| 37 | (Valued.isClosed_valuationSubring ℂ_[p]).completeSpace_coe |
| 38 | |
| 39 | theorem complexInt_norm_p : ‖(p : 𝓞_ℂ_[p])‖ = (p : ℝ)⁻¹ := by |
| 40 | change ‖(p : ℂ_[p])‖ = _ |
| 41 | rw [← complex_valuation_norm, PadicComplex.valuation_p] |
| 42 | simp |
| 43 | |
| 44 | theorem complexInt_norm_p_pos : 0 < ‖(p : 𝓞_ℂ_[p])‖ := by |
| 45 | rw [complexInt_norm_p] |
| 46 | exact inv_pos.mpr (by exact_mod_cast hp.out.pos) |
| 47 | |
| 48 | theorem complexInt_norm_p_lt_one : ‖(p : 𝓞_ℂ_[p])‖ < 1 := by |
| 49 | rw [complexInt_norm_p] |
| 50 | exact inv_lt_one_of_one_lt₀ (by exact_mod_cast hp.out.one_lt) |
| 51 | |
| 52 | instance complexInt_p_not_unit : Fact (¬ IsUnit (p : 𝓞_ℂ_[p])) := by |
| 53 | constructor |
| 54 | rw [(PadicComplexInt.integers p).isUnit_iff_valuation_eq_one] |
| 55 | change ¬ Valued.v (p : ℂ_[p]) = 1 |
| 56 | simp [PadicComplex.valuation_p, hp.out.ne_one] |
| 57 | |
| 58 | theorem complexInt_span_closedBall (x : 𝓞_ℂ_[p]) : |
| 59 | (Ideal.span {x} : Set 𝓞_ℂ_[p]) = Metric.closedBall 0 ‖x‖ := by |
| 60 | rw [(PadicComplexInt.integers p).coe_span_singleton_eq_setOfPred_le_v_algebraMap] |
| 61 | ext y |
| 62 | change Valued.v (y : ℂ_[p]) ≤ Valued.v (x : ℂ_[p]) ↔ _ |
| 63 | rw [← NNReal.coe_le_coe, complex_valuation_norm, complex_valuation_norm] |
| 64 | simp [Metric.mem_closedBall, dist_zero_right] |
| 65 | |
| 66 | theorem complexInt_p_adic : IsAdic (Ideal.span {(p : 𝓞_ℂ_[p])}) := by |
| 67 | have hballs (n : ℕ) : |
| 68 | (((Ideal.span {(p : 𝓞_ℂ_[p])}) ^ n : Ideal 𝓞_ℂ_[p]) : Set 𝓞_ℂ_[p]) = |
| 69 | Metric.closedBall 0 (‖(p : 𝓞_ℂ_[p])‖ ^ n) := by |
| 70 | rw [Ideal.span_singleton_pow, complexInt_span_closedBall] |
| 71 | exact congrArg (Metric.closedBall (0 : 𝓞_ℂ_[p])) (norm_pow _ n) |
| 72 | rw [isAdic_iff] |
| 73 | constructor |
| 74 | · intro n |
| 75 | rw [hballs] |
| 76 | exact IsUltrametricDist.isOpen_closedBall 0 |
| 77 | (pow_ne_zero n (ne_of_gt (complexInt_norm_p_pos p))) |
| 78 | · intro s hs |
| 79 | obtain ⟨ε, hε, hball⟩ := Metric.mem_nhds_iff.mp hs |
| 80 | obtain ⟨n, hn⟩ := exists_pow_lt_of_lt_one hε (complexInt_norm_p_lt_one p) |
| 81 | refine ⟨n, ?_⟩ |
| 82 | rw [hballs] |
| 83 | exact (Metric.closedBall_subset_ball hn).trans hball |
| 84 | |
| 85 | instance complexInt_p_complete : |
| 86 | IsAdicComplete (Ideal.span {(p : 𝓞_ℂ_[p])}) 𝓞_ℂ_[p] := |
| 87 | (complexInt_p_adic p).isAdicComplete_iff.mpr ⟨inferInstance, inferInstance⟩ |
| 88 | |
| 89 | theorem complex_mem_integer_of_pow {z : ℂ_[p]} (x : 𝓞_ℂ_[p]) |
| 90 | (hz : z ^ p = (x : ℂ_[p])) : z ∈ 𝓞_ℂ_[p] := by |
| 91 | change Valued.v z ≤ 1 |
| 92 | apply (pow_le_one_iff_of_nonneg (show 0 ≤ (Valued.v z : ℝ≥0) from bot_le) |
| 93 | hp.out.ne_zero).mp |
| 94 | rw [← map_pow, hz] |
| 95 | exact x.property |
| 96 | |
| 97 | /-- Algebraic closedness of `ℂ_p` supplies integral `p`th roots of integral |
| 98 | elements; the valuation bound is proved, not assumed. -/ |
| 99 | theorem complexInt_pow_surjective : |
| 100 | Function.Surjective (fun x : 𝓞_ℂ_[p] => x ^ p) := by |
| 101 | intro x |
| 102 | obtain ⟨z, hz⟩ := IsAlgClosed.exists_pow_nat_eq (x : ℂ_[p]) hp.out.pos |
| 103 | refine ⟨⟨z, complex_mem_integer_of_pow p x hz⟩, ?_⟩ |
| 104 | exact Subtype.ext hz |
| 105 | |
| 106 | theorem modP_frobenius_surjective : |
| 107 | Function.Surjective (frobenius (ModP 𝓞_ℂ_[p] p) p) := by |
| 108 | intro q |
| 109 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective q |
| 110 | obtain ⟨y, hy⟩ := complexInt_pow_surjective p x |
| 111 | change y ^ p = x at hy |
| 112 | refine ⟨Ideal.Quotient.mk _ y, ?_⟩ |
| 113 | change (Ideal.Quotient.mk _ y) ^ p = Ideal.Quotient.mk _ x |
| 114 | rw [← map_pow, hy] |
| 115 | |
| 116 | /-- Fontaine's actual integral period ring before adjoining divided powers. -/ |
| 117 | abbrev Ainf := WittVector p (PreTilt 𝓞_ℂ_[p] p) |
| 118 | |
| 119 | /-- Fontaine's theta map, using the proved completeness of `𝓞_ℂ_p`. -/ |
| 120 | def theta : Ainf p →+* 𝓞_ℂ_[p] := WittVector.fontaineTheta 𝓞_ℂ_[p] p |
| 121 | |
| 122 | theorem theta_surjective : Function.Surjective (theta p) := |
| 123 | surjective_fontaineTheta (modP_frobenius_surjective p) |
| 124 | |
| 125 | instance complexInt_tilt_domain : IsDomain (PreTilt 𝓞_ℂ_[p] p) := |
| 126 | PreTilt.isDomain ℂ_[p] Valued.v 𝓞_ℂ_[p] (PadicComplexInt.integers p) p |
| 127 | |
| 128 | instance ainf_domain : IsDomain (Ainf p) := inferInstance |
| 129 | |
| 130 | instance ainf_charZero : CharZero (Ainf p) where |
| 131 | cast_injective m n h := by |
| 132 | apply Nat.cast_injective (R := 𝓞_ℂ_[p]) |
| 133 | simpa only [map_natCast] using congrArg (theta p) h |
| 134 | |
| 135 | @[simp] |
| 136 | theorem theta_teichmuller (x : PreTilt 𝓞_ℂ_[p] p) : |
| 137 | theta p (WittVector.teichmuller p x) = x.untilt := |
| 138 | WittVector.fontaineTheta_teichmuller x |
| 139 | |
| 140 | /-- The divided-power generators inside the fraction field of `A_inf`. |
| 141 | This ambient field allows the factorial denominators to be written directly. -/ |
| 142 | def dividedPowerGenerators : Set (FractionRing (Ainf p)) := |
| 143 | Set.range fun z : ℕ × RingHom.ker (theta p) => |
| 144 | (algebraMap (Ainf p) (FractionRing (Ainf p)) (z.2 : Ainf p)) ^ z.1 / |
| 145 | (z.1.factorial : FractionRing (Ainf p)) |
| 146 | |
| 147 | /-- The concrete uncompleted divided-power envelope generated by |
| 148 | `x^n/n!` for `x ∈ ker θ`. -/ |
| 149 | def acrisZeroSubalgebra : Subalgebra (Ainf p) (FractionRing (Ainf p)) := |
| 150 | Algebra.adjoin (Ainf p) (dividedPowerGenerators p) |
| 151 | |
| 152 | abbrev AcrisZero : Type := acrisZeroSubalgebra p |
| 153 | |
| 154 | /-- An individual divided power, as an element of the integral envelope. -/ |
| 155 | def dividedPower (n : ℕ) (x : RingHom.ker (theta p)) : AcrisZero p := |
| 156 | ⟨(algebraMap (Ainf p) (FractionRing (Ainf p)) (x : Ainf p)) ^ n / |
| 157 | (n.factorial : FractionRing (Ainf p)), |
| 158 | Algebra.subset_adjoin ⟨(n, x), rfl⟩⟩ |
| 159 | |
| 160 | @[simp] |
| 161 | theorem dividedPower_coe (n : ℕ) (x : RingHom.ker (theta p)) : |
| 162 | (dividedPower p n x : FractionRing (Ainf p)) = |
| 163 | (algebraMap (Ainf p) (FractionRing (Ainf p)) (x : Ainf p)) ^ n / |
| 164 | (n.factorial : FractionRing (Ainf p)) := rfl |
| 165 | |
| 166 | @[simp] |
| 167 | theorem dividedPower_zero (x : RingHom.ker (theta p)) : dividedPower p 0 x = 1 := by |
| 168 | apply Subtype.ext |
| 169 | simp |
| 170 | |
| 171 | @[simp] |
| 172 | theorem dividedPower_one (x : RingHom.ker (theta p)) : |
| 173 | dividedPower p 1 x = algebraMap (Ainf p) (AcrisZero p) (x : Ainf p) := by |
| 174 | apply Subtype.ext |
| 175 | simp |
| 176 | |
| 177 | theorem factorial_mul_dividedPower (n : ℕ) (x : RingHom.ker (theta p)) : |
| 178 | (n.factorial : AcrisZero p) * dividedPower p n x = |
| 179 | (algebraMap (Ainf p) (AcrisZero p) (x : Ainf p)) ^ n := by |
| 180 | apply Subtype.ext |
| 181 | change (n.factorial : FractionRing (Ainf p)) * |
| 182 | ((algebraMap (Ainf p) (FractionRing (Ainf p)) (x : Ainf p)) ^ n / |
| 183 | (n.factorial : FractionRing (Ainf p))) = _ |
| 184 | rw [mul_div_cancel₀ _ (by exact_mod_cast Nat.factorial_ne_zero n)] |
| 185 | rfl |
| 186 | |
| 187 | /-- `A_cris` is the `p`-adic completion of the concrete integral envelope. -/ |
| 188 | abbrev Acris : Type := |
| 189 | AdicCompletion (Ideal.span {(p : AcrisZero p)}) (AcrisZero p) |
| 190 | |
| 191 | instance acris_p_complete : IsAdicComplete (Ideal.span {(p : Acris p)}) (Acris p) := by |
| 192 | have h := AdicCompletion.isAdicComplete_self |
| 193 | (Ideal.span {(p : AcrisZero p)}) (Submodule.fg_span_singleton _) |
| 194 | simpa only [Ideal.map_span, Set.image_singleton, map_natCast] using h |
| 195 | |
| 196 | /-- `B_cris⁺ = A_cris[1/p]`. The cyclotomic logarithm must subsequently |
| 197 | be inverted to obtain `B_cris`. -/ |
| 198 | abbrev BcrisPlus : Type := Localization.Away (p : Acris p) |
| 199 | |
| 200 | theorem p_isUnit_bcrisPlus : IsUnit (p : BcrisPlus p) := by |
| 201 | simpa only [map_natCast] using |
| 202 | (IsLocalization.Away.algebraMap_isUnit (R := Acris p) (S := BcrisPlus p) p) |
| 203 | |
| 204 | /-- A useful integral estimate for convergence of divided-power logarithms. -/ |
| 205 | theorem p_pow_dvd_factorial_mul (n : ℕ) : p ^ n ∣ (p * n).factorial := by |
| 206 | induction n with |
| 207 | | zero => simp |
| 208 | | succ n hn => |
| 209 | have hd := Nat.mul_dvd_mul hn (Nat.dvd_factorial hp.out.pos (le_refl p)) |
| 210 | have ht := hd.trans (Nat.factorial_mul_factorial_dvd_factorial_add (p * n) p) |
| 211 | simpa [pow_succ, Nat.mul_add] using ht |
| 212 | |
| 213 | /-- The `k`th summand of `log(1+x)`, written integrally as |
| 214 | `(-1)^k k! γ_(k+1)(x)`. -/ |
| 215 | def logTerm (x : RingHom.ker (theta p)) (k : ℕ) : AcrisZero p := |
| 216 | (-1) ^ k * (k.factorial : AcrisZero p) * dividedPower p (k + 1) x |
| 217 | |
| 218 | theorem logTerm_mem_pow (x : RingHom.ker (theta p)) {n k : ℕ} (hk : p * n ≤ k) : |
| 219 | logTerm p x k ∈ (Ideal.span {(p : AcrisZero p)}) ^ n := by |
| 220 | rw [Ideal.span_singleton_pow, Ideal.mem_span_singleton] |
| 221 | have hd : p ^ n ∣ k.factorial := |
| 222 | (p_pow_dvd_factorial_mul p n).trans (Nat.factorial_dvd_factorial hk) |
| 223 | have hc : (p : AcrisZero p) ^ n ∣ (k.factorial : AcrisZero p) := by |
| 224 | obtain ⟨a, ha⟩ := hd |
| 225 | refine ⟨(a : AcrisZero p), ?_⟩ |
| 226 | rw [ha, Nat.cast_mul, Nat.cast_pow] |
| 227 | exact dvd_mul_of_dvd_left (dvd_mul_of_dvd_right hc _) _ |
| 228 | |
| 229 | /-- The logarithm partial sum with enough terms to be accurate modulo `p^n`. -/ |
| 230 | def logPartialSum (x : RingHom.ker (theta p)) (n : ℕ) : AcrisZero p := |
| 231 | ∑ k ∈ Finset.range (p * n), logTerm p x k |
| 232 | |
| 233 | theorem logPartialSum_cauchy (x : RingHom.ker (theta p)) : |
| 234 | AdicCompletion.IsAdicCauchy (Ideal.span {(p : AcrisZero p)}) |
| 235 | (AcrisZero p) (logPartialSum p x) := by |
| 236 | rw [AdicCompletion.isAdicCauchy_iff] |
| 237 | intro n |
| 238 | apply SModEq.symm |
| 239 | rw [SModEq.sub_mem, smul_eq_mul, Ideal.mul_top] |
| 240 | change logPartialSum p x (n + 1) - logPartialSum p x n ∈ _ |
| 241 | rw [logPartialSum, logPartialSum, |
| 242 | ← Finset.sum_Ico_eq_sub _ (Nat.mul_le_mul_left p (Nat.le_succ n))] |
| 243 | apply Ideal.sum_mem |
| 244 | intro k hk |
| 245 | exact logTerm_mem_pow p x (Finset.mem_Ico.mp hk).1 |
| 246 | |
| 247 | /-- The convergent divided-power logarithm as an actual element of `A_cris`. -/ |
| 248 | def pdLog (x : RingHom.ker (theta p)) : Acris p := |
| 249 | AdicCompletion.mk (Ideal.span {(p : AcrisZero p)}) (AcrisZero p) |
| 250 | ⟨logPartialSum p x, logPartialSum_cauchy p x⟩ |
| 251 | |
| 252 | theorem pdLog_eval (x : RingHom.ker (theta p)) (n : ℕ) : |
| 253 | AdicCompletion.evalₐ (Ideal.span {(p : AcrisZero p)}) n (pdLog p x) = |
| 254 | Ideal.Quotient.mk ((Ideal.span {(p : AcrisZero p)}) ^ n) (logPartialSum p x n) := |
| 255 | AdicCompletion.evalₐ_mk (Ideal.span {(p : AcrisZero p)}) n |
| 256 | ⟨logPartialSum p x, logPartialSum_cauchy p x⟩ |
| 257 | |
| 258 | theorem exists_primitiveRoot_integer : |
| 259 | ∃ ζ : 𝓞_ℂ_[p], IsPrimitiveRoot ζ p := by |
| 260 | obtain ⟨z, hz⟩ := HasEnoughRootsOfUnity.exists_primitiveRoot ℂ_[p] p |
| 261 | have hmem : z ∈ 𝓞_ℂ_[p] := complex_mem_integer_of_pow p 1 (by simpa using hz.pow_eq_one) |
| 262 | refine ⟨⟨z, hmem⟩, ?_⟩ |
| 263 | constructor |
| 264 | · exact Subtype.ext hz.pow_eq_one |
| 265 | · intro n hn |
| 266 | exact hz.dvd_of_pow_eq_one n (congrArg Subtype.val hn) |
| 267 | |
| 268 | /-- A choice of primitive `p`th root in the actual ring of integers. -/ |
| 269 | def primitiveRootInteger : 𝓞_ℂ_[p] := (exists_primitiveRoot_integer p).choose |
| 270 | |
| 271 | theorem primitiveRootInteger_primitive : IsPrimitiveRoot (primitiveRootInteger p) p := |
| 272 | (exists_primitiveRoot_integer p).choose_spec |
| 273 | |
| 274 | def integralPthRoot (x : 𝓞_ℂ_[p]) : 𝓞_ℂ_[p] := (complexInt_pow_surjective p x).choose |
| 275 | |
| 276 | @[simp] |
| 277 | theorem integralPthRoot_pow (x : 𝓞_ℂ_[p]) : integralPthRoot p x ^ p = x := |
| 278 | (complexInt_pow_surjective p x).choose_spec |
| 279 | |
| 280 | /-- A compatible sequence `1, ζ_p, ζ_(p²),...` of roots of unity. -/ |
| 281 | def cyclotomicRootSequence : ℕ → 𝓞_ℂ_[p] |
| 282 | | 0 => 1 |
| 283 | | n + 1 => (integralPthRoot p)^[n] (primitiveRootInteger p) |
| 284 | |
| 285 | theorem cyclotomicRootSequence_compatible (n : ℕ) : |
| 286 | cyclotomicRootSequence p (n + 1) ^ p = cyclotomicRootSequence p n := by |
| 287 | cases n with |
| 288 | | zero => exact (primitiveRootInteger_primitive p).pow_eq_one |
| 289 | | succ n => simp [cyclotomicRootSequence, Function.iterate_succ_apply'] |
| 290 | |
| 291 | def cyclotomicRoots : Perfection 𝓞_ℂ_[p] p := |
| 292 | ⟨cyclotomicRootSequence p, cyclotomicRootSequence_compatible p⟩ |
| 293 | |
| 294 | /-- Reduction modulo `p` identifies compatible root sequences with the tilt. -/ |
| 295 | def tiltMonoidEquiv : Perfection 𝓞_ℂ_[p] p ≃* PreTilt 𝓞_ℂ_[p] p := |
| 296 | Perfection.quotientMulEquiv p (Ideal.span {(p : 𝓞_ℂ_[p])}) |
| 297 | |
| 298 | theorem untilt_tiltMonoidEquiv (x : Perfection 𝓞_ℂ_[p] p) : |
| 299 | (tiltMonoidEquiv p x).untilt = Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 0 x := by |
| 300 | exact Perfection.teichmuller₀_mapMonoidHom_idealQuotientMk |
| 301 | (p := p) (I := Ideal.span {(p : 𝓞_ℂ_[p])}) (x := x) |
| 302 | |
| 303 | /-- The standard cyclotomic element `ε` in the tilt. -/ |
| 304 | def epsilon : PreTilt 𝓞_ℂ_[p] p := |
| 305 | tiltMonoidEquiv p (cyclotomicRoots p) |
| 306 | |
| 307 | theorem epsilon_untilt : (epsilon p).untilt = 1 := by |
| 308 | rw [epsilon, untilt_tiltMonoidEquiv] |
| 309 | rfl |
| 310 | |
| 311 | theorem epsilon_ne_one : epsilon p ≠ 1 := by |
| 312 | intro h |
| 313 | have heq : |
| 314 | tiltMonoidEquiv p (cyclotomicRoots p) = tiltMonoidEquiv p 1 := by |
| 315 | simpa only [epsilon, map_one] using h |
| 316 | have hc := congrArg (Perfection.coeffMonoidHom 𝓞_ℂ_[p] p 1) |
| 317 | ((tiltMonoidEquiv p).injective heq) |
| 318 | change primitiveRootInteger p = 1 at hc |
| 319 | have hd := (primitiveRootInteger_primitive p).dvd_of_pow_eq_one 1 (by simp [hc]) |
| 320 | exact hp.out.ne_one (Nat.dvd_one.mp hd) |
| 321 | |
| 322 | /-- The element `[ε] - 1` belongs to the kernel of Fontaine's theta map. -/ |
| 323 | def cyclotomicKernelElement : RingHom.ker (theta p) := |
| 324 | ⟨WittVector.teichmuller p (epsilon p) - 1, by |
| 325 | simp [RingHom.mem_ker, theta_teichmuller, epsilon_untilt]⟩ |
| 326 | |
| 327 | theorem cyclotomicKernelElement_ne_zero : |
| 328 | (cyclotomicKernelElement p : Ainf p) ≠ 0 := by |
| 329 | intro h |
| 330 | have hw : WittVector.teichmuller p (epsilon p) = 1 := sub_eq_zero.mp h |
| 331 | have he := congrArg (fun x : Ainf p => x.coeff 0) hw |
| 332 | exact epsilon_ne_one p (by simpa only [WittVector.teichmuller_coeff_zero, |
| 333 | WittVector.one_coeff_zero] using he) |
| 334 | |
| 335 | /-- Fontaine's cyclotomic period, defined by the convergent divided-power logarithm. -/ |
| 336 | def t : Acris p := pdLog p (cyclotomicKernelElement p) |
| 337 | |
| 338 | /-- The actual crystalline period ring, constructed as `A_cris[1/p, 1/t]`. |
| 339 | No comparison isomorphism or fixed-scalar assertion is part of this definition. -/ |
| 340 | abbrev Bcris : Type := |
| 341 | Localization.Away (algebraMap (Acris p) (BcrisPlus p) (t p)) |
| 342 | |
| 343 | theorem p_isUnit_bcris : IsUnit (p : Bcris p) := by |
| 344 | simpa only [map_natCast] using |
| 345 | (p_isUnit_bcrisPlus p).map (algebraMap (BcrisPlus p) (Bcris p)) |
| 346 | |
| 347 | theorem t_isUnit_bcris : |
| 348 | IsUnit (algebraMap (BcrisPlus p) (Bcris p) |
| 349 | (algebraMap (Acris p) (BcrisPlus p) (t p))) := |
| 350 | IsLocalization.Away.algebraMap_isUnit |
| 351 | (S := Bcris p) (algebraMap (Acris p) (BcrisPlus p) (t p)) |
| 352 | |
| 353 | /-- The canonical `ℤ_p` constants in `A_inf`, obtained by mapping Witt vectors |
| 354 | from `𝔽_p` to the tilt. -/ |
| 355 | def padicIntToAinf : ℤ_[p] →+* Ainf p := |
| 356 | (WittVector.map (ZMod.castHom (dvd_refl p) (PreTilt 𝓞_ℂ_[p] p))).comp |
| 357 | (WittVector.fromPadicInt p) |
| 358 | |
| 359 | def padicIntToBcrisPlus : ℤ_[p] →+* BcrisPlus p := |
| 360 | (algebraMap (Acris p) (BcrisPlus p)).comp |
| 361 | ((algebraMap (AcrisZero p) (Acris p)).comp |
| 362 | ((algebraMap (Ainf p) (AcrisZero p)).comp (padicIntToAinf p))) |
| 363 | |
| 364 | /-- Inverting `p` in the target makes every nonzero `p`-adic integer invertible. -/ |
| 365 | theorem padicInt_map_nonzero_isUnit {S : Type*} [CommRing S] |
| 366 | (f : ℤ_[p] →+* S) (hf : IsUnit (f p)) {x : ℤ_[p]} (hx : x ≠ 0) : |
| 367 | IsUnit (f x) := by |
| 368 | rw [PadicInt.unitCoeff_spec hx, map_mul, map_pow] |
| 369 | exact ((PadicInt.unitCoeff hx).isUnit.map f).mul (hf.pow _) |
| 370 | |
| 371 | /-- The `ℚ_p` constants in `B_cris⁺`, constructed using the universal property |
| 372 | of the fraction field of `ℤ_p`. -/ |
| 373 | def padicFieldToBcrisPlus : ℚ_[p] →+* BcrisPlus p := |
| 374 | IsLocalization.lift (S := ℚ_[p]) (g := padicIntToBcrisPlus p) |
| 375 | (fun y : nonZeroDivisors ℤ_[p] => padicInt_map_nonzero_isUnit p |
| 376 | (padicIntToBcrisPlus p) (by simpa only [map_natCast] using p_isUnit_bcrisPlus p) |
| 377 | (mem_nonZeroDivisors_iff_ne_zero.mp y.property)) |
| 378 | |
| 379 | @[simp] |
| 380 | theorem padicFieldToBcrisPlus_int (x : ℤ_[p]) : |
| 381 | padicFieldToBcrisPlus p (algebraMap ℤ_[p] ℚ_[p] x) = padicIntToBcrisPlus p x := |
| 382 | IsLocalization.lift_eq _ x |
| 383 | |
| 384 | instance bcrisPlus_padicAlgebra : Algebra ℚ_[p] (BcrisPlus p) := |
| 385 | (padicFieldToBcrisPlus p).toAlgebra |
| 386 | |
| 387 | def padicFieldToBcris : ℚ_[p] →+* Bcris p := |
| 388 | (algebraMap (BcrisPlus p) (Bcris p)).comp (padicFieldToBcrisPlus p) |
| 389 | |
| 390 | instance bcris_padicAlgebra : Algebra ℚ_[p] (Bcris p) := |
| 391 | (padicFieldToBcris p).toAlgebra |
| 392 | |
| 393 | /-- Every endomorphism of `𝓞_ℂ_p` preserves `(p)` and acts on its reduction. -/ |
| 394 | def modPMap (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) : |
| 395 | ModP 𝓞_ℂ_[p] p →+* ModP 𝓞_ℂ_[p] p := |
| 396 | Ideal.quotientMap _ f (by |
| 397 | rw [← Ideal.map_le_iff_le_comap] |
| 398 | simp [Ideal.map_span]) |
| 399 | |
| 400 | @[simp] |
| 401 | theorem modPMap_mk (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) (x : 𝓞_ℂ_[p]) : |
| 402 | modPMap p f (Ideal.Quotient.mk _ x) = Ideal.Quotient.mk _ (f x) := rfl |
| 403 | |
| 404 | /-- The induced map on the actual tilt. -/ |
| 405 | def tiltMap (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) : |
| 406 | PreTilt 𝓞_ℂ_[p] p →+* PreTilt 𝓞_ℂ_[p] p := |
| 407 | Perfection.map p (modPMap p f) |
| 408 | |
| 409 | theorem tiltMap_rootSequence (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) |
| 410 | (x : Perfection 𝓞_ℂ_[p] p) : |
| 411 | tiltMap p f (tiltMonoidEquiv p x) = |
| 412 | tiltMonoidEquiv p (Perfection.mapMonoidHom p f x) := by |
| 413 | apply Perfection.ext |
| 414 | intro n |
| 415 | rfl |
| 416 | |
| 417 | theorem untilt_natural (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) (x : PreTilt 𝓞_ℂ_[p] p) : |
| 418 | (tiltMap p f x).untilt = f x.untilt := by |
| 419 | obtain ⟨y, rfl⟩ := (tiltMonoidEquiv p).surjective x |
| 420 | rw [tiltMap_rootSequence, untilt_tiltMonoidEquiv, untilt_tiltMonoidEquiv] |
| 421 | rfl |
| 422 | |
| 423 | /-- Functoriality of the integral period ring is induced by Witt functoriality. -/ |
| 424 | def ainfMap (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) : Ainf p →+* Ainf p := |
| 425 | WittVector.map (tiltMap p f) |
| 426 | |
| 427 | @[simp] |
| 428 | theorem ainfMap_teichmuller (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) |
| 429 | (x : PreTilt 𝓞_ℂ_[p] p) : |
| 430 | ainfMap p f (WittVector.teichmuller p x) = |
| 431 | WittVector.teichmuller p (tiltMap p f x) := |
| 432 | WittVector.map_teichmuller p (tiltMap p f) x |
| 433 | |
| 434 | /-- Naturality of theta modulo each power of `p`, proved by the uniqueness |
| 435 | of maps out of Witt vectors into a ring where `p` is nilpotent. -/ |
| 436 | theorem theta_natural_mod (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) (n : ℕ) : |
| 437 | (Ideal.Quotient.mk ((Ideal.span {(p : 𝓞_ℂ_[p])}) ^ n)).comp |
| 438 | ((theta p).comp (ainfMap p f)) = |
| 439 | (Ideal.Quotient.mk ((Ideal.span {(p : 𝓞_ℂ_[p])}) ^ n)).comp |
| 440 | (f.comp (theta p)) := by |
| 441 | apply WittVector.eq_of_apply_teichmuller_eq |
| 442 | · refine ⟨n, ?_⟩ |
| 443 | have hmem : (p : 𝓞_ℂ_[p]) ^ n ∈ (Ideal.span {(p : 𝓞_ℂ_[p])}) ^ n := |
| 444 | Ideal.pow_mem_pow (Ideal.subset_span (Set.mem_singleton _)) n |
| 445 | simpa only [map_pow, map_natCast] using Ideal.Quotient.eq_zero_iff_mem.mpr hmem |
| 446 | · intro x |
| 447 | simp only [RingHom.comp_apply, ainfMap_teichmuller, theta_teichmuller, untilt_natural] |
| 448 | |
| 449 | /-- Theta is natural for endomorphisms of the coefficient ring. No action on |
| 450 | crystalline cohomology or comparison isomorphism is assumed here. -/ |
| 451 | theorem theta_natural (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) (x : Ainf p) : |
| 452 | theta p (ainfMap p f x) = f (theta p x) := by |
| 453 | rw [IsHausdorff.eq_iff_smodEq (I := Ideal.span {(p : 𝓞_ℂ_[p])})] |
| 454 | simp only [smul_eq_mul, Ideal.mul_top] |
| 455 | intro n |
| 456 | have h := congrArg (fun h : Ainf p →+* |
| 457 | (𝓞_ℂ_[p] ⧸ (Ideal.span {(p : 𝓞_ℂ_[p])}) ^ n) => h x) |
| 458 | (theta_natural_mod p f n) |
| 459 | simpa only [SModEq.idealQuotientMk, RingHom.comp_apply] using h |
| 460 | |
| 461 | /-- The Galois-stable ideal used in the divided-power construction. -/ |
| 462 | def thetaKernelMap (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) |
| 463 | (x : RingHom.ker (theta p)) : RingHom.ker (theta p) := |
| 464 | ⟨ainfMap p f x, by |
| 465 | rw [RingHom.mem_ker, theta_natural, (RingHom.mem_ker.mp x.property), map_zero]⟩ |
| 466 | |
| 467 | @[simp] |
| 468 | theorem modPMap_id : modPMap p (RingHom.id 𝓞_ℂ_[p]) = RingHom.id _ := by |
| 469 | ext x |
| 470 | rfl |
| 471 | |
| 472 | theorem modPMap_comp (f g : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) : |
| 473 | modPMap p (g.comp f) = (modPMap p g).comp (modPMap p f) := by |
| 474 | ext x |
| 475 | rfl |
| 476 | |
| 477 | @[simp] |
| 478 | theorem tiltMap_id : tiltMap p (RingHom.id 𝓞_ℂ_[p]) = RingHom.id _ := by |
| 479 | apply RingHom.ext |
| 480 | intro x |
| 481 | apply Perfection.ext |
| 482 | intro n |
| 483 | exact congrArg (fun f : ModP 𝓞_ℂ_[p] p →+* ModP 𝓞_ℂ_[p] p => |
| 484 | f (PreTilt.coeff n x)) (modPMap_id p) |
| 485 | |
| 486 | theorem tiltMap_comp (f g : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) : |
| 487 | tiltMap p (g.comp f) = (tiltMap p g).comp (tiltMap p f) := by |
| 488 | apply RingHom.ext |
| 489 | intro x |
| 490 | apply Perfection.ext |
| 491 | intro n |
| 492 | exact congrArg (fun h : ModP 𝓞_ℂ_[p] p →+* ModP 𝓞_ℂ_[p] p => |
| 493 | h (PreTilt.coeff n x)) (modPMap_comp p f g) |
| 494 | |
| 495 | @[simp] |
| 496 | theorem ainfMap_id : ainfMap p (RingHom.id 𝓞_ℂ_[p]) = RingHom.id _ := by |
| 497 | ext x n |
| 498 | exact congrArg (fun f : PreTilt 𝓞_ℂ_[p] p →+* PreTilt 𝓞_ℂ_[p] p => |
| 499 | f (x.coeff n)) (tiltMap_id p) |
| 500 | |
| 501 | theorem ainfMap_comp (f g : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) : |
| 502 | ainfMap p (g.comp f) = (ainfMap p g).comp (ainfMap p f) := by |
| 503 | ext x n |
| 504 | exact congrArg (fun h : PreTilt 𝓞_ℂ_[p] p →+* PreTilt 𝓞_ℂ_[p] p => |
| 505 | h (x.coeff n)) (tiltMap_comp p f g) |
| 506 | |
| 507 | /-- An automorphism of `𝓞_ℂ_p` induces an automorphism of `A_inf`. -/ |
| 508 | def ainfEquiv (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : Ainf p ≃+* Ainf p := |
| 509 | { ainfMap p f.toRingHom with |
| 510 | invFun := ainfMap p f.symm.toRingHom |
| 511 | left_inv := fun x => by |
| 512 | have h := congrArg (fun h : Ainf p →+* Ainf p => h x) |
| 513 | (ainfMap_comp p f.toRingHom f.symm.toRingHom) |
| 514 | have hf : f.symm.toRingHom.comp f.toRingHom = RingHom.id 𝓞_ℂ_[p] := by |
| 515 | apply RingHom.ext |
| 516 | intro z |
| 517 | exact f.symm_apply_apply z |
| 518 | rw [hf, ainfMap_id] at h |
| 519 | exact h.symm |
| 520 | right_inv := fun x => by |
| 521 | have h := congrArg (fun h : Ainf p →+* Ainf p => h x) |
| 522 | (ainfMap_comp p f.symm.toRingHom f.toRingHom) |
| 523 | have hf : f.toRingHom.comp f.symm.toRingHom = RingHom.id 𝓞_ℂ_[p] := by |
| 524 | apply RingHom.ext |
| 525 | intro z |
| 526 | exact f.apply_symm_apply z |
| 527 | rw [hf, ainfMap_id] at h |
| 528 | exact h.symm } |
| 529 | |
| 530 | def ainfFractionEquiv (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : |
| 531 | FractionRing (Ainf p) ≃+* FractionRing (Ainf p) := |
| 532 | IsFractionRing.ringEquivOfRingEquiv (ainfEquiv p f) |
| 533 | |
| 534 | @[simp] |
| 535 | theorem ainfFractionEquiv_algebraMap (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) (x : Ainf p) : |
| 536 | ainfFractionEquiv p f (algebraMap (Ainf p) (FractionRing (Ainf p)) x) = |
| 537 | algebraMap (Ainf p) (FractionRing (Ainf p)) (ainfMap p f.toRingHom x) := |
| 538 | IsFractionRing.ringEquivOfRingEquiv_algebraMap _ x |
| 539 | |
| 540 | @[simp] |
| 541 | theorem ainfFractionEquiv_dividedPower (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) |
| 542 | (n : ℕ) (x : RingHom.ker (theta p)) : |
| 543 | ainfFractionEquiv p f (dividedPower p n x : FractionRing (Ainf p)) = |
| 544 | (dividedPower p n (thetaKernelMap p f.toRingHom x) : FractionRing (Ainf p)) := by |
| 545 | simp only [dividedPower_coe, map_div₀, map_pow, map_natCast, ainfFractionEquiv_algebraMap] |
| 546 | rfl |
| 547 | |
| 548 | /-- Automorphisms preserve the concrete divided-power envelope because they |
| 549 | preserve theta's kernel and commute with the rational divided powers. -/ |
| 550 | theorem ainfFractionEquiv_preserves_acrisZero (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) |
| 551 | {x : FractionRing (Ainf p)} (hx : x ∈ acrisZeroSubalgebra p) : |
| 552 | ainfFractionEquiv p f x ∈ acrisZeroSubalgebra p := by |
| 553 | induction hx using Algebra.adjoin_induction with |
| 554 | | mem y hy => |
| 555 | obtain ⟨⟨n, z⟩, rfl⟩ := hy |
| 556 | change ainfFractionEquiv p f (dividedPower p n z : FractionRing (Ainf p)) ∈ _ |
| 557 | rw [ainfFractionEquiv_dividedPower] |
| 558 | exact (dividedPower p n (thetaKernelMap p f.toRingHom z)).property |
| 559 | | algebraMap a => |
| 560 | rw [ainfFractionEquiv_algebraMap] |
| 561 | exact (acrisZeroSubalgebra p).algebraMap_mem _ |
| 562 | | add x y hx hy ihx ihy => |
| 563 | rw [map_add] |
| 564 | exact (acrisZeroSubalgebra p).add_mem ihx ihy |
| 565 | | mul x y hx hy ihx ihy => |
| 566 | rw [map_mul] |
| 567 | exact (acrisZeroSubalgebra p).mul_mem ihx ihy |
| 568 | |
| 569 | def acrisZeroMap (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : AcrisZero p →+* AcrisZero p where |
| 570 | toFun x := ⟨ainfFractionEquiv p f x, ainfFractionEquiv_preserves_acrisZero p f x.property⟩ |
| 571 | map_zero' := Subtype.ext (map_zero _) |
| 572 | map_one' := Subtype.ext (map_one _) |
| 573 | map_add' x y := Subtype.ext (map_add _ (x : FractionRing (Ainf p)) y) |
| 574 | map_mul' x y := Subtype.ext (map_mul _ (x : FractionRing (Ainf p)) y) |
| 575 | |
| 576 | @[simp] |
| 577 | theorem acrisZeroMap_dividedPower (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) |
| 578 | (n : ℕ) (x : RingHom.ker (theta p)) : |
| 579 | acrisZeroMap p f (dividedPower p n x) = |
| 580 | dividedPower p n (thetaKernelMap p f.toRingHom x) := |
| 581 | Subtype.ext (ainfFractionEquiv_dividedPower p f n x) |
| 582 | |
| 583 | theorem ainfEquiv_symm (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : |
| 584 | ainfEquiv p f.symm = (ainfEquiv p f).symm := by |
| 585 | apply RingEquiv.ext |
| 586 | intro x |
| 587 | rfl |
| 588 | |
| 589 | theorem ainfFractionEquiv_symm (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : |
| 590 | ainfFractionEquiv p f.symm = (ainfFractionEquiv p f).symm := by |
| 591 | simp only [ainfFractionEquiv, ainfEquiv_symm, |
| 592 | IsFractionRing.ringEquivOfRingEquiv_symm] |
| 593 | |
| 594 | def acrisZeroEquiv (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : AcrisZero p ≃+* AcrisZero p := |
| 595 | { acrisZeroMap p f with |
| 596 | invFun := acrisZeroMap p f.symm |
| 597 | left_inv := fun x => by |
| 598 | apply Subtype.ext |
| 599 | change ainfFractionEquiv p f.symm (ainfFractionEquiv p f x) = x |
| 600 | rw [ainfFractionEquiv_symm] |
| 601 | exact (ainfFractionEquiv p f).symm_apply_apply x |
| 602 | right_inv := fun x => by |
| 603 | apply Subtype.ext |
| 604 | change ainfFractionEquiv p f (ainfFractionEquiv p f.symm x) = x |
| 605 | rw [ainfFractionEquiv_symm] |
| 606 | exact (ainfFractionEquiv p f).apply_symm_apply x } |
| 607 | |
| 608 | section CompletionMaps |
| 609 | |
| 610 | omit hp |
| 611 | variable {S : Type*} [CommRing S] |
| 612 | |
| 613 | def pPowerQuotientMap (f : S →+* S) (n : ℕ) : |
| 614 | S ⧸ (Ideal.span {(p : S)}) ^ n →+* S ⧸ (Ideal.span {(p : S)}) ^ n := |
| 615 | Ideal.quotientMap _ f (by |
| 616 | rw [← Ideal.map_le_iff_le_comap] |
| 617 | simp [Ideal.map_pow, Ideal.map_span]) |
| 618 | |
| 619 | @[simp] |
| 620 | theorem pPowerQuotientMap_mk (f : S →+* S) (n : ℕ) (x : S) : |
| 621 | pPowerQuotientMap p f n (Ideal.Quotient.mk _ x) = |
| 622 | Ideal.Quotient.mk _ (f x) := rfl |
| 623 | |
| 624 | @[simp] |
| 625 | theorem pPowerQuotientMap_id (n : ℕ) : |
| 626 | pPowerQuotientMap p (RingHom.id S) n = RingHom.id _ := by |
| 627 | ext x |
| 628 | rfl |
| 629 | |
| 630 | theorem pPowerQuotientMap_comp (f g : S →+* S) (n : ℕ) : |
| 631 | pPowerQuotientMap p (g.comp f) n = |
| 632 | (pPowerQuotientMap p g n).comp (pPowerQuotientMap p f n) := by |
| 633 | ext x |
| 634 | rfl |
| 635 | |
| 636 | theorem pPowerQuotientMap_factorPow (f : S →+* S) {m n : ℕ} (h : m ≤ n) |
| 637 | (x : S ⧸ (Ideal.span {(p : S)}) ^ n) : |
| 638 | Ideal.Quotient.factorPow (Ideal.span {(p : S)}) h (pPowerQuotientMap p f n x) = |
| 639 | pPowerQuotientMap p f m (Ideal.Quotient.factorPow (Ideal.span {(p : S)}) h x) := by |
| 640 | induction x using Quotient.inductionOn' with |
| 641 | | h x => rfl |
| 642 | |
| 643 | theorem completionEval_factorPow {m n : ℕ} (h : m ≤ n) |
| 644 | (x : AdicCompletion (Ideal.span {(p : S)}) S) : |
| 645 | Ideal.Quotient.factorPow (Ideal.span {(p : S)}) h |
| 646 | (AdicCompletion.evalₐ (Ideal.span {(p : S)}) n x) = |
| 647 | AdicCompletion.evalₐ (Ideal.span {(p : S)}) m x := by |
| 648 | induction x using AdicCompletion.induction_on (Ideal.span {(p : S)}) S with |
| 649 | | h a => |
| 650 | rw [AdicCompletion.evalₐ_mk, AdicCompletion.evalₐ_mk] |
| 651 | exact AdicCompletion.Ideal.mk_eq_mk (Ideal.span {(p : S)}) h a |
| 652 | |
| 653 | theorem pAdicMap_compatible (f : S →+* S) {m n : ℕ} (h : m ≤ n) : |
| 654 | (Ideal.Quotient.factorPow (Ideal.span {(p : S)}) h).comp |
| 655 | ((pPowerQuotientMap p f n).comp |
| 656 | (AdicCompletion.evalₐ (Ideal.span {(p : S)}) n).toRingHom) = |
| 657 | (pPowerQuotientMap p f m).comp |
| 658 | (AdicCompletion.evalₐ (Ideal.span {(p : S)}) m).toRingHom := by |
| 659 | apply RingHom.ext |
| 660 | intro x |
| 661 | change Ideal.Quotient.factorPow _ h |
| 662 | (pPowerQuotientMap p f n (AdicCompletion.evalₐ _ n x)) = |
| 663 | pPowerQuotientMap p f m (AdicCompletion.evalₐ _ m x) |
| 664 | rw [pPowerQuotientMap_factorPow, completionEval_factorPow] |
| 665 | |
| 666 | /-- A ring endomorphism induces a map of its `p`-adic completion, constructed |
| 667 | on the compatible quotient rings. -/ |
| 668 | def pAdicMap (f : S →+* S) : |
| 669 | AdicCompletion (Ideal.span {(p : S)}) S →+* |
| 670 | AdicCompletion (Ideal.span {(p : S)}) S := |
| 671 | AdicCompletion.liftRingHom (Ideal.span {(p : S)}) |
| 672 | (fun n => (pPowerQuotientMap p f n).comp |
| 673 | (AdicCompletion.evalₐ (Ideal.span {(p : S)}) n).toRingHom) |
| 674 | (pAdicMap_compatible p f) |
| 675 | |
| 676 | @[simp] |
| 677 | theorem pAdicMap_eval (f : S →+* S) |
| 678 | (x : AdicCompletion (Ideal.span {(p : S)}) S) (n : ℕ) : |
| 679 | AdicCompletion.evalₐ (Ideal.span {(p : S)}) n (pAdicMap p f x) = |
| 680 | pPowerQuotientMap p f n (AdicCompletion.evalₐ (Ideal.span {(p : S)}) n x) := |
| 681 | AdicCompletion.evalₐ_liftRingHom (Ideal.span {(p : S)}) |
| 682 | (fun n => (pPowerQuotientMap p f n).comp |
| 683 | (AdicCompletion.evalₐ (Ideal.span {(p : S)}) n).toRingHom) |
| 684 | (pAdicMap_compatible p f) n x |
| 685 | |
| 686 | @[simp] |
| 687 | theorem pAdicMap_of (f : S →+* S) (x : S) : |
| 688 | pAdicMap p f (AdicCompletion.of (Ideal.span {(p : S)}) S x) = |
| 689 | AdicCompletion.of (Ideal.span {(p : S)}) S (f x) := by |
| 690 | apply AdicCompletion.ext_evalₐ |
| 691 | intro n |
| 692 | simp only [pAdicMap_eval, AdicCompletion.evalₐ_of, pPowerQuotientMap_mk] |
| 693 | |
| 694 | @[simp] |
| 695 | theorem pAdicMap_id : pAdicMap p (RingHom.id S) = RingHom.id _ := by |
| 696 | apply RingHom.ext |
| 697 | intro x |
| 698 | apply AdicCompletion.ext_evalₐ |
| 699 | intro n |
| 700 | rw [pAdicMap_eval, pPowerQuotientMap_id] |
| 701 | rfl |
| 702 | |
| 703 | theorem pAdicMap_comp (f g : S →+* S) : |
| 704 | pAdicMap p (g.comp f) = (pAdicMap p g).comp (pAdicMap p f) := by |
| 705 | apply RingHom.ext |
| 706 | intro x |
| 707 | apply AdicCompletion.ext_evalₐ |
| 708 | intro n |
| 709 | change AdicCompletion.evalₐ _ n (pAdicMap p (g.comp f) x) = |
| 710 | AdicCompletion.evalₐ _ n (pAdicMap p g (pAdicMap p f x)) |
| 711 | rw [pAdicMap_eval, pAdicMap_eval, pAdicMap_eval, pPowerQuotientMap_comp] |
| 712 | rfl |
| 713 | |
| 714 | /-- Ring automorphisms induce automorphisms of the actual `p`-adic completion. -/ |
| 715 | def pAdicEquiv (f : S ≃+* S) : |
| 716 | AdicCompletion (Ideal.span {(p : S)}) S ≃+* |
| 717 | AdicCompletion (Ideal.span {(p : S)}) S := |
| 718 | { pAdicMap p f.toRingHom with |
| 719 | invFun := pAdicMap p f.symm.toRingHom |
| 720 | left_inv := fun x => by |
| 721 | have h := congrArg (fun h : AdicCompletion (Ideal.span {(p : S)}) S →+* |
| 722 | AdicCompletion (Ideal.span {(p : S)}) S => h x) |
| 723 | (pAdicMap_comp p f.toRingHom f.symm.toRingHom) |
| 724 | have hf : f.symm.toRingHom.comp f.toRingHom = RingHom.id S := by |
| 725 | apply RingHom.ext |
| 726 | intro z |
| 727 | exact f.symm_apply_apply z |
| 728 | rw [hf, pAdicMap_id] at h |
| 729 | exact h.symm |
| 730 | right_inv := fun x => by |
| 731 | have h := congrArg (fun h : AdicCompletion (Ideal.span {(p : S)}) S →+* |
| 732 | AdicCompletion (Ideal.span {(p : S)}) S => h x) |
| 733 | (pAdicMap_comp p f.symm.toRingHom f.toRingHom) |
| 734 | have hf : f.toRingHom.comp f.symm.toRingHom = RingHom.id S := by |
| 735 | apply RingHom.ext |
| 736 | intro z |
| 737 | exact f.apply_symm_apply z |
| 738 | rw [hf, pAdicMap_id] at h |
| 739 | exact h.symm } |
| 740 | |
| 741 | end CompletionMaps |
| 742 | |
| 743 | /-- The induced map on the completed integral crystalline period ring. -/ |
| 744 | def acrisMap (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : Acris p →+* Acris p := |
| 745 | pAdicMap p (acrisZeroMap p f) |
| 746 | |
| 747 | def acrisEquiv (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : Acris p ≃+* Acris p := |
| 748 | pAdicEquiv p (acrisZeroEquiv p f) |
| 749 | |
| 750 | /-- Inverting `p` extends the induced automorphism to `B_cris⁺`. -/ |
| 751 | def bcrisPlusEquiv (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : BcrisPlus p ≃+* BcrisPlus p := |
| 752 | IsLocalization.ringEquivOfRingEquiv |
| 753 | (M := Submonoid.powers (p : Acris p)) (T := Submonoid.powers (p : Acris p)) |
| 754 | (BcrisPlus p) (BcrisPlus p) |
| 755 | (acrisEquiv p f) (by simp [Submonoid.map_powers]) |
| 756 | |
| 757 | theorem acrisZeroMap_logPartialSum (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) |
| 758 | (x : RingHom.ker (theta p)) (n : ℕ) : |
| 759 | acrisZeroMap p f (logPartialSum p x n) = |
| 760 | logPartialSum p (thetaKernelMap p f.toRingHom x) n := by |
| 761 | simp only [logPartialSum, map_sum, logTerm, map_mul, map_pow, _root_.map_neg, |
| 762 | map_one, map_natCast, acrisZeroMap_dividedPower] |
| 763 | |
| 764 | /-- The actual convergent logarithm is natural for the induced ring maps. -/ |
| 765 | theorem acrisMap_pdLog (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) |
| 766 | (x : RingHom.ker (theta p)) : |
| 767 | acrisMap p f (pdLog p x) = pdLog p (thetaKernelMap p f.toRingHom x) := by |
| 768 | apply AdicCompletion.ext_evalₐ |
| 769 | intro n |
| 770 | rw [acrisMap, pAdicMap_eval] |
| 771 | simp only [pdLog_eval, pPowerQuotientMap_mk, |
| 772 | acrisZeroMap_logPartialSum] |
| 773 | |
| 774 | /-- The integral constants are fixed by the induced automorphisms of `A_inf`. -/ |
| 775 | theorem ainfMap_padicInt (f : 𝓞_ℂ_[p] →+* 𝓞_ℂ_[p]) (a : ℤ_[p]) : |
| 776 | ainfMap p f (padicIntToAinf p a) = padicIntToAinf p a := by |
| 777 | apply WittVector.ext |
| 778 | intro n |
| 779 | change tiltMap p f |
| 780 | ((ZMod.castHom (dvd_refl p) (PreTilt 𝓞_ℂ_[p] p)) |
| 781 | ((WittVector.fromPadicInt p a).coeff n)) = |
| 782 | (ZMod.castHom (dvd_refl p) (PreTilt 𝓞_ℂ_[p] p)) |
| 783 | ((WittVector.fromPadicInt p a).coeff n) |
| 784 | exact congrArg (fun h : ZMod p →+* PreTilt 𝓞_ℂ_[p] p => |
| 785 | h ((WittVector.fromPadicInt p a).coeff n)) |
| 786 | (RingHom.ext_zmod |
| 787 | ((tiltMap p f).comp (ZMod.castHom (dvd_refl p) (PreTilt 𝓞_ℂ_[p] p))) |
| 788 | (ZMod.castHom (dvd_refl p) (PreTilt 𝓞_ℂ_[p] p))) |
| 789 | |
| 790 | @[simp] |
| 791 | theorem acrisZeroMap_algebraMap (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) (x : Ainf p) : |
| 792 | acrisZeroMap p f (algebraMap (Ainf p) (AcrisZero p) x) = |
| 793 | algebraMap (Ainf p) (AcrisZero p) (ainfMap p f.toRingHom x) := |
| 794 | Subtype.ext (ainfFractionEquiv_algebraMap p f x) |
| 795 | |
| 796 | @[simp] |
| 797 | theorem acrisEquiv_algebraMap (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) (x : AcrisZero p) : |
| 798 | acrisEquiv p f (algebraMap (AcrisZero p) (Acris p) x) = |
| 799 | algebraMap (AcrisZero p) (Acris p) (acrisZeroMap p f x) := |
| 800 | pAdicMap_of p (acrisZeroMap p f) x |
| 801 | |
| 802 | @[simp] |
| 803 | theorem bcrisPlusEquiv_algebraMap (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) (x : Acris p) : |
| 804 | bcrisPlusEquiv p f (algebraMap (Acris p) (BcrisPlus p) x) = |
| 805 | algebraMap (Acris p) (BcrisPlus p) (acrisEquiv p f x) := by |
| 806 | unfold bcrisPlusEquiv |
| 807 | rw [IsLocalization.ringEquivOfRingEquiv_eq] |
| 808 | |
| 809 | theorem bcrisPlusEquiv_padicInt (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) (x : ℤ_[p]) : |
| 810 | bcrisPlusEquiv p f (padicIntToBcrisPlus p x) = padicIntToBcrisPlus p x := by |
| 811 | simp only [padicIntToBcrisPlus, RingHom.comp_apply, bcrisPlusEquiv_algebraMap, |
| 812 | acrisEquiv_algebraMap, acrisZeroMap_algebraMap, ainfMap_padicInt] |
| 813 | |
| 814 | theorem bcrisPlusEquiv_padicField (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) (x : ℚ_[p]) : |
| 815 | bcrisPlusEquiv p f (padicFieldToBcrisPlus p x) = padicFieldToBcrisPlus p x := by |
| 816 | have h : (bcrisPlusEquiv p f).toRingHom.comp (padicFieldToBcrisPlus p) = |
| 817 | padicFieldToBcrisPlus p := by |
| 818 | apply IsLocalization.ringHom_ext (M := nonZeroDivisors ℤ_[p]) |
| 819 | apply RingHom.ext |
| 820 | intro a |
| 821 | change bcrisPlusEquiv p f (padicFieldToBcrisPlus p (algebraMap ℤ_[p] ℚ_[p] a)) = |
| 822 | padicFieldToBcrisPlus p (algebraMap ℤ_[p] ℚ_[p] a) |
| 823 | rw [padicFieldToBcrisPlus_int] |
| 824 | exact bcrisPlusEquiv_padicInt p f a |
| 825 | exact congrArg (fun h : ℚ_[p] →+* BcrisPlus p => h x) h |
| 826 | |
| 827 | /-- The induced automorphism of `B_cris⁺` is linear over the actual `ℚ_p` |
| 828 | constants, with scalar compatibility proved from the Witt-vector construction. -/ |
| 829 | def bcrisPlusAlgEquiv (f : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : |
| 830 | BcrisPlus p ≃ₐ[ℚ_[p]] BcrisPlus p := |
| 831 | { bcrisPlusEquiv p f with |
| 832 | commutes' := bcrisPlusEquiv_padicField p f } |
| 833 | |
| 834 | /-- The usual absolute Galois group, realized on the algebraic closure of `ℚ_p`. -/ |
| 835 | abbrev PadicGalois := PadicAlgCl p ≃ₐ[ℚ_[p]] PadicAlgCl p |
| 836 | |
| 837 | theorem algebraicGalois_isometry (σ : PadicGalois p) : Isometry σ := by |
| 838 | apply AddMonoidHomClass.isometry_of_norm |
| 839 | intro x |
| 840 | change spectralNorm ℚ_[p] (PadicAlgCl p) (σ x) = |
| 841 | spectralNorm ℚ_[p] (PadicAlgCl p) x |
| 842 | exact (spectralNorm_eq_of_equiv σ x).symm |
| 843 | |
| 844 | /-- Extend an actual Galois automorphism to the completed algebraic closure. -/ |
| 845 | def galoisComplexEquiv (σ : PadicGalois p) : ℂ_[p] ≃+* ℂ_[p] := |
| 846 | UniformSpace.Completion.mapRingEquiv σ.toRingEquiv |
| 847 | (algebraicGalois_isometry p σ).continuous |
| 848 | (algebraicGalois_isometry p σ.symm).continuous |
| 849 | |
| 850 | theorem galoisComplex_isometry (σ : PadicGalois p) : Isometry (galoisComplexEquiv p σ) := |
| 851 | (algebraicGalois_isometry p σ).completion_map |
| 852 | |
| 853 | theorem complex_mem_integer_iff_norm (x : ℂ_[p]) : x ∈ 𝓞_ℂ_[p] ↔ ‖x‖ ≤ 1 := by |
| 854 | change Valued.v x ≤ 1 ↔ _ |
| 855 | rw [← NNReal.coe_le_coe, complex_valuation_norm] |
| 856 | rfl |
| 857 | |
| 858 | /-- Restrict a norm-preserving automorphism of `ℂ_p` to its ring of integers. -/ |
| 859 | def restrictComplexEquiv (e : ℂ_[p] ≃+* ℂ_[p]) (he : ∀ x, ‖e x‖ = ‖x‖) : |
| 860 | 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p] where |
| 861 | toFun x := ⟨e x, by |
| 862 | rw [complex_mem_integer_iff_norm, he] |
| 863 | exact (complex_mem_integer_iff_norm p x).mp x.property⟩ |
| 864 | invFun x := ⟨e.symm x, by |
| 865 | rw [complex_mem_integer_iff_norm, ← he, e.apply_symm_apply] |
| 866 | exact (complex_mem_integer_iff_norm p x).mp x.property⟩ |
| 867 | left_inv x := Subtype.ext (e.symm_apply_apply x) |
| 868 | right_inv x := Subtype.ext (e.apply_symm_apply x) |
| 869 | map_add' x y := Subtype.ext (map_add e (x : ℂ_[p]) y) |
| 870 | map_mul' x y := Subtype.ext (map_mul e (x : ℂ_[p]) y) |
| 871 | |
| 872 | /-- The Galois automorphism of the actual coefficient ring. -/ |
| 873 | def galoisIntegerEquiv (σ : PadicGalois p) : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p] := |
| 874 | restrictComplexEquiv p (galoisComplexEquiv p σ) |
| 875 | ((AddMonoidHomClass.isometry_iff_norm (galoisComplexEquiv p σ)).mp |
| 876 | (galoisComplex_isometry p σ)) |
| 877 | |
| 878 | /-- An actual Galois automorphism induces a `ℚ_p`-algebra automorphism of |
| 879 | the constructed `B_cris⁺`. Extension past `t` still needs cyclotomic equivariance. -/ |
| 880 | def galoisBcrisPlusEquiv (σ : PadicGalois p) : BcrisPlus p ≃ₐ[ℚ_[p]] BcrisPlus p := |
| 881 | bcrisPlusAlgEquiv p (galoisIntegerEquiv p σ) |
| 882 | |
| 883 | end NumberTheory.PadicHodge.PeriodInvariants.PeriodRing |
| 884 | |
| 885 | namespace NumberTheory.PadicHodge.PeriodInvariants.PeriodRing.TiltDivisibility |
| 886 | |
| 887 | /-! |
| 888 | # Divisibility in the actual tilt of O_Cp |
| 889 | |
| 890 | Compatible ratios in the completed algebraic closure prove the divisibility |
| 891 | statement needed to describe the kernel of theta modulo p. |
| 892 | -/ |
| 893 | |
| 894 | open OAI.NumberTheory.PadicHodge.PeriodInvariants.PeriodRing |
| 895 | open scoped NNReal |
| 896 | |
| 897 | variable (p : ℕ) [Fact p.Prime] |
| 898 | |
| 899 | theorem complex_mem_integer_of_p_pow (a : 𝓞_ℂ_[p]) (n : ℕ) {z : ℂ_[p]} |
| 900 | (hz : z ^ p ^ n = (a : ℂ_[p])) : z ∈ 𝓞_ℂ_[p] := by |
| 901 | change Valued.v z ≤ 1 |
| 902 | apply (pow_le_one_iff_of_nonneg (show 0 ≤ (Valued.v z : ℝ≥0) from bot_le) |
| 903 | (pow_ne_zero n (Fact.out : p.Prime).ne_zero)).mp |
| 904 | rw [← map_pow, hz] |
| 905 | exact a.property |
| 906 | |
| 907 | theorem coefficient_pow_complex (x : Perfection 𝓞_ℂ_[p] p) (n : ℕ) : |
| 908 | (x.val n : ℂ_[p]) ^ p ^ n = (x.val 0 : ℂ_[p]) := |
| 909 | congrArg (fun a : 𝓞_ℂ_[p] => (a : ℂ_[p])) |
| 910 | (Perfection.coeffMonoidHom_pow_p_pow_self x n) |
| 911 | |
| 912 | theorem coefficient_ne_zero (y : Perfection 𝓞_ℂ_[p] p) (hy : y.val 0 ≠ 0) (n : ℕ) : |
| 913 | (y.val n : ℂ_[p]) ≠ 0 := by |
| 914 | intro hn |
| 915 | have h := coefficient_pow_complex p y n |
| 916 | rw [hn, zero_pow (pow_ne_zero n (Fact.out : p.Prime).ne_zero)] at h |
| 917 | exact hy (Subtype.ext h.symm) |
| 918 | |
| 919 | theorem ratio_coefficient_integral (x y : Perfection 𝓞_ℂ_[p] p) (a : 𝓞_ℂ_[p]) |
| 920 | (hy : y.val 0 ≠ 0) (h : x.val 0 = y.val 0 * a) (n : ℕ) : |
| 921 | (x.val n : ℂ_[p]) / (y.val n : ℂ_[p]) ∈ 𝓞_ℂ_[p] := by |
| 922 | apply complex_mem_integer_of_p_pow p a n |
| 923 | rw [div_pow, coefficient_pow_complex, coefficient_pow_complex] |
| 924 | apply (div_eq_iff (coefficient_ne_zero p y hy 0)).mpr |
| 925 | have hh := congrArg (fun z : 𝓞_ℂ_[p] => (z : ℂ_[p])) h |
| 926 | change (x.val 0 : ℂ_[p]) = (y.val 0 : ℂ_[p]) * (a : ℂ_[p]) at hh |
| 927 | exact hh.trans (mul_comm _ _) |
| 928 | |
| 929 | def perfectionQuotient (x y : Perfection 𝓞_ℂ_[p] p) (a : 𝓞_ℂ_[p]) |
| 930 | (hy : y.val 0 ≠ 0) (h : x.val 0 = y.val 0 * a) : Perfection 𝓞_ℂ_[p] p := |
| 931 | ⟨fun n => ⟨(x.val n : ℂ_[p]) / (y.val n : ℂ_[p]), ratio_coefficient_integral p x y a hy h n⟩, |
| 932 | fun n => by |
| 933 | apply Subtype.val_injective |
| 934 | change ((x.val (n + 1) : ℂ_[p]) / (y.val (n + 1) : ℂ_[p])) ^ p = |
| 935 | (x.val n : ℂ_[p]) / (y.val n : ℂ_[p]) |
| 936 | rw [div_pow] |
| 937 | exact congrArg₂ (fun a b : ℂ_[p] => a / b) |
| 938 | (congrArg (fun z : 𝓞_ℂ_[p] => (z : ℂ_[p])) (x.property n)) |
| 939 | (congrArg (fun z : 𝓞_ℂ_[p] => (z : ℂ_[p])) (y.property n))⟩ |
| 940 | |
| 941 | theorem perfectionQuotient_spec (x y : Perfection 𝓞_ℂ_[p] p) (a : 𝓞_ℂ_[p]) |
| 942 | (hy : y.val 0 ≠ 0) (h : x.val 0 = y.val 0 * a) : |
| 943 | y * perfectionQuotient p x y a hy h = x := by |
| 944 | apply Perfection.extMonoid |
| 945 | intro n |
| 946 | apply Subtype.val_injective |
| 947 | change (y.val n : ℂ_[p]) * ((x.val n : ℂ_[p]) / (y.val n : ℂ_[p])) = (x.val n : ℂ_[p]) |
| 948 | exact mul_div_cancel₀ (x.val n : ℂ_[p]) (coefficient_ne_zero p y hy n) |
| 949 | |
| 950 | theorem tilt_dvd_of_untilt_dvd (x y : PreTilt 𝓞_ℂ_[p] p) |
| 951 | (hy : y.untilt ≠ 0) (h : y.untilt ∣ x.untilt) : y ∣ x := by |
| 952 | let xs := (tiltMonoidEquiv p).symm x |
| 953 | let ys := (tiltMonoidEquiv p).symm y |
| 954 | have hx0 : xs.val 0 = x.untilt := by |
| 955 | have hh := untilt_tiltMonoidEquiv p xs |
| 956 | change (tiltMonoidEquiv p xs).untilt = xs.val 0 at hh |
| 957 | have ht : tiltMonoidEquiv p xs = x := (tiltMonoidEquiv p).apply_symm_apply x |
| 958 | rw [ht] at hh |
| 959 | exact hh.symm |
| 960 | have hy0 : ys.val 0 = y.untilt := by |
| 961 | have hh := untilt_tiltMonoidEquiv p ys |
| 962 | change (tiltMonoidEquiv p ys).untilt = ys.val 0 at hh |
| 963 | have ht : tiltMonoidEquiv p ys = y := (tiltMonoidEquiv p).apply_symm_apply y |
| 964 | rw [ht] at hh |
| 965 | exact hh.symm |
| 966 | obtain ⟨a, ha⟩ := h |
| 967 | have hys : ys.val 0 ≠ 0 := hy0 ▸ hy |
| 968 | have hxy : xs.val 0 = ys.val 0 * a := by rw [hx0, hy0]; exact ha |
| 969 | refine ⟨tiltMonoidEquiv p (perfectionQuotient p xs ys a hys hxy), ?_⟩ |
| 970 | have he := congrArg (tiltMonoidEquiv p) (perfectionQuotient_spec p xs ys a hys hxy) |
| 971 | simpa only [map_mul, xs, ys, MulEquiv.apply_symm_apply] using he.symm |
| 972 | |
| 973 | def pRoots : Perfection 𝓞_ℂ_[p] p := |
| 974 | ⟨fun n => (integralPthRoot p)^[n] (p : 𝓞_ℂ_[p]), fun n => by |
| 975 | dsimp only |
| 976 | rw [Function.iterate_succ_apply', integralPthRoot_pow]⟩ |
| 977 | |
| 978 | def pTilt : PreTilt 𝓞_ℂ_[p] p := tiltMonoidEquiv p (pRoots p) |
| 979 | |
| 980 | theorem pTilt_untilt : (pTilt p).untilt = (p : 𝓞_ℂ_[p]) := |
| 981 | untilt_tiltMonoidEquiv p (pRoots p) |
| 982 | |
| 983 | theorem pTilt_dvd_of_coeff_zero (x : PreTilt 𝓞_ℂ_[p] p) (hx : PreTilt.coeff 0 x = 0) : |
| 984 | pTilt p ∣ x := by |
| 985 | apply tilt_dvd_of_untilt_dvd p x (pTilt p) |
| 986 | · rw [pTilt_untilt] |
| 987 | exact_mod_cast (Fact.out : p.Prime).ne_zero |
| 988 | · rw [pTilt_untilt] |
| 989 | apply Ideal.mem_span_singleton.mp |
| 990 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 991 | rw [PreTilt.mk_untilt_eq_coeff_zero, hx] |
| 992 | |
| 993 | end NumberTheory.PadicHodge.PeriodInvariants.PeriodRing.TiltDivisibility |
| 994 | |
| 995 | end |
| 996 | |
| 997 | end OAI |