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.Morphisms.RingHomProperties

48 declarations. Mathlib docs · Source

Properties of morphisms from properties of ring homs.

We provide the basic framework for talking about properties of morphisms that come from properties of ring homs. For P a property of ring homs, we have two ways of defining a property of scheme morphisms:

Let f : X ⟶ Y,

  • targetAffineLocally (affineAnd P): the preimage of an affine open U = Spec A is affine (= Spec B) and A ⟶ B satisfies P. (in Mathlib/AlgebraicGeometry/Morphisms/AffineAnd.lean)
  • affineLocally P: For each pair of affine open U = Spec A ⊆ X and V = Spec B ⊆ f ⁻¹' U, the ring hom A ⟶ B satisfies P.

For these notions to be well defined, we require P be a sufficient local property. For the former, P should be local on the source (RingHom.RespectsIso P, RingHom.LocalizationPreserves P, RingHom.OfLocalizationSpan), and targetAffineLocally (affine_and P) will be local on the target.

For the latter P should be local on the target (RingHom.PropertyIsLocal P), and affineLocally P will be local on both the source and the target. We also provide the following interface:

HasRingHomProperty

HasRingHomProperty P Q is a type class asserting that P is local at the target and the source, and for f : Spec B ⟶ Spec A, it is equivalent to the ring hom property Q on Γ(f).

For HasRingHomProperty P Q and f : X ⟶ Y, we provide these API lemmas:

  • AlgebraicGeometry.HasRingHomProperty.iff_appLE: P f if and only if Q (f.appLE U V _) for all affine U : Opens Y and V : Opens X.
  • AlgebraicGeometry.HasRingHomProperty.iff_of_source_openCover: If Y is affine, P f ↔ ∀ i, Q ((𝒰.map i ≫ f).appTop) for an affine open cover 𝒰 of X.
  • AlgebraicGeometry.HasRingHomProperty.iff_of_isAffine: If X and Y are affine, then P f ↔ Q (f.appTop).
  • AlgebraicGeometry.HasRingHomProperty.Spec_iff: P (Spec.map φ) ↔ Q φ
  • AlgebraicGeometry.HasRingHomProperty.iff_of_iSup_eq_top: If Y is affine, P f ↔ ∀ i, Q (f.appLE ⊤ (U i) _) for a family U of affine opens of X.
  • AlgebraicGeometry.HasRingHomProperty.of_isOpenImmersion: If f is an open immersion then P f.
  • AlgebraicGeometry.HasRingHomProperty.isStableUnderBaseChange: If Q is stable under base change, then so is P.

We also provide the instances P.IsMultiplicative, P.IsStableUnderComposition, IsZariskiLocalAtTarget P, IsZariskiLocalAtSource P.

theorem AlgebraicGeometry.sourceAffineLocally.congr_simp E1 #

∀ (P P_1 : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop),
  P = P_1 →
    ∀ ⦃X Y : AlgebraicGeometry.Scheme⦄ (x x_1 : X ⟶ Y),
      x = x_1 →
        ∀ [inst : AlgebraicGeometry.IsAffine Y],
          AlgebraicGeometry.sourceAffineLocally P x = AlgebraicGeometry.sourceAffineLocally P_1 x_1

theorem RingHom.IsStableUnderBaseChange.pullback_fst_appTop E1 #

∀ (P : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop),
  (RingHom.IsStableUnderBaseChange fun {R S} [CommRing R] [CommRing S] ↦ P) →
    (RingHom.RespectsIso fun {R S} [CommRing R] [CommRing S] ↦ P) →
      ∀ {X Y S : AlgebraicGeometry.Scheme} [AlgebraicGeometry.IsAffine X] [AlgebraicGeometry.IsAffine Y]
        [AlgebraicGeometry.IsAffine S] (f : X ⟶ S) (g : Y ⟶ S),
        P (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appTop g)) →
          P (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appTop (CategoryTheory.Limits.pullback.fst f g)))

def AlgebraicGeometry.sourceAffineLocally E1 #

({R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop) →
  AlgebraicGeometry.AffineTargetMorphismProperty

For P a property of ring homomorphisms, sourceAffineLocally P holds for f : X ⟶ Y whenever P holds for the restriction of f on every affine open subset of X.

abbrev AlgebraicGeometry.affineLocally E1 #

({R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop) →
  CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme

For P a property of ring homomorphisms, affineLocally P holds for f : X ⟶ Y if for each affine open U = Spec A ⊆ Y and V = Spec B ⊆ f ⁻¹' U, the ring hom A ⟶ B satisfies P. Also see affineLocally_iff_affineOpens_le.

theorem AlgebraicGeometry.sourceAffineLocally_respectsIso E1 #

∀ (P : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop),
  (RingHom.RespectsIso fun {R S} [CommRing R] [CommRing S] ↦ P) →
    (AlgebraicGeometry.sourceAffineLocally fun {R S} [CommRing R] [CommRing S] ↦ P).toProperty.RespectsIso

theorem AlgebraicGeometry.affineLocally_respectsIso E1 #

∀ (P : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop),
  (RingHom.RespectsIso fun {R S} [CommRing R] [CommRing S] ↦ P) →
    (AlgebraicGeometry.affineLocally fun {R S} [CommRing R] [CommRing S] ↦ P).RespectsIso

theorem AlgebraicGeometry.sourceAffineLocally_morphismRestrict E1 #

∀ (P : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop) {X Y : AlgebraicGeometry.Scheme}
  (f : X ⟶ Y) (U : Y.Opens) (hU : AlgebraicGeometry.IsAffineOpen U),
  AlgebraicGeometry.sourceAffineLocally (fun {R S} [CommRing R] [CommRing S] ↦ P) (f ∣_ U) ↔
    ∀ (V : ↑X.affineOpens) (e : ↑V ≤ (TopologicalSpace.Opens.map f.base).obj U),
      P (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f U (↑V) e))

theorem AlgebraicGeometry.affineLocally_iff_affineOpens_le E1 #

∀ (P : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop) {X Y : AlgebraicGeometry.Scheme}
  (f : X ⟶ Y),
  AlgebraicGeometry.affineLocally (fun {R S} [CommRing R] [CommRing S] ↦ P) f ↔
    ∀ (U : ↑Y.affineOpens) (V : ↑X.affineOpens) (e : ↑V ≤ (TopologicalSpace.Opens.map f.base).obj ↑U),
      P (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (↑U) (↑V) e))

theorem AlgebraicGeometry.affineLocally_iff_forall_isAffineOpen E1 #

∀ (P : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop) {X Y : AlgebraicGeometry.Scheme}
  (f : X ⟶ Y),
  AlgebraicGeometry.affineLocally (fun {R S} [CommRing R] [CommRing S] ↦ P) f ↔
    ∀ {U : Y.Opens},
      AlgebraicGeometry.IsAffineOpen U →
        ∀ {V : X.Opens},
          AlgebraicGeometry.IsAffineOpen V →
            ∀ (e : V ≤ (TopologicalSpace.Opens.map f.base).obj U),
              P (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f U V e))

theorem AlgebraicGeometry.sourceAffineLocally_isLocal E1 #

∀ (P : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop),
  (RingHom.RespectsIso fun {R S} [CommRing R] [CommRing S] ↦ P) →
    (RingHom.LocalizationAwayPreserves fun {R S} [CommRing R] [CommRing S] ↦ P) →
      (RingHom.OfLocalizationSpan fun {R S} [CommRing R] [CommRing S] ↦ P) →
        (AlgebraicGeometry.sourceAffineLocally fun {R S} [CommRing R] [CommRing S] ↦ P).IsLocal

theorem AlgebraicGeometry.affineLocally_le E1 #

∀ {P Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop},
  (∀ {R S : Type u} [inst : CommRing R] [inst_1 : CommRing S] {f : R →+* S}, P f → Q f) →
    (AlgebraicGeometry.affineLocally fun {R S} [CommRing R] [CommRing S] ↦ P) ≤
      AlgebraicGeometry.affineLocally fun {R S} [CommRing R] [CommRing S] ↦ Q

theorem AlgebraicGeometry.exists_basicOpen_le_appLE_of_appLE_of_isAffine E1 #

∀ {P : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop} {X Y : AlgebraicGeometry.Scheme}
  {f : X ⟶ Y},
  (RingHom.StableUnderCompositionWithLocalizationAwayTarget fun {R S} [CommRing R] [CommRing S] ↦ P) →
    (RingHom.LocalizationAwayPreserves fun {R S} [CommRing R] [CommRing S] ↦ P) →
      ∀ (x : ↥X) (U₁ U₂ : ↑Y.affineOpens) (V₁ V₂ : ↑X.affineOpens),
        x ∈ ↑V₁ →
          x ∈ ↑V₂ →
            ∀ (e₂ : ↑V₂ ≤ (TopologicalSpace.Opens.map f.base).obj ↑U₂),
              P (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (↑U₂) (↑V₂) e₂)) →
                f x ∈ ↑U₁ →
                  ∃ r s,
                    ∃ (_ : x ∈ X.basicOpen s) (e :
                      X.basicOpen s ≤ (TopologicalSpace.Opens.map f.base).obj (Y.basicOpen r)),
                      P (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (Y.basicOpen r) (X.basicOpen s) e))

If P holds for f over affine opens U₂ of Y and V₂ of X and U₁ (resp. V₁) are open affine neighborhoods of x (resp. f.base x), then P also holds for f over some basic open of U₁ (resp. V₁).

theorem AlgebraicGeometry.exists_affineOpens_le_appLE_of_appLE E1 #

∀ {P : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop} {X Y : AlgebraicGeometry.Scheme}
  {f : X ⟶ Y},
  (RingHom.StableUnderCompositionWithLocalizationAwayTarget fun {R S} [CommRing R] [CommRing S] ↦ P) →
    (RingHom.LocalizationAwayPreserves fun {R S} [CommRing R] [CommRing S] ↦ P) →
      ∀ (x : ↥X) (U₁ : Y.Opens) (U₂ : ↑Y.affineOpens) (V₁ : X.Opens) (V₂ : ↑X.affineOpens),
        x ∈ V₁ →
          x ∈ ↑V₂ →
            ∀ (e₂ : ↑V₂ ≤ (TopologicalSpace.Opens.map f.base).obj ↑U₂),
              P (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (↑U₂) (↑V₂) e₂)) →
                f x ∈ U₁.carrier →
                  ∃ U' V',
                    ∃ (_ : ↑U' ≤ U₁) (_ : ↑V' ≤ V₁) (_ : x ∈ ↑V') (e :
                      ↑V' ≤ (TopologicalSpace.Opens.map f.base).obj ↑U'),
                      P (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (↑U') (↑V') e))

If P holds for f over affine opens U₂ of Y and V₂ of X and U₁ (resp. V₁) are open neighborhoods of x (resp. f.base x), then P also holds for f over some affine open U' of Y (resp. V' of X) that is contained in U₁ (resp. V₁).

class AlgebraicGeometry.HasRingHomProperty E1 #

CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme →
  outParam ({R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop) → Prop

HasRingHomProperty P Q is a type class asserting that P is local at the target and the source, and for f : Spec B ⟶ Spec A, it is equivalent to the ring hom property Q. To make the proofs easier, we state it instead as

  1. Q is local (See RingHom.PropertyIsLocal)
  2. P f if and only if Q holds for every Γ(Y, U) ⟶ Γ(X, V) for all affine U, V. See HasRingHomProperty.iff_appLE.

ctor AlgebraicGeometry.HasRingHomProperty.mk E0 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : outParam ({R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop)},
  (RingHom.PropertyIsLocal fun {R S} [CommRing R] [CommRing S] ↦ Q) →
    (P = AlgebraicGeometry.affineLocally fun {R S} [CommRing R] [CommRing S] ↦ Q) →
      AlgebraicGeometry.HasRingHomProperty P Q

theorem AlgebraicGeometry.HasRingHomProperty.isLocal_ringHomProperty E1 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme)
  {Q : outParam ({R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop)}
  [self : AlgebraicGeometry.HasRingHomProperty P Q], RingHom.PropertyIsLocal fun {R S} [CommRing R] [CommRing S] ↦ Q

theorem AlgebraicGeometry.HasRingHomProperty.copy E1 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme)
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {P' : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q' : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop},
  P = P' →
    (∀ {R S : Type u} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S), Q f ↔ Q' f) →
      AlgebraicGeometry.HasRingHomProperty P' fun {R S} [CommRing R] [CommRing S] ↦ Q'

theorem AlgebraicGeometry.HasRingHomProperty.HasAffineProperty E1 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme)
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q],
  AlgebraicGeometry.HasAffineProperty P (AlgebraicGeometry.sourceAffineLocally fun {R S} [CommRing R] [CommRing S] ↦ Q)

instance AlgebraicGeometry.HasRingHomProperty.instIsZariskiLocalAtTarget E0 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme)
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q], AlgebraicGeometry.IsZariskiLocalAtTarget P

This is only inferInstance because of the @[local instance] on HasAffineProperty above.

theorem AlgebraicGeometry.HasRingHomProperty.appLE E1 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme)
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y),
  P f →
    ∀ (U : ↑Y.affineOpens) (V : ↑X.affineOpens) (e : ↑V ≤ (TopologicalSpace.Opens.map f.base).obj ↑U),
      Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (↑U) (↑V) e))

theorem AlgebraicGeometry.HasRingHomProperty.appTop E1 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme)
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y),
  P f →
    ∀ [AlgebraicGeometry.IsAffine X] [AlgebraicGeometry.IsAffine Y],
      Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appTop f))

theorem AlgebraicGeometry.HasRingHomProperty.comp_of_isOpenImmersion E1 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme)
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y Z : AlgebraicGeometry.Scheme} (f : X ⟶ Y) (g : Y ⟶ Z)
  [AlgebraicGeometry.IsOpenImmersion f], P g → P (CategoryTheory.CategoryStruct.comp f g)

theorem AlgebraicGeometry.HasRingHomProperty.iff_appLE E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y},
  P f ↔
    ∀ (U : ↑Y.affineOpens) (V : ↑X.affineOpens) (e : ↑V ≤ (TopologicalSpace.Opens.map f.base).obj ↑U),
      Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (↑U) (↑V) e))

theorem AlgebraicGeometry.HasRingHomProperty.of_source_openCover E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y} [AlgebraicGeometry.IsAffine Y]
  (𝒰 : X.OpenCover) [∀ (i : 𝒰.I₀), AlgebraicGeometry.IsAffine (𝒰.X i)],
  (∀ (i : 𝒰.I₀),
      Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appTop (CategoryTheory.CategoryStruct.comp (𝒰.f i) f)))) →
    P f

theorem AlgebraicGeometry.HasRingHomProperty.iff_of_source_openCover E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y} [AlgebraicGeometry.IsAffine Y]
  (𝒰 : X.OpenCover) [∀ (i : 𝒰.I₀), AlgebraicGeometry.IsAffine (𝒰.X i)],
  P f ↔
    ∀ (i : 𝒰.I₀),
      Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appTop (CategoryTheory.CategoryStruct.comp (𝒰.f i) f)))

theorem AlgebraicGeometry.HasRingHomProperty.iff_of_isAffine E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y} [AlgebraicGeometry.IsAffine X]
  [AlgebraicGeometry.IsAffine Y], P f ↔ Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appTop f))

theorem AlgebraicGeometry.HasRingHomProperty.Spec_iff E0 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {R S : CommRingCat} {φ : R ⟶ S},
  P (AlgebraicGeometry.Spec.map φ) ↔ Q (CommRingCat.Hom.hom φ)

theorem AlgebraicGeometry.HasRingHomProperty.of_iSup_eq_top E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y} [AlgebraicGeometry.IsAffine Y]
  {ι : Type u_1} (U : ι → ↑X.affineOpens),
  ⨆ i, ↑(U i) = ⊤ → (∀ (i : ι), Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f ⊤ ↑(U i) ⋯))) → P f

theorem AlgebraicGeometry.HasRingHomProperty.iff_of_iSup_eq_top E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y} [AlgebraicGeometry.IsAffine Y]
  {ι : Type u_1} (U : ι → ↑X.affineOpens),
  ⨆ i, ↑(U i) = ⊤ → (P f ↔ ∀ (i : ι), Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f ⊤ ↑(U i) ⋯)))

instance AlgebraicGeometry.HasRingHomProperty.instIsZariskiLocalAtSource E0 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q], AlgebraicGeometry.IsZariskiLocalAtSource P

theorem AlgebraicGeometry.HasRingHomProperty.containsIdentities E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q],
  (RingHom.ContainsIdentities fun {R S} [CommRing R] [CommRing S] ↦ Q) → P.ContainsIdentities

theorem AlgebraicGeometry.HasRingHomProperty.isLocal_ringHomProperty_of_isZariskiLocalAtSource_of_isZariskiLocalAtTarget E1 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme) [AlgebraicGeometry.IsZariskiLocalAtTarget P]
  [AlgebraicGeometry.IsZariskiLocalAtSource P],
  RingHom.PropertyIsLocal fun {R S} [CommRing R] [CommRing S] f ↦ P (AlgebraicGeometry.Spec.map (CommRingCat.ofHom f))

theorem AlgebraicGeometry.HasRingHomProperty.of_isZariskiLocalAtSource_of_isZariskiLocalAtTarget E1 #

∀ (P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme) [AlgebraicGeometry.IsZariskiLocalAtTarget P]
  [AlgebraicGeometry.IsZariskiLocalAtSource P],
  AlgebraicGeometry.HasRingHomProperty P fun {R S} [CommRing R] [CommRing S] f ↦
    P (AlgebraicGeometry.Spec.map (CommRingCat.ofHom f))

theorem AlgebraicGeometry.HasRingHomProperty.inf E1 #

∀ {P P' : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q Q' : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P fun {R S} [CommRing R] [CommRing S] ↦ Q]
  [AlgebraicGeometry.HasRingHomProperty P' fun {R S} [CommRing R] [CommRing S] ↦ Q'],
  AlgebraicGeometry.HasRingHomProperty (P ⊓ P') fun {R S} [CommRing R] [CommRing S] f ↦ Q f ∧ Q' f

theorem AlgebraicGeometry.HasRingHomProperty.stalkwise E1 #

∀ {P : {R S : Type u_1} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop},
  RingHom.RespectsIso P →
    AlgebraicGeometry.HasRingHomProperty (AlgebraicGeometry.stalkwise fun {R S} [CommRing R] [CommRing S] ↦ P)
      fun {x S} {x_1} {x_2} φ ↦ ∀ (p : Ideal S) (x_3 : p.IsPrime), P (Localization.localRingHom (Ideal.comap φ p) p φ ⋯)

theorem AlgebraicGeometry.HasRingHomProperty.stableUnderComposition E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q],
  (RingHom.StableUnderComposition fun {R S} [CommRing R] [CommRing S] ↦ Q) → P.IsStableUnderComposition

theorem AlgebraicGeometry.HasRingHomProperty.of_comp E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q],
  (∀ {R S T : Type u} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T] (f : R →+* S) (g : S →+* T),
      Q (g.comp f) → Q g) →
    ∀ {X Y Z : AlgebraicGeometry.Scheme} {f : X ⟶ Y} {g : Y ⟶ Z}, P (CategoryTheory.CategoryStruct.comp f g) → P f

theorem AlgebraicGeometry.HasRingHomProperty.isMultiplicative E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q],
  (RingHom.StableUnderComposition fun {R S} [CommRing R] [CommRing S] ↦ Q) →
    (RingHom.ContainsIdentities fun {R S} [CommRing R] [CommRing S] ↦ Q) → P.IsMultiplicative

theorem AlgebraicGeometry.HasRingHomProperty.of_isOpenImmersion E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y},
  (RingHom.ContainsIdentities fun {R S} [CommRing R] [CommRing S] ↦ Q) → ∀ [AlgebraicGeometry.IsOpenImmersion f], P f

theorem AlgebraicGeometry.HasRingHomProperty.isStableUnderBaseChange E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q],
  (RingHom.IsStableUnderBaseChange fun {R S} [CommRing R] [CommRing S] ↦ Q) → P.IsStableUnderBaseChange

theorem AlgebraicGeometry.HasRingHomProperty.respects_isOpenImmersion E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q],
  (RingHom.StableUnderCompositionWithLocalizationAwaySource fun {R S} [CommRing R] [CommRing S] ↦ Q) →
    P.Respects AlgebraicGeometry.IsOpenImmersion

Any property of scheme morphisms induced by a property of ring homomorphisms is stable under composition with open immersions.

theorem AlgebraicGeometry.HasRingHomProperty.iff_exists_appLE_locally E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop} {X Y : AlgebraicGeometry.Scheme}
  {f : X ⟶ Y},
  (RingHom.StableUnderCompositionWithLocalizationAwaySource fun {R S} [CommRing R] [CommRing S] ↦ Q) →
    (RingHom.RespectsIso fun {R S} [CommRing R] [CommRing S] ↦ Q) →
      ∀
        [AlgebraicGeometry.HasRingHomProperty P fun {R S} [CommRing R] [CommRing S] ↦
            RingHom.Locally fun {R S} [CommRing R] [CommRing S] ↦ Q],
        P f ↔
          ∀ (x : ↥X),
            ∃ U V,
              ∃ (_ : x ∈ ↑V) (e : ↑V ≤ (TopologicalSpace.Opens.map f.base).obj ↑U),
                Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (↑U) (↑V) e))

If P is induced by Locally Q, it suffices to check Q on affine open sets locally around points of the source.

theorem AlgebraicGeometry.HasRingHomProperty.iff_exists_appLE E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y},
  (RingHom.StableUnderCompositionWithLocalizationAwaySource fun {R S} [CommRing R] [CommRing S] ↦ Q) →
    (P f ↔
      ∀ (x : ↥X),
        ∃ U V,
          ∃ (_ : x ∈ ↑V) (e : ↑V ≤ (TopologicalSpace.Opens.map f.base).obj ↑U),
            Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (↑U) (↑V) e)))

P can be checked locally around points of the source.

theorem AlgebraicGeometry.HasRingHomProperty.locally_of_iff E0 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop},
  (RingHom.LocalizationAwayPreserves fun {R S} [CommRing R] [CommRing S] ↦ Q) →
    (RingHom.StableUnderCompositionWithLocalizationAway fun {R S} [CommRing R] [CommRing S] ↦ Q) →
      (∀ {X Y : AlgebraicGeometry.Scheme} (f : X ⟶ Y),
          P f ↔
            ∀ (x : ↥X),
              ∃ U V,
                ∃ (_ : x ∈ ↑V) (e : ↑V ≤ (TopologicalSpace.Opens.map f.base).obj ↑U),
                  Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.appLE f (↑U) (↑V) e))) →
        AlgebraicGeometry.HasRingHomProperty P fun {R S} [CommRing R] [CommRing S] ↦
          RingHom.Locally fun {R S} [CommRing R] [CommRing S] ↦ Q

theorem AlgebraicGeometry.HasRingHomProperty.of_stalkMap E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y},
  (RingHom.OfLocalizationPrime fun {R S} [CommRing R] [CommRing S] ↦ Q) →
    (∀ (x : ↥X), Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.stalkMap f x))) → P f

If Q is a property of ring maps that can be checked on prime ideals, the associated property of scheme morphisms can be checked on stalks.

theorem AlgebraicGeometry.HasRingHomProperty.stalkMap_of_respectsIso E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y}
  {Q' : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop},
  (RingHom.RespectsIso fun {R S} [CommRing R] [CommRing S] ↦ Q') →
    (∀ {R S : Type u} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
        Q f → ∀ (J : Ideal S) (x : J.IsPrime), Q' (Localization.localRingHom (Ideal.comap f J) J f ⋯)) →
      P f → ∀ (x : ↥X), Q' (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.stalkMap f x))

Let Q be a property of ring maps that implies Q' on stalks. Then if the associated property of scheme morphisms holds for f, Q' holds on all stalks.

theorem AlgebraicGeometry.HasRingHomProperty.stalkMap E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {X Y : AlgebraicGeometry.Scheme} {f : X ⟶ Y},
  (∀ {R S : Type u} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S),
      Q f → ∀ (J : Ideal S) (x : J.IsPrime), Q (Localization.localRingHom (Ideal.comap f J) J f ⋯)) →
    P f → ∀ (x : ↥X), Q (CommRingCat.Hom.hom (AlgebraicGeometry.Scheme.Hom.stalkMap f x))

Let Q be a property of ring maps that is stable under localization. Then if the associated property of scheme morphisms holds for f, Q holds on all stalks.

theorem AlgebraicGeometry.HasRingHomProperty.ext E1 #

∀ {P : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P Q] {P' : CategoryTheory.MorphismProperty AlgebraicGeometry.Scheme}
  {Q' : {R S : Type u} → [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → Prop}
  [AlgebraicGeometry.HasRingHomProperty P' fun {R S} [CommRing R] [CommRing S] ↦ Q'],
  (∀ {R S : Type u} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S), Q f ↔ Q' f) → P = P'