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.AffineScheme

214 declarations. Mathlib docs · Source

Affine schemes

We define the category of AffineSchemes as the essential image of Spec. We also define predicates about affine schemes and affine open sets.

Main definitions

  • AlgebraicGeometry.AffineScheme: The category of affine schemes.
  • AlgebraicGeometry.IsAffine: A scheme is affine if the canonical map X ⟶ Spec Γ(X) is an isomorphism.
  • AlgebraicGeometry.Scheme.isoSpec: The canonical isomorphism X ≅ Spec Γ(X) for an affine scheme.
  • AlgebraicGeometry.AffineScheme.equivCommRingCat: The equivalence of categories AffineScheme ≌ CommRingᵒᵖ given by AffineScheme.Spec : CommRingᵒᵖ ⥤ AffineScheme and AffineScheme.Γ : AffineSchemeᵒᵖ ⥤ CommRingCat.
  • AlgebraicGeometry.IsAffineOpen: An open subset of a scheme is affine if the open subscheme is affine.
  • AlgebraicGeometry.IsAffineOpen.fromSpec: The immersion Spec 𝒪ₓ(U) ⟶ X for an affine U.

We copy over instances from Scheme.Spec.toEssImage.

We copy over instances from Scheme.Spec.essImageInclusion.

theorem AlgebraicGeometry.IsAffineOpen.fromSpec.congr_simp E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U), hU.fromSpec = hU.fromSpec

theorem AlgebraicGeometry.IsAffineOpen.primeIdealOf.congr_simp E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) (x x_1 : ↥U),
  x = x_1 → hU.primeIdealOf x = hU.primeIdealOf x_1

theorem AlgebraicGeometry.Scheme.Hom.liftQuotient.congr_simp E1 #

∀ {X : AlgebraicGeometry.Scheme} {A : CommRingCat} (f f_1 : X.Hom (AlgebraicGeometry.Spec A)) (e_f : f = f_1)
  (I : Ideal ↑A)
  (hI :
    I ≤
      RingHom.ker
        (CommRingCat.Hom.hom (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso A).inv f.appTop))),
  f.liftQuotient I hI = f_1.liftQuotient I ⋯

theorem AlgebraicGeometry.Scheme.isoSpec.congr_simp E1 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X], X.isoSpec = X.isoSpec

theorem AlgebraicGeometry.IsAffineOpen.isoSpec.congr_simp E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U), hU.isoSpec = hU.isoSpec

def AlgebraicGeometry.AffineScheme E3 #

Type (u_1 + 1)

The category of affine schemes

instance AlgebraicGeometry.instCategoryAffineScheme E0 #

CategoryTheory.Category.{u_1, u_1 + 1} AlgebraicGeometry.AffineScheme

class AlgebraicGeometry.IsAffine E3 #

AlgebraicGeometry.Scheme → Prop

A Scheme is affine if the canonical map X ⟶ Spec Γ(X) is an isomorphism.

ctor AlgebraicGeometry.IsAffine.mk E0 #

∀ {X : AlgebraicGeometry.Scheme}, CategoryTheory.IsIso X.toSpecΓ → AlgebraicGeometry.IsAffine X

instance AlgebraicGeometry.IsAffine.affine E0 #

∀ {X : AlgebraicGeometry.Scheme} [self : AlgebraicGeometry.IsAffine X], CategoryTheory.IsIso X.toSpecΓ

instance AlgebraicGeometry.instIsIsoSchemeAppUnitOppositeCommRingCatAdjunctionOfIsAffine E0 #

∀ (X : AlgebraicGeometry.Scheme) [AlgebraicGeometry.IsAffine X],
  CategoryTheory.IsIso (AlgebraicGeometry.ΓSpec.adjunction.unit.app X)

def AlgebraicGeometry.Scheme.isoSpec E3 #

(X : AlgebraicGeometry.Scheme) →
  [AlgebraicGeometry.IsAffine X] → X ≅ AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op ⊤))

The canonical isomorphism X ≅ Spec Γ(X) for an affine scheme.

theorem AlgebraicGeometry.Scheme.isoSpec_hom E1 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X], X.isoSpec.hom = X.toSpecΓ

theorem AlgebraicGeometry.Scheme.isoSpec_hom_naturality E1 #

∀ {X Y : AlgebraicGeometry.Scheme} [inst : AlgebraicGeometry.IsAffine X] [inst_1 : AlgebraicGeometry.IsAffine Y]
  (f : X ⟶ Y),
  CategoryTheory.CategoryStruct.comp X.isoSpec.hom
      (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.appTop f)) =
    CategoryTheory.CategoryStruct.comp f Y.isoSpec.hom

theorem AlgebraicGeometry.Scheme.isoSpec_hom_naturality_assoc E1 #

∀ {X Y : AlgebraicGeometry.Scheme} [inst : AlgebraicGeometry.IsAffine X] [inst_1 : AlgebraicGeometry.IsAffine Y]
  (f : X ⟶ Y) {Z : AlgebraicGeometry.Scheme} (h : AlgebraicGeometry.Spec (Y.presheaf.obj (Opposite.op ⊤)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp X.isoSpec.hom
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.appTop f)) h) =
    CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp Y.isoSpec.hom h)

theorem AlgebraicGeometry.Scheme.isoSpec_inv_naturality_assoc E1 #

∀ {X Y : AlgebraicGeometry.Scheme} [inst : AlgebraicGeometry.IsAffine X] [inst_1 : AlgebraicGeometry.IsAffine Y]
  (f : X ⟶ Y) {Z : AlgebraicGeometry.Scheme} (h : Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.appTop f))
      (CategoryTheory.CategoryStruct.comp Y.isoSpec.inv h) =
    CategoryTheory.CategoryStruct.comp X.isoSpec.inv (CategoryTheory.CategoryStruct.comp f h)

theorem AlgebraicGeometry.Scheme.isoSpec_inv_naturality E1 #

∀ {X Y : AlgebraicGeometry.Scheme} [inst : AlgebraicGeometry.IsAffine X] [inst_1 : AlgebraicGeometry.IsAffine Y]
  (f : X ⟶ Y),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.appTop f))
      Y.isoSpec.inv =
    CategoryTheory.CategoryStruct.comp X.isoSpec.inv f

theorem AlgebraicGeometry.Scheme.toSpecΓ_isoSpec_inv_assoc E0 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X] {Z : AlgebraicGeometry.Scheme} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp X.toSpecΓ (CategoryTheory.CategoryStruct.comp X.isoSpec.inv h) = h

theorem AlgebraicGeometry.Scheme.toSpecΓ_isoSpec_inv E0 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X],
  CategoryTheory.CategoryStruct.comp X.toSpecΓ X.isoSpec.inv = CategoryTheory.CategoryStruct.id X

theorem AlgebraicGeometry.Scheme.isoSpec_inv_toSpecΓ E0 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X],
  CategoryTheory.CategoryStruct.comp X.isoSpec.inv X.toSpecΓ =
    CategoryTheory.CategoryStruct.id (AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op ⊤)))

theorem AlgebraicGeometry.Scheme.isoSpec_inv_toSpecΓ_assoc E0 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X] {Z : AlgebraicGeometry.Scheme}
  (h : AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op ⊤)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp X.isoSpec.inv (CategoryTheory.CategoryStruct.comp X.toSpecΓ h) = h

def AlgebraicGeometry.AffineScheme.mk E1 #

(X : AlgebraicGeometry.Scheme) → AlgebraicGeometry.IsAffine X → AlgebraicGeometry.AffineScheme

Construct an affine scheme from a scheme and the information that it is affine. Also see AffineScheme.of for a typeclass version.

theorem AlgebraicGeometry.AffineScheme.mk_obj E0 #

∀ (X : AlgebraicGeometry.Scheme) (x : AlgebraicGeometry.IsAffine X), (AlgebraicGeometry.AffineScheme.mk X x).obj = X

def AlgebraicGeometry.AffineScheme.of E1 #

(X : AlgebraicGeometry.Scheme) → [h : AlgebraicGeometry.IsAffine X] → AlgebraicGeometry.AffineScheme

Construct an affine scheme from a scheme. Also see AffineScheme.mk for a non-typeclass version.

def AlgebraicGeometry.AffineScheme.ofHom E1 #

{X Y : AlgebraicGeometry.Scheme} →
  [inst : AlgebraicGeometry.IsAffine X] → [inst_1 : AlgebraicGeometry.IsAffine Y] → (X ⟶ Y) → (↧X ⟶ ↧Y)

Type check a morphism of schemes as a morphism in AffineScheme.

theorem AlgebraicGeometry.essImage_Spec E0 #

∀ {X : AlgebraicGeometry.Scheme}, AlgebraicGeometry.Scheme.Spec.essImage X ↔ AlgebraicGeometry.IsAffine X

instance AlgebraicGeometry.isAffine_affineScheme E0 #

∀ (X : AlgebraicGeometry.AffineScheme), AlgebraicGeometry.IsAffine X.obj

instance AlgebraicGeometry.instIsAffineObjOppositeCommRingCatSchemeSpec E0 #

∀ (R : CommRingCatᵒᵖ), AlgebraicGeometry.IsAffine (AlgebraicGeometry.Scheme.Spec.obj R)

instance AlgebraicGeometry.isAffine_Spec E0 #

∀ (R : CommRingCat), AlgebraicGeometry.IsAffine (AlgebraicGeometry.Spec R)

theorem AlgebraicGeometry.IsAffine.of_isIso E1 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) [CategoryTheory.IsIso f] [h : AlgebraicGeometry.IsAffine Y],
  AlgebraicGeometry.IsAffine X

theorem AlgebraicGeometry.IsAffine.iff_of_isIso E1 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) [CategoryTheory.IsIso f],
  AlgebraicGeometry.IsAffine X ↔ AlgebraicGeometry.IsAffine Y

def AlgebraicGeometry.arrowIsoSpecΓOfIsAffine E1 #

{X Y : AlgebraicGeometry.Scheme} →
  [AlgebraicGeometry.IsAffine X] →
    [AlgebraicGeometry.IsAffine Y] →
      (f : X ⟶ Y) →
        CategoryTheory.Arrow.mk f ≅
          CategoryTheory.Arrow.mk (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.appTop f))

If f : X ⟶ Y is a morphism between affine schemes, the corresponding arrow is isomorphic to the arrow of the morphism on prime spectra induced by the map on global sections.

def AlgebraicGeometry.arrowIsoΓSpecOfIsAffine E1 #

{A B : CommRingCat} →
  (f : A ⟶ B) →
    CategoryTheory.Arrow.mk f ≅
      CategoryTheory.Arrow.mk (AlgebraicGeometry.Scheme.Hom.appTop (AlgebraicGeometry.Spec.map f))

If f : A ⟶ B is a ring homomorphism, the corresponding arrow is isomorphic to the arrow of the morphism induced on global sections by the map on prime spectra.

theorem AlgebraicGeometry.Scheme.isoSpec_Spec E1 #

∀ (R : CommRingCat),
  (AlgebraicGeometry.Spec R).isoSpec = AlgebraicGeometry.Scheme.Spec.mapIso (AlgebraicGeometry.Scheme.ΓSpecIso R).op

theorem AlgebraicGeometry.Scheme.isoSpec_Spec_hom E0 #

∀ (R : CommRingCat),
  (AlgebraicGeometry.Spec R).isoSpec.hom = AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.ΓSpecIso R).hom

theorem AlgebraicGeometry.Scheme.isoSpec_Spec_inv E0 #

∀ (R : CommRingCat),
  (AlgebraicGeometry.Spec R).isoSpec.inv = AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.ΓSpecIso R).inv

theorem AlgebraicGeometry.ext_of_isAffine E1 #

∀ {X Y : AlgebraicGeometry.Scheme} [AlgebraicGeometry.IsAffine Y] {f g : X ⟶ Y},
  AlgebraicGeometry.Scheme.Hom.appTop f = AlgebraicGeometry.Scheme.Hom.appTop g → f = g

instance AlgebraicGeometry.instIsAffineXSchemeCover E0 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme) {S : AlgebraicGeometry.Scheme}
  (𝒰 : AlgebraicGeometry.Scheme.AffineCover P S) (i : 𝒰.I₀), AlgebraicGeometry.IsAffine (𝒰.cover.X i)

instance AlgebraicGeometry.preservesLimit_rightOp_Γ E0 #

∀ {I : Type w} [inst : CategoryTheory.Category.{v, w} I] (D : CategoryTheory.Functor I AlgebraicGeometry.Scheme)
  [∀ (i : I), AlgebraicGeometry.IsAffine (D.obj i)],
  CategoryTheory.Limits.PreservesLimit D AlgebraicGeometry.Scheme.Γ.rightOp

Scheme.Γ.rightOp : Scheme ⥤ CommRingCatᵒᵖ preserves limits of diagrams consisting of affine schemes.

instance AlgebraicGeometry.preservesColimit_Γ E0 #

∀ {I : Type w} [inst : CategoryTheory.Category.{v, w} I] (D : CategoryTheory.Functor I AlgebraicGeometry.Schemeᵒᵖ)
  [∀ (i : I), AlgebraicGeometry.IsAffine (Opposite.unop (D.obj i))],
  CategoryTheory.Limits.PreservesColimit D AlgebraicGeometry.Scheme.Γ

Scheme.Γ : Schemeᵒᵖ ⥤ CommRingCat preserves colimits of diagrams consisting of affine schemes.

def AlgebraicGeometry.AffineScheme.Spec E1 #

CategoryTheory.Functor CommRingCatᵒᵖ AlgebraicGeometry.AffineScheme

The Spec functor into the category of affine schemes.

instance AlgebraicGeometry.AffineScheme.Spec_full E0 #

AlgebraicGeometry.AffineScheme.Spec.Full

instance AlgebraicGeometry.AffineScheme.Spec_faithful E0 #

AlgebraicGeometry.AffineScheme.Spec.Faithful

instance AlgebraicGeometry.AffineScheme.Spec_essSurj E0 #

AlgebraicGeometry.AffineScheme.Spec.EssSurj

def AlgebraicGeometry.AffineScheme.forgetToScheme E1 #

CategoryTheory.Functor AlgebraicGeometry.AffineScheme AlgebraicGeometry.Scheme

The forgetful functor AffineScheme ⥤ Scheme.

theorem AlgebraicGeometry.AffineScheme.forgetToScheme_map E0 #

∀ {X Y : CategoryTheory.InducedCategory AlgebraicGeometry.Scheme CategoryTheory.ObjectProperty.FullSubcategory.obj}
  (f : X ⟶ Y), AlgebraicGeometry.AffineScheme.forgetToScheme.map f = f.hom

theorem AlgebraicGeometry.AffineScheme.forgetToScheme_obj E0 #

∀ (self : AlgebraicGeometry.Scheme.Spec.essImage.FullSubcategory),
  AlgebraicGeometry.AffineScheme.forgetToScheme.obj self = self.obj

instance AlgebraicGeometry.AffineScheme.forgetToScheme_full E0 #

AlgebraicGeometry.AffineScheme.forgetToScheme.Full

instance AlgebraicGeometry.AffineScheme.forgetToScheme_faithful E0 #

AlgebraicGeometry.AffineScheme.forgetToScheme.Faithful

def AlgebraicGeometry.AffineScheme.Γ E1 #

CategoryTheory.Functor AlgebraicGeometry.AffineSchemeᵒᵖ CommRingCat

The global section functor of an affine scheme.

def AlgebraicGeometry.AffineScheme.equivCommRingCat E3 #

AlgebraicGeometry.AffineScheme ≌ CommRingCatᵒᵖ

The category of affine schemes is equivalent to the category of commutative rings.

instance AlgebraicGeometry.AffineScheme.instIsEquivalenceOppositeCommRingCatRightOpΓ E0 #

AlgebraicGeometry.AffineScheme.Γ.rightOp.IsEquivalence

instance AlgebraicGeometry.AffineScheme.instIsEquivalenceOppositeCommRingCatOpRightOpΓ E0 #

AlgebraicGeometry.AffineScheme.Γ.rightOp.op.IsEquivalence

instance AlgebraicGeometry.AffineScheme.ΓIsEquiv E0 #

AlgebraicGeometry.AffineScheme.Γ.IsEquivalence

instance AlgebraicGeometry.AffineScheme.hasColimits E0 #

CategoryTheory.Limits.HasColimits AlgebraicGeometry.AffineScheme

instance AlgebraicGeometry.AffineScheme.hasLimits E0 #

CategoryTheory.Limits.HasLimits AlgebraicGeometry.AffineScheme

instance AlgebraicGeometry.AffineScheme.Γ_preservesLimits E0 #

CategoryTheory.Limits.PreservesLimits AlgebraicGeometry.AffineScheme.Γ.rightOp

instance AlgebraicGeometry.AffineScheme.forgetToScheme_preservesLimits E0 #

CategoryTheory.Limits.PreservesLimits AlgebraicGeometry.AffineScheme.forgetToScheme

instance AlgebraicGeometry.AffineScheme.createsLimitsForgetToScheme E0 #

CategoryTheory.CreatesLimits AlgebraicGeometry.AffineScheme.forgetToScheme

The forgetful functor AffineScheme ⥤ Scheme creates small limits.

def AlgebraicGeometry.IsAffineOpen E3 #

{X : AlgebraicGeometry.Scheme} → X.Opens → Prop

An open subset of a scheme is affine if the open subscheme is affine.

def AlgebraicGeometry.Scheme.affineOpens E1 #

(X : AlgebraicGeometry.Scheme) → Set X.Opens

The set of affine opens as a subset of opens X.

instance AlgebraicGeometry.instIsAffineToSchemeValOpensMemSetAffineOpens E0 #

∀ {Y : AlgebraicGeometry.Scheme} (U : ↑Y.affineOpens), AlgebraicGeometry.IsAffine ↑↑U

theorem AlgebraicGeometry.isAffineOpen_opensRange E1 #

∀ {X Y : AlgebraicGeometry.Scheme} [AlgebraicGeometry.IsAffine X] (f : X ⟶ Y) [H : AlgebraicGeometry.IsOpenImmersion f],
  AlgebraicGeometry.IsAffineOpen (AlgebraicGeometry.Scheme.Hom.opensRange f)

theorem AlgebraicGeometry.isAffineOpen_top E1 #

∀ (X : AlgebraicGeometry.Scheme) [AlgebraicGeometry.IsAffine X], AlgebraicGeometry.IsAffineOpen ⊤

theorem AlgebraicGeometry.exists_isAffineOpen_mem_and_subset E1 #

∀ {X : AlgebraicGeometry.Scheme} {x : ↥X} {U : X.Opens},
  x ∈ U → ∃ W, AlgebraicGeometry.IsAffineOpen W ∧ x ∈ W ∧ W.carrier ⊆ ↑U

theorem AlgebraicGeometry.Scheme.exists_Spec_apply_eq E0 #

∀ {X : AlgebraicGeometry.Scheme} (x : ↥X), ∃ R f, ∃ (_ : AlgebraicGeometry.IsOpenImmersion f), ∃ y, f y = x

instance AlgebraicGeometry.Scheme.isAffine_affineCover E0 #

∀ (X : AlgebraicGeometry.Scheme) (i : X.affineCover.I₀), AlgebraicGeometry.IsAffine (X.affineCover.X i)

instance AlgebraicGeometry.Scheme.isAffine_affineBasisCover E0 #

∀ (X : AlgebraicGeometry.Scheme) (i : X.affineBasisCover.I₀), AlgebraicGeometry.IsAffine (X.affineBasisCover.X i)

instance AlgebraicGeometry.Scheme.isAffine_affineOpenCover E0 #

∀ (X : AlgebraicGeometry.Scheme) (𝒰 : X.AffineOpenCover) (i : 𝒰.I₀), AlgebraicGeometry.IsAffine (𝒰.openCover.X i)

instance AlgebraicGeometry.instIsAffineXSchemeFiniteSubcover E0 #

∀ (X : AlgebraicGeometry.Scheme) [inst : CompactSpace ↥X] (𝒰 : X.OpenCover)
  [∀ (i : 𝒰.I₀), AlgebraicGeometry.IsAffine (𝒰.X i)] (i : 𝒰.finiteSubcover.I₀),
  AlgebraicGeometry.IsAffine (𝒰.finiteSubcover.X i)

instance AlgebraicGeometry.instIsAffineXSchemeCoverOfIsIsoIsOpenImmersionId E0 #

∀ {X : AlgebraicGeometry.Scheme} [AlgebraicGeometry.IsAffine X]
  (i : (AlgebraicGeometry.Scheme.coverOfIsIso (CategoryTheory.CategoryStruct.id X)).I₀),
  AlgebraicGeometry.IsAffine ((AlgebraicGeometry.Scheme.coverOfIsIso (CategoryTheory.CategoryStruct.id X)).X i)

theorem AlgebraicGeometry.Scheme.isBasis_affineOpens E1 #

∀ (X : AlgebraicGeometry.Scheme), TopologicalSpace.Opens.IsBasis X.affineOpens

theorem AlgebraicGeometry.iSup_affineOpens_eq_top E1 #

∀ (X : AlgebraicGeometry.Scheme), ⨆ i, ↑i = ⊤

theorem AlgebraicGeometry.Scheme.map_PrimeSpectrum_basicOpen_of_affine E0 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X] (f : ↑(X.presheaf.obj (Opposite.op ⊤))),
  (TopologicalSpace.Opens.map X.isoSpec.hom.base).obj (PrimeSpectrum.basicOpen f) = X.basicOpen f

theorem AlgebraicGeometry.isBasis_basicOpen E1 #

∀ (X : AlgebraicGeometry.Scheme) [AlgebraicGeometry.IsAffine X], TopologicalSpace.Opens.IsBasis (Set.range X.basicOpen)

def AlgebraicGeometry.Scheme.Opens.toSpecΓ E1 #

{X : AlgebraicGeometry.Scheme} → (U : X.Opens) → ↑U ⟶ AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U))

The canonical map U ⟶ Spec Γ(X, U) for an open U ⊆ X.

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_SpecMap_presheaf_map_assoc E0 #

∀ {X : AlgebraicGeometry.Scheme} (U V : X.Opens) (h : U ≤ V) {Z : AlgebraicGeometry.Scheme}
  (h_1 : AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op V)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp U.toSpecΓ
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (X.presheaf.map (CategoryTheory.homOfLE h).op))
        h_1) =
    CategoryTheory.CategoryStruct.comp (X.homOfLE h) (CategoryTheory.CategoryStruct.comp V.toSpecΓ h_1)

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_SpecMap_presheaf_map E0 #

∀ {X : AlgebraicGeometry.Scheme} (U V : X.Opens) (h : U ≤ V),
  CategoryTheory.CategoryStruct.comp U.toSpecΓ
      (AlgebraicGeometry.Spec.map (X.presheaf.map (CategoryTheory.homOfLE h).op)) =
    CategoryTheory.CategoryStruct.comp (X.homOfLE h) V.toSpecΓ

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_SpecMap_presheaf_map_top E1 #

∀ {X : AlgebraicGeometry.Scheme} (U : X.Opens),
  CategoryTheory.CategoryStruct.comp U.toSpecΓ
      (AlgebraicGeometry.Spec.map (X.presheaf.map (CategoryTheory.homOfLE ⋯).op)) =
    CategoryTheory.CategoryStruct.comp U.ι X.toSpecΓ

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_SpecMap_presheaf_map_top_assoc E1 #

∀ {X : AlgebraicGeometry.Scheme} (U : X.Opens) {Z : AlgebraicGeometry.Scheme}
  (h : AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op ⊤)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp U.toSpecΓ
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (X.presheaf.map (CategoryTheory.homOfLE ⋯).op))
        h) =
    CategoryTheory.CategoryStruct.comp U.ι (CategoryTheory.CategoryStruct.comp X.toSpecΓ h)

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_top E0 #

∀ {X : AlgebraicGeometry.Scheme}, ⊤.toSpecΓ = CategoryTheory.CategoryStruct.comp ⊤.ι X.toSpecΓ

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_appTop_assoc E1 #

∀ {X : AlgebraicGeometry.Scheme} (U : X.Opens) {Z : CommRingCat} (h : (↑U).presheaf.obj (Opposite.op ⊤) ⟶ Z),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.Hom.appTop U.toSpecΓ) h =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso (X.presheaf.obj (Opposite.op U))).hom
      (CategoryTheory.CategoryStruct.comp U.topIso.inv h)

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_appTop E1 #

∀ {X : AlgebraicGeometry.Scheme} (U : X.Opens),
  AlgebraicGeometry.Scheme.Hom.appTop U.toSpecΓ =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso (X.presheaf.obj (Opposite.op U))).hom
      U.topIso.inv

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_naturality E0 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) (U : Y.Opens),
  CategoryTheory.CategoryStruct.comp ((TopologicalSpace.Opens.map f.base).obj U).toSpecΓ
      (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.app f U)) =
    CategoryTheory.CategoryStruct.comp (f ∣_ U) U.toSpecΓ

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_naturality_assoc E0 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) (U : Y.Opens) {Z : AlgebraicGeometry.Scheme}
  (h : AlgebraicGeometry.Spec (Y.presheaf.obj (Opposite.op U)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((TopologicalSpace.Opens.map f.base).obj U).toSpecΓ
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.app f U)) h) =
    CategoryTheory.CategoryStruct.comp (f ∣_ U) (CategoryTheory.CategoryStruct.comp U.toSpecΓ h)

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_SpecMap_appLE_assoc E0 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) (U : Y.Opens) (V : X.Opens)
  (hUV : V ≤ (TopologicalSpace.Opens.map f.base).obj U) {Z : AlgebraicGeometry.Scheme}
  (h : AlgebraicGeometry.Spec (Y.presheaf.obj (Opposite.op U)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp V.toSpecΓ
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.appLE f U V hUV))
        h) =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.Hom.resLE f U V hUV)
      (CategoryTheory.CategoryStruct.comp U.toSpecΓ h)

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_SpecMap_appLE E0 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) (U : Y.Opens) (V : X.Opens)
  (hUV : V ≤ (TopologicalSpace.Opens.map f.base).obj U),
  CategoryTheory.CategoryStruct.comp V.toSpecΓ
      (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.appLE f U V hUV)) =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.Hom.resLE f U V hUV) U.toSpecΓ

def AlgebraicGeometry.IsAffineOpen.isoSpec E1 #

{X : AlgebraicGeometry.Scheme} →
  {U : X.Opens} → AlgebraicGeometry.IsAffineOpen U → (↑U ≅ AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U)))

The isomorphism U ≅ Spec Γ(X, U) for an affine U.

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_inv E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  hU.isoSpec.inv =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (X.presheaf.map (CategoryTheory.eqToHom ⋯).op))
      (↑U).isoSpec.inv

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_hom E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U), hU.isoSpec.hom = U.toSpecΓ

theorem AlgebraicGeometry.IsAffineOpen.toSpecΓ_isoSpec_inv E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  CategoryTheory.CategoryStruct.comp U.toSpecΓ hU.isoSpec.inv = CategoryTheory.CategoryStruct.id ↑U

theorem AlgebraicGeometry.IsAffineOpen.toSpecΓ_isoSpec_inv_assoc E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) {Z : AlgebraicGeometry.Scheme}
  (h : ↑U ⟶ Z), CategoryTheory.CategoryStruct.comp U.toSpecΓ (CategoryTheory.CategoryStruct.comp hU.isoSpec.inv h) = h

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_inv_toSpecΓ E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  CategoryTheory.CategoryStruct.comp hU.isoSpec.inv U.toSpecΓ =
    CategoryTheory.CategoryStruct.id (AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U)))

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_inv_toSpecΓ_assoc E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) {Z : AlgebraicGeometry.Scheme}
  (h : AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp hU.isoSpec.inv (CategoryTheory.CategoryStruct.comp U.toSpecΓ h) = h

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_hom_apply E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) (x : ↥U),
  hU.isoSpec.hom x =
    (AlgebraicGeometry.Spec.map (X.presheaf.germ U ↑x ⋯)) (IsLocalRing.closedPoint ↑(X.presheaf.stalk ↑x))

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_hom_appTop E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  AlgebraicGeometry.Scheme.Hom.appTop hU.isoSpec.hom =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso (X.presheaf.obj (Opposite.op U))).hom
      U.topIso.inv

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_inv_appTop E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  AlgebraicGeometry.Scheme.Hom.appTop hU.isoSpec.inv =
    CategoryTheory.CategoryStruct.comp U.topIso.hom
      (AlgebraicGeometry.Scheme.ΓSpecIso (X.presheaf.obj (Opposite.op U))).inv

def AlgebraicGeometry.IsAffineOpen.fromSpec E3 #

{X : AlgebraicGeometry.Scheme} →
  {U : X.Opens} → AlgebraicGeometry.IsAffineOpen U → (AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U)) ⟶ X)

The open immersion Spec Γ(X, U) ⟶ X for an affine U.

instance AlgebraicGeometry.IsAffineOpen.isOpenImmersion_fromSpec E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  AlgebraicGeometry.IsOpenImmersion hU.fromSpec

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_inv_ι E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  CategoryTheory.CategoryStruct.comp hU.isoSpec.inv U.ι = hU.fromSpec

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_inv_ι_assoc E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) {Z : AlgebraicGeometry.Scheme}
  (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp hU.isoSpec.inv (CategoryTheory.CategoryStruct.comp U.ι h) =
    CategoryTheory.CategoryStruct.comp hU.fromSpec h

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_hom_fromSpec E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  CategoryTheory.CategoryStruct.comp hU.isoSpec.hom hU.fromSpec = U.ι

theorem AlgebraicGeometry.IsAffineOpen.isoSpec_hom_fromSpec_assoc E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) {Z : AlgebraicGeometry.Scheme}
  (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp hU.isoSpec.hom (CategoryTheory.CategoryStruct.comp hU.fromSpec h) =
    CategoryTheory.CategoryStruct.comp U.ι h

theorem AlgebraicGeometry.IsAffineOpen.toSpecΓ_fromSpec_assoc E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) {Z : AlgebraicGeometry.Scheme}
  (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp U.toSpecΓ (CategoryTheory.CategoryStruct.comp hU.fromSpec h) =
    CategoryTheory.CategoryStruct.comp U.ι h

theorem AlgebraicGeometry.IsAffineOpen.toSpecΓ_fromSpec E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  CategoryTheory.CategoryStruct.comp U.toSpecΓ hU.fromSpec = U.ι

theorem AlgebraicGeometry.IsAffineOpen.range_fromSpec E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U), Set.range ⇑hU.fromSpec = ↑U

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_toSpecΓ_assoc E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) {Z : AlgebraicGeometry.Scheme}
  (h : AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op ⊤)) ⟶ Z),
  CategoryTheory.CategoryStruct.comp hU.fromSpec (CategoryTheory.CategoryStruct.comp X.toSpecΓ h) =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (X.presheaf.map (CategoryTheory.homOfLE ⋯).op)) h

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_toSpecΓ E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  CategoryTheory.CategoryStruct.comp hU.fromSpec X.toSpecΓ =
    AlgebraicGeometry.Spec.map (X.presheaf.map (CategoryTheory.homOfLE ⋯).op)

theorem AlgebraicGeometry.IsAffineOpen.opensRange_fromSpec E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  AlgebraicGeometry.Scheme.Hom.opensRange hU.fromSpec = U

theorem AlgebraicGeometry.IsAffineOpen.map_fromSpec_assoc E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) {V : X.Opens}
  (hV : AlgebraicGeometry.IsAffineOpen V) (f : Opposite.op U ⟶ Opposite.op V) {Z : AlgebraicGeometry.Scheme}
  (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (X.presheaf.map f))
      (CategoryTheory.CategoryStruct.comp hU.fromSpec h) =
    CategoryTheory.CategoryStruct.comp hV.fromSpec h

theorem AlgebraicGeometry.IsAffineOpen.map_fromSpec E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) {V : X.Opens}
  (hV : AlgebraicGeometry.IsAffineOpen V) (f : Opposite.op U ⟶ Opposite.op V),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (X.presheaf.map f)) hU.fromSpec = hV.fromSpec

theorem AlgebraicGeometry.IsAffineOpen.SpecMap_appLE_fromSpec_assoc E1 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) {V : X.Opens} {U : Y.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (hV : AlgebraicGeometry.IsAffineOpen V) (i : V ≤ (TopologicalSpace.Opens.map f.base).obj U)
  {Z : AlgebraicGeometry.Scheme} (h : Y ⟶ Z),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.appLE f U V i))
      (CategoryTheory.CategoryStruct.comp hU.fromSpec h) =
    CategoryTheory.CategoryStruct.comp hV.fromSpec (CategoryTheory.CategoryStruct.comp f h)

theorem AlgebraicGeometry.IsAffineOpen.SpecMap_appLE_fromSpec E1 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) {V : X.Opens} {U : Y.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (hV : AlgebraicGeometry.IsAffineOpen V) (i : V ≤ (TopologicalSpace.Opens.map f.base).obj U),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (AlgebraicGeometry.Scheme.Hom.appLE f U V i))
      hU.fromSpec =
    CategoryTheory.CategoryStruct.comp hV.fromSpec f

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_top E1 #

∀ {X : AlgebraicGeometry.Scheme} [inst : AlgebraicGeometry.IsAffine X], ⋯.fromSpec = X.isoSpec.inv

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_app_of_le E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) (V : X.Opens) (h : U ≤ V),
  AlgebraicGeometry.Scheme.Hom.app hU.fromSpec V =
    CategoryTheory.CategoryStruct.comp (X.presheaf.map (CategoryTheory.homOfLE h).op)
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso (X.presheaf.obj (Opposite.op U))).inv
        ((AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U))).presheaf.map (CategoryTheory.homOfLE ⋯).op))

theorem AlgebraicGeometry.IsAffineOpen.isCompact E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens}, AlgebraicGeometry.IsAffineOpen U → IsCompact ↑U

theorem AlgebraicGeometry.Scheme.Hom.isAffineOpen_iff_of_isOpenImmersion E1 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) [H : AlgebraicGeometry.IsOpenImmersion f] {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen ((AlgebraicGeometry.Scheme.Hom.opensFunctor f).obj U) ↔
    AlgebraicGeometry.IsAffineOpen U

theorem AlgebraicGeometry.IsAffineOpen.image_of_isOpenImmersion E1 #

∀ {X Y : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ (f : X ⟶ Y) [H : AlgebraicGeometry.IsOpenImmersion f],
      AlgebraicGeometry.IsAffineOpen ((AlgebraicGeometry.Scheme.Hom.opensFunctor f).obj U)

theorem AlgebraicGeometry.IsAffineOpen.preimage_of_isIso E1 #

∀ {X Y : AlgebraicGeometry.Scheme} {U : Y.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ (f : X ⟶ Y) [CategoryTheory.IsIso f], AlgebraicGeometry.IsAffineOpen ((TopologicalSpace.Opens.map f.base).obj U)

theorem AlgebraicGeometry.IsAffineOpen.preimage_of_isOpenImmersion E1 #

∀ {X Y : AlgebraicGeometry.Scheme} {U : Y.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ (f : X ⟶ Y) [inst : AlgebraicGeometry.IsOpenImmersion f],
      U ≤ AlgebraicGeometry.Scheme.Hom.opensRange f →
        AlgebraicGeometry.IsAffineOpen ((TopologicalSpace.Opens.map f.base).obj U)

def AlgebraicGeometry.IsOpenImmersion.affineOpensEquiv E1 #

{X Y : AlgebraicGeometry.Scheme} →
  (f : X ⟶ Y) →
    [H : AlgebraicGeometry.IsOpenImmersion f] →
      ↑X.affineOpens ≃o { U // ↑U ≤ AlgebraicGeometry.Scheme.Hom.opensRange f }

The affine open sets of an open subscheme corresponds to the affine open sets containing in the image.

theorem AlgebraicGeometry.IsOpenImmersion.affineOpensEquiv_apply_coe_coe E0 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) [H : AlgebraicGeometry.IsOpenImmersion f] (U : ↑X.affineOpens),
  ↑↑((AlgebraicGeometry.IsOpenImmersion.affineOpensEquiv f) U) = (AlgebraicGeometry.Scheme.Hom.opensFunctor f).obj ↑U

theorem AlgebraicGeometry.IsOpenImmersion.affineOpensEquiv_symm_apply_coe E0 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) [H : AlgebraicGeometry.IsOpenImmersion f]
  (U : { U // ↑U ≤ AlgebraicGeometry.Scheme.Hom.opensRange f }),
  ↑((RelIso.symm (AlgebraicGeometry.IsOpenImmersion.affineOpensEquiv f)) U) =
    (TopologicalSpace.Opens.map f.base).obj ↑↑U

def AlgebraicGeometry.affineOpensRestrict E1 #

{X : AlgebraicGeometry.Scheme} → (U : X.Opens) → ↑(↑U).affineOpens ≃ { V // ↑V ≤ U }

The affine open sets of an open subscheme corresponds to the affine open sets containing in the subset.

theorem AlgebraicGeometry.affineOpensRestrict_apply_coe_coe E0 #

∀ {X : AlgebraicGeometry.Scheme} (U : X.Opens) (a : ↑(↑U).affineOpens),
  ↑↑((AlgebraicGeometry.affineOpensRestrict U) a) = (AlgebraicGeometry.Scheme.Hom.opensFunctor U.ι).obj ↑a

theorem AlgebraicGeometry.affineOpensRestrict_symm_apply_coe E0 #

∀ {X : AlgebraicGeometry.Scheme} (U : X.Opens) (V : { V // ↑V ≤ U }),
  ↑((AlgebraicGeometry.affineOpensRestrict U).symm V) = (TopologicalSpace.Opens.map U.ι.base).obj ↑↑V

instance AlgebraicGeometry.Scheme.compactSpace_of_isAffine E0 #

∀ (X : AlgebraicGeometry.Scheme) [AlgebraicGeometry.IsAffine X], CompactSpace ↥X

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_preimage_self E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  (TopologicalSpace.Opens.map hU.fromSpec.base).obj U = ⊤

theorem AlgebraicGeometry.IsAffineOpen.ΓSpecIso_hom_fromSpec_app E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso (X.presheaf.obj (Opposite.op U))).hom
      (AlgebraicGeometry.Scheme.Hom.app hU.fromSpec U) =
    (AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U))).presheaf.map (CategoryTheory.eqToHom ⋯).op

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_app_self E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U),
  AlgebraicGeometry.Scheme.Hom.app hU.fromSpec U =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso (X.presheaf.obj (Opposite.op U))).inv
      ((AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U))).presheaf.map (CategoryTheory.eqToHom ⋯).op)

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_app_self_apply E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (x : ↑(X.presheaf.obj (Opposite.op U))),
  (CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.app hU.fromSpec U)) x =
    (CategoryTheory.ConcreteCategory.hom
        ((AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U))).presheaf.map (CategoryTheory.eqToHom ⋯)))
      ((CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.ΓSpecIso (X.presheaf.obj (Opposite.op U))).inv) x)

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_preimage_basicOpen' E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (f : ↑(X.presheaf.obj (Opposite.op U))),
  (TopologicalSpace.Opens.map hU.fromSpec.base).obj (X.basicOpen f) =
    (AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U))).basicOpen
      ((CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.ΓSpecIso (X.presheaf.obj (Opposite.op U))).inv) f)

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_preimage_basicOpen E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (f : ↑(X.presheaf.obj (Opposite.op U))),
  (TopologicalSpace.Opens.map hU.fromSpec.base).obj (X.basicOpen f) = PrimeSpectrum.basicOpen f

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_image_basicOpen E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (f : ↑(X.presheaf.obj (Opposite.op U))),
  (AlgebraicGeometry.Scheme.Hom.opensFunctor hU.fromSpec).obj (PrimeSpectrum.basicOpen f) = X.basicOpen f

theorem AlgebraicGeometry.IsAffineOpen.basicOpen_fromSpec_app E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (f : ↑(X.presheaf.obj (Opposite.op U))),
  (AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U))).basicOpen
      ((CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.app hU.fromSpec U)) f) =
    PrimeSpectrum.basicOpen f

theorem AlgebraicGeometry.IsAffineOpen.basicOpen E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ (f : ↑(X.presheaf.obj (Opposite.op U))), AlgebraicGeometry.IsAffineOpen (X.basicOpen f)

theorem AlgebraicGeometry.IsAffineOpen.Spec_basicOpen E1 #

∀ {R : CommRingCat} (f : ↑R), AlgebraicGeometry.IsAffineOpen (PrimeSpectrum.basicOpen f)

instance AlgebraicGeometry.IsAffineOpen.instIsAffineToSchemeBasicOpen E0 #

∀ {X : AlgebraicGeometry.Scheme} [AlgebraicGeometry.IsAffine X] (r : ↑(X.presheaf.obj (Opposite.op ⊤))),
  AlgebraicGeometry.IsAffine ↑(X.basicOpen r)

theorem AlgebraicGeometry.IsAffineOpen.ι_basicOpen_preimage E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ (r : ↑(X.presheaf.obj (Opposite.op ⊤))),
      AlgebraicGeometry.IsAffineOpen ((TopologicalSpace.Opens.map (X.basicOpen r).ι.base).obj U)

theorem AlgebraicGeometry.IsAffineOpen.exists_basicOpen_le E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U → ∀ {V : X.Opens} (x : ↥V), ↑x ∈ U → ∃ f, X.basicOpen f ≤ V ∧ ↑x ∈ X.basicOpen f

instance AlgebraicGeometry.IsAffineOpen.instAlgebraCarrierObjOppositeOpensCarrierCarrierCommRingCatSpecPresheafOpOpens E0 #

{R : CommRingCat} →
  {U : (AlgebraicGeometry.Spec R).Opens} → Algebra ↑R ↑((AlgebraicGeometry.Spec R).presheaf.obj (Opposite.op U))

theorem AlgebraicGeometry.IsAffineOpen.algebraMap_Spec_obj E0 #

∀ {R : CommRingCat} {U : (AlgebraicGeometry.Spec R).Opens},
  algebraMap ↑R ↑((AlgebraicGeometry.Spec R).presheaf.obj (Opposite.op U)) =
    CommRingCat.Hom.hom
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso R).inv
        ((AlgebraicGeometry.Spec R).presheaf.map (CategoryTheory.homOfLE ⋯).op))

instance AlgebraicGeometry.IsAffineOpen.instAwayCarrierObjOppositeOpensCarrierCarrierCommRingCatSpecPresheafOpOpensBasicOpen E0 #

∀ {R : CommRingCat} {f : ↑R},
  IsLocalization.Away f ↑((AlgebraicGeometry.Spec R).presheaf.obj (Opposite.op (PrimeSpectrum.basicOpen f)))

def AlgebraicGeometry.IsAffineOpen.basicOpenSectionsToAffine E1 #

{X : AlgebraicGeometry.Scheme} →
  {U : X.Opens} →
    AlgebraicGeometry.IsAffineOpen U →
      (f : ↑(X.presheaf.obj (Opposite.op U))) →
        X.presheaf.obj (Opposite.op (X.basicOpen f)) ⟶
          (AlgebraicGeometry.Spec (X.presheaf.obj (Opposite.op U))).presheaf.obj
            (Opposite.op (PrimeSpectrum.basicOpen f))

Given an affine open U and some f : U, this is the canonical map Γ(𝒪ₓ, D(f)) ⟶ Γ(Spec 𝒪ₓ(U), D(f)) This is an isomorphism, as witnessed by an IsIso instance.

instance AlgebraicGeometry.IsAffineOpen.basicOpenSectionsToAffine_isIso E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (f : ↑(X.presheaf.obj (Opposite.op U))), CategoryTheory.IsIso (hU.basicOpenSectionsToAffine f)

theorem AlgebraicGeometry.IsAffineOpen.isLocalization_basicOpen E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ (f : ↑(X.presheaf.obj (Opposite.op U))), IsLocalization.Away f ↑(X.presheaf.obj (Opposite.op (X.basicOpen f)))

instance AlgebraicGeometry.isLocalization_away_of_isAffine E0 #

∀ {X : AlgebraicGeometry.Scheme} [AlgebraicGeometry.IsAffine X] (r : ↑(X.presheaf.obj (Opposite.op ⊤))),
  IsLocalization.Away r ↑(X.presheaf.obj (Opposite.op (X.basicOpen r)))

theorem AlgebraicGeometry.IsAffineOpen.appLE_eq_away_map E1 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) {U : Y.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) {V : X.Opens}
  (hV : AlgebraicGeometry.IsAffineOpen V) (e : V ≤ (TopologicalSpace.Opens.map f.base).obj U)
  (r : ↑(Y.presheaf.obj (Opposite.op U))),
  AlgebraicGeometry.Scheme.Hom.appLE f (Y.basicOpen r)
      (X.basicOpen ((CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.appLE f U V e)) r)) ⋯ =
    CommRingCat.ofHom
      (IsLocalization.Away.map (↑(Y.presheaf.1 (Opposite.op (Y.basicOpen r))))
        (↑(X.presheaf.1
            (Opposite.op
              (X.basicOpen ((CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.appLE f U V e)) r)))))
        (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f U V e)) r)

theorem AlgebraicGeometry.IsAffineOpen.app_basicOpen_eq_away_map E1 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) {U : Y.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (h : AlgebraicGeometry.IsAffineOpen ((TopologicalSpace.Opens.map f.base).obj U))
  (r : ↑(Y.presheaf.obj (Opposite.op U))),
  AlgebraicGeometry.Scheme.Hom.app f (Y.basicOpen r) =
    CategoryTheory.CategoryStruct.comp
      (CommRingCat.ofHom
        (IsLocalization.Away.map (↑(Y.presheaf.obj (Opposite.op (Y.basicOpen r))))
          (↑(X.presheaf.obj
              (Opposite.op
                (X.basicOpen ((CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.app f U)) r)))))
          (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.app f U)) r))
      (X.presheaf.map (CategoryTheory.eqToHom ⋯).op)

def AlgebraicGeometry.IsAffineOpen.appBasicOpenIsoAwayMap E1 #

{X Y : AlgebraicGeometry.Scheme} →
  (f : X ⟶ Y) →
    {U : Y.Opens} →
      (hU : AlgebraicGeometry.IsAffineOpen U) →
        (h : AlgebraicGeometry.IsAffineOpen ((TopologicalSpace.Opens.map f.base).obj U)) →
          (r : ↑(Y.presheaf.obj (Opposite.op U))) →
            CategoryTheory.Arrow.mk (AlgebraicGeometry.Scheme.Hom.app f (Y.basicOpen r)) ≅
              CategoryTheory.Arrow.mk
                (CommRingCat.ofHom
                  (IsLocalization.Away.map (↑(Y.presheaf.obj (Opposite.op (Y.basicOpen r))))
                    (↑(X.presheaf.obj
                        (Opposite.op
                          (X.basicOpen
                            ((CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.app f U)) r)))))
                    (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.app f U)) r))

f.app (Y.basicOpen r) is isomorphic to map induced on localizations Γ(Y, Y.basicOpen r) ⟶ Γ(X, X.basicOpen (f.app U r))

theorem AlgebraicGeometry.IsAffineOpen.isLocalization_of_eq_basicOpen E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ (f : ↑(X.presheaf.obj (Opposite.op U))) {V : X.Opens} (i : V ⟶ U),
      V = X.basicOpen f → IsLocalization.Away f ↑(X.presheaf.obj (Opposite.op V))

instance AlgebraicGeometry.Γ_restrict_isLocalization E0 #

∀ (X : AlgebraicGeometry.Scheme) [AlgebraicGeometry.IsAffine X] (r : ↑(X.presheaf.obj (Opposite.op ⊤))),
  IsLocalization.Away r ↑((↑(X.basicOpen r)).presheaf.obj (Opposite.op ⊤))

theorem AlgebraicGeometry.IsAffineOpen.basicOpen_basicOpen_is_basicOpen E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ (f : ↑(X.presheaf.obj (Opposite.op U))) (g : ↑(X.presheaf.obj (Opposite.op (X.basicOpen f)))),
      ∃ f', X.basicOpen f' = X.basicOpen g

theorem AlgebraicGeometry.exists_basicOpen_le_affine_inter E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ {V : X.Opens},
      AlgebraicGeometry.IsAffineOpen V → ∀ x ∈ U ⊓ V, ∃ f g, X.basicOpen f = X.basicOpen g ∧ x ∈ X.basicOpen f

def AlgebraicGeometry.IsAffineOpen.primeIdealOf E1 #

{X : AlgebraicGeometry.Scheme} →
  {U : X.Opens} → AlgebraicGeometry.IsAffineOpen U → ↥U → PrimeSpectrum ↑(X.presheaf.obj (Opposite.op U))

The prime ideal of 𝒪ₓ(U) corresponding to a point x : U.

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_primeIdealOf E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) (x : ↥U),
  hU.fromSpec (hU.primeIdealOf x) = ↑x

theorem AlgebraicGeometry.IsAffineOpen.primeIdealOf_eq_map_closedPoint E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) (x : ↥U),
  hU.primeIdealOf x =
    (AlgebraicGeometry.Spec.map (X.presheaf.germ U ↑x ⋯)) (IsLocalRing.closedPoint ↑(X.presheaf.stalk ↑x))

theorem AlgebraicGeometry.IsAffineOpen.comap_primeIdealOf_appLE E1 #

∀ {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y} {x : ↥X} (U : Y.Opens) (hU : AlgebraicGeometry.IsAffineOpen U)
  (V : X.Opens) (hV : AlgebraicGeometry.IsAffineOpen V) (hVU : V ≤ (TopologicalSpace.Opens.map f.base).obj U)
  (hx : x ∈ V),
  PrimeSpectrum.comap (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f U V hVU)) (hV.primeIdealOf ⟨x, hx⟩) =
    hU.primeIdealOf ⟨f x, ⋯⟩

theorem AlgebraicGeometry.IsAffineOpen.primeIdealOf_isMaximal_of_isClosed E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) (x : ↥U),
  IsClosed {↑x} → (hU.primeIdealOf x).asIdeal.IsMaximal

If a point x : U is a closed point, then its corresponding prime ideal is maximal.

theorem AlgebraicGeometry.IsAffineOpen.isLocalization_stalk' E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (y : PrimeSpectrum ↑(X.presheaf.obj (Opposite.op U))),
  hU.fromSpec y ∈ U → IsLocalization.AtPrime (↑(X.presheaf.stalk (hU.fromSpec y))) y.asIdeal

theorem AlgebraicGeometry.IsAffineOpen.isLocalization_stalk E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) (x : ↥U),
  IsLocalization.AtPrime (↑(X.presheaf.stalk ↑x)) (hU.primeIdealOf x).asIdeal

theorem AlgebraicGeometry.IsAffineOpen.mem_basicOpen_iff_notMem_primeIdealOf E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U) (x : ↥U)
  (f : ↑(X.presheaf.obj (Opposite.op U))), ↑x ∈ X.basicOpen f ↔ f ∉ (hU.primeIdealOf x).asIdeal

A section lies outside the prime ideal attached to a point of an affine open precisely when it does not vanish there, i.e. when the point lies in its basic open set. This is the chart-level form of PrimeSpectrum.mem_basicOpen.

theorem AlgebraicGeometry.IsAffineOpen.stalkMap_injective E1 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) {U : TopologicalSpace.Opens ↥Y},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ (x : ↥X) (hx : f x ∈ U),
      (∀ (g : ↑(Y.presheaf.obj (Opposite.op U))),
          (CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.stalkMap f x))
                ((CategoryTheory.ConcreteCategory.hom (Y.presheaf.germ U (f x) hx)) g) =
              0 →
            (CategoryTheory.ConcreteCategory.hom (Y.presheaf.germ U (f x) hx)) g = 0) →
        Function.Injective ⇑(CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.stalkMap f x))

theorem AlgebraicGeometry.IsAffineOpen.mem_ideal_iff E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ {s : ↑(X.presheaf.obj (Opposite.op U))} {I : Ideal ↑(X.presheaf.obj (Opposite.op U))},
      s ∈ I ↔
        ∀ (x : ↥X) (h : x ∈ U),
          (CategoryTheory.ConcreteCategory.hom (X.presheaf.germ U x h)) s ∈
            Ideal.map (CommRingCat.Hom.hom (X.presheaf.germ U x h)) I

theorem AlgebraicGeometry.IsAffineOpen.ideal_le_iff E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ {I J : Ideal ↑(X.presheaf.obj (Opposite.op U))},
      I ≤ J ↔
        ∀ (x : ↥X) (h : x ∈ U),
          Ideal.map (CommRingCat.Hom.hom (X.presheaf.germ U x h)) I ≤
            Ideal.map (CommRingCat.Hom.hom (X.presheaf.germ U x h)) J

theorem AlgebraicGeometry.IsAffineOpen.ideal_ext_iff E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ {I J : Ideal ↑(X.presheaf.obj (Opposite.op U))},
      I = J ↔
        ∀ (x : ↥X) (h : x ∈ U),
          Ideal.map (CommRingCat.Hom.hom (X.presheaf.germ U x h)) I =
            Ideal.map (CommRingCat.Hom.hom (X.presheaf.germ U x h)) J

def AlgebraicGeometry.IsAffineOpen.arrowStalkMapIso E1 #

{X Y : AlgebraicGeometry.Scheme} →
  (f : X ⟶ Y) →
    {x : ↥X} →
      (U : Y.Opens) →
        (hU : AlgebraicGeometry.IsAffineOpen U) →
          (V : X.Opens) →
            (hV : AlgebraicGeometry.IsAffineOpen V) →
              (hVU : V ≤ (TopologicalSpace.Opens.map f.base).obj U) →
                (hx : x ∈ V) →
                  CategoryTheory.Arrow.mk (AlgebraicGeometry.Scheme.Hom.stalkMap f x) ≅
                    CategoryTheory.Arrow.mk
                      (CommRingCat.ofHom
                        (Localization.localRingHom (hU.primeIdealOf ⟨f x, ⋯⟩).asIdeal (hV.primeIdealOf ⟨x, hx⟩).asIdeal
                          (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f U V hVU)) ⋯))

Given affine opens x ∈ V ⊆ f⁻¹(U), the stalk map of f at x is isomorphic to Localization.localRingHom of f.appLE U V.

def AlgebraicGeometry.Scheme.affineBasicOpen E1 #

(X : AlgebraicGeometry.Scheme) → {U : ↑X.affineOpens} → ↑(X.presheaf.obj (Opposite.op ↑U)) → ↑X.affineOpens

The basic open set of a section f on an affine open as an X.affineOpens.

theorem AlgebraicGeometry.Scheme.affineBasicOpen_coe E0 #

∀ (X : AlgebraicGeometry.Scheme) {U : ↑X.affineOpens} (f : ↑(X.presheaf.obj (Opposite.op ↑U))),
  ↑(X.affineBasicOpen f) = X.basicOpen f

theorem AlgebraicGeometry.Scheme.affineBasicOpen_le E1 #

∀ (X : AlgebraicGeometry.Scheme) {V : ↑X.affineOpens} (f : ↑(X.presheaf.obj (Opposite.op ↑V))), X.affineBasicOpen f ≤ V

theorem AlgebraicGeometry.IsAffineOpen.iSup_basicOpen_eq_self_iff E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ {s : Set ↑(X.presheaf.obj (Opposite.op U))}, ⨆ f, X.basicOpen ↑f = U ↔ Ideal.span s = ⊤

In an affine open set U, a family of basic open covers U iff the sections span Γ(X, U). See iSup_basicOpen_of_span_eq_top for the inverse direction without the affine-ness assumption.

theorem AlgebraicGeometry.IsAffineOpen.self_le_iSup_basicOpen_iff E0 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens},
  AlgebraicGeometry.IsAffineOpen U →
    ∀ {s : Set ↑(X.presheaf.obj (Opposite.op U))}, U ≤ ⨆ f, X.basicOpen ↑f ↔ Ideal.span s = ⊤

def AlgebraicGeometry.Scheme.AffineOpenCover.ofIsOpenCover E1 #

{X : AlgebraicGeometry.Scheme} →
  {ι : Type u_1} →
    (U : ι → X.Opens) →
      TopologicalSpace.IsOpenCover U → (∀ (i : ι), AlgebraicGeometry.IsAffineOpen (U i)) → X.AffineOpenCover

The affine open cover given by a covering family of affine opens.

theorem AlgebraicGeometry.Scheme.AffineOpenCover.ofIsOpenCover_f E0 #

∀ {X : AlgebraicGeometry.Scheme} {ι : Type u_1} (U : ι → X.Opens) (hU : TopologicalSpace.IsOpenCover U)
  (hU' : ∀ (i : ι), AlgebraicGeometry.IsAffineOpen (U i)) (i : ι),
  (AlgebraicGeometry.Scheme.AffineOpenCover.ofIsOpenCover U hU hU').f i = ⋯.fromSpec

theorem AlgebraicGeometry.Scheme.AffineOpenCover.ofIsOpenCover_X E0 #

∀ {X : AlgebraicGeometry.Scheme} {ι : Type u_1} (U : ι → X.Opens) (hU : TopologicalSpace.IsOpenCover U)
  (hU' : ∀ (i : ι), AlgebraicGeometry.IsAffineOpen (U i)) (i : ι),
  (AlgebraicGeometry.Scheme.AffineOpenCover.ofIsOpenCover U hU hU').X i = X.presheaf.obj (Opposite.op (U i))

theorem AlgebraicGeometry.Scheme.AffineOpenCover.ofIsOpenCover_I₀ E0 #

∀ {X : AlgebraicGeometry.Scheme} {ι : Type u_1} (U : ι → X.Opens) (hU : TopologicalSpace.IsOpenCover U)
  (hU' : ∀ (i : ι), AlgebraicGeometry.IsAffineOpen (U i)),
  (AlgebraicGeometry.Scheme.AffineOpenCover.ofIsOpenCover U hU hU').I₀ = ι

def AlgebraicGeometry.SpecMapRestrictBasicOpenIso E1 #

{R S : CommRingCat} →
  (f : R ⟶ S) →
    (r : ↑R) →
      CategoryTheory.Arrow.mk (AlgebraicGeometry.Spec.map f ∣_ PrimeSpectrum.basicOpen r) ≅
        CategoryTheory.Arrow.mk
          (AlgebraicGeometry.Spec.map (CommRingCat.ofHom (Localization.awayMap (CommRingCat.Hom.hom f) r)))

The restriction of Spec.map f to a basic open D(r) is isomorphic to Spec.map of the localization of f away from r.

theorem AlgebraicGeometry.stalkMap_injective_of_isAffine E1 #

∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y) [AlgebraicGeometry.IsAffine Y] (x : ↥X),
  (∀ (g : ↑(Y.presheaf.obj (Opposite.op ⊤))),
      (CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.stalkMap f x))
            ((CategoryTheory.ConcreteCategory.hom (Y.presheaf.Γgerm (f x))) g) =
          0 →
        (CategoryTheory.ConcreteCategory.hom (Y.presheaf.Γgerm (f x))) g = 0) →
    Function.Injective ⇑(CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.stalkMap f x))

theorem AlgebraicGeometry.iSup_basicOpen_of_span_eq_top E1 #

∀ {X : AlgebraicGeometry.Scheme} (U : X.Opens) (s : Set ↑(X.presheaf.obj (Opposite.op U))),
  Ideal.span s = ⊤ → ⨆ i ∈ s, X.basicOpen i = U

Given a spanning set of Γ(X, U), the corresponding basic open sets cover U. See IsAffineOpen.basicOpen_union_eq_self_iff for the inverse direction for affine open sets.

theorem AlgebraicGeometry.of_affine_open_cover E1 #

∀ {X : AlgebraicGeometry.Scheme} {P : ↑X.affineOpens → Prop} {ι : Sort u_2} (U : ι → ↑X.affineOpens),
  ⨆ i, ↑(U i) = ⊤ →
    ∀ (V : ↑X.affineOpens),
      (∀ (U : ↑X.affineOpens) (f : ↑(X.presheaf.obj (Opposite.op ↑U))), P U → P (X.affineBasicOpen f)) →
        (∀ (U : ↑X.affineOpens) (s : Finset ↑(X.presheaf.obj (Opposite.op ↑U))),
            Ideal.span ↑s = ⊤ → (∀ (f : ↥s), P (X.affineBasicOpen ↑f)) → P U) →
          (∀ (i : ι), P (U i)) → P V

Let P be a predicate on the affine open sets of X satisfying

  1. If P holds on U, then P holds on the basic open set of every section on U.
  2. If P holds for a family of basic open sets covering U, then P holds for U.
  3. There exists an affine open cover of X each satisfying P.

Then P holds for every affine open of X.

This is also known as the Affine communication lemma in [The rising sea][RisingSea].

theorem AlgebraicGeometry.Scheme.toSpecΓ_preimage_zeroLocus E1 #

∀ (X : AlgebraicGeometry.Scheme) (s : Set ↑(X.presheaf.obj (Opposite.op ⊤))),
  ⇑X.toSpecΓ ⁻¹' PrimeSpectrum.zeroLocus s = X.zeroLocus s

On a scheme X, the preimage of the zero locus of the prime spectrum of Γ(X, ⊤) under X.toSpecΓ : X ⟶ Spec Γ(X, ⊤) agrees with the associated zero locus on X.

theorem AlgebraicGeometry.Scheme.isoSpec_image_zeroLocus E1 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X] (s : Set ↑(X.presheaf.obj (Opposite.op ⊤))),
  ⇑X.isoSpec.hom '' X.zeroLocus s = PrimeSpectrum.zeroLocus s

If X is affine, the image of the zero locus of global sections of X under X.isoSpec is the zero locus in terms of the prime spectrum of Γ(X, ⊤).

theorem AlgebraicGeometry.Scheme.toSpecΓ_image_zeroLocus E1 #

∀ (X : AlgebraicGeometry.Scheme) [AlgebraicGeometry.IsAffine X] (s : Set ↑(X.presheaf.obj (Opposite.op ⊤))),
  ⇑X.toSpecΓ '' X.zeroLocus s = PrimeSpectrum.zeroLocus s

theorem AlgebraicGeometry.Scheme.isoSpec_inv_preimage_zeroLocus E1 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X] (s : Set ↑(X.presheaf.obj (Opposite.op ⊤))),
  ⇑X.isoSpec.inv ⁻¹' X.zeroLocus s = PrimeSpectrum.zeroLocus s

theorem AlgebraicGeometry.Scheme.isoSpec_inv_image_zeroLocus E1 #

∀ (X : AlgebraicGeometry.Scheme) [inst : AlgebraicGeometry.IsAffine X] (s : Set ↑(X.presheaf.obj (Opposite.op ⊤))),
  ⇑X.isoSpec.inv '' PrimeSpectrum.zeroLocus s = X.zeroLocus s

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_preimage_basicOpen E1 #

∀ {X : AlgebraicGeometry.Scheme} (U : X.Opens) (r : ↑(X.presheaf.obj (Opposite.op U))),
  (TopologicalSpace.Opens.map U.toSpecΓ.base).obj (PrimeSpectrum.basicOpen r) =
    (TopologicalSpace.Opens.map U.ι.base).obj (X.basicOpen r)

theorem AlgebraicGeometry.Scheme.Opens.toSpecΓ_preimage_zeroLocus E1 #

∀ {X : AlgebraicGeometry.Scheme} (U : X.Opens) (s : Set ↑(X.presheaf.obj (Opposite.op U))),
  ⇑U.toSpecΓ ⁻¹' PrimeSpectrum.zeroLocus s = Subtype.val ⁻¹' X.zeroLocus s

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_preimage_zeroLocus E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (s : Set ↑(X.presheaf.obj (Opposite.op U))), ⇑hU.fromSpec ⁻¹' X.zeroLocus s = PrimeSpectrum.zeroLocus s

theorem AlgebraicGeometry.IsAffineOpen.fromSpec_image_zeroLocus E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} (hU : AlgebraicGeometry.IsAffineOpen U)
  (s : Set ↑(X.presheaf.obj (Opposite.op U))), ⇑hU.fromSpec '' PrimeSpectrum.zeroLocus s = X.zeroLocus s ∩ ↑U

theorem AlgebraicGeometry.Scheme.zeroLocus_inf E1 #

∀ (X : AlgebraicGeometry.Scheme) {U : X.Opens} (I J : Ideal ↑(X.presheaf.obj (Opposite.op U))),
  X.zeroLocus ↑(I ⊓ J) = X.zeroLocus ↑I ∪ X.zeroLocus ↑J

theorem AlgebraicGeometry.Scheme.zeroLocus_biInf E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} {ι : Type u_1} (I : ι → Ideal ↑(X.presheaf.obj (Opposite.op U)))
  {t : Set ι}, t.Finite → X.zeroLocus ↑(⨅ i ∈ t, I i) = (⋃ i ∈ t, X.zeroLocus ↑(I i)) ∪ (↑U)ᶜ

theorem AlgebraicGeometry.Scheme.zeroLocus_biInf_of_nonempty E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} {ι : Type u_1} (I : ι → Ideal ↑(X.presheaf.obj (Opposite.op U)))
  {t : Set ι}, t.Finite → t.Nonempty → X.zeroLocus ↑(⨅ i ∈ t, I i) = ⋃ i ∈ t, X.zeroLocus ↑(I i)

theorem AlgebraicGeometry.Scheme.zeroLocus_iInf E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} {ι : Type u_1} (I : ι → Ideal ↑(X.presheaf.obj (Opposite.op U)))
  [Finite ι], X.zeroLocus ↑(⨅ i, I i) = (⋃ i, X.zeroLocus ↑(I i)) ∪ (↑U)ᶜ

theorem AlgebraicGeometry.Scheme.zeroLocus_iInf_of_nonempty E1 #

∀ {X : AlgebraicGeometry.Scheme} {U : X.Opens} {ι : Type u_1} (I : ι → Ideal ↑(X.presheaf.obj (Opposite.op U)))
  [Finite ι] [Nonempty ι], X.zeroLocus ↑(⨅ i, I i) = ⋃ i, X.zeroLocus ↑(I i)

def AlgebraicGeometry.Scheme.Hom.liftQuotient E1 #

{X : AlgebraicGeometry.Scheme} →
  {A : CommRingCat} →
    (f : X.Hom (AlgebraicGeometry.Spec A)) →
      (I : Ideal ↑A) →
        I ≤
            RingHom.ker
              (CommRingCat.Hom.hom
                (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso A).inv f.appTop)) →
          (X ⟶ AlgebraicGeometry.Spec ↧(↑A ⧸ I))

Given f : X ⟶ Spec A and some ideal I ≤ ker(A ⟶ Γ(X, ⊤)), this is the lift to X ⟶ Spec (A ⧸ I).

theorem AlgebraicGeometry.Scheme.Hom.liftQuotient_comp E1 #

∀ {X : AlgebraicGeometry.Scheme} {A : CommRingCat} (f : X.Hom (AlgebraicGeometry.Spec A)) (I : Ideal ↑A)
  (hI :
    I ≤
      RingHom.ker
        (CommRingCat.Hom.hom (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso A).inv f.appTop))),
  CategoryTheory.CategoryStruct.comp (f.liftQuotient I hI)
      (AlgebraicGeometry.Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk I))) =
    f

theorem AlgebraicGeometry.Scheme.Hom.liftQuotient_comp_assoc E1 #

∀ {X : AlgebraicGeometry.Scheme} {A : CommRingCat} (f : X.Hom (AlgebraicGeometry.Spec A)) (I : Ideal ↑A)
  (hI :
    I ≤
      RingHom.ker
        (CommRingCat.Hom.hom (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso A).inv f.appTop)))
  {Z : AlgebraicGeometry.Scheme} (h : AlgebraicGeometry.Spec ↧↑A ⟶ Z),
  CategoryTheory.CategoryStruct.comp (f.liftQuotient I hI)
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk I))) h) =
    CategoryTheory.CategoryStruct.comp f h

def AlgebraicGeometry.specTargetImageIdeal E1 #

{X : AlgebraicGeometry.Scheme} → {A : CommRingCat} → (X ⟶ AlgebraicGeometry.Spec A) → Ideal ↑A

If X ⟶ Spec A is a morphism of schemes, then Spec of A ⧸ specTargetImage f is the scheme-theoretic image of f. For this quotient as an object of CommRingCat see specTargetImage below.

def AlgebraicGeometry.specTargetImage E1 #

{X : AlgebraicGeometry.Scheme} → {A : CommRingCat} → (X ⟶ AlgebraicGeometry.Spec A) → CommRingCat

If X ⟶ Spec A is a morphism of schemes, then Spec of specTargetImage f is the scheme-theoretic image of f and f factors as specTargetImageFactorization f ≫ Spec.map (specTargetImageRingHom f) (see specTargetImageFactorization_comp).

def AlgebraicGeometry.specTargetImageFactorization E1 #

{X : AlgebraicGeometry.Scheme} →
  {A : CommRingCat} →
    (f : X ⟶ AlgebraicGeometry.Spec A) → X ⟶ AlgebraicGeometry.Spec (AlgebraicGeometry.specTargetImage f)

If f : X ⟶ Spec A is a morphism of schemes, then f factors via the inclusion of Spec (specTargetImage f) into X.

def AlgebraicGeometry.specTargetImageRingHom E1 #

{X : AlgebraicGeometry.Scheme} →
  {A : CommRingCat} → (f : X ⟶ AlgebraicGeometry.Spec A) → A ⟶ AlgebraicGeometry.specTargetImage f

If f : X ⟶ Spec A is a morphism of schemes, the induced morphism on spectra of specTargetImageRingHom f is the inclusion of the scheme-theoretic image of f into Spec A.

theorem AlgebraicGeometry.specTargetImageRingHom_surjective E1 #

∀ {X : AlgebraicGeometry.Scheme} {A : CommRingCat} (f : X ⟶ AlgebraicGeometry.Spec A),
  Function.Surjective ⇑(CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.specTargetImageRingHom f))

theorem AlgebraicGeometry.specTargetImageFactorization_app_injective E1 #

∀ {X : AlgebraicGeometry.Scheme} {A : CommRingCat} (f : X ⟶ AlgebraicGeometry.Spec A),
  Function.Injective
    ⇑(CategoryTheory.ConcreteCategory.hom
        (AlgebraicGeometry.Scheme.Hom.appTop (AlgebraicGeometry.specTargetImageFactorization f)))

theorem AlgebraicGeometry.specTargetImageFactorization_comp_assoc E0 #

∀ {X : AlgebraicGeometry.Scheme} {A : CommRingCat} (f : X ⟶ AlgebraicGeometry.Spec A) {Z : AlgebraicGeometry.Scheme}
  (h : AlgebraicGeometry.Spec A ⟶ Z),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.specTargetImageFactorization f)
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.map (AlgebraicGeometry.specTargetImageRingHom f)) h) =
    CategoryTheory.CategoryStruct.comp f h

theorem AlgebraicGeometry.specTargetImageFactorization_comp E0 #

∀ {X : AlgebraicGeometry.Scheme} {A : CommRingCat} (f : X ⟶ AlgebraicGeometry.Spec A),
  CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.specTargetImageFactorization f)
      (AlgebraicGeometry.Spec.map (AlgebraicGeometry.specTargetImageRingHom f)) =
    f

def AlgebraicGeometry.Spec.stalkIso E1 #

(R : CommRingCat) →
  (x : PrimeSpectrum ↑R) → (AlgebraicGeometry.Spec R).presheaf.stalk x ≅ ↧(Localization.AtPrime x.asIdeal)

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

theorem AlgebraicGeometry.Spec.algebraMap_stalkIso_inv E0 #

∀ {R : CommRingCat} (x : PrimeSpectrum ↑R),
  CategoryTheory.CategoryStruct.comp (CommRingCat.ofHom (algebraMap (↑R) (Localization.AtPrime x.asIdeal)))
      (AlgebraicGeometry.Spec.stalkIso R x).inv =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso R).inv
      ((AlgebraicGeometry.Spec R).presheaf.germ ⊤ x trivial)

theorem AlgebraicGeometry.Spec.algebraMap_stalkIso_inv_assoc E0 #

∀ {R : CommRingCat} (x : PrimeSpectrum ↑R) {Z : CommRingCat} (h : (AlgebraicGeometry.Spec R).presheaf.stalk x ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CommRingCat.ofHom (algebraMap (↑R) (Localization.AtPrime x.asIdeal)))
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.stalkIso R x).inv h) =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso R).inv
      (CategoryTheory.CategoryStruct.comp ((AlgebraicGeometry.Spec R).presheaf.germ ⊤ x trivial) h)

theorem AlgebraicGeometry.Spec.germ_stalkMapIso_hom_assoc E0 #

∀ {R : CommRingCat} (x : PrimeSpectrum ↑R) {Z : CommRingCat} (h : ↧(Localization.AtPrime x.asIdeal) ⟶ Z),
  CategoryTheory.CategoryStruct.comp ((AlgebraicGeometry.Spec R).presheaf.germ ⊤ x trivial)
      (CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Spec.stalkIso R x).hom h) =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso R).hom
      (CategoryTheory.CategoryStruct.comp (CommRingCat.ofHom (algebraMap (↑R) (Localization.AtPrime x.asIdeal))) h)

theorem AlgebraicGeometry.Spec.germ_stalkMapIso_hom E0 #

∀ {R : CommRingCat} (x : PrimeSpectrum ↑R),
  CategoryTheory.CategoryStruct.comp ((AlgebraicGeometry.Spec R).presheaf.germ ⊤ x trivial)
      (AlgebraicGeometry.Spec.stalkIso R x).hom =
    CategoryTheory.CategoryStruct.comp (AlgebraicGeometry.Scheme.ΓSpecIso R).hom
      (CommRingCat.ofHom (algebraMap (↑R) (Localization.AtPrime x.asIdeal)))

theorem AlgebraicGeometry.Scheme.localRingHom_comp_stalkIso E1 #

∀ {R S : CommRingCat} (f : R ⟶ S) (p : PrimeSpectrum ↑S),
  CategoryTheory.CategoryStruct.comp
      (AlgebraicGeometry.Spec.stalkIso R (PrimeSpectrum.comap (CommRingCat.Hom.hom f) p)).hom
      (CategoryTheory.CategoryStruct.comp
        (CommRingCat.ofHom
          (Localization.localRingHom (PrimeSpectrum.comap (CommRingCat.Hom.hom f) p).asIdeal p.asIdeal
            (CommRingCat.Hom.hom f) ⋯))
        (AlgebraicGeometry.Spec.stalkIso S p).inv) =
    AlgebraicGeometry.Scheme.Hom.stalkMap (AlgebraicGeometry.Spec.map f) p

Variant of AlgebraicGeometry.localRingHom_comp_stalkIso for Spec.map.

theorem AlgebraicGeometry.Scheme.localRingHom_comp_stalkIso_apply E0 #

∀ {R S : CommRingCat} (f : R ⟶ S) (p : PrimeSpectrum ↑S)
  (x : ↑((AlgebraicGeometry.Spec R).presheaf.stalk (PrimeSpectrum.comap (CommRingCat.Hom.hom f) p))),
  (CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Spec.stalkIso S p).inv)
      ((Localization.localRingHom (Ideal.comap (CommRingCat.Hom.hom f) p.asIdeal) p.asIdeal (CommRingCat.Hom.hom f) ⋯)
        ((CategoryTheory.ConcreteCategory.hom
            (AlgebraicGeometry.Spec.stalkIso R (PrimeSpectrum.comap (CommRingCat.Hom.hom f) p)).hom)
          x)) =
    (CategoryTheory.ConcreteCategory.hom (AlgebraicGeometry.Scheme.Hom.stalkMap (AlgebraicGeometry.Spec.map f) p)) x

Variant of AlgebraicGeometry.localRingHom_comp_stalkIso for Spec.map.

def AlgebraicGeometry.Scheme.arrowStalkMapSpecIso E1 #

{R S : CommRingCat} →
  (f : R ⟶ S) →
    (p : PrimeSpectrum ↑S) →
      CategoryTheory.Arrow.mk (AlgebraicGeometry.Scheme.Hom.stalkMap (AlgebraicGeometry.Spec.map f) p) ≅
        CategoryTheory.Arrow.mk
          (CommRingCat.ofHom
            (Localization.localRingHom (PrimeSpectrum.comap (CommRingCat.Hom.hom f) p).asIdeal p.asIdeal
              (CommRingCat.Hom.hom f) ⋯))

Given a morphism of rings f : R ⟶ S, the stalk map of Spec S ⟶ Spec R at a prime of S is isomorphic to the localized ring homomorphism.

def AlgebraicGeometry.AffineScheme.delabOf E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prints AlgebraicGeometry.AffineScheme.of X as ↧X.