Module

PointwiseFlatPurity.lean

Nyll.EtaleFundamentalGroups.Purity.PointwiseFlatPurity
5 declarations indexed from sourceView source ↗

Pointwise purity for flat quasi-finite morphisms

The original height-one unramified stalk maps are compared with those of an affine chart. The affine purity criterion supplies an etale principal open, which is mapped back to an actual open neighborhood in the original scheme. Only finite type on a neighborhood of the chosen point is required.

Stacks Project, Tag 0BJH: https://stacks.math.columbia.edu/tag/0BJH.

Imports14
  • Nyll.SchemeTheory.RingTheory.Ramification.Trace.PointwiseFlatPurity
  • Nyll.SchemeTheory.Affine.StalkLocalization
  • Mathlib.AlgebraicGeometry.AffineScheme
  • Mathlib.AlgebraicGeometry.Morphisms.Etale
  • Mathlib.AlgebraicGeometry.Morphisms.Flat
  • Mathlib.AlgebraicGeometry.Morphisms.FormallyUnramified
  • Mathlib.AlgebraicGeometry.Morphisms.QuasiFinite
  • Mathlib.AlgebraicGeometry.Noetherian
  • Mathlib.AlgebraicGeometry.Properties
  • Mathlib.AlgebraicGeometry.Restrict
  • Mathlib.RingTheory.Etale.Locus
  • Mathlib.RingTheory.RingHom.Unramified
  • Mathlib.RingTheory.Spectrum.Prime.Topology
  • Mathlib.Topology.Sober
Imported by3

Declarations

AlgebraicGeometry.formallyUnramified_stalkMap_iff_isUnramifiedAt

The original stalk map is unramified exactly when its affine prime is unramified.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open CategoryTheory TopologicalSpace
namespace AlgebraicGeometry
universe u
theorem formallyUnramified_stalkMap_iff_isUnramifiedAt
    {X Y : Scheme.{u}} {f : X ⟶ Y} {x : X}
    (U : Y.Opens) (hU : IsAffineOpen U) (V : X.Opens) (hV : IsAffineOpen V)
    (hVU : V ≤ f ⁻¹ᵁ U) (hx : x ∈ V) :
    let : Algebra Γ(Y, U) Γ(X, V) := (f.appLE U V hVU).hom.toAlgebra
    (f.stalkMap x).hom.FormallyUnramified ↔
      Algebra.IsUnramifiedAt Γ(Y, U) (hV.primeIdealOf ⟨x, hx⟩).asIdeal := by
  intro sharedOwner1
  let p := (hU.primeIdealOf ⟨f x, hVU hx⟩).asIdeal
  let q := (hV.primeIdealOf ⟨x, hx⟩).asIdeal
  let : q.LiesOver p :=
    ⟨congrArg PrimeSpectrum.asIdeal
      (IsAffineOpen.comap_primeIdealOf_appLE U hU V hV hVU hx) |>.symm⟩
  let : Algebra (Localization.AtPrime p) (Localization.AtPrime q) :=
    Localization.AtPrime.algebraOfLiesOver p q
  change (f.stalkMap x).hom.FormallyUnramified ↔ Algebra.IsUnramifiedAt Γ(Y, U) q
  trans Algebra.FormallyUnramified (Localization.AtPrime p) (Localization.AtPrime q)
  · rw [← RingHom.formallyUnramified_algebraMap]
    exact RingHom.FormallyUnramified.respectsIso.arrow_mk_iso_iff
      (IsAffineOpen.arrowStalkMapIso f U hU V hV hVU hx)
  · constructor
    · intro h
      let : Algebra.FormallyUnramified (Localization.AtPrime p) (Localization.AtPrime q) := h
      exact Algebra.FormallyUnramified.comp Γ(Y, U) (Localization.AtPrime p)
        (Localization.AtPrime q)
    · intro h
      let : Algebra.IsUnramifiedAt Γ(Y, U) q := h
      exact Algebra.FormallyUnramified.of_restrictScalars Γ(Y, U)
        (Localization.AtPrime p) (Localization.AtPrime q)
AlgebraicGeometry.exists_etale_open_of_isEtaleAt_appLE

Etaleness at an affine prime gives an actual etale open in the original scheme.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open CategoryTheory TopologicalSpace
namespace AlgebraicGeometry
universe u
theorem exists_etale_open_of_isEtaleAt_appLE
    {X Y : Scheme.{u}} (f : X ⟶ Y) {x : X}
    (U : Y.Opens) (hU : IsAffineOpen U) (V : X.Opens) (hV : IsAffineOpen V)
    (hVU : V ≤ f ⁻¹ᵁ U) (hx : x ∈ V)
    (hfp : (f.appLE U V hVU).hom.FinitePresentation)
    (hetale :
      let : Algebra Γ(Y, U) Γ(X, V) := (f.appLE U V hVU).hom.toAlgebra
      Algebra.IsEtaleAt Γ(Y, U) (hV.primeIdealOf ⟨x, hx⟩).asIdeal) :
    ∃ W : X.Opens, x ∈ W ∧ Etale (W.ι ≫ f) := by
  let R := Γ(Y, U)
  let S := Γ(X, V)
  let : Algebra R S := (f.appLE U V hVU).hom.toAlgebra
  let : Algebra.FinitePresentation R S := hfp
  let q := hV.primeIdealOf ⟨x, hx⟩
  let : Algebra.IsEtaleAt R q.asIdeal := hetale
  obtain ⟨a, haq, ha⟩ := Algebra.exists_etale_of_isEtaleAt (R := R) q.asIdeal
  let L := Localization.Away a
  let : Algebra.Etale R L := ha
  let i : Spec (CommRingCat.of L) ⟶ Spec S :=
    Spec.map (CommRingCat.ofHom (algebraMap S L))
  let j : Spec (CommRingCat.of L) ⟶ X := i ≫ hV.fromSpec
  let g : Spec (CommRingCat.of L) ⟶ Spec R :=
    Spec.map (CommRingCat.ofHom (algebraMap R L))
  let : Etale g := (HasRingHomProperty.Spec_iff (P := @Etale)).mpr
    (RingHom.etale_algebraMap.mpr ha)
  have hmap : f.appLE U V hVU ≫ CommRingCat.ofHom (algebraMap S L) =
      CommRingCat.ofHom (algebraMap R L) := by
    apply CommRingCat.hom_ext
    exact (IsScalarTower.algebraMap_eq R S L).symm
  have hj : j ≫ f = g ≫ hU.fromSpec := by
    dsimp only [j, g, i]
    rw [Category.assoc, ← IsAffineOpen.SpecMap_appLE_fromSpec f hU hV hVU,
      ← Category.assoc, ← Spec.map_comp, hmap]
  let : Etale (j ≫ f) := by rw [hj]; infer_instance
  have hxj : x ∈ j.opensRange := by
    have hq : q ∈ Set.range (PrimeSpectrum.comap (algebraMap S L)) := by
      rw [PrimeSpectrum.localization_away_comap_range L a]
      exact haq
    obtain ⟨z, hz⟩ := hq
    refine ⟨z, ?_⟩
    change hV.fromSpec (i z) = x
    rw [show i z = q from hz]
    exact hV.fromSpec_primeIdealOf ⟨x, hx⟩
  refine ⟨j.opensRange, hxj, ?_⟩
  have h : Etale (j.isoOpensRange.inv ≫ (j ≫ f)) := inferInstance
  rw [← Category.assoc, Scheme.Hom.isoOpensRange_inv_comp] at h
  exact h
AlgebraicGeometry.isUnramifiedAt_height_one_appLE_of_specializations

Codimension-one unramified stalk maps at the generalizations of a point give the original height-one prime condition in every affine chart.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open CategoryTheory TopologicalSpace
namespace AlgebraicGeometry
universe u
theorem isUnramifiedAt_height_one_appLE_of_specializations
    {X Y : Scheme.{u}} (f : X ⟶ Y) (x : X)
    (U : Y.Opens) (hU : IsAffineOpen U) (V : X.Opens) (hV : IsAffineOpen V)
    (hVU : V ≤ f ⁻¹ᵁ U) (hxV : x ∈ V)
    (hunramified : ∀ x' : X, x' ⤳ x → ringKrullDim (X.presheaf.stalk x') = 1 →
      (f.stalkMap x').hom.FormallyUnramified) :
    let : Algebra Γ(Y, U) Γ(X, V) := (f.appLE U V hVU).hom.toAlgebra
    ∀ (q' : Ideal Γ(X, V)) [q'.IsPrime],
      q' ≤ (hV.primeIdealOf ⟨x, hxV⟩).asIdeal → q'.height = 1 →
        Algebra.IsUnramifiedAt Γ(Y, U) q' := by
  intro alg
  let R := Γ(Y, U)
  let S := Γ(X, V)
  let q := hV.primeIdealOf ⟨x, hxV⟩
  intro q' _ hq'q hq'height
  let y : V := hV.isoSpec.inv (⟨q', inferInstance⟩ : PrimeSpectrum S)
  have hy : hV.primeIdealOf y = (⟨q', inferInstance⟩ : PrimeSpectrum S) :=
    Scheme.inv_hom_apply hV.isoSpec _
  have hyx : (y : X) ⤳ x := by
    have hspecial : (⟨q', inferInstance⟩ : PrimeSpectrum S) ⤳ q :=
      (PrimeSpectrum.le_iff_specializes _ _).mp hq'q
    have hmap := hspecial.map hV.fromSpec.continuous
    rw [← hy, hV.fromSpec_primeIdealOf y,
      hV.fromSpec_primeIdealOf ⟨x, hxV⟩] at hmap
    exact hmap
  have hydim : ringKrullDim (X.presheaf.stalk (y : X)) = 1 := by
    let : Algebra S (X.presheaf.stalk (y : X)) := X.presheaf.algebra_section_stalk y
    let : IsLocalization.AtPrime (X.presheaf.stalk (y : X))
        (hV.primeIdealOf y).asIdeal := hV.isLocalization_stalk y
    rw [IsLocalization.AtPrime.ringKrullDim_eq_height (hV.primeIdealOf y).asIdeal
      (X.presheaf.stalk (y : X)), hy, hq'height]
    rfl
  have hlocal := (formallyUnramified_stalkMap_iff_isUnramifiedAt U hU V hV hVU y.2).mp
    (hunramified y hyx hydim)
  change Algebra.IsUnramifiedAt R (hV.primeIdealOf y).asIdeal at hlocal
  rw [hy] at hlocal
  exact hlocal
AlgebraicGeometry.exists_etale_open_of_flat_of_quasiFiniteAt_of_positive_dimension

Positive local dimension suffices for the pointwise flat purity criterion.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open CategoryTheory TopologicalSpace
namespace AlgebraicGeometry
universe u
theorem exists_etale_open_of_flat_of_quasiFiniteAt_of_positive_dimension
    {X Y : Scheme.{u}} [IsLocallyNoetherian X] [IsLocallyNoetherian Y]
    (f : X ⟶ Y) [Flat f] [LocallyOfFiniteType f] (x : X)
    (hquasi : f.QuasiFiniteAt x)
    (hdim : (1 : WithBot ℕ∞) ≤ ringKrullDim (X.presheaf.stalk x))
    (hunramified : ∀ x' : X, x' ⤳ x → ringKrullDim (X.presheaf.stalk x') = 1 →
      (f.stalkMap x').hom.FormallyUnramified) :
    ∃ W : X.Opens, x ∈ W ∧ Etale (W.ι ≫ f)
AlgebraicGeometry.exists_etale_open_of_flat_of_quasiFiniteAt_of_unramified_codimensionOne

Stacks Project, Tag 0BJH. A flat map between locally Noetherian schemes is etale on a neighborhood of a quasi-finite point which is not generic, provided the original stalk maps are unramified at all codimension-one generalizations. The finite-type assumption is imposed only near that point, as in the usual definition of being quasi-finite at a point.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
open CategoryTheory TopologicalSpace
namespace AlgebraicGeometry
universe u
theorem exists_etale_open_of_flat_of_quasiFiniteAt_of_unramified_codimensionOne
    {X Y : Scheme.{u}} [IsLocallyNoetherian X] [IsLocallyNoetherian Y]
    (f : X ⟶ Y) [Flat f] (x : X)
    (hfiniteType : ∃ T : X.Opens, x ∈ T ∧ LocallyOfFiniteType (T.ι ≫ f))
    (hquasi : f.QuasiFiniteAt x) (hnotgeneric : x ∉ genericPoints X)
    (hunramified : ∀ x' : X, x' ⤳ x → ringKrullDim (X.presheaf.stalk x') = 1 →
      (f.stalkMap x').hom.FormallyUnramified) :
    ∃ W : X.Opens, x ∈ W ∧ Etale (W.ι ≫ f)