Module

AffinePullbackIntersectionSections.lean

Nyll.AlgebraicCurves.Geometry.Schemes.BaseChange.AffinePullbackIntersectionSections
23 declarations indexed from sourceView source ↗

Scheme Pullback is Affine Open and exists alg Equiv tensor sections fst preimage inf snd

preimage

Declarations

AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.fromSpec_comp_eq
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem fromSpec_comp_eq :
    let := Scheme.TwoAffineOpenCover.algebraOfHom f U
    hU.fromSpec ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R Γ(X, U))) := by
  intro sharedOwner1
  have h1 : CommRingCat.ofHom (algebraMap R Γ(X, U))
      = (Scheme.ΓSpecIso (.of R)).inv ≫ f.appLE ⊤ U le_top := rfl
  rw [h1, Spec.map_comp, ← Scheme.isoSpec_Spec_inv, ← IsAffineOpen.fromSpec_top,
    IsAffineOpen.SpecMap_appLE_fromSpec f (isAffineOpen_top _) hU le_top]
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.chart

The affine tensor product chart mapping to the scheme pullback.

Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
def chart :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
    letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
    Spec (.of (Γ(X, U) ⊗[R] Γ(Y, V))) ⟶ pullback f g :=
  letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
  letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
  (pullbackSpecIso R Γ(X, U) Γ(Y, V)).inv ≫
    pullback.map (Spec.map (CommRingCat.ofHom (algebraMap R Γ(X, U))))
      (Spec.map (CommRingCat.ofHom (algebraMap R Γ(Y, V)))) f g hU.fromSpec hV.fromSpec (𝟙 _)
      (by rw [Category.comp_id, fromSpec_comp_eq]) (by rw [Category.comp_id, fromSpec_comp_eq])
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.chart_isOpenImmersion
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
instance chart_isOpenImmersion : IsOpenImmersion (chart f g U hU V hV)
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.chart_fst
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem chart_fst :
    let := Scheme.TwoAffineOpenCover.algebraOfHom f U
    let := Scheme.TwoAffineOpenCover.algebraOfHom g V
    chart f g U hU V hV ≫ pullback.fst f g =
      Spec.map (CommRingCat.ofHom (Algebra.TensorProduct.includeLeftRingHom)) ≫ hU.fromSpec := by
  intro sharedOwner1 sharedOwner2
  simp only [chart, Category.assoc, pullback.lift_fst]
  rw [pullbackSpecIso_inv_fst_assoc]
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.chart_snd
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem chart_snd :
    let := Scheme.TwoAffineOpenCover.algebraOfHom f U
    let := Scheme.TwoAffineOpenCover.algebraOfHom g V
    chart f g U hU V hV ≫ pullback.snd f g =
      Spec.map (CommRingCat.ofHom (R := Γ(Y, V)) (S := Γ(X, U) ⊗[R] Γ(Y, V))
        (RingHomClass.toRingHom
          (Algebra.TensorProduct.includeRight : Γ(Y, V) →ₐ[R] Γ(X, U) ⊗[R] Γ(Y, V)))) ≫
        hV.fromSpec := by
  intro sharedOwner1 sharedOwner2
  simp only [chart, Category.assoc, pullback.lift_snd]
  rw [pullbackSpecIso_inv_snd_assoc]
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.opensRange_chart
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem opensRange_chart :
    (chart f g U hU V hV).opensRange = pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.isAffineOpen_inf
Source context 8 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
include hU hV in
theorem isAffineOpen_inf : IsAffineOpen (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V)
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.top_le_preimage
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem top_le_preimage :
    (⊤ : (Spec (.of (letI := Scheme.TwoAffineOpenCover.algebraOfHom f U;
      letI := Scheme.TwoAffineOpenCover.algebraOfHom g V; Γ(X, U) ⊗[R] Γ(Y, V)))).Opens) ≤
      chart f g U hU V hV ⁻¹ᵁ (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V) := by
  rw [← opensRange_chart f g U hU V hV, Scheme.Hom.preimage_opensRange]
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.toTensor

The sections map from the intersection chart to the tensor product ring.

Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
def toTensor :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
    letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
    Γ(pullback f g, pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V) ⟶
      CommRingCat.of (Γ(X, U) ⊗[R] Γ(Y, V)) :=
  letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
  letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
  (chart f g U hU V hV).appLE _ ⊤ (top_le_preimage f g U hU V hV) ≫ (Scheme.ΓSpecIso _).hom
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.appLE_congr_hom
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem appLE_congr_hom {P Q : Scheme.{u}} {φ ψ : P ⟶ Q} (h : φ = ψ) (U' : Q.Opens) (V' : P.Opens)
    (e : V' ≤ φ ⁻¹ᵁ U') : φ.appLE U' V' e = ψ.appLE U' V' (h ▸ e)
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.isIso_toTensor
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
instance isIso_toTensor : IsIso (toTensor f g U hU V hV)
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.toTensorEquiv

The ring equivalence between sections on the pullback chart and the tensor product.

Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
def toTensorEquiv :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
    letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
    Γ(pullback f g, pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V) ≃+* Γ(X, U) ⊗[R] Γ(Y, V) :=
  (asIso (toTensor f g U hU V hV)).commRingCatIsoToRingEquiv
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.toTensorEquiv_apply
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem toTensorEquiv_apply (x) : toTensorEquiv f g U hU V hV x = (toTensor f g U hU V hV).hom x
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.top_le_fromSpec_preimage
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem top_le_fromSpec_preimage {P : Scheme.{u}} {U' : P.Opens} (hU' : IsAffineOpen U') :
    (⊤ : (Spec Γ(P, U')).Opens) ≤ hU'.fromSpec ⁻¹ᵁ U'
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.fromSpec_appLE_top
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem fromSpec_appLE_top {P : Scheme.{u}} {U' : P.Opens} (hU' : IsAffineOpen U')
    (e : (⊤ : (Spec Γ(P, U')).Opens) ≤ hU'.fromSpec ⁻¹ᵁ U') :
    hU'.fromSpec.appLE U' ⊤ e = (Scheme.ΓSpecIso Γ(P, U')).inv
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.toTensor_fst
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem toTensor_fst (a : Γ(X, U)) :
    let := Scheme.TwoAffineOpenCover.algebraOfHom f U
    let := Scheme.TwoAffineOpenCover.algebraOfHom g V
    (toTensor f g U hU V hV).hom ((pullback.fst f g).appLE U _ inf_le_left a) = a ⊗ₜ[R] (1 : Γ(Y,
      V)) := by
  intro sharedOwner1 sharedOwner2
  dsimp only
  unfold toTensor
  rw [← CommRingCat.comp_apply, ← Category.assoc, Scheme.Hom.appLE_comp_appLE,
    appLE_congr_hom (chart_fst f g U hU V hV), ← Scheme.Hom.appLE_comp_appLE _ _ U ⊤ ⊤
      (top_le_fromSpec_preimage hU) (Scheme.Hom.preimage_top _).ge,
    fromSpec_appLE_top, Scheme.Hom.appLE_top_eq_appTop, Category.assoc,
    ← Scheme.ΓSpecIso_inv_naturality_assoc,
    Iso.inv_hom_id, Category.comp_id]
  rfl
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.toTensor_snd
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem toTensor_snd (b : Γ(Y, V)) :
    let := Scheme.TwoAffineOpenCover.algebraOfHom f U
    let := Scheme.TwoAffineOpenCover.algebraOfHom g V
    (toTensor f g U hU V hV).hom ((pullback.snd f g).appLE V _ inf_le_right b) = (1 : Γ(X, U))
      ⊗ₜ[R] b := by
  intro sharedOwner1 sharedOwner2
  dsimp only
  unfold toTensor
  rw [← CommRingCat.comp_apply, ← Category.assoc, Scheme.Hom.appLE_comp_appLE,
    appLE_congr_hom (chart_snd f g U hU V hV), ← Scheme.Hom.appLE_comp_appLE _ _ V ⊤ ⊤
      (top_le_fromSpec_preimage hV) (Scheme.Hom.preimage_top _).ge,
    fromSpec_appLE_top, Scheme.Hom.appLE_top_eq_appTop, Category.assoc,
    ← Scheme.ΓSpecIso_inv_naturality_assoc,
    Iso.inv_hom_id, Category.comp_id]
  rfl
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.toTensorEquiv_symm_tmul_one
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem toTensorEquiv_symm_tmul_one (a : Γ(X, U)) :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
    letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
    (toTensorEquiv f g U hU V hV).symm (a ⊗ₜ[R] (1 : Γ(Y, V))) =
      (pullback.fst f g).appLE U _ inf_le_left a := by
  rw [RingEquiv.symm_apply_eq, toTensorEquiv_apply, toTensor_fst]
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.toTensorEquiv_symm_one_tmul
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem toTensorEquiv_symm_one_tmul (b : Γ(Y, V)) :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
    letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
    (toTensorEquiv f g U hU V hV).symm ((1 : Γ(X, U)) ⊗ₜ[R] b) =
      (pullback.snd f g).appLE V _ inf_le_right b := by
  rw [RingEquiv.symm_apply_eq, toTensorEquiv_apply, toTensor_snd]
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.appLE_algebraMap
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem appLE_algebraMap (r : R) :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
    letI := Scheme.TwoAffineOpenCover.algebraOfHom (pullback.fst f g ≫ f)
      (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V)
    (pullback.fst f g).appLE U _ inf_le_left (algebraMap R Γ(X, U) r) =
      algebraMap R Γ(pullback f g, pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V) r := by
  change ((Scheme.ΓSpecIso (.of R)).inv ≫ f.appLE ⊤ U ((le_top : U ≤ ⊤).trans
    (Scheme.Hom.preimage_top f).ge) ≫ (pullback.fst f g).appLE U _ inf_le_left) r
    = ((Scheme.ΓSpecIso (.of R)).inv ≫ (pullback.fst f g ≫ f).appLE ⊤ _ ((le_top : _ ≤ ⊤).trans
      (Scheme.Hom.preimage_top _).ge)) r
  rw [Scheme.Hom.appLE_comp_appLE]
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.tensorAlgEquiv

The base algebra equivalence from the tensor product to sections on the pullback chart.

Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
def tensorAlgEquiv :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
    letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
    letI := Scheme.TwoAffineOpenCover.algebraOfHom (pullback.fst f g ≫ f)
      (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V)
    Γ(X, U) ⊗[R] Γ(Y, V) ≃ₐ[R] Γ(pullback f g, pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V) :=
  letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
  letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
  letI := Scheme.TwoAffineOpenCover.algebraOfHom (pullback.fst f g ≫ f)
    (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V)
  AlgEquiv.ofRingEquiv (f := (toTensorEquiv f g U hU V hV).symm) fun r => by
    rw [Algebra.TensorProduct.algebraMap_apply, toTensorEquiv_symm_tmul_one, appLE_algebraMap]
AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0.tensorAlgEquiv_tmul
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry TensorProduct TopologicalSpace Opposite
universe u
namespace P2mKDeg0
variable {R : Type u} [CommRing R] {X Y : Scheme.{u}}
  (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
  (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V)
theorem tensorAlgEquiv_tmul (a : Γ(X, U)) (b : Γ(Y, V)) :
    let := Scheme.TwoAffineOpenCover.algebraOfHom f U
    let := Scheme.TwoAffineOpenCover.algebraOfHom g V
    letI := Scheme.TwoAffineOpenCover.algebraOfHom (pullback.fst f g ≫ f)
      (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V)
    tensorAlgEquiv f g U hU V hV (a ⊗ₜ[R] b) =
      (pullback.fst f g).appLE U _ inf_le_left a * (pullback.snd f g).appLE V _ inf_le_right b := by
  intro sharedOwner1 sharedOwner2
  have h : a ⊗ₜ[R] b = (a ⊗ₜ[R] (1 : Γ(Y, V))) * ((1 : Γ(X, U)) ⊗ₜ[R] b) := by
    rw [Algebra.TensorProduct.tmul_mul_tmul, mul_one, one_mul]
  change (toTensorEquiv f g U hU V hV).symm (a ⊗ₜ[R] b) = _
  rw [h, map_mul, toTensorEquiv_symm_tmul_one, toTensorEquiv_symm_one_tmul]
AlgebraicGeometry.Scheme.Pullback.isAffineOpen_and_exists_algEquiv_tensor_sections_fst_preimage_inf_snd_preimage
Source context 9 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section ProofImplementation
namespace AlgebraicGeometry.Scheme.Pullback
open _root_.AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections
open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry
  _root_.TensorProduct _root_.TopologicalSpace _root_.Opposite
universe u
attribute [local instance] P2mKDeg0.chart_isOpenImmersion
attribute [local instance] P2mKDeg0.isIso_toTensor
open _root_.AlgebraicCurves.Geometry.Schemes.Proofs.AffinePullbackTensorSections.P2mKDeg0 in
theorem isAffineOpen_and_exists_algEquiv_tensor_sections_fst_preimage_inf_snd_preimage
    {R : Type u} [CommRing R] {X Y : Scheme.{u}}
    (f : X ⟶ Spec (.of R)) (g : Y ⟶ Spec (.of R))
    (U : X.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hV : IsAffineOpen V) :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom f U
    letI := Scheme.TwoAffineOpenCover.algebraOfHom g V
    letI := Scheme.TwoAffineOpenCover.algebraOfHom (pullback.fst f g ≫ f)
      (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V)
    IsAffineOpen (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V) ∧
    ∃ e : Γ(X, U) ⊗[R] Γ(Y, V) ≃ₐ[R]
        Γ(pullback f g, pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V),
      ∀ (a : Γ(X, U)) (b : Γ(Y, V)), e (a ⊗ₜ[R] b) =
        (pullback.fst f g).appLE U (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V) inf_le_left a *
          (pullback.snd f g).appLE V (pullback.fst f g ⁻¹ᵁ U ⊓ pullback.snd f g ⁻¹ᵁ V) inf_le_right
            b :=
  ⟨isAffineOpen_inf f g U hU V hV, tensorAlgEquiv f g U hU V hV, tensorAlgEquiv_tmul f g U hU V hV⟩