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 Lib.General.Algebra.CohomologyBaseChange |
| 4 | import Lib.Cohomology.Etale.DenseSubfunctors |
| 5 | import Lib.PadicComparison.Completion |
| 6 | public import Lib.PadicComparison.Descent.TestCovers -- shake: keep (needed public by an exposed definition) |
| 7 | import TauCeti.RingTheory.Localization.Away.Basic |
| 8 | import TauCeti.RingTheory.Perfectoid.Integral.Tilt |
| 9 | import Lib.PadicHodge.PeriodRings.CrystallineRings |
| 10 | |
| 11 | /-! |
| 12 | # The ring R[1/p] of a p-adic test and the square-zero extension W(R♭)[1/p]/(ker θ)² |
| 13 | |
| 14 | Let `c` be a p-adic test with ring R = `c.ProdRing`, a product of valuation rings over O_C. Put K = |
| 15 | R[1/p] (`New.Variety.PadicTest.GenericRing`) and B = W(R♭)[1/p]/(ker θ)², where θ is Fontaine's map. |
| 16 | Since p is not a zero divisor in R, the map R → K is injective. B is a square-zero extension of K by |
| 17 | K, and the map ℚ̄_p → K lifts uniquely to B over ℤ_p. Both constructions are functorial in `c`. |
| 18 | |
| 19 | ## Main definitions and results |
| 20 | |
| 21 | * `New.Variety.genericOver`, `New.Variety.thickeningOver`: `c ↦ K` and `c ↦ B` as functors to |
| 22 | `k`-algebras. |
| 23 | * `New.Variety.thickeningOver.exact_mulMu_proj`: `0 → K → B → K → 0` is exact; the first map comes |
| 24 | from multiplication by `μ` (`New.Period.mu`). |
| 25 | * `New.Variety.exists_periodAlg_iso_genericAlg`, `New.Variety.hasZariskiDescent_genericOver`: `K` as |
| 26 | a completed tensor product; Zariski descent. |
| 27 | |
| 28 | Notions from other files: |
| 29 | * `New.Variety.PadicTest.TiltRing`: The tilt R♭, the inverse limit of R/p along Frobenius. |
| 30 | * `New.Period.Ainf`: The ring A_inf of p-typical Witt vectors over the tilt O♭ of O_C. |
| 31 | |
| 32 | ## Relation to the literature |
| 33 | |
| 34 | Known; see `Lib.PadicComparison.HodgeTate.PeriodMap` for sources. |
| 35 | -/ |
| 36 | |
| 37 | @[expose] public section |
| 38 | |
| 39 | noncomputable section |
| 40 | |
| 41 | /-! ## The ring R[1/p] and injectivity of R → R[1/p] -/ |
| 42 | |
| 43 | namespace New.Variety.PadicTest |
| 44 | |
| 45 | variable {p : ℕ} [ThePrime p] (c : PadicTest) |
| 46 | |
| 47 | /-- The ring R[1/p] obtained by inverting p in the ring R of a p-adic test. -/ |
| 48 | abbrev GenericRing : Type := Localization.Away (p : c.ProdRing) |
| 49 | |
| 50 | /-- The map `R → R[1/p]` is injective: an element of the ring `R` of a p-adic test that becomes |
| 51 | zero in `R[1/p]` is zero, since `p` is not a zero divisor in `R`. -/ |
| 52 | lemma eq_zero_of_algebraMap_genericRing (x : c.ProdRing) |
| 53 | (hx : algebraMap c.ProdRing c.GenericRing x = 0) : |
| 54 | x = 0 := |
| 55 | -- `p` is regular in `c.ProdRing`, so inverting `p` is injective. |
| 56 | (IsLocalization.Away.injective_iff_isRegular (S := c.GenericRing) (p : c.ProdRing)).mpr |
| 57 | (isLeftRegular_iff_isRegular.mp c.isLeftRegular_p) (hx.trans (map_zero _).symm) |
| 58 | |
| 59 | end New.Variety.PadicTest |
| 60 | |
| 61 | /-! ## The square-zero extension W(R♭)[1/p]/(ker θ)² of R[1/p] -/ |
| 62 | |
| 63 | section GenericFibreTests |
| 64 | |
| 65 | namespace New.Variety |
| 66 | |
| 67 | open CategoryTheory Function Ideal WittVector Period Algebra IsLocalization RingHom PadicTest |
| 68 | Functor CommAlgCat Quot FormallySmooth FormallyUnramified |
| 69 | |
| 70 | /-- The field k has characteristic zero and comes with an embedding in Q̄_p, the algebraic |
| 71 | closure of ℚ_p, for the fixed prime p. -/ |
| 72 | class EmbeddedInQpBar (p : outParam ℕ) (k : outParam Type) [Field k] extends ThePrime p, |
| 73 | Algebra k (PadicAlgCl p), CharZero k |
| 74 | |
| 75 | section |
| 76 | |
| 77 | variable {p : ℕ} [ThePrime p] (c : PadicTest) |
| 78 | |
| 79 | namespace PadicTest |
| 80 | |
| 81 | /-- The ℂ_p-algebra structure on R[1/p] of a p-adic test with ring R, induced from its structure map |
| 82 | O_C → R by inverting p. It is introduced through a choice, so that its definition does not |
| 83 | unfold. -/ |
| 84 | instance algebraGenericRing : ∀ c : PadicTest, Algebra ℂ_[p] c.GenericRing := |
| 85 | (@exists_eq _ (map _ ·.structureMap (powers_le_comap_powers p _) |>.toAlgebra)).choose |
| 86 | |
| 87 | /-- For a p-adic test c with ring R, the structure map ℂ_p → K = R[1/p]. -/ |
| 88 | def genericStructureMap : ℂ_[p] →+* c.GenericRing := algebraMap ℂ_[p] c.GenericRing |
| 89 | |
| 90 | /-- On `O_C`, the structure map `ℂ_p → R[1/p]` is the structure map `O_C → R` of the test followed |
| 91 | by `R → R[1/p]`. -/ |
| 92 | lemma genericStructureMap_coe (x : OC) : |
| 93 | c.genericStructureMap x.val = algebraMap ((i : c.Index) → c.Cell i) c.GenericRing |
| 94 | (c.structureMap x) := by |
| 95 | -- The algebra structure is defined through a choice, so the proof opens that choice. |
| 96 | simpa +instances [genericStructureMap, algebraGenericRing] using! map_eq .. |
| 97 | |
| 98 | /-- `O_C → ℂ_p → R[1/p]` is a scalar tower: on `O_C`, `genericStructureMap` is the structure map |
| 99 | `O_C → R` followed by `R → R[1/p]` (`genericStructureMap_coe`). -/ |
| 100 | instance : IsScalarTower OC ℂ_[p] c.GenericRing := |
| 101 | .of_algebraMap_eq fun x ↦ (c.genericStructureMap_coe x).symm |
| 102 | |
| 103 | /-- For a p-adic test with ring R, the map W(R^♭)[1/p] → R[1/p] obtained from Fontaine's map θ: |
| 104 | W(R^♭) → R by inverting p. -/ |
| 105 | def thetaGeneric : Localization.Away (p : WittVector p c.TiltRing) →+* c.GenericRing := |
| 106 | IsLocalization.map c.GenericRing (fontaineTheta c.ProdRing p) |
| 107 | (powers_le_comap_powers p (fontaineTheta c.ProdRing p)) |
| 108 | |
| 109 | /-- On `A_inf`, the map `θ : W(R♭)[1/p] → R[1/p]` is Fontaine's `θ : A_inf → O_C` followed by the |
| 110 | structure map. -/ |
| 111 | lemma thetaGeneric_algebraMap_ainf (a : Ainf) : |
| 112 | c.thetaGeneric (algebraMap Ainf (Localization.Away (p : WittVector p c.TiltRing)) a) = |
| 113 | c.genericStructureMap (theta a) := by |
| 114 | -- On `A_inf` the algebra map to `W(R♭)` is induced by the tilt of `O_C → R`, by definition. |
| 115 | change c.thetaGeneric (algebraMap (WittVector p c.TiltRing) _ |
| 116 | (WittVector.map (PreTilt.map p c.structureMap) a)) = _ |
| 117 | rw [thetaGeneric, IsLocalization.map_eq, WittVector.theta_natural, genericStructureMap_coe] |
| 118 | |
| 119 | /-- `θ` kills the element `μ = [ε] - 1` of `A_inf`. -/ |
| 120 | lemma thetaGeneric_mu : |
| 121 | c.thetaGeneric (algebraMap Ainf (Localization.Away (p : WittVector p c.TiltRing)) mu) = 0 := by |
| 122 | simp [thetaGeneric_algebraMap_ainf, mu_eq] |
| 123 | |
| 124 | /-- For a p-adic test with ring R, the quotient B = W(R^♭)[1/p]/(ker θ)², where |
| 125 | θ: W(R^♭)[1/p] → R[1/p]. -/ |
| 126 | abbrev Thickening : Type := Localization.Away (p : WittVector p c.TiltRing) ⧸ ker c.thetaGeneric ^ 2 |
| 127 | |
| 128 | /-- For a p-adic test with ring R, the ring map W(R^♭)[1/p]/(ker θ)² → R[1/p] induced by θ. -/ |
| 129 | def thickeningProj : |
| 130 | Localization.Away (p : WittVector p c.TiltRing) ⧸ ker c.thetaGeneric ^ 2 →+* c.GenericRing := |
| 131 | Ideal.Quotient.lift (ker c.thetaGeneric ^ 2) c.thetaGeneric (pow_le_self (by simp)) |
| 132 | |
| 133 | /-- `R[1/p]` is the localisation of `R` at the image under `f : S → R` of the powers of `p`, for any |
| 134 | ring `S`. -/ |
| 135 | instance isLocalization_genericRing {S : Type*} [CommRing S] (f : S →+* c.ProdRing) : |
| 136 | IsLocalization (Submonoid.map f (Submonoid.powers (p : S))) c.GenericRing := by |
| 137 | rw [Submonoid.map_powers, map_natCast] |
| 138 | infer_instance |
| 139 | |
| 140 | /-- The map `W(R♭)[1/p] / (ker θ)² → R[1/p]` induced by `θ` is onto: Fontaine's `θ` is onto, and it |
| 141 | stays onto after inverting `p`. -/ |
| 142 | lemma thickeningProj_surjective : Surjective c.thickeningProj := |
| 143 | (surjective_lift _).2 (map_surjective_of_surjective |
| 144 | (M := Submonoid.powers (p : WittVector p c.TiltRing)) (Q := c.GenericRing) |
| 145 | (S := Localization.Away (p : WittVector p c.TiltRing)) |
| 146 | fontaineTheta_surjective_of_isAbsIntegrallyClosed) |
| 147 | |
| 148 | /-- The kernel of `θ : W(R♭)[1/p] → R[1/p]` is generated by the image of `ξ`: Fontaine's `θ` has |
| 149 | kernel `(ξ)`, and inverting `p` keeps this. -/ |
| 150 | lemma ker_thetaGeneric_eq_span_xi : |
| 151 | ker c.thetaGeneric = |
| 152 | span {algebraMap Ainf (Localization.Away (p : WittVector p c.TiltRing)) xi} := by |
| 153 | -- The image of `ξ` in `W(R♭)[1/p]` passes through `W(R♭)`, by the definition of the algebra. |
| 154 | change _ = span {(algebraMap (WittVector p c.TiltRing) _ |
| 155 | (WittVector.map (algebraMap OFlat c.TiltRing) xi))} |
| 156 | simp [thetaGeneric, ker_map, map_span] |
| 157 | |
| 158 | lemma thickeningProj_surjective_and_ker_thetaGeneric : |
| 159 | Surjective c.thickeningProj ∧ |
| 160 | ker c.thetaGeneric = |
| 161 | span {algebraMap Ainf (Localization.Away (p : WittVector p c.TiltRing)) xi} := |
| 162 | ⟨c.thickeningProj_surjective, c.ker_thetaGeneric_eq_span_xi⟩ |
| 163 | |
| 164 | lemma ker_thickeningProj_sq : ker c.thickeningProj ^ 2 = ⊥ := by |
| 165 | simp [thickeningProj, ker_quotient_lift, ← Ideal.map_pow] |
| 166 | |
| 167 | /-- The product of two elements in the kernel of the thickening projection is zero. -/ |
| 168 | lemma mul_eq_zero_of_mem_ker_thickeningProj {a b : c.Thickening} |
| 169 | (ha : a ∈ ker c.thickeningProj) (hb : b ∈ ker c.thickeningProj) : a * b = 0 := by |
| 170 | have h_sq : ker c.thickeningProj * ker c.thickeningProj = ⊥ := |
| 171 | (pow_two (ker c.thickeningProj)).symm.trans c.ker_thickeningProj_sq |
| 172 | exact h_sq.le (mul_mem_mul ha hb) |
| 173 | |
| 174 | /-- The structure map `ℚ̄_p → ℂ_p → R[1/p]` lifts uniquely along `thickeningProj` to a |
| 175 | `ℤ_p`-algebra map into the thickening, since `ℚ̄_p` is formally étale over `ℤ_p`. -/ |
| 176 | lemma existsUnique_lift_thickening : |
| 177 | ∃! ρ : PadicAlgCl p →ₐ[ℤ_[p]] c.Thickening, |
| 178 | ∀ z : PadicAlgCl p, c.thickeningProj (ρ z) = c.genericStructureMap z := by |
| 179 | -- `thickeningProj` is onto with square-zero kernel, and `ℤ_p → ℚ_p → ℚ̄_p` is formally étale. |
| 180 | let : Algebra ℤ_[p] c.GenericRing := restrictScalars ℤ_[p] ℂ_[p] c.GenericRing |
| 181 | have h_nil : IsNilpotent (ker c.thickeningProj) := ⟨2, c.ker_thickeningProj_sq⟩ |
| 182 | have : FormallyEtale ℤ_[p] ℚ_[p] := .of_isLocalization (nonZeroDivisors ℤ_[p]) |
| 183 | have : FormallyEtale ℚ_[p] (PadicAlgCl p) := .of_isSeparable ℚ_[p] (PadicAlgCl p) |
| 184 | have : FormallyEtale ℤ_[p] (PadicAlgCl p) := .comp ℤ_[p] ℚ_[p] (PadicAlgCl p) |
| 185 | -- The structure map `ℚ̄_p → ℂ_p → R[1/p]` as a `ℤ_p`-algebra map. |
| 186 | let s : PadicAlgCl p →ₐ[ℤ_[p]] c.GenericRing := |
| 187 | ⟨c.genericStructureMap.comp (algebraMap (PadicAlgCl p) ℂ_[p]), fun _ ↦ rfl⟩ |
| 188 | -- `thickeningProj` is `ℤ_p`-linear, as there is only one ring map `ℤ_p → OC`. |
| 189 | have h_linear (a : ℤ_[p]) : |
| 190 | c.thickeningProj (algebraMap ℤ_[p] c.Thickening a) = algebraMap ℤ_[p] c.GenericRing a := by |
| 191 | rw [IsScalarTower.algebraMap_apply ℤ_[p] Ainf c.Thickening] |
| 192 | exact (c.thetaGeneric_algebraMap_ainf _).trans |
| 193 | (congrArg c.genericStructureMap ((OC.toPadicIntAlgHom _).commutes a)) |
| 194 | let π : c.Thickening →ₐ[ℤ_[p]] c.GenericRing := ⟨c.thickeningProj, h_linear⟩ |
| 195 | change ∃! ρ : PadicAlgCl p →ₐ[ℤ_[p]] c.Thickening, ∀ z, π (ρ z) = s z |
| 196 | simpa only [AlgHom.ext_iff, AlgHom.comp_apply] using |
| 197 | New.Variety.existsUnique_algHom_lift s π c.thickeningProj_surjective h_nil |
| 198 | |
| 199 | /-- The unique `ℤ_p`-algebra map from `ℚ̄_p` to the thickening that lifts the structure map |
| 200 | `ℚ̄_p → ℂ_p → R[1/p]` along `thickeningProj`. -/ |
| 201 | def uniqueLift : PadicAlgCl p →ₐ[ℤ_[p]] c.Thickening := |
| 202 | c.existsUnique_lift_thickening.exists.choose |
| 203 | |
| 204 | lemma thickeningProj_uniqueLift (z : PadicAlgCl p) : |
| 205 | c.thickeningProj (c.uniqueLift z) = c.genericStructureMap z := |
| 206 | c.existsUnique_lift_thickening.exists.choose_spec z |
| 207 | |
| 208 | /-- Every `ℤ_p`-algebra map that lifts the structure map along `thickeningProj` is |
| 209 | `uniqueLift`. -/ |
| 210 | lemma eq_uniqueLift (ρ : PadicAlgCl p →ₐ[ℤ_[p]] c.Thickening) |
| 211 | (hρ : ∀ z : PadicAlgCl p, c.thickeningProj (ρ z) = c.genericStructureMap z) : |
| 212 | ρ = c.uniqueLift := |
| 213 | c.existsUnique_lift_thickening.unique hρ c.thickeningProj_uniqueLift |
| 214 | |
| 215 | variable {c} {d : PadicTest} (f : c ⟶ d) |
| 216 | |
| 217 | /-! ### Maps induced by a morphism of tests -/ |
| 218 | |
| 219 | /-- For a morphism of p-adic tests with rings R, R', the induced ℂ_p-algebra map |
| 220 | R[1/p] → R'[1/p]. -/ |
| 221 | def mapGeneric : c.GenericRing →ₐ[ℂ_[p]] d.GenericRing where |
| 222 | toRingHom := IsLocalization.map d.GenericRing f.toRingHom (powers_le_comap_powers p f.toRingHom) |
| 223 | commutes' _ := by |
| 224 | simp +instances [algebraMap_toAlgebra, algebraGenericRing, IsLocalization.map_map] |
| 225 | congr |
| 226 | exact f.comp_algebraMap |
| 227 | |
| 228 | /-- `mapGeneric f` extends the map `f : R → R'` of the rings of the tests. -/ |
| 229 | lemma mapGeneric_algebraMap (x : c.ProdRing) : |
| 230 | mapGeneric f (algebraMap c.ProdRing c.GenericRing x) = |
| 231 | algebraMap d.ProdRing d.GenericRing (f.toRingHom x) := |
| 232 | lift_eq .. |
| 233 | |
| 234 | /-- For a morphism of p-adic tests, the induced A_inf-algebra map between the quotients |
| 235 | W(R^♭)[1/p]/(ker θ)². -/ |
| 236 | def mapThickening : c.Thickening →ₐ[Ainf] d.Thickening := |
| 237 | quotientMapₐ (ker d.thetaGeneric ^ 2) |
| 238 | -- the map of Witt vectors induced by `f`, with `p` inverted |
| 239 | ⟨IsLocalization.map _ (_ : WittVector p c.TiltRing →+* WittVector p d.TiltRing) |
| 240 | (powers_le_comap_powers p _), |
| 241 | fun a ↦ (map_eq ..).trans (congrArg _ (((tilt ⋙ wittFunctor).map f).hom'.commutes' a))⟩ |
| 242 | -- both kernels are generated by the image of `xi` |
| 243 | (by simp [thickeningProj_surjective_and_ker_thetaGeneric, span_singleton_pow, -AlgHom.coe_mk]) |
| 244 | |
| 245 | /-- The maps induced by `f` on the thickenings and on the rings `R[1/p]` commute with the |
| 246 | projections `thickeningProj`. -/ |
| 247 | lemma thickeningProj_mapThickening : |
| 248 | ∀ x : c.Thickening, |
| 249 | d.thickeningProj (mapThickening f x) = mapGeneric f (c.thickeningProj x) := by |
| 250 | rintro ⟨x⟩ |
| 251 | change d.thetaGeneric _ = mapGeneric f (c.thetaGeneric x) |
| 252 | simp [thetaGeneric, mapGeneric, IsLocalization.map_map, RingHom.comp, WittVector.theta_natural, |
| 253 | tilt, wittFunctor] |
| 254 | |
| 255 | lemma mapThickening_uniqueLift (z : PadicAlgCl p) : |
| 256 | mapThickening f (c.uniqueLift z) = d.uniqueLift z := by |
| 257 | -- `mapThickening f` composed with the lift for `c` lifts `d.genericStructureMap`; such a lift is |
| 258 | -- unique. |
| 259 | have h_lift (w : PadicAlgCl p) : |
| 260 | d.thickeningProj (mapThickening f (c.uniqueLift w)) = d.genericStructureMap w := by |
| 261 | rw [thickeningProj_mapThickening, thickeningProj_uniqueLift] |
| 262 | exact (mapGeneric f).commutes _ |
| 263 | exact DFunLike.congr_fun |
| 264 | (d.eq_uniqueLift (((mapThickening f).restrictScalars ℤ_[p]).comp c.uniqueLift) h_lift) z |
| 265 | |
| 266 | /-! ### The functors `c ↦ c.GenericRing` and `c ↦ c.Thickening` -/ |
| 267 | |
| 268 | /-- The functor sending a p-adic test with ring R to R[1/p], as a ℂ_p-algebra. -/ |
| 269 | def genericAlg : PadicTest ⥤ CommAlg ℂ_[p] where |
| 270 | obj c := CommAlgCat.of ℂ_[p] c.GenericRing |
| 271 | map f := ofHom (mapGeneric f) |
| 272 | map_id _ := CommAlgCat.hom_ext (AlgHom.ext IsLocalization.map_id) |
| 273 | map_comp := by aesop (add simp [mapGeneric, IsLocalization.map_map]) |
| 274 | |
| 275 | /-- The functor from p-adic tests to test rings (`TestRing`: commutative rings with the test |
| 276 | property, which passes from R to R[1/p]) sending a test with ring R to R[1/p]. -/ |
| 277 | def genericTest : PadicTest ⥤ TestRing := |
| 278 | -- The maps are written out, so that the kernel compares a test with its twists without |
| 279 | -- unfolding `genericAlg`. |
| 280 | ObjectProperty.lift _ |
| 281 | { genericAlg ⋙ forget₂ (CommAlg ℂ_[p]) CommRingCat with |
| 282 | obj := _, |
| 283 | map f := CommRingCat.ofHom (mapGeneric f).toRingHom } |
| 284 | fun c ↦ c.isTest.localization |
| 285 | |
| 286 | end PadicTest |
| 287 | |
| 288 | /-- The coefficient on p-adic tests sending a test with ring R to the additive group of R[1/p]. -/ |
| 289 | abbrev genericCoeff : AbFunctor PadicTest := moduleCoeff (asModules genericAlg) |
| 290 | |
| 291 | /-! ### Comparison with completed tensor products, and Zariski descent -/ |
| 292 | |
| 293 | /-- On p-adic tests with ring R there is a natural isomorphism of ℂ_p-modules (bound as `θ` in the |
| 294 | statement) from ℂ_p ⊗_{O_C} (O_C ⊗_{A_inf} W(R^♭))^, the hat denoting p-adic completion, to R[1/p], |
| 295 | sending a ⊗ (1 ⊗ w) to a · (Fontaine's map `fontaineTheta` applied to w). -/ |
| 296 | lemma exists_periodAlg_iso_genericAlg : |
| 297 | ∃ θ : asModules (tilt ⋙ periodAlg OC) ⋙ tensorWith ℂ_[p] ℂ_[p] ≅ asModules genericAlg, |
| 298 | ∀ (c : PadicTest) (a : ℂ_[p]) (w : (wittFunctor (WittVector p OFlat)).obj (tilt.obj c)), |
| 299 | θ.hom c (a ⊗ₜ AdicCompletion.of _ _ (1 ⊗ₜ w)) = |
| 300 | c.genericStructureMap a * algebraMap c.ProdRing c.GenericRing |
| 301 | (fontaineTheta c.ProdRing p w) := by |
| 302 | -- Compose three isomorphisms: `thetaIso : O_C ⊗ W(ProdRing♭) ≅ ProdRing` under completion, the |
| 303 | -- inverse of `ProdRing ≅ ProdRing^`, and `ℂ_p ⊗ ProdRing ≅ ProdRing[1/p]`. |
| 304 | let toCpl : algFunctor ≅ algFunctor ⋙ algCompletion OC p := |
| 305 | isoOfAppBijective (algFunctor.whiskerLeft (algCompletion.of OC p)) fun c ↦ |
| 306 | AdicCompletion.of_bijective_iff.mpr c.isAdicComplete_prodRing |
| 307 | let θ : tilt ⋙ periodAlg OC ≅ algFunctor := |
| 308 | isoWhiskerRight thetaIso (algCompletion OC p) ≪≫ toCpl.symm |
| 309 | have hθ (c : PadicTest) (w : (wittFunctor (WittVector p OFlat)).obj (tilt.obj c)) : |
| 310 | θ.hom c (.of _ _ (1 ⊗ₜ w)) = fontaineTheta c.ProdRing p w := by |
| 311 | rw [← c.thetaIso_hom_one_tmul w] |
| 312 | exact (congrArg _ (adicMap_algebraMap ..)).trans (toCpl.hom_inv_id_app_apply ..) |
| 313 | let invert : asModules algFunctor ⋙ tensorWith ℂ_[p] ℂ_[p] ≅ asModules genericAlg := |
| 314 | NatIso.ofComponents |
| 315 | (fun c ↦ |
| 316 | ((isLocalization_iff_isPushout _ ℂ_[p]).1 |
| 317 | (c.isLocalization_genericRing _)).symm.out.equiv.toModuleIso) |
| 318 | fun f ↦ ModuleCat.hom_ext <| tmul_ext fun a x ↦ by |
| 319 | -- Both sides unfold to `a • algebraMap _ _ (f x)`, through the composite module maps and |
| 320 | -- the pushout equivalence. |
| 321 | exact .symm ((map_smul (mapGeneric f) a _).trans |
| 322 | (congrArg (a • ·) (mapGeneric_algebraMap f x))) |
| 323 | refine ⟨isoWhiskerRight θ (asModules (𝟭 _) ⋙ tensorWith ℂ_[p] ℂ_[p]) ≪≫ invert, fun c a w ↦ ?_⟩ |
| 324 | -- `invert` sends `a ⊗ x` to `a • x`, and `θ` sends `1 ⊗ w` to `θ(w)`. |
| 325 | exact (congrArg (a • algebraMap c.ProdRing c.GenericRing ·) (hθ c w)).trans |
| 326 | (c.algebraGenericRing.smul_def' a _) |
| 327 | |
| 328 | end |
| 329 | |
| 330 | variable {p : ℕ} {k : Type} [Field k] [EmbeddedInQpBar p k] (c : PadicTest) |
| 331 | |
| 332 | /-- `ℂ_p` is a `k`-algebra through `k → ℚ̄_p → ℂ_p`. -/ |
| 333 | instance : Algebra k ℂ_[p] := .restrictScalars k (PadicAlgCl p) _ |
| 334 | |
| 335 | /-- `k` acts on `R[1/p]` through `k → ℂ_p`. -/ |
| 336 | instance : CoeffAction k genericCoeff := ⟨CoeffAction.act.comp (algebraMap k ℂ_[p])⟩ |
| 337 | |
| 338 | /-- For a field k with an embedding in Q̄_p, the functor sending a p-adic test with ring R to |
| 339 | R[1/p], as a k-algebra. -/ |
| 340 | def genericOver : PadicTest ⥤ CommAlg k := genericAlg ⋙ restrictAlg k ℂ_[p] |
| 341 | |
| 342 | /-- The thickening is a `k`-algebra through `k → ℚ̄_p` followed by `uniqueLift`. -/ |
| 343 | instance : Algebra k c.Thickening := |
| 344 | (c.uniqueLift.toRingHom.comp (algebraMap k (PadicAlgCl p))).toAlgebra |
| 345 | |
| 346 | /-- The functor sending a test `c` to the `k`-algebra `c.Thickening = W(R♭)[1/p] / (ker θ)²`. -/ |
| 347 | def thickeningOver : PadicTest ⥤ CommAlg k where |
| 348 | obj c := .of k c.Thickening |
| 349 | map f := ofHom |
| 350 | ⟨mapThickening f, fun a ↦ mapThickening_uniqueLift f (algebraMap k (PadicAlgCl p) a)⟩ |
| 351 | map_id c := by |
| 352 | ext ⟨x⟩ |
| 353 | exact congrArg (⟦·⟧) (by simpa using! IsLocalization.map_id x) |
| 354 | map_comp f g := by |
| 355 | ext ⟨x⟩ |
| 356 | exact congrArg (⟦·⟧) (by simpa using! .symm (IsLocalization.map_map ..)) |
| 357 | |
| 358 | /-- Let `Θ : C ⥤ PadicTest` and let `F : AbFunctor C`, a functor from `C` to abelian groups, be |
| 359 | additive on idempotent partitions (`New.Variety.HasPartitions`) for the rings `R` of the tests |
| 360 | `Θ(X)`. Then `F` satisfies Zariski descent (`New.Variety.HasZariskiDescent`) for the rings |
| 361 | `R[1/p]`. -/ |
| 362 | lemma hasZariskiDescent_genericOver {C : Type 1} [Category C] (Θ : C ⥤ PadicTest) {F : AbFunctor C} |
| 363 | (h : HasPartitions (Θ ⋙ ringFunctor) F) : |
| 364 | HasZariskiDescent (Θ ⋙ genericOver ⋙ forget₂ (CommAlg k) CommRingCat) F := by |
| 365 | -- The two hypotheses of `HasPartitions.hasZariskiDescent` for `R → R[1/p]`: the map is injective, |
| 366 | -- and elements of `R[1/p]` are associated to elements of `R`, which are comparable for |
| 367 | -- divisibility after cutting along an idempotent. |
| 368 | exact h.hasZariskiDescent |
| 369 | ⟨_, fun _ _ g ↦ |
| 370 | CommRingCat.hom_ext (RingHom.ext fun x ↦ (mapGeneric_algebraMap (Θ.map g) x).symm)⟩ |
| 371 | (fun c ↦ eq_zero_of_algebraMap_genericRing (Θ c)) |
| 372 | fun X ↦ (Θ.obj X).isTest.isComparableRing_of_associated exists_associated_localization |
| 373 | |
| 374 | namespace thickeningOver |
| 375 | |
| 376 | /-! ### The square-zero extension `0 → c.GenericRing → c.Thickening → c.GenericRing → 0` -/ |
| 377 | |
| 378 | /-- The projection `thickeningProj` from the thickening onto `R[1/p]`, as a natural map of |
| 379 | `k`-algebras. -/ |
| 380 | def proj : thickeningOver (k := k) ⟶ genericOver where |
| 381 | app c := CommAlg.homOfRingHom c.thickeningProj fun a ↦ |
| 382 | c.thickeningProj_uniqueLift (algebraMap k (PadicAlgCl p) a) |
| 383 | naturality c d f := by |
| 384 | ext x |
| 385 | exact thickeningProj_mapThickening f x |
| 386 | |
| 387 | /-- The additive map R[1/p] → W(R^♭)[1/p]/(ker θ)² sending θ(x) to the class of μx, where |
| 388 | μ = [ε] − 1. It is well defined since θ is onto and μ · ker θ ⊆ (ker θ)². -/ |
| 389 | def mulMu : genericOver c →+ thickeningOver c := |
| 390 | c.thickeningProj.toAddMonoidHom.liftOfSurjective c.thickeningProj_surjective |
| 391 | ⟨AddMonoidHom.mulLeft ⟦algebraMap Ainf _ mu⟧, |
| 392 | fun _ hb ↦ c.mul_eq_zero_of_mem_ker_thickeningProj c.thetaGeneric_mu hb⟩ |
| 393 | |
| 394 | /-- `mulMu` sends `θ(b)` to `μ b`. -/ |
| 395 | lemma mulMu_thickeningProj (b : c.Thickening) : |
| 396 | mulMu c (c.thickeningProj b) = (algebraMap Ainf c.Thickening mu * b : c.Thickening) := |
| 397 | AddMonoidHom.liftOfRightInverse_comp_apply .. |
| 398 | |
| 399 | /-- `proj` kills the image of `mulMu`, since `θ(μ) = 0`. -/ |
| 400 | lemma proj_mulMu : ∀ t : genericOver.obj c, proj c (mulMu c t) = 0 := by |
| 401 | refine c.thickeningProj_surjective.forall.mpr fun b ↦ ?_ |
| 402 | -- `proj c` is `thickeningProj`, and `θ(μ) = 0`. |
| 403 | change c.thickeningProj (mulMu c (c.thickeningProj b)) = 0 |
| 404 | rw [mulMu_thickeningProj, map_mul, |
| 405 | show c.thickeningProj (algebraMap Ainf c.Thickening mu) = 0 from c.thetaGeneric_mu, zero_mul] |
| 406 | |
| 407 | /-- `mulMu` is linear over the thickening, which acts on `R[1/p]` through `proj`. -/ |
| 408 | lemma mulMu_proj_mul (b : thickeningOver.obj c) : |
| 409 | ∀ t : genericOver.obj c, mulMu c (proj c b * t) = b * mulMu c t := by |
| 410 | refine c.thickeningProj_surjective.forall.mpr fun b' ↦ ?_ |
| 411 | -- `b` lives in `thickeningOver.obj c`, and `proj c b` is `c.thickeningProj b` up to unfolding. |
| 412 | refine (congrArg (mulMu c) (map_mul c.thickeningProj b b').symm).trans <| |
| 413 | (mulMu_thickeningProj ..).trans ?_ |
| 414 | rw [mulMu_thickeningProj] |
| 415 | exact mul_left_comm .. |
| 416 | |
| 417 | /-- `mulMu` commutes with the maps induced by a morphism `f` of tests. -/ |
| 418 | lemma map_mulMu (d : PadicTest) (f : c ⟶ d) : |
| 419 | ∀ t : genericOver.obj c, thickeningOver.map f (mulMu c t) = mulMu d (genericOver.map f t) := by |
| 420 | refine c.thickeningProj_surjective.forall.mpr fun b ↦ ?_ |
| 421 | change mapThickening f (mulMu c (c.thickeningProj b)) = |
| 422 | mulMu d (mapGeneric f (c.thickeningProj b)) |
| 423 | rw [← thickeningProj_mapThickening, mulMu_thickeningProj, mulMu_thickeningProj, |
| 424 | map_mul (mapThickening f), AlgHom.commutes] |
| 425 | |
| 426 | /-- `ξ` is not a zero divisor in `W(R♭)[1/p]`. -/ |
| 427 | lemma isLeftRegular_xi {p : ℕ} [ThePrime p] (c : PadicTest) : |
| 428 | IsLeftRegular (algebraMap Ainf (Localization.Away (p : WittVector p c.TiltRing)) xi) := by |
| 429 | -- `ξ` is distinguished in `A_inf`, hence also in `W(R♭)`, and its zeroth coordinate vanishes |
| 430 | -- modulo `p`; so `ξ` is a nonzerodivisor in `W(R♭)`, hence also after inverting `p`. |
| 431 | let ξ : WittVector p c.TiltRing := WittVector.map (PreTilt.map p c.structureMap) xi |
| 432 | have h_dist : ξ.IsDistinguished := |
| 433 | (TauCeti.Perfectoid.IsIntegralPerfectoid.isDistinguished_of_ker_fontaineTheta_eq_span |
| 434 | ker_theta_eq_span_xi).map (PreTilt.map p c.structureMap) |
| 435 | have h_coeff : PreTilt.coeff 0 (ξ.coeff 0) = 0 := by |
| 436 | rw [← mk_fontaineTheta, WittVector.theta_natural, theta_xi, map_zero, map_zero] |
| 437 | have : IsHausdorff (span {ξ.coeff 0}) c.TiltRing := |
| 438 | Perfection.isHausdorff_span_singleton_of_coeff_zero_eq_zero h_coeff |
| 439 | have h_mem : algebraMap _ (Localization.Away (p : WittVector p c.TiltRing)) ξ ∈ |
| 440 | nonZeroDivisors (Localization.Away (p : WittVector p c.TiltRing)) := |
| 441 | IsLocalization.nonZeroDivisors_le_comap (Submonoid.powers (p : WittVector p c.TiltRing)) |
| 442 | (Localization.Away _) (h_dist.mem_nonZeroDivisors (le_radical (mem_span_singleton_self _))) |
| 443 | exact (isRegular_iff_mem_nonZeroDivisors.mpr h_mem).left |
| 444 | |
| 445 | /-- For a `p`-adic test `c` with ring `R`, `proj c : W(R♭)[1/p] / (ker θ)² → R[1/p]` is the map |
| 446 | induced by `θ`, and `mulMu c : R[1/p] → W(R♭)[1/p] / (ker θ)²` sends `θ(x)` to the class of `μx`, |
| 447 | where `μ = [ε] − 1`. The sequence `0 → R[1/p] → W(R♭)[1/p] / (ker θ)² → R[1/p] → 0` given by |
| 448 | `mulMu c` and `proj c` is exact: `proj c` is surjective, `mulMu c` is injective, and the image of |
| 449 | `mulMu c` is the kernel of `proj c`. -/ |
| 450 | lemma exact_mulMu_proj : |
| 451 | Surjective (proj c) ∧ Function.Injective (mulMu c) ∧ Exact (mulMu c) (proj c) := by |
| 452 | -- `ker thetaGeneric = (ξ)` and `μ = ξ τ` with `t = θ(τ)` a unit of `c.GenericRing`; so `mulMu` |
| 453 | -- is, up to the unit `t`, the isomorphism `c.GenericRing ≅ (ξ) / (ξ²)`. |
| 454 | obtain ⟨h_proj_surj, h_ker_eq⟩ := c.thickeningProj_surjective_and_ker_thetaGeneric |
| 455 | obtain ⟨t, ht⟩ : IsUnit (c.genericStructureMap (theta tau)) := |
| 456 | (IsUnit.mk0 ((theta tau : OC) : ℂ_[p]) (by simp)).map c.genericStructureMap |
| 457 | have h_mulMu_eq_iff (y : Localization.Away (p : WittVector p c.TiltRing)) (a : c.GenericRing) : |
| 458 | mulMu c a = Ideal.Quotient.mk (ker c.thetaGeneric ^ 2) (algebraMap Ainf _ xi * y) ↔ |
| 459 | t * a = c.thetaGeneric y := by |
| 460 | obtain ⟨b, rfl⟩ := h_proj_surj a |
| 461 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective b |
| 462 | rw [mulMu_thickeningProj] |
| 463 | change Ideal.Quotient.mk _ (algebraMap Ainf _ mu * x) = _ ↔ t * c.thetaGeneric x = _ |
| 464 | rw [Ideal.Quotient.eq, ht, ← thetaGeneric_algebraMap_ainf, ← map_mul, |
| 465 | ← sub_mem_ker_iff, h_ker_eq, span_singleton_pow] |
| 466 | simpa [← xi_mul_tau, mul_assoc, ← mul_sub, mem_span_singleton, sq, -isUnit_map_iff] using |
| 467 | (isLeftRegular_xi c).dvd_cancel_left |
| 468 | refine ⟨h_proj_surj, by simpa [injective_iff_map_eq_zero'] using! h_mulMu_eq_iff 0, ?_⟩ |
| 469 | rintro ⟨x⟩ |
| 470 | refine ⟨fun hx ↦ ?_, fun ⟨a, ha⟩ ↦ ha ▸ proj_mulMu c a⟩ |
| 471 | obtain ⟨y, rfl⟩ := mem_span_singleton.mp (h_ker_eq.le hx) |
| 472 | exact ⟨_, (h_mulMu_eq_iff y _).mpr (t.mul_inv_cancel_left _)⟩ |
| 473 | |
| 474 | /-- For a p-adic test with ring R, the multiplicative map x ↦ [x] from the tilt R^♭ to |
| 475 | B = W(R^♭)[1/p]/(ker θ)², the image of the Teichmüller lift. -/ |
| 476 | def teichmullerLift : tilt c →* thickeningOver c := |
| 477 | (algebraMap (WittVector p c.TiltRing) c.Thickening).toMonoidHom.comp |
| 478 | (@teichmuller p c.TiltRing ..) |
| 479 | |
| 480 | end thickeningOver |
| 481 | |
| 482 | end New.Variety |
| 483 | |
| 484 | end GenericFibreTests |
| 485 | |
| 486 | end |