Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  Directed.lean   Sprache: Lean

 

/-
Copyright (c) 2025 Christian Merten. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christian Merten
-/

module

public import Mathlib.AlgebraicGeometry.PullbackCarrier

/-!
# Locally directed covers

A locally directed `P`-cover of a scheme `X` is a cover `��` with an ordering
on the indices and compatible transition maps `��ᵢ ⟶ ��ⱼ` for `i ≤ j` such that
every `x : ��ᵢ ×[X] ��ⱼ` comes from some `��ₖ` for a `k ≤ i` and `k ≤ j`.

Gluing along directed covers is easier, because the intersections `��ᵢ ×[X] ��ⱼ` can
be covered by a subcover of `��`. In particular, if `��` is a Zariski cover,
`X` naturally is the colimit of the `��ᵢ`.

Many natural covers are naturally directed, most importantly the cover of all affine
opens of a scheme.
-/


@[expose] public section

universe u

noncomputable section

open CategoryTheory Limits

namespace AlgebraicGeometry.Scheme

variable {P : MorphismProperty Scheme.{u}} {X : Scheme.{u}}

namespace Cover

/-- A directed `P`-cover of a scheme `X` is a cover `��` with an ordering
on the indices and compatible transition maps `��ᵢ ⟶ ��ⱼ` for `i ≤ j` such that
every `x : ��ᵢ ×[X] ��ⱼ` comes from some `��ₖ` for a `k ≤ i` and `k ≤ j`. -/

class LocallyDirected (�� : X.Cover (precoverage P)) [Category* ��.I₀] where
  /-- The transition map `��ᵢ ⟶ ��ⱼ` for `i ≤ j`. -/
  trans {i j : ��.I₀} (hij : i ⟶ j) : ��.X i ⟶ ��.X j
  trans_id (i : ��.I₀) : trans (�� i) = �� (��.X i) := by cat_disch
  trans_comp {i j k : ��.I₀} (hij : i ⟶ j) (hjk : j ⟶ k) :
    trans (hij ≫ hjk) = trans hij ≫ trans hjk := by cat_disch
  w {i j : ��.I₀} (hij : i ⟶ j) : trans hij ≫ ��.f j = ��.f i := by cat_disch
  directed {i j : ��.I₀} (x : (pullback (��.f i) (��.f j)).carrier) :
    ∃ (k : ��.I₀) (hki : k ⟶ i) (hkj : k ⟶ j) (y : ��.X k),
      pullback.lift (trans hki) (trans hkj) (by simp [w]) y = x
  property_trans {i j : ��.I₀} (hij : i ⟶ j) : P (trans hij) := by infer_instance

variable (�� : X.Cover (precoverage P)) [Category* ��.I₀] [��.LocallyDirected]

/-- The transition maps of a directed cover. -/
def trans {i j : ��.I₀} (hij : i ⟶ j) : ��.X i ⟶ ��.X j := LocallyDirected.trans hij

@[simp]
lemma trans_map {i j : ��.I₀} (hij : i ⟶ j) : ��.trans hij ≫ ��.f j = ��.f i :=
  LocallyDirected.w hij

@[simp]
lemma trans_id (i : ��.I₀) : ��.trans (�� i) = �� (��.X i) := LocallyDirected.trans_id i

@[simp]
lemma trans_comp {i j k : ��.I₀} (hij : i ⟶ j) (hjk : j ⟶ k) :
    ��.trans (hij ≫ hjk) = ��.trans hij ≫ ��.trans hjk := LocallyDirected.trans_comp hij hjk

lemma exists_lift_trans_eq {i j : ��.I₀} (x : (pullback (��.f i) (��.f j)).carrier) :
    ∃ (k : ��.I₀) (hki : k ⟶ i) (hkj : k ⟶ j) (y : ��.X k),
      pullback.lift (��.trans hki) (��.trans hkj) (by simp) y = x :=
  LocallyDirected.directed x

lemma exists_of_f_eq_f {i j : ��.I₀} (xi : ��.X i) (xj : ��.X j) (h : ��.f i xi = ��.f j xj) :
    ∃ (k : ��.I₀) (fi : k ⟶ i) (fj : k ⟶ j) (xk : ��.X k),
      ��.trans fi xk = xi ∧ ��.trans fj xk = xj := by
  obtain ⟨z, rfl, rfl⟩ := Scheme.Pullback.exists_preimage_pullback xi xj h
  obtain ⟨k, fi, fj, xk, rfl⟩ := ��.exists_lift_trans_eq z
  use k, fi, fj, xk
  simp [← Scheme.Hom.comp_apply]

lemma exists_of_trans_eq_trans {i j k : ��.I₀} (fi : i ⟶ k) (fj : j ⟶ k) (xi : ��.X i)
    (xj : ��.X j) (h : ��.trans fi xi = ��.trans fj xj) :
    ∃ (l : ��.I₀) (fli : l ⟶ i) (flj : l ⟶ j) (x : ��.X l),
      ��.trans fli x = xi ∧ ��.trans flj x = xj := exists_of_f_eq_f _ _ _ <| by
  rw [← ��.trans_map fi, ← ��.trans_map fj, Hom.comp_base, Hom.comp_base,
    ConcreteCategory.comp_apply, h, ConcreteCategory.comp_apply]

lemma property_trans {i j : ��.I₀} (hij : i ⟶ j) : P (��.trans hij) :=
  LocallyDirected.property_trans hij

/-- If `��` is a directed cover of `X`, this is the cover of `��ᵢ ×[X] ��ⱼ` by `{��ₖ}` where
`k ≤ i` and `k ≤ j`. -/

@[simps f]
def intersectionOfLocallyDirected [P.IsStableUnderBaseChange] [P.HasOfPostcompProperty P]
    (i j : ��.I₀) : (pullback (��.f i) (��.f j)).Cover (precoverage P) where
  I₀ := Σ (k : ��.I₀), (k ⟶ i) × (k ⟶ j)
  X k := ��.X k.1
  f k := pullback.lift (��.trans k.2.1) (��.trans k.2.2) (by simp)
  mem₀ := by
    rw [presieve₀_mem_precoverage_iff]
    refine ⟨fun x ↦ ?_, fun k ↦ ?_⟩
    · use ⟨(��.exists_lift_trans_eq x).choose, (��.exists_lift_trans_eq x).choose_spec.choose,
        (��.exists_lift_trans_eq x).choose_spec.choose_spec.choose⟩
      exact (��.exists_lift_trans_eq x).choose_spec.choose_spec.choose_spec
    · apply P.of_postcomp (W' := P) _ (pullback.fst _ _) (P.pullback_fst _ _ (��.map_prop _))
      rw [pullback.lift_fst]
      exact ��.property_trans _

/-- The canonical diagram induced by a locally directed cover. -/
@[simps]
def functorOfLocallyDirected : ��.I₀ ⥤ Scheme.{u} where
  obj := ��.X
  map := ��.trans

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
instance : (��.functorOfLocallyDirected ⋙ Scheme.forget).IsLocallyDirected where
  cond {i j k} fi fj xi xj hxij := by
    simp only [Functor.comp_obj, functorOfLocallyDirected_obj, forget_obj, Functor.comp_map,
      functorOfLocallyDirected_map, forget_map, ConcreteCategory.hom_ofHom,
      TypeCat.Fun.coe_mk] at hxij
    have : ��.f i xi = ��.f j xj := by
      rw [← ��.trans_map fi, ← ��.trans_map fj, Hom.comp_base, Hom.comp_base,
        ConcreteCategory.comp_apply, hxij, ConcreteCategory.comp_apply]
    obtain ⟨z, rfl, rfl⟩ := Scheme.Pullback.exists_preimage_pullback xi xj this
    obtain ⟨l, gi, gj, y, rfl⟩ := ��.exists_lift_trans_eq z
    refine ⟨l, gi, gj, y, ?_, ?_⟩ <;> simp [← Scheme.Hom.comp_apply]

set_option backward.defeqAttrib.useBackward true in
/-- The structure maps to `S` as a natural transformation. -/
@[simps]
def functorOfLocallyDirectedHomBase :
    ��.functorOfLocallyDirected ⟶ (Functor.const _).obj X where
  app i := ��.f i

/--
The canonical cocone with point `X` on the functor induced by the locally directed cover `��`.
If `��` is an open cover, this is colimiting (see `OpenCover.isColimitCoconeOfLocallyDirected`).
-/

@[simps]
def coconeOfLocallyDirected : Cocone ��.functorOfLocallyDirected where
  pt := X
  ι := ��.functorOfLocallyDirectedHomBase

section BaseChange

variable [P.IsStableUnderBaseChange] (�� : X.Cover (precoverage P))
    [Category* ��.I₀] [��.LocallyDirected] {Y : Scheme.{u}} (f : Y ⟶ X)

instance : Category (��.pullback₁ f).I₀ := inferInstanceAs <| Category ��.I₀

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
instance locallyDirectedPullbackCover : Cover.LocallyDirected (��.pullback₁ f) where
  trans {i j} hij := pullback.map f (��.f i) f (��.f j) (�� _) (��.trans hij) (�� _)
    (by simp) (by simp)
  trans_id i := by simp
  trans_comp hij hjk := by simp [pullback.map_comp]
  directed {i j} x := by
    dsimp at i j x ⊢
    let iso : pullback (pullback.fst f (��.f i)) (pullback.fst f (��.f j)) ≅
        pullback f (pullback.fst (��.f i) (��.f j) ≫ ��.f i) :=
      pullbackRightPullbackFstIso _ _ _ ≪≫ pullback.congrHom pullback.condition rfl ≪≫
        pullbackAssoc ..
    have (k : ��.I₀) (hki : k ⟶ i) (hkj : k ⟶ j) :
        (pullback.lift
          (pullback.map f (��.f k) f (��.f i) (�� Y) (��.trans hki) (�� X) (by simp) (by simp))
          (pullback.map f (��.f k) f (��.f j) (�� Y) (��.trans hkj) (�� X) (by simp) (by simp))
            (by simp)) =
          pullback.map _ _ _ _ (�� Y) (pullback.lift (��.trans hki) (��.trans hkj) (by simp)) (�� X)
            (by simp) (by simp) ≫ iso.inv := by
      apply pullback.hom_ext <;> apply pullback.hom_ext <;> simp [iso]
    obtain ⟨k, hki, hkj, yk, hyk⟩ := ��.exists_lift_trans_eq ((iso.hom ≫ pullback.snd _ _) x)
    refine ⟨k, hki, hkj, show x ∈ Set.range _ from ?_⟩
    rw [this, Scheme.Hom.comp_base, TopCat.coe_comp, Set.range_comp, Pullback.range_map]
    use iso.hom x
    simp only [Hom.id_base, TopCat.hom_id, ContinuousMap.coe_id, Set.range_id, Set.preimage_univ,
      Set.univ_inter, Set.mem_preimage, Set.mem_range, hom_inv_apply, and_true]
    exact ⟨yk, hyk⟩
  property_trans {i j} hij := by
    let iso : pullback f (��.f i) ≅ pullback (pullback.snd f (��.f j)) (��.trans hij) :=
      pullback.congrHom rfl (by simp) ≪≫ (pullbackLeftPullbackSndIso _ _ _).symm
    rw [← P.cancel_left_of_respectsIso iso.inv]
    simp only [Precoverage.ZeroHypercover.pullback₁_toPreZeroHypercover,
      PreZeroHypercover.pullback₁_X, Iso.trans_inv, Iso.symm_inv, pullback.congrHom_inv,
      Category.assoc, iso]
    convert P.pullback_fst (pullback.snd f (��.f j)) _ (��.property_trans hij)
    apply pullback.hom_ext <;> simp [pullback.condition]

end BaseChange

end Cover

namespace OpenCover

variable (�� : X.OpenCover) [Category* ��.I₀] [��.LocallyDirected]

instance {i j : ��.I₀} (f : i ⟶ j) : IsOpenImmersion (��.trans f) :=
  ��.property_trans f

instance {i j : ��.I₀} (f : i ⟶ j) : IsOpenImmersion (��.functorOfLocallyDirected.map f) :=
  ��.property_trans f

set_option backward.isDefEq.respectTransparency false in
/--
If `��` is a directed open cover of `X`, to glue morphisms `{gᵢ : ��ᵢ ⟶ Y}` it suffices
to check compatibility with the transition maps.
See `OpenCover.isColimitCoconeOfLocallyDirected` for this result stated in the language of
colimits.
-/

def glueMorphismsOfLocallyDirected (�� : X.OpenCover) [Category* ��.I₀] [��.LocallyDirected]
    {Y : Scheme.{u}}
    (g : ∀ i, ��.X i ⟶ Y) (h : ∀ {i j : ��.I₀} (hij : i ⟶ j), ��.trans hij ≫ g j = g i) :
    X ⟶ Y :=
  ��.glueMorphisms g <| fun i j ↦ by
    apply (��.intersectionOfLocallyDirected i j).hom_ext
    intro k
    simp [h]

@[reassoc (attr := simp)]
lemma map_glueMorphismsOfLocallyDirected {Y : Scheme.{u}} (g : ∀ i, ��.X i ⟶ Y)
    (h : ∀ {i j : ��.I₀} (hij : i ⟶ j), ��.trans hij ≫ g j = g i) (i : ��.I₀) :
    ��.f i ≫ ��.glueMorphismsOfLocallyDirected g h = g i := by
  simp [glueMorphismsOfLocallyDirected]

set_option backward.isDefEq.respectTransparency.types false in
set_option backward.defeqAttrib.useBackward true in
/-- If `��` is an open cover of `X` that is locally directed, `X` is
the colimit of the components of `��`. -/

def isColimitCoconeOfLocallyDirected : IsColimit ��.coconeOfLocallyDirected where
  desc s := ��.glueMorphismsOfLocallyDirected s.ι.app fun _ ↦ s.ι.naturality _
  uniq s m hm := ��.hom_ext _ _ fun j ↦ by simpa using hm j

/-- If `��` is a directed open cover of `X`, to glue morphisms `{gᵢ : ��ᵢ ⟶ Y}` over `S` it suffices
to check compatibility with the transition maps. -/

def glueMorphismsOverOfLocallyDirected {S : Scheme.{u}} {X : Over S}
    (�� : X.left.OpenCover) [Category* ��.I₀] [��.LocallyDirected] {Y : Over S}
    (g : ∀ i, ��.X i ⟶ Y.left)
    (h : ∀ {i j : ��.I₀} (hij : i ⟶ j), ��.trans hij ≫ g j = g i)
    (w : ∀ i, g i ≫ Y.hom = ��.f i ≫ X.hom) :
    X ⟶ Y :=
  Over.homMk (��.glueMorphismsOfLocallyDirected g h) <| by
    apply ��.hom_ext
    intro i
    simp [w]

@[reassoc (attr := simp)]
lemma map_glueMorphismsOverOfLocallyDirected_left {S : Scheme.{u}} {X : Over S}
    (�� : X.left.OpenCover) [Category* ��.I₀] [��.LocallyDirected] {Y : Over S}
    (g : ∀ i, ��.X i ⟶ Y.left) (h : ∀ {i j : ��.I₀} (hij : i ⟶ j), ��.trans hij ≫ g j = g i)
    (w : ∀ i, g i ≫ Y.hom = ��.f i ≫ X.hom) (i : ��.I₀) :
    ��.f i ≫ (��.glueMorphismsOverOfLocallyDirected g h w).left = g i := by
  simp [glueMorphismsOverOfLocallyDirected]

end OpenCover

set_option backward.isDefEq.respectTransparency.types false in
/-- If `��` is an open cover such that the images of the components form a basis of the topology
of `X`, `��` is directed by the ordering of subset inclusion of the images. -/

@[instance_reducible]
def Cover.LocallyDirected.ofIsBasisOpensRange {�� : X.OpenCover} [Preorder ��.I₀]
    (hle : ∀ {i j : ��.I₀}, i ≤ j ↔ (��.f i).opensRange ≤ (��.f j).opensRange)
    (H : TopologicalSpace.Opens.IsBasis (Set.range <| fun i ↦ (��.f i).opensRange)) :
    ��.LocallyDirected where
  trans {i j} hij := IsOpenImmersion.lift (��.f j) (��.f i) (hle.mp (leOfHom hij))
  trans_id i := by rw [← cancel_mono (��.f i)]; simp
  trans_comp hij hjk := by rw [← cancel_mono (��.f _)]; simp
  directed {i j} x := by
    have : (pullback.fst (��.f i) (��.f j) ≫ ��.f i) x ∈
      (pullback.fst (��.f i) (��.f j) ≫ ��.f i).opensRange := ⟨x, rfl⟩
    obtain ⟨k, ⟨k, rfl⟩, ⟨y, hy⟩, h⟩ := TopologicalSpace.Opens.isBasis_iff_nbhd.mp H this
    refine ⟨k, homOfLE <| hle.mpr <| le_trans h ?_, homOfLE <| hle.mpr <| le_trans h ?_, y, ?_⟩
    · rw [Scheme.Hom.opensRange_comp]
      exact Set.image_subset_range _ _
    · simp_rw [pullback.condition, Scheme.Hom.opensRange_comp]
      exact Set.image_subset_range _ _
    · apply (pullback.fst (��.f i) (��.f j) ≫ ��.f i).isOpenEmbedding.injective
      rw [← Scheme.Hom.comp_apply, pullback.lift_fst_assoc, IsOpenImmersion.lift_fac, hy]

section Constructions

section

variable {�� : X.OpenCover} [Preorder ��.I₀]
  (hle : ∀ {i j : ��.I₀}, i ≤ j ↔ (��.f i).opensRange ≤ (��.f j).opensRange)
  (H : TopologicalSpace.Opens.IsBasis (Set.range <| fun i ↦ (��.f i).opensRange))

include hle in
lemma Cover.LocallyDirected.ofIsBasisOpensRange_le_iff (i j : ��.I₀) :
    letI := Cover.LocallyDirected.ofIsBasisOpensRange hle H
    i ≤ j ↔ (��.f i).opensRange ≤ (��.f j).opensRange := hle

lemma Cover.LocallyDirected.ofIsBasisOpensRange_trans {i j : ��.I₀} :
    letI := Cover.LocallyDirected.ofIsBasisOpensRange hle H
    (hij : i ≤ j) → ��.trans (homOfLE hij) = IsOpenImmersion.lift (��.f j) (��.f i) (hle.mp hij) :=
  fun _ ↦ rfl

end

variable (X) in
open TopologicalSpace.Opens in
/-- The directed affine open cover of `X` given by all affine opens. -/
@[simps I₀ X f]
def directedAffineCover : X.OpenCover where
  I₀ := X.affineOpens
  X U := U
  f U := U.1.ι
  mem₀ := by
    rw [presieve₀_mem_precoverage_iff]
    refine ⟨fun x ↦ ?_, inferInstance⟩
    use ⟨(isBasis_iff_nbhd.mp X.isBasis_affineOpens (mem_top x)).choose,
      (isBasis_iff_nbhd.mp X.isBasis_affineOpens (mem_top x)).choose_spec.1⟩
    simpa using (isBasis_iff_nbhd.mp X.isBasis_affineOpens (mem_top x)).choose_spec.2.1

instance : Preorder X.directedAffineCover.I₀ := inferInstanceAs <| Preorder X.affineOpens

set_option backward.isDefEq.respectTransparency.types false in
set_option backward.defeqAttrib.useBackward true in
instance : Scheme.Cover.LocallyDirected X.directedAffineCover :=
  .ofIsBasisOpensRange (by intros; simp; rfl) <| by
    convert X.isBasis_affineOpens
    simp

@[simp]
lemma directedAffineCover_trans {U V : X.affineOpens} (hUV : U ≤ V) :
    Cover.trans X.directedAffineCover (homOfLE hUV) = X.homOfLE hUV := rfl

end Constructions

end AlgebraicGeometry.Scheme

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,106
#Domains=862,792