Module

BijectiveAlgebraMapSectionsBaseChange.lean

Nyll.AlgebraicCurves.Geometry.Schemes.Sections.BijectiveAlgebraMapSectionsBaseChange
5 declarations indexed from sourceView source ↗

Global sections after base change from a field

Degree-zero Cech cohomology computes global sections and supplies the base-change comparison used in the final statement.

Declarations

AlgebraicCurves.Geometry.Schemes.Proofs.Scheme_bijective_algebraMap_sections_baseChange_of_bijective_of_field.P2mH0BaseChangeField.sectionsEquivOfIso

The linear equivalence on global sections induced by a module isomorphism.

Source context 12 commands

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

@[expose] public section
open _root_.AlgebraicGeometry.OModulePresheaf
  (sectionsEquivH0)
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace Scheme_bijective_algebraMap_sections_baseChange_of_bijective_of_field
attribute [-simp] AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
universe u
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Opposite TopologicalSpace
  TensorProduct
namespace P2mH0BaseChangeField
section Transport
variable {R : Type u} [CommRing R] {V : Scheme.{u}} (π : V ⟶ Spec (.of R)) {M N : V.Modules}
def sectionsEquivOfIso (e : M ≅ N) :
    letI := Scheme.TwoAffineOpenCover.moduleSectionsOfHom π M ⊤
    letI := Scheme.TwoAffineOpenCover.moduleSectionsOfHom π N ⊤
    Γ(M, ⊤) ≃ₗ[R] Γ(N, ⊤) :=
  let := Scheme.TwoAffineOpenCover.algebraOfHom π ⊤
  let := Scheme.TwoAffineOpenCover.moduleSectionsOfHom π M ⊤
  let := Scheme.TwoAffineOpenCover.moduleSectionsOfHom π N ⊤
  { toFun := fun x => Scheme.Modules.Hom.app e.hom ⊤ x
    invFun := fun y => Scheme.Modules.Hom.app e.inv ⊤ y
    map_add' := fun x y => map_add _ x y
    map_smul' := fun r x => by
      change Scheme.Modules.Hom.app e.hom ⊤ ((algebraMap R Γ(V, ⊤) r) • x)
        = (algebraMap R Γ(V, ⊤) r) • Scheme.Modules.Hom.app e.hom ⊤ x
      exact Scheme.Modules.Hom.app_smul _ _ _
    left_inv := fun x => by
      change (Scheme.Modules.Hom.app e.hom ⊤ ≫ Scheme.Modules.Hom.app e.inv ⊤) x = x
      rw [← Scheme.Modules.Hom.comp_app, e.hom_inv_id, Scheme.Modules.Hom.id_app]; rfl
    right_inv := fun y => by
      change (Scheme.Modules.Hom.app e.inv ⊤ ≫ Scheme.Modules.Hom.app e.hom ⊤) y = y
      rw [← Scheme.Modules.Hom.comp_app, e.inv_hom_id, Scheme.Modules.Hom.id_app]; rfl }
AlgebraicCurves.Geometry.Schemes.Proofs.Scheme_bijective_algebraMap_sections_baseChange_of_bijective_of_field.P2mH0BaseChangeField.unitSectionsEquiv

Global sections of the unit module identify with functions on the scheme.

Source context 12 commands

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

@[expose] public section
open _root_.AlgebraicGeometry.OModulePresheaf
  (sectionsEquivH0)
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace Scheme_bijective_algebraMap_sections_baseChange_of_bijective_of_field
attribute [-simp] AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
universe u
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Opposite TopologicalSpace
  TensorProduct
namespace P2mH0BaseChangeField
section Transport
variable {R : Type u} [CommRing R] {V : Scheme.{u}} (π : V ⟶ Spec (.of R)) {M N : V.Modules}
def unitSectionsEquiv :
    letI := Scheme.TwoAffineOpenCover.moduleSectionsOfHom π (SheafOfModules.unit V.ringCatSheaf) ⊤
    letI := Scheme.TwoAffineOpenCover.algebraOfHom π ⊤
    Γ(SheafOfModules.unit V.ringCatSheaf, ⊤) ≃ₗ[R] Γ(V, ⊤) :=
  let := Scheme.TwoAffineOpenCover.moduleSectionsOfHom π (SheafOfModules.unit V.ringCatSheaf) ⊤
  let := Scheme.TwoAffineOpenCover.algebraOfHom π ⊤
  { toFun := fun x => (show Γ(V, ⊤) from x)
    invFun := fun y => (show Γ(SheafOfModules.unit V.ringCatSheaf, ⊤) from y)
    map_add' := fun _ _ => rfl
    map_smul' := fun _ _ => rfl
    left_inv := fun _ => rfl
    right_inv := fun _ => rfl }
AlgebraicCurves.Geometry.Schemes.Proofs.Scheme_bijective_algebraMap_sections_baseChange_of_bijective_of_field.P2mH0BaseChangeField.bijective_algebraMap_of_linearEquiv
Source context 10 commands

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

@[expose] public section
open _root_.AlgebraicGeometry.OModulePresheaf
  (sectionsEquivH0)
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace Scheme_bijective_algebraMap_sections_baseChange_of_bijective_of_field
attribute [-simp] AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
universe u
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Opposite TopologicalSpace
  TensorProduct
namespace P2mH0BaseChangeField
theorem bijective_algebraMap_of_linearEquiv {A S : Type*} [CommRing A] [CommRing S] [Algebra A S]
    (e : S ≃ₗ[A] A) : Function.Bijective (algebraMap A S)
AlgebraicCurves.Geometry.Schemes.Proofs.Scheme_bijective_algebraMap_sections_baseChange_of_bijective_of_field.P2mH0BaseChangeField.main
Source context 12 commands

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

@[expose] public section
open _root_.AlgebraicGeometry.OModulePresheaf
  (sectionsEquivH0)
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace Scheme_bijective_algebraMap_sections_baseChange_of_bijective_of_field
attribute [-simp] AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
universe u
noncomputable section
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry Opposite TopologicalSpace
  TensorProduct
namespace P2mH0BaseChangeField
section Main
open _root_.AlgebraicGeometry.Scheme.TwoAffineOpenCover
theorem main (k : Type u) [Field k] {X : Scheme.{u}} (π : X ⟶ Spec (.of k))
    [IsSeparated π] [QuasiCompact π]
    (hX : letI := Scheme.TwoAffineOpenCover.algebraOfHom π ⊤
      Function.Bijective (algebraMap k Γ(X, ⊤)))
    (A : Type u) [CommRing A] [Algebra k A] :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom
      (Limits.pullback.snd π (Scheme.TwoAffineOpenCover.specMap k A)) ⊤
    Function.Bijective (algebraMap A Γ(Limits.pullback π (Scheme.TwoAffineOpenCover.specMap k A),
      ⊤)) := by
  have : CompactSpace X := QuasiCompact.compactSpace_of_compactSpace π
  let 𝒰 := _root_.AlgebraicGeometry.Scheme.OrderedAffineCover.ofCompact X
  let 𝒪 : X.Modules := SheafOfModules.unit X.ringCatSheaf
  let p₁ := Limits.pullback.fst π (specMap k A)
  let p₂ := Limits.pullback.snd π (specMap k A)
  have htriv : ∀ x : X, ∃ V : X.Opens, x ∈ V ∧
      Nonempty ((Scheme.Modules.pullback V.ι).obj 𝒪 ≅ SheafOfModules.unit V.toScheme.ringCatSheaf)
        :=
    fun x => ⟨⊤, trivial, ⟨Scheme.Modules.pullbackUnitIso _⟩⟩
  obtain ⟨-, hflat⟩ := OModulePresheaf.nonempty_cech_baseChange_equiv_of_locallyTrivial π 𝒰 𝒪
    htriv A
  obtain ⟨⟨e1⟩, -⟩ := hflat inferInstance
  let := Scheme.TwoAffineOpenCover.algebraOfHom π ⊤
  let := Scheme.TwoAffineOpenCover.moduleSectionsOfHom π 𝒪 ⊤
  let := Scheme.TwoAffineOpenCover.algebraOfHom p₂ ⊤
  let := Scheme.TwoAffineOpenCover.moduleSectionsOfHom p₂ ((Scheme.Modules.pullback p₁).obj 𝒪) ⊤
  let := Scheme.TwoAffineOpenCover.moduleSectionsOfHom p₂
    (SheafOfModules.unit (Limits.pullback π (specMap k A)).ringCatSheaf) ⊤
  let e2 : (OModulePresheaf.ofModules π 𝒪).H0 𝒰 ≃ₗ[k] k :=
    (sectionsEquivH0 π 𝒪 𝒰).symm.trans ((unitSectionsEquiv π).trans
      (LinearEquiv.ofBijective (Algebra.linearMap k Γ(X, ⊤)) hX).symm)
  let e3 : A ⊗[k] (OModulePresheaf.ofModules π 𝒪).H0 𝒰 ≃ₗ[A] A :=
    (e2.baseChange k A _ _).trans (AlgebraTensorModule.rid k A A)
  let e4 := (sectionsEquivH0 p₂
    ((Scheme.Modules.pullback p₁).obj 𝒪) (𝒰.baseChange π A)).symm.trans
    ((sectionsEquivOfIso p₂ (Scheme.Modules.pullbackUnitIso p₁)).trans (unitSectionsEquiv p₂))
  exact bijective_algebraMap_of_linearEquiv (e4.symm.trans (e1.trans e3))
AlgebraicGeometry.Scheme.bijective_algebraMap_sections_baseChange_of_bijective_of_field
Source context 8 commands

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

@[expose] public section
open _root_.AlgebraicGeometry.OModulePresheaf
  (sectionsEquivH0)
section ProofImplementation
namespace AlgebraicCurves.Geometry.Schemes.Proofs
namespace Scheme_bijective_algebraMap_sections_baseChange_of_bijective_of_field
attribute [-simp] AlgebraicGeometry.tilde.functorCompPullbackSpecIso_app
universe u
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry in
theorem
  _root_.AlgebraicGeometry.Scheme.bijective_algebraMap_sections_baseChange_of_bijective_of_field
    (k : Type u) [Field k] {X : Scheme.{u}} (π : X ⟶ Spec (CommRingCat.of k))
    [IsSeparated π] [QuasiCompact π]
    (hX : letI := Scheme.TwoAffineOpenCover.algebraOfHom π ⊤
      Function.Bijective (algebraMap k Γ(X, ⊤)))
    (A : Type u) [CommRing A] [Algebra k A] :
    letI := Scheme.TwoAffineOpenCover.algebraOfHom
      (Limits.pullback.snd π (Scheme.TwoAffineOpenCover.specMap k A)) ⊤
    Function.Bijective (algebraMap A Γ(Limits.pullback π (Scheme.TwoAffineOpenCover.specMap k A),
      ⊤)) :=
  P2mH0BaseChangeField.main k π hX A