Lean source
Lib.Cohomology.Etale.TestCohomology
Its 17 declarations
IsAICLocalclass, line 15IsTeststructure, lines 19–20TestRingabbrev, line 24testInclabbrev, line 28PointFunctorabbrev, line 32locConstSpecdef, lines 39–40locConstCoeffdef, line 44mapOnTestsabbrev, line 48HV.abbrev, line 52map Componentsabbrev, line 56HasCohomDenseImageabbrev, line 60pointsToBasedef, lines 64–65baseRingMapdef, line 69baseRingMap_maplemma, lines 71–72zeroPointsdef, line 76unitPointsdef, lines 80–81baseChangeOfabbrev, line 84
import Lib.Cohomology.Etale.Defsimport Lib.General.Algebra.AdicRingHomExt/-! Part of: Descent of torsion étale cohomology along v-covers; excision, transfer, limits (knownresult; see Lib.Cohomology.Etale.ContinuityAtlas).This file: Test rings, functors of points, locally constant coefficients, cohomology as Ext. -/open PrimeSpectrum AlgebraicGeometry CategoryTheoryvariable (A) [CommRing A]/-- A is an absolutely integrally closed local domain: a local domain in which every monicpolynomial of positive degree has a root. -/class IsAICLocal extends IsDomain A, IsLocalRing A, IsAIC A/-- A is a test ring: reduced, absolutely integrally closed, and any a, b admit an idempotent ewith a ∣ eb and b ∣ (1 − e)a. -/structure IsTest extends IsAIC A where (isComparableRing : IsComparableRing (· : A → A)) isReduced : IsReduced A/-- The category of test rings (`IsTest`), as a full subcategory of commutativerings. -/abbrev TestRing := @ObjectProperty.FullSubcategory CommRingCat.{0} _ (IsTest ·)/-- The inclusion functor from the category of test rings into the category of commutativerings. -/abbrev testIncl : TestRing ⥤ CommRingCat := ObjectProperty.ι _/-- The category of covariant functors from (small) commutative rings to sets of the nextuniverse. -/abbrev PointFunctor := CommRingCat.{0} ⥤ Type 1variable (Λ : Ab.{0}) {X Y : PointFunctor} (u : X ⟶ Y) {R} (s : X ⟶ reprBy R) (I : Set R) {B} (φ : R ⟶ B)/-- For an abelian group Λ, the functor on commutative rings sending A to the group of locallyconstant functions Spec A → Λ. -/def locConstSpec : CommRingCat.{0} ⥤ Ab := .mk _ (AddCommGrpCat.ofHom <| LocallyConstant.comapAddMonoidHom (Z := Λ) ⟨_, continuous_comap ·.hom⟩)/-- For an abelian group Λ, the coefficient functor on test rings sending A to the group oflocally constant functions Spec A → Λ. -/def locConstCoeff := liftCoeff (testIncl ⋙ locConstSpec Λ)/-- For a map u: X → Y of set-valued functors on rings, its restriction to a map of functors ontest rings. -/abbrev mapOnTests := testIncl.whiskerLeft u/-- For u: X → Y and each degree i, the pull-back homomorphism H^i(Y, Λ) → H^i(X, Λ) oncohomology computed on test rings. -/noncomputable abbrev HV.map := H.map (locConstCoeff Λ) (freeAb.map (mapOnTests u))/-- The property of a map u: X → Y of functors on rings that pull-back H^i(Y, Λ) → H^i(X, Λ) isbijective for all i. -/abbrev Components := IsCohomEquiv (locConstCoeff Λ) (freeAb.map (mapOnTests u))/-- The image of u : X → Y, restricted to test rings, is dense in Y (`IsCohomDense`) for thecoefficient functor of locally constant functions Spec A → Λ. -/abbrev HasCohomDenseImage := IsCohomDense (locConstCoeff Λ) (.range (mapOnTests u))/-- For a morphism s: X → Spec R, the map from the functor of points of X to h_R sending x ∈X(A) to the ring map R → A of s∘x. -/noncomputable def pointsToBase {X R} (s : X ⟶ Spec R) : Scheme.Spec.rightOp ⋙ uliftYoneda X ⟶ reprBy R := ⟨fun _ ↦ ↾(⟨Spec.preimage <| ·.1 ≫ s⟩), by delta reprBy reprFunctor; aesop⟩/-- For s: X → h_R and a point x ∈ X(B), the ring homomorphism R → B that is the image of xunder s. -/def baseRingMap (x : X B) : R ⟶ B := (s B x).1@[simp] lemma baseRingMap_map {B'} f x : baseRingMap s (@X.map B B' f x) = baseRingMap s x ≫ f := by aesop (add simp baseRingMap)/-- For s: X → h_R and a subset I of R, the subfunctor of points x ∈ X(B) whose structure map R→ B sends I to 0. -/def zeroPoints := Subfunctor.mk (fun _ ↦ {x | ∀ a ∈ I, baseRingMap s x a = 0}) (by aesop)/-- For s: X → h_R and a subset I of R, the subfunctor of points x ∈ X(B) whose structure map R→ B sends every element of I to a unit. -/def unitPoints := Subfunctor.mk (fun _ ↦ {x | ∀ a ∈ I, IsUnit (baseRingMap s x a)}) (by simp_all [IsUnit.map])/-- For s: X → h_R and a ring map φ: R → B, the base change X_B = X ×_{h_R} h_B. -/abbrev baseChangeOf := fibreProd s (reprMap φ)