|
|
|
|
Quelle Separated.lean
Sprache: Lean
|
|
/-
Copyright (c) 2024 Christian Merten. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christian Merten, Andrew Yang
-/
module
public import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion
public import Mathlib.CategoryTheory.Limits.Constructions.Over.Basic
public import Mathlib.CategoryTheory.Limits.Shapes.Pullback.Equalizer
import Mathlib.AlgebraicGeometry.PullbackCarrier
/-!
# Separated morphisms
A morphism of schemes is separated if its diagonal morphism is a closed immersion.
## Main definitions
- `AlgebraicGeometry.IsSeparated`: The class of separated morphisms.
- `AlgebraicGeometry.Scheme.IsSeparated`: The class of separated schemes.
- `AlgebraicGeometry.IsSeparated.hasAffineProperty`:
A morphism is separated iff the preimage of affine opens are separated schemes.
-/
public section
noncomputable section
open CategoryTheory CategoryTheory.Limits Opposite TopologicalSpace
universe u
open scoped AlgebraicGeometry
namespace AlgebraicGeometry
variable {W X Y Z : Scheme.{u}} (f : X ⟶ Y) (g : Y ⟶ Z)
/-- A morphism is separated if the diagonal map is a closed immersion. -/
@[mk_iff]
class IsSeparated : Prop where
/-- A morphism is separated if the diagonal map is a closed immersion. -/
isClosedImmersion_diagonal : IsClosedImmersion (pullback.diagonal f) := by infer_instance
namespace IsSeparated
attribute [instance] isClosedImmersion_diagonal
theorem isSeparated_eq_diagonal_isClosedImmersion :
@IsSeparated = MorphismProperty.diagonal @IsClosedImmersion := by
ext
exact isSeparated_iff _
/-- Monomorphisms are separated. -/
instance (priority := 900) isSeparated_of_mono [Mono f] : IsSeparated f where
set_option backward.isDefEq.respectTransparency.types false in
instance : MorphismProperty.RespectsIso @IsSeparated := by
rw [isSeparated_eq_diagonal_isClosedImmersion]
infer_instance
instance (priority := 900) [IsSeparated f] : QuasiSeparated f where
set_option backward.isDefEq.respectTransparency.types false in
instance stableUnderComposition : MorphismProperty.IsStableUnderComposition @IsSeparated := by
rw [isSeparated_eq_diagonal_isClosedImmersion]
infer_instance
instance [IsSeparated f] [IsSeparated g] : IsSeparated (f ≫ g) :=
stableUnderComposition.comp_mem f g inferInstance inferInstance
instance : MorphismProperty.IsMultiplicative @IsSeparated where
id_mem _ := inferInstance
set_option backward.isDefEq.respectTransparency.types false in
instance isStableUnderBaseChange : MorphismProperty.IsStableUnderBaseChange @IsSeparated := by
rw [isSeparated_eq_diagonal_isClosedImmersion]
infer_instance
set_option backward.isDefEq.respectTransparency.types false in
instance : IsZariskiLocalAtTarget @IsSeparated := by
rw [isSeparated_eq_diagonal_isClosedImmersion]
infer_instance
set_option backward.isDefEq.respectTransparency.types false in
instance {X Y S : Scheme} (f : X ⟶ S) (g : Y ⟶ S) [IsSeparated g] :
IsSeparated (pullback.fst f g) :=
MorphismProperty.pullback_fst f g inferInstance
set_option backward.isDefEq.respectTransparency.types false in
instance {X Y S : Scheme} (f : X ⟶ S) (g : Y ⟶ S) [IsSeparated f] :
IsSeparated (pullback.snd f g) :=
MorphismProperty.pullback_snd f g inferInstance
instance (f : X ⟶ Y) (V : Y.Opens) [IsSeparated f] : IsSeparated (f ∣_ V) :=
IsZariskiLocalAtTarget.restrict ‹_› V
instance (f : X ⟶ Y) (U : X.Opens) (V : Y.Opens) (e) [IsSeparated f] :
IsSeparated (f.resLE V U e) := by
delta Scheme.Hom.resLE; infer_instance
instance (R S : CommRingCat.{u}) (f : R ⟶ S) : IsSeparated (Spec.map f) := by
constructor
let := f.hom.toAlgebra
change IsClosedImmersion
(Limits.pullback.diagonal (Spec.map (CommRingCat.ofHom (algebraMap R S))))
rw [diagonal_SpecMap, MorphismProperty.cancel_right_of_respectsIso @IsClosedImmersion]
exact .spec_of_surjective _ fun x ↦ ⟨.tmul R 1 x,
(Algebra.TensorProduct.lmul'_apply_tmul (R := R) (S := S) 1 x).trans (one_mul x)⟩
set_option backward.isDefEq.respectTransparency.types false in
@[instance 100]
lemma of_isAffineHom [h : IsAffineHom f] : IsSeparated f := by
wlog hY : IsAffine Y
· rw [IsZariskiLocalAtTarget.iff_of_iSup_eq_top (P := @IsSeparated) _
(iSup_affineOpens_eq_top Y)]
intro U
have H : IsAffineHom (f ∣_ U) := IsZariskiLocalAtTarget.restrict h U
exact this _ U.2
have : IsAffine X := HasAffineProperty.iff_of_isAffine.mp h
rw [MorphismProperty.arrow_mk_iso_iff @IsSeparated (arrowIsoSpecΓOfIsAffine f)]
infer_instance
instance {S T : Scheme.{u}} (f : X ⟶ S) (g : Y ⟶ S) (i : S ⟶ T) [IsSeparated i] :
IsClosedImmersion (pullback.mapDesc f g i) :=
MorphismProperty.of_isPullback (pullback_map_diagonal_isPullback f g i)
inferInstance
/-- Given `f : X ⟶ Y` and `g : Y ⟶ Z` such that `g` is separated, the induced map
`X ⟶ X ×[Z] Y` is a closed immersion. -/
instance [IsSeparated g] :
IsClosedImmersion (pullback.lift ( _) f (Category.id_comp (f ≫ g))) := by
rw [← MorphismProperty.cancel_left_of_respectsIso @IsClosedImmersion (pullback.fst f ( Y))]
rw [← MorphismProperty.cancel_right_of_respectsIso @IsClosedImmersion _
(pullback.congrHom rfl (Category.id_comp g)).inv]
convert (inferInstance : IsClosedImmersion (pullback.mapDesc f ( _) g))
ext : 1 <;> simp [pullback.condition]
end IsSeparated
section of_injective
open Scheme Pullback
variable ( : Y.OpenCover) ( : ∀ i, (pullback f (.f i)).OpenCover)
set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
lemma Scheme.Pullback.diagonalCoverDiagonalRange_eq_top_of_injective
(hf : Function.Injective f) :
diagonalCoverDiagonalRange f = ⊤ := by
rw [← top_le_iff]
rintro x -
simp only [diagonalCoverDiagonalRange, openCoverOfBase_I₀, openCoverOfBase_X,
openCoverOfLeftRight_I₀, Opens.iSup_mk, Opens.carrier_eq_coe, Hom.coe_opensRange, Opens.mem_mk,
Set.mem_iUnion, Set.mem_range, Sigma.exists]
have H : pullback.fst f f x = pullback.snd f f x :=
hf (by rw [← Scheme.Hom.comp_apply, ← Scheme.Hom.comp_apply, pullback.condition])
let i := .idx (f (pullback.fst f f x))
obtain ⟨y : .X i, hy : .f i y = f _⟩ :=
.covers (f (pullback.fst f f x))
obtain ⟨z, hz₁, hz₂⟩ := exists_preimage_pullback _ _ hy.symm
let j := ( i).idx z
obtain ⟨w : ( i).X j, hy : ( i).f j w = z⟩ := ( i).covers z
refine ⟨i, j, ?_⟩
simp_rw [diagonalCover_map]
change x ∈ Set.range _
simp only [diagonalCover, openCoverOfBase_I₀,
Precoverage.ZeroHypercover.pullback₁_toPreZeroHypercover, PreZeroHypercover.pullback₁_X,
Precoverage.ZeroHypercover.bind_toPreZeroHypercover, openCoverOfBase_X,
PreZeroHypercover.bind_X, openCoverOfLeftRight_I₀, openCoverOfLeftRight_X]
rw [range_map]
simp [← H, ← hz₁, ← hy]
set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
lemma Scheme.Pullback.range_diagonal_subset_diagonalCoverDiagonalRange :
Set.range (pullback.diagonal f) ⊆ diagonalCoverDiagonalRange f := by
rintro _ ⟨x, rfl⟩
simp only [diagonalCoverDiagonalRange, openCoverOfBase_I₀, openCoverOfBase_X,
openCoverOfLeftRight_I₀, Opens.iSup_mk, Opens.carrier_eq_coe, Hom.coe_opensRange, Opens.coe_mk,
Set.mem_iUnion, Set.mem_range, Sigma.exists]
let i := .idx (f x)
obtain ⟨y : .X i, hy : .f i y = f x⟩ := .covers (f x)
obtain ⟨z, hz₁, hz₂⟩ := exists_preimage_pullback _ _ hy.symm
let j := ( i).idx z
obtain ⟨w : ( i).X j, hy : ( i).f j w = z⟩ := ( i).covers z
refine ⟨i, j, pullback.diagonal (( i).f j ≫ pullback.snd f (.f i)) w, ?_⟩
rw [← hz₁, ← hy, ← Scheme.Hom.comp_apply, ← Scheme.Hom.comp_apply]
simp only [diagonalCover, openCoverOfBase_I₀,
Precoverage.ZeroHypercover.pullback₁_toPreZeroHypercover, PreZeroHypercover.pullback₁_X,
Cover.pullbackHom, Precoverage.ZeroHypercover.bind_toPreZeroHypercover, openCoverOfBase_X,
PreZeroHypercover.bind_X, openCoverOfLeftRight_I₀, openCoverOfLeftRight_X,
PreZeroHypercover.bind_f, openCoverOfLeftRight_f, openCoverOfBase_f, Hom.comp_base,
TopCat.hom_comp, ContinuousMap.comp_apply, ContinuousMap.comp_assoc]
simp_rw [← Scheme.Hom.comp_apply]
congr 5
apply pullback.hom_ext <;> simp
set_option backward.isDefEq.respectTransparency.types false in
lemma isClosedImmersion_diagonal_restrict_diagonalCoverDiagonalRange
[∀ i, IsAffine (.X i)] [∀ i j, IsAffine (( i).X j)] :
IsClosedImmersion (pullback.diagonal f ∣_ diagonalCoverDiagonalRange f ) := by
let U : (Σ i, ( i).I₀) → (diagonalCoverDiagonalRange f ).toScheme.Opens := fun i ↦
(diagonalCoverDiagonalRange f ).ι ⁻¹ᵁ ((diagonalCover f ).f ⟨i.1, i.2, i.2⟩).opensRange
have hU (i) : (diagonalCoverDiagonalRange f ).ι ''ᵁ U i =
((diagonalCover f ).f ⟨i.1, i.2, i.2⟩).opensRange := by
rw [Scheme.Hom.image_preimage_eq_opensRange_inf, inf_eq_right, Opens.opensRange_ι]
exact le_iSup (fun i : Σ i, ( i).I₀ ↦ ((diagonalCover f ).f ⟨i.1, i.2, i.2⟩).opensRange) i
have hf : iSup U = ⊤ := (TopologicalSpace.Opens.map_iSup _ _).symm.trans
(diagonalCoverDiagonalRange f ).ι_preimage_self
rw [IsZariskiLocalAtTarget.iff_of_iSup_eq_top (P := @IsClosedImmersion) _ hf]
intro i
rw [MorphismProperty.arrow_mk_iso_iff (P := @IsClosedImmersion) (morphismRestrictRestrict _ _ _),
MorphismProperty.arrow_mk_iso_iff (P := @IsClosedImmersion) (morphismRestrictEq _ (hU i)),
MorphismProperty.arrow_mk_iso_iff (P := @IsClosedImmersion) (diagonalRestrictIsoDiagonal ..)]
infer_instance
@[stacks 0DVA]
lemma isSeparated_of_injective (hf : Function.Injective f) :
IsSeparated f := by
constructor
let := Y.affineCover
let (i) := (pullback f (.f i)).affineCover
refine IsZariskiLocalAtTarget.of_iSup_eq_top (fun i : PUnit.{0} ↦ ⊤) (by simp) fun _ ↦ ?_
rw [← diagonalCoverDiagonalRange_eq_top_of_injective f hf]
exact isClosedImmersion_diagonal_restrict_diagonalCoverDiagonalRange f
end of_injective
instance : MorphismProperty.HasOfPostcompProperty @IsClosedImmersion @IsSeparated :=
MorphismProperty.hasOfPostcompProperty_iff_le_diagonal.mpr
fun _ _ _ _ ↦ inferInstanceAs (IsClosedImmersion _)
lemma IsClosedImmersion.of_comp [IsClosedImmersion (f ≫ g)] [IsSeparated g] :
IsClosedImmersion f := MorphismProperty.of_postcomp _ _ g ‹_› ‹_›
variable {f g} in
lemma IsClosedImmersion.comp_iff [IsClosedImmersion g] :
IsClosedImmersion (f ≫ g) ↔ IsClosedImmersion f :=
⟨fun _ ↦ .of_comp f g, fun _ ↦ inferInstance⟩
instance {I J : X.IdealSheafData} (h : I ≤ J) : IsClosedImmersion (I.inclusion h) := by
have : IsClosedImmersion (I.inclusion h ≫ I.subschemeι) := by
simp only [Scheme.IdealSheafData.inclusion_subschemeι]
infer_instance
exact .of_comp _ I.subschemeι
lemma IsSeparated.of_comp [IsSeparated (f ≫ g)] : IsSeparated f := by
have : IsClosedImmersion (pullback.diagonal (f ≫ g)) := inferInstance
rw [pullback.diagonal_comp] at this
exact ⟨@IsClosedImmersion.of_comp _ _ _ _ _ this inferInstance⟩
variable {f g} in
lemma IsSeparated.comp_iff [IsSeparated g] : IsSeparated (f ≫ g) ↔ IsSeparated f :=
⟨fun _ ↦ .of_comp f g, fun _ ↦ inferInstance⟩
instance : MorphismProperty.HasOfPostcompProperty @IsSeparated ⊤ where
of_postcomp f g _ _ := .of_comp f g
instance : MorphismProperty.HasOfPostcompProperty @IsAffineHom @IsSeparated :=
MorphismProperty.hasOfPostcompProperty_iff_le_diagonal.mpr
fun _ _ _ _ ↦ inferInstanceAs (IsAffineHom _)
lemma IsAffineHom.of_comp [IsAffineHom (f ≫ g)] [IsSeparated g] :
IsAffineHom f := MorphismProperty.of_postcomp _ _ g ‹_› ‹_›
variable {f g} in
lemma IsAffineHom.comp_iff [IsAffineHom g] : IsAffineHom (f ≫ g) ↔ IsAffineHom f :=
⟨fun _ ↦ .of_comp f g, fun _ ↦ inferInstance⟩
@[stacks 01KM]
instance isClosedImmersion_equalizer_ι_left {S : Scheme} {X Y : Over S} [IsSeparated Y.hom]
(f g : X ⟶ Y) : IsClosedImmersion (equalizer.ι f g).left := by
refine MorphismProperty.of_isPullback
((Limits.isPullback_equalizer_prod f g).map (Over.forget _)).flip ?_
rw [← MorphismProperty.cancel_right_of_respectsIso @IsClosedImmersion _
(Over.prodLeftIsoPullback Y Y).hom]
convert! (inferInstance : IsClosedImmersion (pullback.diagonal Y.hom))
ext1 <;> simp [← Over.comp_left]
/--
Suppose `X` is a reduced scheme and that `f g : X ⟶ Y` agree over some separated `Y ⟶ Z`.
Then `f = g` if `ι ≫ f = ι ≫ g` for some dominant `ι`.
-/
lemma ext_of_isDominant_of_isSeparated [IsReduced X] {f g : X ⟶ Y}
(s : Y ⟶ Z) [IsSeparated s] (h : f ≫ s = g ≫ s)
(ι : W ⟶ X) [IsDominant ι] (hU : ι ≫ f = ι ≫ g) : f = g := by
let X' : Over Z := Over.mk (f ≫ s)
let Y' : Over Z := Over.mk s
let U' : Over Z := Over.mk (ι ≫ f ≫ s)
let f' : X' ⟶ Y' := Over.homMk f
let g' : X' ⟶ Y' := Over.homMk g
let ι' : U' ⟶ X' := Over.homMk ι
have : IsSeparated Y'.hom := ‹_›
have : IsDominant (equalizer.ι f' g').left := by
apply +allowSynthFailures IsDominant.of_comp (equalizer.lift ι' ?_).left
· rwa [← Over.comp_left, equalizer.lift_ι]
· ext1; exact hU
have : Surjective (equalizer.ι f' g').left :=
surjective_of_isDominant_of_isClosed_range _ (Scheme.Hom.isClosedEmbedding _).isClosed_range
have := isIso_of_isClosedImmersion_of_surjective (Y := X) (equalizer.ι f' g').left
rw [← cancel_epi (equalizer.ι f' g').left]
congrm $(equalizer.condition f' g').left
lemma ext_of_fromSpecResidueField_eq (f g : X ⟶ Y) (i : Y ⟶ Z) [IsSeparated i] [IsReduced X]
(S : Set X) (hS' : Dense S)
(H : ∀ x ∈ S, X.fromSpecResidueField x ≫ f = X.fromSpecResidueField x ≫ g)
(H' : f ≫ i = g ≫ i) : f = g := by
suffices IsDominant (equalizer.ι f g) from
ext_of_isDominant_of_isSeparated i H' (equalizer.ι f g) (equalizer.condition _ _)
refine ⟨.mono (fun x hx ↦ ⟨equalizer.lift _ (H _ hx) default, ?_⟩) hS'⟩
rw [← Scheme.Hom.comp_apply, equalizer.lift_ι, Scheme.fromSpecResidueField_apply]
variable (S) in
/--
Suppose `X` is a reduced `S`-scheme and `Y` is a separated `S`-scheme.
For any `S`-morphisms `f g : X ⟶ Y`, `f = g` if `ι ≫ f = ι ≫ g` for some dominant `ι`.
-/
lemma ext_of_isDominant_of_isSeparated' [X.Over S] [Y.Over S] [IsReduced X] [IsSeparated (Y ↘ S)]
{f g : X ⟶ Y} [f.IsOver S] [g.IsOver S] {W} (ι : W ⟶ X) [IsDominant ι]
(hU : ι ≫ f = ι ≫ g) : f = g :=
ext_of_isDominant_of_isSeparated (Y ↘ S) (by simp) ι hU
namespace Scheme
/-- A scheme `X` is separated if it is separated over `⊤_ Scheme`. -/
@[mk_iff]
protected class IsSeparated (X : Scheme.{u}) : Prop where
isSeparated_terminal_from : IsSeparated (terminal.from X)
attribute [instance] IsSeparated.isSeparated_terminal_from
lemma isSeparated_iff_isClosedImmersion_prod_lift {X : Scheme.{u}} :
X.IsSeparated ↔ IsClosedImmersion (prod.lift ( X) ( X)) := by
rw [isSeparated_iff, AlgebraicGeometry.isSeparated_iff, iff_iff_eq,
← MorphismProperty.cancel_right_of_respectsIso @IsClosedImmersion _ (prodIsoPullback X X).hom]
congr
ext : 1 <;> simp
instance [X.IsSeparated] : IsClosedImmersion (prod.lift ( X) ( X)) := by
rwa [← isSeparated_iff_isClosedImmersion_prod_lift]
instance (priority := 900) {X : Scheme.{u}} [IsAffine X] : X.IsSeparated := ⟨inferInstance⟩
instance (priority := low) {X : Scheme.{u}} [X.IsSeparated] : QuasiSeparatedSpace X :=
quasiSeparatedSpace_of_quasiSeparated (terminal.from X)
instance (priority := 900) [X.IsSeparated] : IsSeparated f := by
apply +allowSynthFailures @IsSeparated.of_comp (g := terminal.from Y)
rw [terminal.comp_from]
infer_instance
instance (f g : X ⟶ Y) [Y.IsSeparated] : IsClosedImmersion (Limits.equalizer.ι f g) :=
MorphismProperty.of_isPullback (isPullback_equalizer_prod f g).flip inferInstance
end Scheme
set_option backward.isDefEq.respectTransparency.types false in
instance IsSeparated.hasAffineProperty :
HasAffineProperty @IsSeparated fun X _ _ _ ↦ X.IsSeparated := by
convert! HasAffineProperty.of_isZariskiLocalAtTarget @IsSeparated with X Y f hY
rw [Scheme.isSeparated_iff, ← terminal.comp_from f, IsSeparated.comp_iff]
rfl
/--
Suppose `f g : X ⟶ Y` where `X` is a reduced scheme and `Y` is a separated scheme.
Then `f = g` if `ι ≫ f = ι ≫ g` for some dominant `ι`.
Also see `ext_of_isDominant_of_isSeparated` for the general version over arbitrary bases.
-/
lemma ext_of_isDominant [IsReduced X] {f g : X ⟶ Y} [Y.IsSeparated]
(ι : W ⟶ X) [IsDominant ι] (hU : ι ≫ f = ι ≫ g) : f = g :=
ext_of_isDominant_of_isSeparated (Limits.terminal.from _) (Limits.terminal.hom_ext _ _) ι hU
end AlgebraicGeometry
¤ Dauer der Verarbeitung: 0.30 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|