The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V28. Algebraic geometry

Mathlib.AlgebraicGeometry.StructureSheaf

96 declarations. Mathlib docs · Source

The structure sheaf on PrimeSpectrum R.

We define the structure sheaf on TopCat.of (PrimeSpectrum R), for an R-module M and prove basic properties about it. We define this as a subsheaf of the sheaf of dependent functions into the localizations, cut out by the condition that the function must be locally equal to a quotient of an element of M by an element of R.

Because the condition "is equal to a fraction" passes to smaller open subsets, the subset of functions satisfying this condition is automatically a subpresheaf. Because the condition "is locally equal to a fraction" is local, it is also a subsheaf.

(It may be helpful to refer back to Mathlib/Topology/Sheaves/SheafOfFunctions.lean, where we show that dependent functions into any type family form a sheaf, and also Mathlib/Topology/Sheaves/LocalPredicate.lean, where we characterise the predicates which pick out sub-presheaves and sub-sheaves of these sheaves.)

When M = R, the structure sheaf is furthermore a sheaf of commutative rings, which we bundle as structureSheaf : Sheaf CommRingCat (PrimeSpectrum.Top R).

We then obtain two key descriptions of the structure sheaf. We show that the stalks Mₓ is the localization of M at the prime corresponding to x, and we show that the sections Γ(M, D(f)) is the localization of M away from f.

Note that the results of this file are packaged into schemes and sheaf of modules in later files, and one usually should not directly use the results in this file to respect the abstraction boundaries.

References

  • [Robin Hartshorne, Algebraic Geometry][har77]

theorem AlgebraicGeometry.StructureSheaf.const.congr_simp E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f f_1 : M),
  f = f_1 →
    ∀ (g g_1 : R) (e_g : g = g_1) (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
      (hu : U ≤ PrimeSpectrum.basicOpen g),
      AlgebraicGeometry.StructureSheaf.const f g U hu = AlgebraicGeometry.StructureSheaf.const f_1 g_1 U ⋯

theorem AlgebraicGeometry.StructureSheaf.comap.congr_simp E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type u} [inst_1 : CommRing S] (f f_1 : R →+* S) (e_f : f = f_1)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S))
  (hUV : V.carrier ⊆ PrimeSpectrum.comap f ⁻¹' U.carrier),
  AlgebraicGeometry.StructureSheaf.comap f U V hUV = AlgebraicGeometry.StructureSheaf.comap f_1 U V ⋯

theorem AlgebraicGeometry.StructureSheaf.comapFun.congr_simp E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {S : Type u} [inst_3 : CommRing S]
  {N : Type u} [inst_4 : AddCommGroup N] [inst_5 : Module S N] {σ : R →+* S} (f f_1 : M →ₛₗ[σ] N),
  f = f_1 →
    ∀ (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
      (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S))
      (hUV : V.carrier ⊆ PrimeSpectrum.comap σ ⁻¹' U.carrier)
      (s s_1 : (x : ↥U) → AlgebraicGeometry.StructureSheaf.Localizations M ↑x),
      s = s_1 →
        ∀ (y : ↥V),
          AlgebraicGeometry.StructureSheaf.comapFun f U V hUV s y =
            AlgebraicGeometry.StructureSheaf.comapFun f_1 U V hUV s_1 y

theorem AlgebraicGeometry.StructureSheaf.comapₗ.congr_simp E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {S : Type u} [inst_3 : CommRing S]
  {N : Type u} [inst_4 : AddCommGroup N] [inst_5 : Module S N] {σ : R →+* S} (f f_1 : M →ₛₗ[σ] N),
  f = f_1 →
    ∀ (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
      (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S))
      (hUV : V.carrier ⊆ PrimeSpectrum.comap σ ⁻¹' U.carrier),
      AlgebraicGeometry.StructureSheaf.comapₗ f U V hUV = AlgebraicGeometry.StructureSheaf.comapₗ f_1 U V hUV

def AlgebraicGeometry.PrimeSpectrum.Top E1 #

(R : Type u) → [CommRing R] → TopCat

The prime spectrum as an object of TopCat.

abbrev AlgebraicGeometry.StructureSheaf.Localizations E1 #

{R : Type u} →
  (M : Type u) →
    [inst : CommRing R] → [inst_1 : AddCommGroup M] → [Module R M] → ↑(AlgebraicGeometry.PrimeSpectrum.Top R) → Type u

The type family over PrimeSpectrum R consisting of the localization over each point.

def AlgebraicGeometry.StructureSheaf.IsFraction E1 #

{R M : Type u} →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        {U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)} →
          ((x : ↥U) → AlgebraicGeometry.StructureSheaf.Localizations M ↑x) → Prop

The predicate saying that a dependent function on an open U is realised as a fixed fraction r / s in each of the stalks (which are localizations at various prime ideals).

def AlgebraicGeometry.StructureSheaf.isFractionPrelocal E1 #

(R M : Type u) →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] → TopCat.PrelocalPredicate (AlgebraicGeometry.StructureSheaf.Localizations M)

The predicate IsFraction is "prelocal", in the sense that if it holds on U it holds on any open subset V of U.

def AlgebraicGeometry.StructureSheaf.isLocallyFraction E1 #

(R M : Type u) →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] → TopCat.LocalPredicate (AlgebraicGeometry.StructureSheaf.Localizations M)

We will define the structure sheaf as the subsheaf of all dependent functions in Π x : U, Localizations R x consisting of those functions which can locally be expressed as a ratio of (the images in the localization of) elements of R.

Quoting Hartshorne:

For an open set $U ⊆ Spec A$, we define $𝒪(U)$ to be the set of functions $s : U → ⨆_{𝔭 ∈ U} A_𝔭$, such that $s(𝔭) ∈ A_𝔭$ for each $𝔭$, and such that $s$ is locally a quotient of elements of $A$: to be precise, we require that for each $𝔭 ∈ U$, there is a neighborhood $V$ of $𝔭$, contained in $U$, and elements $a, f ∈ A$, such that for each $𝔮 ∈ V, f ∉ 𝔮$, and $s(𝔮) = a/f$ in $A_𝔮$.

Now Hartshorne had the disadvantage of not knowing about dependent functions, so we replace his circumlocution about functions into a disjoint union with Π x : U, Localizations x.

def AlgebraicGeometry.StructureSheaf.sectionsSubmodule E1 #

{R : Type u} →
  (M : Type u) →
    [inst : CommRing R] →
      [inst_1 : AddCommGroup M] →
        [inst_2 : Module R M] →
          (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
            Submodule R ((x : ↥U) → AlgebraicGeometry.StructureSheaf.Localizations M ↑x)

The functions satisfying isLocallyFraction form a submodule.

def AlgebraicGeometry.StructureSheaf.sectionsSubalgebra E1 #

{R : Type u} →
  (A : Type u) →
    [inst : CommRing R] →
      [inst_1 : CommRing A] →
        [inst_2 : Algebra R A] →
          (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
            Subalgebra R ((x : ↥U) → AlgebraicGeometry.StructureSheaf.Localizations A ↑x)

The functions satisfying isLocallyFraction form a subalgebra.

def AlgebraicGeometry.StructureSheaf.sectionsSubalgebraSubmodule E1 #

{R : Type u} →
  (M : Type u) →
    [inst : CommRing R] →
      [inst_1 : AddCommGroup M] →
        [inst_2 : Module R M] →
          (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
            Submodule (↥(AlgebraicGeometry.StructureSheaf.sectionsSubalgebra R U))
              ((x : ↥U) → AlgebraicGeometry.StructureSheaf.Localizations M ↑x)

The functions satisfying isLocallyFraction form a submodule.

def AlgebraicGeometry.structureSheafInType E1 #

(R M : Type u) →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] → [Module R M] → TopCat.Sheaf (Type u) (AlgebraicGeometry.PrimeSpectrum.Top R)

The structure sheaf (valued in Type, not yet CommRingCat) is the subsheaf consisting of functions satisfying isLocallyFraction.

instance AlgebraicGeometry.instAddCommGroupObjOppositeOpensCarrierTopObjFunctorTypeIsSheafGrothendieckTopologyStructureSheafInType E0 #

{R M : Type u} →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        (U : (TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))ᵒᵖ) →
          AddCommGroup ((AlgebraicGeometry.structureSheafInType R M).obj.obj U)

instance AlgebraicGeometry.instModuleObjOppositeOpensCarrierTopObjFunctorTypeIsSheafGrothendieckTopologyStructureSheafInType E0 #

{R M : Type u} →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        (U : (TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))ᵒᵖ) →
          Module R ((AlgebraicGeometry.structureSheafInType R M).obj.obj U)

instance AlgebraicGeometry.instCommRingObjOppositeOpensCarrierTopObjFunctorTypeIsSheafGrothendieckTopologyStructureSheafInType E0 #

{R A : Type u} →
  [inst : CommRing R] →
    [inst_1 : CommRing A] →
      [inst_2 : Algebra R A] →
        (U : (TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))ᵒᵖ) →
          CommRing ((AlgebraicGeometry.structureSheafInType R A).obj.obj U)

instance AlgebraicGeometry.instAlgebraObjOppositeOpensCarrierTopObjFunctorTypeIsSheafGrothendieckTopologyStructureSheafInType E0 #

{R A : Type u} →
  [inst : CommRing R] →
    [inst_1 : CommRing A] →
      [inst_2 : Algebra R A] →
        (U : (TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))ᵒᵖ) →
          Algebra R ((AlgebraicGeometry.structureSheafInType R A).obj.obj U)

theorem AlgebraicGeometry.structureSheafInType.add_apply E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  {U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)}
  (s t : (AlgebraicGeometry.structureSheafInType R M).obj.obj (Opposite.op U)) (x : ↥U), ↑(s + t) x = ↑s x + ↑t x

theorem AlgebraicGeometry.structureSheafInType.mul_apply E0 #

∀ {R A : Type u} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : Algebra R A]
  {U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)}
  (s t : (AlgebraicGeometry.structureSheafInType R A).obj.obj (Opposite.op U)) (x : ↥U), ↑(s * t) x = ↑s x * ↑t x

theorem AlgebraicGeometry.structureSheafInType.smul_apply E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  {U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)} (r : R)
  (s : (AlgebraicGeometry.structureSheafInType R M).obj.obj (Opposite.op U)) (x : ↥U), ↑(r • s) x = r • ↑s x

def AlgebraicGeometry.structurePresheafInModuleCat E1 #

(R M : Type u) →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] → [Module R M] → TopCat.Presheaf (ModuleCat R) (AlgebraicGeometry.PrimeSpectrum.Top R)

The structure presheaf, valued in ModuleCat, constructed by dressing up the Type-valued structure presheaf.

theorem AlgebraicGeometry.structurePresheafInModuleCat_obj_carrier E0 #

∀ (R M : Type u) [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  (U : (TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))ᵒᵖ),
  ↑((AlgebraicGeometry.structurePresheafInModuleCat R M).obj U) = (AlgebraicGeometry.structureSheafInType R M).obj.obj U

def AlgebraicGeometry.structurePresheafInCommRingCat E1 #

(R : Type u) → [inst : CommRing R] → TopCat.Presheaf CommRingCat (AlgebraicGeometry.PrimeSpectrum.Top R)

The structure presheaf, valued in CommRingCat, constructed by dressing up the Type-valued structure presheaf.

theorem AlgebraicGeometry.structurePresheafInCommRingCat_obj_carrier E0 #

∀ (R : Type u) [inst : CommRing R] (U : (TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))ᵒᵖ),
  ↑((AlgebraicGeometry.structurePresheafInCommRingCat R).obj U) = (AlgebraicGeometry.structureSheafInType R R).obj.obj U

instance AlgebraicGeometry.instModuleObjOppositeOpensCarrierTopObjFunctorTypeIsSheafGrothendieckTopologyStructureSheafInType_1 E0 #

{R M : Type u} →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        (U : (TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))ᵒᵖ) →
          Module ((AlgebraicGeometry.structureSheafInType R R).obj.obj U)
            ((AlgebraicGeometry.structureSheafInType R M).obj.obj U)

instance AlgebraicGeometry.instIsScalarTowerObjOppositeOpensCarrierTopObjFunctorTypeIsSheafGrothendieckTopologyStructureSheafInType E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  (U : (TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))ᵒᵖ),
  IsScalarTower R ((AlgebraicGeometry.structureSheafInType R R).obj.obj U)
    ((AlgebraicGeometry.structureSheafInType R M).obj.obj U)

def AlgebraicGeometry.moduleStructurePresheaf E1 #

(R M : Type u) →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [Module R M] →
        PresheafOfModules
          (CategoryTheory.Functor.comp (AlgebraicGeometry.structurePresheafInCommRingCat R)
            (CategoryTheory.forget₂ CommRingCat RingCat))

The structure sheaf of a module as a presheaf of modules on Spec R. We will later package this into a Scheme.Modules in Tilde.lean.

def AlgebraicGeometry.structurePresheafCompForget E1 #

(R : Type u) →
  [inst : CommRing R] →
    CategoryTheory.Functor.comp (AlgebraicGeometry.structurePresheafInCommRingCat R)
        (CategoryTheory.forget CommRingCat) ≅
      (AlgebraicGeometry.structureSheafInType R R).obj

Some glue, verifying that the structure presheaf valued in CommRingCat agrees with the Type-valued structure presheaf.

theorem AlgebraicGeometry.StructureSheaf.res_apply E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  (U V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (i : V ⟶ U)
  (s : (AlgebraicGeometry.structureSheafInType R M).obj.obj (Opposite.op U)) (x : ↥V),
  ↑((CategoryTheory.ConcreteCategory.hom ((AlgebraicGeometry.structureSheafInType R M).obj.map i.op)) s) x = ↑s (i x)

def AlgebraicGeometry.StructureSheaf.const E1 #

{R M : Type u} →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        M →
          (g : R) →
            (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
              U ≤ PrimeSpectrum.basicOpen g → (AlgebraicGeometry.structureSheafInType R M).obj.obj (Opposite.op U)

The section of structureSheaf R on an open U sending each x ∈ U to the element f/g in the localization of R at x.

theorem AlgebraicGeometry.StructureSheaf.const_apply E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : M) (g : R)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hu : ∀ x ∈ U, g ∈ x.asIdeal.primeCompl)
  (x : ↥U), ↑(AlgebraicGeometry.StructureSheaf.const f g U hu) x = LocalizedModule.mk f ⟨g, ⋯⟩

theorem AlgebraicGeometry.StructureSheaf.exists_const E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (s : (AlgebraicGeometry.structureSheafInType R M).obj.obj (Opposite.op U)),
  ∀ x ∈ U,
    ∃ g,
      ∃ (_ : x ∈ PrimeSpectrum.basicOpen g) (i : PrimeSpectrum.basicOpen g ≤ U),
        ∃ f,
          AlgebraicGeometry.StructureSheaf.const f g (PrimeSpectrum.basicOpen g) ⋯ =
            (CategoryTheory.ConcreteCategory.hom ((AlgebraicGeometry.structureSheafInType R M).obj.map i.hom.op)) s

theorem AlgebraicGeometry.StructureSheaf.res_const E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : M) (g : R)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hu : U ≤ PrimeSpectrum.basicOpen g)
  (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hv : V ≤ PrimeSpectrum.basicOpen g)
  (i : Opposite.op U ⟶ Opposite.op V),
  (CategoryTheory.ConcreteCategory.hom ((AlgebraicGeometry.structureSheafInType R M).obj.map i))
      (AlgebraicGeometry.StructureSheaf.const f g U hu) =
    AlgebraicGeometry.StructureSheaf.const f g V hv

theorem AlgebraicGeometry.StructureSheaf.const_zero E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : R)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hu : U ≤ PrimeSpectrum.basicOpen f),
  AlgebraicGeometry.StructureSheaf.const 0 f U hu = 0

theorem AlgebraicGeometry.StructureSheaf.const_algebraMap E0 #

∀ {R A : Type u} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : Algebra R A] (f : R)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hu : U ≤ PrimeSpectrum.basicOpen f),
  AlgebraicGeometry.StructureSheaf.const ((algebraMap R A) f) f U hu = 1

theorem AlgebraicGeometry.StructureSheaf.const_self E0 #

∀ {R : Type u} [inst : CommRing R] (f : R) (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (hu : U ≤ PrimeSpectrum.basicOpen f), AlgebraicGeometry.StructureSheaf.const f f U hu = 1

theorem AlgebraicGeometry.StructureSheaf.const_one E0 #

∀ {R A : Type u} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : Algebra R A]
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)),
  AlgebraicGeometry.StructureSheaf.const 1 1 U ⋯ = 1

theorem AlgebraicGeometry.StructureSheaf.const_add E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f₁ f₂ : M) (g₁ g₂ : R)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hu₁ : U ≤ PrimeSpectrum.basicOpen g₁)
  (hu₂ : U ≤ PrimeSpectrum.basicOpen g₂),
  AlgebraicGeometry.StructureSheaf.const f₁ g₁ U hu₁ + AlgebraicGeometry.StructureSheaf.const f₂ g₂ U hu₂ =
    AlgebraicGeometry.StructureSheaf.const (g₂ • f₁ + g₁ • f₂) (g₁ * g₂) U ⋯

theorem AlgebraicGeometry.StructureSheaf.smul_const E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : M) (r g : R)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hu : U ≤ PrimeSpectrum.basicOpen g),
  r • AlgebraicGeometry.StructureSheaf.const f g U hu = AlgebraicGeometry.StructureSheaf.const (r • f) g U hu

theorem AlgebraicGeometry.StructureSheaf.const_mul E1 #

∀ {R A : Type u} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : Algebra R A] (f₁ f₂ : A) (g₁ g₂ : R)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hu₁ : U ≤ PrimeSpectrum.basicOpen g₁)
  (hu₂ : U ≤ PrimeSpectrum.basicOpen g₂),
  AlgebraicGeometry.StructureSheaf.const f₁ g₁ U hu₁ * AlgebraicGeometry.StructureSheaf.const f₂ g₂ U hu₂ =
    AlgebraicGeometry.StructureSheaf.const (f₁ * f₂) (g₁ * g₂) U ⋯

theorem AlgebraicGeometry.StructureSheaf.const_ext E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {f₁ f₂ : M} {g₁ g₂ : R}
  {U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)} {hu₁ : U ≤ PrimeSpectrum.basicOpen g₁}
  {hu₂ : U ≤ PrimeSpectrum.basicOpen g₂},
  g₂ • f₁ = g₁ • f₂ →
    AlgebraicGeometry.StructureSheaf.const f₁ g₁ U hu₁ = AlgebraicGeometry.StructureSheaf.const f₂ g₂ U hu₂

theorem AlgebraicGeometry.StructureSheaf.const_congr E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {f₁ f₂ : M} {g₁ g₂ : R}
  {U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)} {hu : U ≤ PrimeSpectrum.basicOpen g₁},
  f₁ = f₂ →
    ∀ (hg : g₁ = g₂),
      AlgebraicGeometry.StructureSheaf.const f₁ g₁ U hu = AlgebraicGeometry.StructureSheaf.const f₂ g₂ U ⋯

theorem AlgebraicGeometry.StructureSheaf.const_mul_rev E1 #

∀ {R : Type u} [inst : CommRing R] (f g : R) (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (hu₁ : U ≤ PrimeSpectrum.basicOpen g) (hu₂ : U ≤ PrimeSpectrum.basicOpen f),
  AlgebraicGeometry.StructureSheaf.const f g U hu₁ * AlgebraicGeometry.StructureSheaf.const g f U hu₂ = 1

theorem AlgebraicGeometry.StructureSheaf.const_mul_cancel E1 #

∀ {R : Type u} [inst : CommRing R] (f g₁ g₂ : R) (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (hu₁ : U ≤ PrimeSpectrum.basicOpen g₁) (hu₂ : U ≤ PrimeSpectrum.basicOpen g₂),
  AlgebraicGeometry.StructureSheaf.const f g₁ U hu₁ * AlgebraicGeometry.StructureSheaf.const g₁ g₂ U hu₂ =
    AlgebraicGeometry.StructureSheaf.const f g₂ U hu₂

theorem AlgebraicGeometry.StructureSheaf.const_mul_cancel' E1 #

∀ {R : Type u} [inst : CommRing R] (f g₁ g₂ : R) (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (hu₁ : U ≤ PrimeSpectrum.basicOpen g₁) (hu₂ : U ≤ PrimeSpectrum.basicOpen g₂),
  AlgebraicGeometry.StructureSheaf.const g₁ g₂ U hu₂ * AlgebraicGeometry.StructureSheaf.const f g₁ U hu₁ =
    AlgebraicGeometry.StructureSheaf.const f g₂ U hu₂

theorem AlgebraicGeometry.StructureSheaf.const_eq_const_of_smul_eq_smul E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f₁ f₂ : M) (g₁ g₂ : R)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hu₁ : U ≤ PrimeSpectrum.basicOpen g₁)
  (hu₂ : U ≤ PrimeSpectrum.basicOpen g₂),
  g₁ • f₂ = g₂ • f₁ →
    AlgebraicGeometry.StructureSheaf.const f₁ g₁ U hu₁ = AlgebraicGeometry.StructureSheaf.const f₂ g₂ U hu₂

def AlgebraicGeometry.StructureSheaf.toOpenₗ E1 #

(R M : Type u) →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
          M →ₗ[R] (AlgebraicGeometry.structureSheafInType R M).obj.obj (Opposite.op U)

The canonical linear map interpreting an element of M as a section of the structure sheaf.

theorem AlgebraicGeometry.StructureSheaf.toOpenₗ_eq_const E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (f : M),
  (AlgebraicGeometry.StructureSheaf.toOpenₗ R M U) f = AlgebraicGeometry.StructureSheaf.const f 1 U ⋯

instance AlgebraicGeometry.StructureSheaf.instAwayObjOppositeOpensCarrierTopObjFunctorTypeIsSheafGrothendieckTopologyStructureSheafInTypeOpBasicOpenToOpenₗ E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (f : R),
  IsLocalizedModule.Away f (AlgebraicGeometry.StructureSheaf.toOpenₗ R M (PrimeSpectrum.basicOpen f))

theorem AlgebraicGeometry.StructureSheaf.toOpenₗ_top_bijective E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M],
  Function.Bijective ⇑(AlgebraicGeometry.StructureSheaf.toOpenₗ R M ⊤)

theorem AlgebraicGeometry.StructureSheaf.algebraMap_obj_top_bijective E1 #

∀ {R : Type u} [inst : CommRing R],
  Function.Bijective ⇑(algebraMap R ((AlgebraicGeometry.structureSheafInType R R).obj.obj (Opposite.op ⊤)))

instance AlgebraicGeometry.StructureSheaf.instAwayObjOppositeOpensCarrierTopObjFunctorTypeIsSheafGrothendieckTopologyStructureSheafInTypeOpBasicOpen E0 #

∀ {R : Type u} [inst : CommRing R] (f : R),
  IsLocalization.Away f ((AlgebraicGeometry.structureSheafInType R R).obj.obj (Opposite.op (PrimeSpectrum.basicOpen f)))

def AlgebraicGeometry.StructureSheaf.toStalk E1 #

(R : Type u) →
  [inst : CommRing R] →
    (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) → ↧R ⟶ (AlgebraicGeometry.structurePresheafInCommRingCat R).stalk x

The canonical ring homomorphism interpreting an element of R as an element of the stalk of structureSheaf R at x.

theorem AlgebraicGeometry.StructureSheaf.algebraMap_germ_assoc E1 #

∀ {R : Type u} [inst : CommRing R] (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hxU : x ∈ U) {Z : CommRingCat}
  (h : (AlgebraicGeometry.structurePresheafInCommRingCat R).stalk x ⟶ Z),
  CategoryTheory.CategoryStruct.comp
      (CategoryTheory.CategoryStruct.comp
        (CommRingCat.ofHom (algebraMap R ((AlgebraicGeometry.structureSheafInType R R).obj.obj (Opposite.op U))))
        ((AlgebraicGeometry.structurePresheafInCommRingCat R).germ U x hxU))
      h =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.StructureSheaf.toStalk R x) h

theorem AlgebraicGeometry.StructureSheaf.algebraMap_germ E1 #

∀ {R : Type u} [inst : CommRing R] (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hxU : x ∈ U),
  CategoryTheory.CategoryStruct.comp
      (CommRingCat.ofHom (algebraMap R ((AlgebraicGeometry.structureSheafInType R R).obj.obj (Opposite.op U))))
      ((AlgebraicGeometry.structurePresheafInCommRingCat R).germ U x hxU) =
    AlgebraicGeometry.StructureSheaf.toStalk R x

theorem AlgebraicGeometry.StructureSheaf.algebraMap_germ_apply E0 #

∀ {R : Type u} [inst : CommRing R] (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (hxU : x ∈ U) (x_1 : R),
  (CategoryTheory.ConcreteCategory.hom
        (CategoryTheory.CategoryStruct.comp
          (CommRingCat.ofHom (algebraMap R ((AlgebraicGeometry.structureSheafInType R R).obj.obj (Opposite.op U))))
          ((AlgebraicGeometry.structurePresheafInCommRingCat R).germ U x hxU)))
      x_1 =
    (CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.StructureSheaf.toStalk R x)) x_1

instance AlgebraicGeometry.StructureSheaf.instAlgebraCarrierStalkCommRingCatStructurePresheafInCommRingCat E0 #

{R : Type u} →
  [inst : CommRing R] →
    (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
      Algebra R ↑((AlgebraicGeometry.structurePresheafInCommRingCat R).stalk x)

instance AlgebraicGeometry.StructureSheaf.instModuleCarrierStalkAbPresheafOpensCarrierTopModuleStructurePresheaf E0 #

{R M : Type u} →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
          Module R ↑(TopCat.Presheaf.stalk (AlgebraicGeometry.moduleStructurePresheaf R M).presheaf x)

instance AlgebraicGeometry.StructureSheaf.instIsScalarTowerCarrierStalkCommRingCatStructurePresheafInCommRingCatCarrierAbPresheafOpensCarrierTopModuleStructurePresheaf E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)),
  IsScalarTower R ↑((AlgebraicGeometry.structurePresheafInCommRingCat R).stalk x)
    ↑(TopCat.Presheaf.stalk (AlgebraicGeometry.moduleStructurePresheaf R M).presheaf x)

def AlgebraicGeometry.StructureSheaf.toStalkₗ E1 #

(R M : Type u) →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
          M →ₗ[R] ↑(TopCat.Presheaf.stalk (AlgebraicGeometry.moduleStructurePresheaf R M).presheaf x)

The canonical ring homomorphism interpreting an element of R as an element of the stalk of structureSheaf R at x.

instance AlgebraicGeometry.StructureSheaf.instIsLocalizedModuleCarrierStalkAbPresheafOpensCarrierTopModuleStructurePresheafPrimeComplAsIdealToStalkₗ E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)),
  IsLocalizedModule x.asIdeal.primeCompl (AlgebraicGeometry.StructureSheaf.toStalkₗ R M x)

def AlgebraicGeometry.StructureSheaf.commRingCatStalkEquivModuleStalk E1 #

(R : Type u) →
  [inst : CommRing R] →
    (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
      ↑(TopCat.Presheaf.stalk (AlgebraicGeometry.moduleStructurePresheaf R R).presheaf x) ≃ₗ[R]
        ↑((AlgebraicGeometry.structurePresheafInCommRingCat R).stalk x)

The stalk of Spec R at x is isomorphic to the stalk of R^~ at x.

instance AlgebraicGeometry.StructureSheaf.instAtPrimeCarrierStalkCommRingCatStructurePresheafInCommRingCatAsIdeal E0 #

∀ {R : Type u} [inst : CommRing R] (x : ↑(AlgebraicGeometry.PrimeSpectrum.Top R)),
  IsLocalization.AtPrime (↑((AlgebraicGeometry.structurePresheafInCommRingCat R).stalk x)) x.asIdeal

abbrev AlgebraicGeometry.StructureSheaf.stalkIso E1 #

(R : Type u) →
  [inst : CommRing R] →
    (x : PrimeSpectrum R) →
      Localization.AtPrime x.asIdeal ≃ₐ[R] ↑((AlgebraicGeometry.structurePresheafInCommRingCat R).stalk x)

The stalk of Spec R at x is isomorphic to Rₚ, where p is the prime corresponding to x.

def AlgebraicGeometry.Spec.structureSheaf E1 #

(R : Type u) → [inst : CommRing R] → TopCat.Sheaf CommRingCat (AlgebraicGeometry.PrimeSpectrum.Top R)

The structure sheaf on $Spec R$, valued in CommRingCat.

This is provided as a bundled SheafedSpace as Spec.SheafedSpace R later.

theorem AlgebraicGeometry.StructureSheaf.algebraMap_self_map E0 #

∀ (R : Type u) [inst : CommRing R] (U V : (TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))ᵒᵖ)
  (i : V ⟶ U),
  CategoryTheory.CategoryStruct.comp
      (CommRingCat.ofHom (algebraMap R ((AlgebraicGeometry.structureSheafInType R R).obj.obj V)))
      ((AlgebraicGeometry.Spec.structureSheaf R).obj.map i) =
    CommRingCat.ofHom (algebraMap R ((AlgebraicGeometry.structureSheafInType R R).obj.obj U))

instance AlgebraicGeometry.StructureSheaf.stalkAlgebra E0 #

(R : Type u) →
  [inst : CommRing R] → (p : PrimeSpectrum R) → Algebra R ↑((AlgebraicGeometry.Spec.structureSheaf R).presheaf.stalk p)

theorem AlgebraicGeometry.StructureSheaf.stalkAlgebra_map E0 #

∀ (R : Type u) [inst : CommRing R] (p : PrimeSpectrum R) (r : R),
  (algebraMap R ↑((AlgebraicGeometry.Spec.structureSheaf R).presheaf.stalk p)) r =
    (CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.StructureSheaf.toStalk R p)) r

instance AlgebraicGeometry.StructureSheaf.IsLocalization.to_stalk E0 #

∀ (R : Type u) [inst : CommRing R] (p : PrimeSpectrum R),
  IsLocalization.AtPrime (↑((AlgebraicGeometry.Spec.structureSheaf R).presheaf.stalk p)) p.asIdeal

Stalk of the structure sheaf at a prime p as localization of R

instance AlgebraicGeometry.StructureSheaf.openAlgebra E0 #

(R : Type u) →
  [inst : CommRing R] →
    (U : (TopologicalSpace.Opens (PrimeSpectrum R))ᵒᵖ) →
      Algebra R ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj U)

instance AlgebraicGeometry.StructureSheaf.IsLocalization.to_basicOpen E0 #

∀ (R : Type u) [inst : CommRing R] (r : R),
  IsLocalization.Away r ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op (PrimeSpectrum.basicOpen r)))

Sections of the structure sheaf of Spec R on a basic open as localization of R

instance AlgebraicGeometry.StructureSheaf.to_basicOpen_epi E0 #

∀ (R : Type u) [inst : CommRing R] (r : R),
  CategoryTheory.Epi
    (CommRingCat.ofHom
      (algebraMap R ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op (PrimeSpectrum.basicOpen r)))))

def AlgebraicGeometry.StructureSheaf.globalSectionsIso E1 #

(R : Type u) → [inst : CommRing R] → ↧R ≅ (AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op ⊤)

The ring isomorphism between the ring R and the global sections Γ(X, 𝒪ₓ).

theorem AlgebraicGeometry.StructureSheaf.globalSectionsIso_inv E0 #

∀ (R : Type u) [inst : CommRing R],
  (AlgebraicGeometry.StructureSheaf.globalSectionsIso R).inv =
    CommRingCat.ofHom
      ↑(RingEquiv.ofBijective (algebraMap R ((AlgebraicGeometry.structureSheafInType R R).obj.obj (Opposite.op ⊤)))
            ⋯).symm

theorem AlgebraicGeometry.StructureSheaf.globalSectionsIso_hom E1 #

∀ (R : CommRingCat),
  (AlgebraicGeometry.StructureSheaf.globalSectionsIso ↑R).hom =
    CommRingCat.ofHom (algebraMap (↑R) ((AlgebraicGeometry.structureSheafInType ↑R ↑R).obj.obj (Opposite.op ⊤)))

theorem AlgebraicGeometry.StructureSheaf.toStalk_stalkSpecializes_assoc E1 #

∀ {R : Type u_1} [inst : CommRing R] {x y : PrimeSpectrum R} (h : x ⤳ y) {Z : CommRingCat}
  (h_1 : (AlgebraicGeometry.Spec.structureSheaf R).presheaf.stalk x ⟶ Z),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.StructureSheaf.toStalk R y)
      (CategoryTheory.CategoryStruct.comp ((AlgebraicGeometry.Spec.structureSheaf R).presheaf.stalkSpecializes h) h_1) =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.StructureSheaf.toStalk R x) h_1

theorem AlgebraicGeometry.StructureSheaf.toStalk_stalkSpecializes E0 #

∀ {R : Type u_1} [inst : CommRing R] {x y : PrimeSpectrum R} (h : x ⤳ y),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.StructureSheaf.toStalk R y)
      ((AlgebraicGeometry.Spec.structureSheaf R).presheaf.stalkSpecializes h) =
    AlgebraicGeometry.StructureSheaf.toStalk R x

theorem AlgebraicGeometry.StructureSheaf.toStalk_stalkSpecializes_apply E0 #

∀ {R : Type u_1} [inst : CommRing R] {x y : PrimeSpectrum R} (h : x ⤳ y) (x_1 : R),
  (CategoryTheory.ConcreteCategory.hom ((AlgebraicGeometry.Spec.structureSheaf R).presheaf.stalkSpecializes h))
      ((CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.StructureSheaf.toStalk R y)) x_1) =
    (CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.StructureSheaf.toStalk R x)) x_1

def AlgebraicGeometry.StructureSheaf.Localizations.comapFun E1 #

{R M : Type u} →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        {S : Type u} →
          [inst_3 : CommRing S] →
            {N : Type u} →
              [inst_4 : AddCommGroup N] →
                [inst_5 : Module S N] →
                  {σ : R →+* S} →
                    (M →ₛₗ[σ] N) →
                      (y : ↑(AlgebraicGeometry.PrimeSpectrum.Top S)) →
                        AlgebraicGeometry.StructureSheaf.Localizations M (PrimeSpectrum.comap σ y) →ₛₗ[σ]
                          AlgebraicGeometry.StructureSheaf.Localizations N y

The map M_{f y} ⟶ N_{y} used to build maps between structure sheaves.

theorem AlgebraicGeometry.StructureSheaf.Localizations.comapFun_mk E0 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {S : Type u} [inst_3 : CommRing S]
  {N : Type u} [inst_4 : AddCommGroup N] [inst_5 : Module S N] {σ : R →+* S} (f : M →ₛₗ[σ] N)
  (y : ↑(AlgebraicGeometry.PrimeSpectrum.Top S)) (a : M) (b : ↥(PrimeSpectrum.comap σ y).asIdeal.primeCompl),
  (AlgebraicGeometry.StructureSheaf.Localizations.comapFun f y) (LocalizedModule.mk a b) =
    LocalizedModule.mk (f a) ⟨σ ↑b, ⋯⟩

def AlgebraicGeometry.StructureSheaf.comapFun E1 #

{R M : Type u} →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        {S : Type u} →
          [inst_3 : CommRing S] →
            {N : Type u} →
              [inst_4 : AddCommGroup N] →
                [inst_5 : Module S N] →
                  {σ : R →+* S} →
                    (M →ₛₗ[σ] N) →
                      (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
                        (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S)) →
                          V.carrier ⊆ PrimeSpectrum.comap σ ⁻¹' U.carrier →
                            ((x : ↥U) → AlgebraicGeometry.StructureSheaf.Localizations M ↑x) →
                              (y : ↥V) → AlgebraicGeometry.StructureSheaf.Localizations N ↑y

Given a ring homomorphism f : R →+* S, an open set U of the prime spectrum of R and an open set V of the prime spectrum of S, such that V ⊆ (comap f) ⁻¹' U, we can push a section s on U to a section on V, by composing with Localization.localRingHom _ _ f from the left and comap f from the right. Explicitly, if s evaluates on comap f p to a / b, its image on V evaluates on p to f(a) / f(b).

At the moment, we work with arbitrary dependent functions s : Π x : U, Localizations R x. Below, we prove the predicate isLocallyFraction is preserved by this map, hence it can be extended to a morphism between the structure sheaves of R and S.

theorem AlgebraicGeometry.StructureSheaf.isLocallyFraction_comapFun E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {S : Type u} [inst_3 : CommRing S]
  {N : Type u} [inst_4 : AddCommGroup N] [inst_5 : Module S N] {σ : R →+* S} (f : M →ₛₗ[σ] N)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S))
  (hUV : V.carrier ⊆ PrimeSpectrum.comap σ ⁻¹' U.carrier)
  (s : (x : ↥U) → AlgebraicGeometry.StructureSheaf.Localizations M ↑x),
  (AlgebraicGeometry.StructureSheaf.isLocallyFraction R M).pred s →
    (AlgebraicGeometry.StructureSheaf.isLocallyFraction S N).pred
      (AlgebraicGeometry.StructureSheaf.comapFun f U V hUV s)

def AlgebraicGeometry.StructureSheaf.comapₗ E1 #

{R M : Type u} →
  [inst : CommRing R] →
    [inst_1 : AddCommGroup M] →
      [inst_2 : Module R M] →
        {S : Type u} →
          [inst_3 : CommRing S] →
            {N : Type u} →
              [inst_4 : AddCommGroup N] →
                [inst_5 : Module S N] →
                  {σ : R →+* S} →
                    (M →ₛₗ[σ] N) →
                      (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
                        (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S)) →
                          V.carrier ⊆ PrimeSpectrum.comap σ ⁻¹' U.carrier →
                            (AlgebraicGeometry.structureSheafInType R M).obj.obj (Opposite.op U) →ₛₗ[σ]
                              (AlgebraicGeometry.structureSheafInType S N).obj.obj (Opposite.op V)

For a ring homomorphism f : R →+* S and open sets U and V of the prime spectra of R and S such that V ⊆ (comap f) ⁻¹ U, the induced ring homomorphism from the structure sheaf of R at U to the structure sheaf of S at V.

Explicitly, this map is given as follows: For a point p : V, if the section s evaluates on p to the fraction a / b, its image on V evaluates on p to the fraction f(a) / f(b).

theorem AlgebraicGeometry.StructureSheaf.comapₗ_const E1 #

∀ {R M : Type u} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {S : Type u} [inst_3 : CommRing S]
  {N : Type u} [inst_4 : AddCommGroup N] [inst_5 : Module S N] {σ : R →+* S} (f : M →ₛₗ[σ] N)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S))
  (hUV : V.carrier ⊆ PrimeSpectrum.comap σ ⁻¹' U.carrier) (a : M) (b : R) (hb : U ≤ PrimeSpectrum.basicOpen b),
  (AlgebraicGeometry.StructureSheaf.comapₗ f U V hUV) (AlgebraicGeometry.StructureSheaf.const a b U hb) =
    AlgebraicGeometry.StructureSheaf.const (f a) (σ b) V ⋯

theorem AlgebraicGeometry.StructureSheaf.comapₗ_eq_localRingHom E0 #

∀ {R : Type u} [inst : CommRing R] {S : Type u} [inst_1 : CommRing S] (f : R →+* S)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S))
  (hUV : V.carrier ⊆ PrimeSpectrum.comap f ⁻¹' U.carrier)
  (s : ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op U))) (p : ↥V),
  ↑((AlgebraicGeometry.StructureSheaf.comapₗ f.toSemilinearMap U V hUV) s) p =
    (Localization.localRingHom (PrimeSpectrum.comap f ↑p).asIdeal (↑p).asIdeal f ⋯) (↑s ⟨PrimeSpectrum.comap f ↑p, ⋯⟩)

def AlgebraicGeometry.StructureSheaf.comap E1 #

{R : Type u} →
  [inst : CommRing R] →
    {S : Type u} →
      [inst_1 : CommRing S] →
        (f : R →+* S) →
          (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) →
            (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S)) →
              V.carrier ⊆ PrimeSpectrum.comap f ⁻¹' U.carrier →
                ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op U)) →+*
                  ↑((AlgebraicGeometry.Spec.structureSheaf S).obj.obj (Opposite.op V))

For a ring homomorphism f : R →+* S and open sets U and V of the prime spectra of R and S such that V ⊆ (comap f) ⁻¹ U, the induced ring homomorphism from the structure sheaf of R at U to the structure sheaf of S at V.

Explicitly, this map is given as follows: For a point p : V, if the section s evaluates on p to the fraction a / b, its image on V evaluates on p to the fraction f(a) / f(b).

theorem AlgebraicGeometry.StructureSheaf.comap_apply E0 #

∀ {R : Type u} [inst : CommRing R] {S : Type u} [inst_1 : CommRing S] (f : R →+* S)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S))
  (hUV : V.carrier ⊆ PrimeSpectrum.comap f ⁻¹' U.carrier)
  (s : ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op U))) (p : ↥V),
  ↑((AlgebraicGeometry.StructureSheaf.comap f U V hUV) s) p =
    (Localization.localRingHom (PrimeSpectrum.comap f ↑p).asIdeal (↑p).asIdeal f ⋯) (↑s ⟨PrimeSpectrum.comap f ↑p, ⋯⟩)

theorem AlgebraicGeometry.StructureSheaf.comap_const E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type u} [inst_1 : CommRing S] (f : R →+* S)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S))
  (hUV : V.carrier ⊆ PrimeSpectrum.comap f ⁻¹' U.carrier) (a b : R) (hb : ∀ x ∈ U, b ∈ x.asIdeal.primeCompl),
  (AlgebraicGeometry.StructureSheaf.comap f U V hUV) (AlgebraicGeometry.StructureSheaf.const a b U hb) =
    AlgebraicGeometry.StructureSheaf.const (f a) (f b) V ⋯

theorem AlgebraicGeometry.StructureSheaf.comap_id_eq_map E1 #

∀ {R : Type u} [inst : CommRing R] (U V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (iVU : V ⟶ U),
  AlgebraicGeometry.StructureSheaf.comap (RingHom.id R) U V ⋯ =
    CommRingCat.Hom.hom ((AlgebraicGeometry.Spec.structureSheaf R).obj.map iVU.op)

For an inclusion i : V ⟶ U between open sets of the prime spectrum of R, the comap of the identity from OO_X(U) to OO_X(V) equals as the restriction map of the structure sheaf.

This is a generalization of the fact that, for fixed U, the comap of the identity from OO_X(U) to OO_X(U) is the identity.

theorem AlgebraicGeometry.StructureSheaf.comap_id E1 #

∀ {R : Type u} [inst : CommRing R] {U V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)}
  (hUV : U = V),
  AlgebraicGeometry.StructureSheaf.comap (RingHom.id R) U V ⋯ = CommRingCat.Hom.hom (CategoryTheory.eqToHom ⋯)

The comap of the identity is the identity. In this variant of the lemma, two open subsets U and V are given as arguments, together with a proof that U = V. This is useful when U and V are not definitionally equal.

theorem AlgebraicGeometry.StructureSheaf.comap_id' E0 #

∀ {R : Type u} [inst : CommRing R] (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)),
  AlgebraicGeometry.StructureSheaf.comap (RingHom.id R) U U ⋯ =
    RingHom.id ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op U))

theorem AlgebraicGeometry.StructureSheaf.comap_comp E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type u} [inst_1 : CommRing S] {P : Type u} [inst_2 : CommRing P] (f : R →+* S)
  (g : S →+* P) (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R))
  (V : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top S))
  (W : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top P)) (hUV : ∀ p ∈ V, PrimeSpectrum.comap f p ∈ U)
  (hVW : ∀ p ∈ W, PrimeSpectrum.comap g p ∈ V),
  AlgebraicGeometry.StructureSheaf.comap (g.comp f) U W ⋯ =
    (AlgebraicGeometry.StructureSheaf.comap g V W hVW).comp (AlgebraicGeometry.StructureSheaf.comap f U V hUV)

theorem AlgebraicGeometry.StructureSheaf.toOpen_comp_comap_apply E0 #

∀ {R : Type u} [inst : CommRing R] {S : Type u} [inst_1 : CommRing S] (f : R →+* S)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) (x : R),
  (AlgebraicGeometry.StructureSheaf.comap f U
        ((TopologicalSpace.Opens.comap { toFun := PrimeSpectrum.comap f, continuous_toFun := ⋯ }) U) ⋯)
      ((algebraMap R ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op U))) x) =
    (algebraMap S
        ↑((AlgebraicGeometry.Spec.structureSheaf S).obj.obj
            (Opposite.op ((TopologicalSpace.Opens.comap { toFun := PrimeSpectrum.comap f, continuous_toFun := ⋯ }) U))))
      (f x)

theorem AlgebraicGeometry.StructureSheaf.toOpen_comp_comap E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type u} [inst_1 : CommRing S] (f : R →+* S)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)),
  CategoryTheory.CategoryStruct.comp
      (CommRingCat.ofHom (algebraMap R ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op U))))
      (CommRingCat.ofHom
        (AlgebraicGeometry.StructureSheaf.comap f U
          ((TopologicalSpace.Opens.comap { toFun := PrimeSpectrum.comap f, continuous_toFun := ⋯ }) U) ⋯)) =
    CategoryTheory.CategoryStruct.comp (CommRingCat.ofHom f)
      (CommRingCat.ofHom
        (algebraMap S
          ↑((AlgebraicGeometry.Spec.structureSheaf S).obj.obj
              (Opposite.op
                ((TopologicalSpace.Opens.comap { toFun := PrimeSpectrum.comap f, continuous_toFun := ⋯ }) U)))))

theorem AlgebraicGeometry.StructureSheaf.toOpen_comp_comap_assoc E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type u} [inst_1 : CommRing S] (f : R →+* S)
  (U : TopologicalSpace.Opens ↑(AlgebraicGeometry.PrimeSpectrum.Top R)) {Z : CommRingCat}
  (h :
    ↧↑((AlgebraicGeometry.Spec.structureSheaf S).obj.obj
            (Opposite.op
              ((TopologicalSpace.Opens.comap { toFun := PrimeSpectrum.comap f, continuous_toFun := ⋯ }) U))) ⟶
      Z),
  CategoryTheory.CategoryStruct.comp
      (CommRingCat.ofHom (algebraMap R ↑((AlgebraicGeometry.Spec.structureSheaf R).obj.obj (Opposite.op U))))
      (CategoryTheory.CategoryStruct.comp
        (CommRingCat.ofHom
          (AlgebraicGeometry.StructureSheaf.comap f U
            ((TopologicalSpace.Opens.comap { toFun := PrimeSpectrum.comap f, continuous_toFun := ⋯ }) U) ⋯))
        h) =
    CategoryTheory.CategoryStruct.comp (CommRingCat.ofHom f)
      (CategoryTheory.CategoryStruct.comp
        (CommRingCat.ofHom
          (algebraMap S
            ↑((AlgebraicGeometry.Spec.structureSheaf S).obj.obj
                (Opposite.op
                  ((TopologicalSpace.Opens.comap { toFun := PrimeSpectrum.comap f, continuous_toFun := ⋯ }) U)))))
        h)

theorem AlgebraicGeometry.StructureSheaf.comap_basicOpen E1 #

∀ {R : Type u} [inst : CommRing R] {S : Type u} [inst_1 : CommRing S] (f : R →+* S) (x : R),
  AlgebraicGeometry.StructureSheaf.comap f (PrimeSpectrum.basicOpen x) (PrimeSpectrum.basicOpen (f x)) ⋯ =
    IsLocalization.map
      (↑((AlgebraicGeometry.Spec.structureSheaf S).obj.obj (Opposite.op (PrimeSpectrum.basicOpen (f x))))) f ⋯