Module

BaseChangeSectionsLinearEquivPushforwardTensorUnit.lean

Nyll.SchemeTheory.Modules.Tensor.BaseChangeSectionsLinearEquivPushforwardTensorUnit
17 declarations indexed from sourceView source ↗

Scheme Modules exists base Change sections linear Equiv pushforward tensor Unit of affine

Open le

Imports9
  • Mathlib.AlgebraicGeometry.Modules.Sheaf
  • Mathlib.AlgebraicGeometry.AffineScheme
  • Mathlib.AlgebraicGeometry.Morphisms.Affine
  • Mathlib.LinearAlgebra.TensorProduct.Tower
  • Mathlib.RingTheory.Ideal.Colon
  • Mathlib.RingTheory.Localization.Away.Basic
  • Mathlib.Tactic.ByContra
  • Mathlib.Tactic.Convert
  • Nyll.SchemeTheory.Modules.Tensor.Monoidal
Imported by2

Declarations

AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.op_hom_eq
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {Y : Scheme.{u}}
theorem op_hom_eq {U V : Y.Opens} (i j : op U ⟶ op V) : i = j
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.map_map
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {Y : Scheme.{u}}
theorem map_map (M : Y.Modules) {U V W : Y.Opens} (i : op U ⟶ op V) (j : op V ⟶ op W) (x : Γ(M, U))
  :
    M.presheaf.map j (M.presheaf.map i x) = M.presheaf.map (i ≫ j) x
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.map_irrel
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {Y : Scheme.{u}}
theorem map_irrel (M : Y.Modules) {U V : Y.Opens} (i j : op U ⟶ op V) (x : Γ(M, U)) :
    M.presheaf.map i x = M.presheaf.map j x
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.ring_map_map
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {Y : Scheme.{u}}
theorem ring_map_map {U V W : Y.Opens} (i : op U ⟶ op V) (j : op V ⟶ op W) (x : Y.presheaf.obj (op
  U)) :
    Y.presheaf.map j (Y.presheaf.map i x) = Y.presheaf.map (i ≫ j) x
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.ring_map_irrel
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {Y : Scheme.{u}}
theorem ring_map_irrel {U V : Y.Opens} (i j : op U ⟶ op V) (x : Y.presheaf.obj (op U)) :
    Y.presheaf.map i x = Y.presheaf.map j x
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.span_res_eq_top
Source context 6 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
open P2mWs11RBC in
theorem P2mWs11RBC.span_res_eq_top
    {X : Scheme.{u}} (M : X.Modules)
    (hloc : ∀ (W : X.affineOpens) (f : Γ(X, W.1)),
      (∀ x : Γ(M, X.basicOpen f), ∃ (n : ℕ) (y : Γ(M, W.1)),
          M.presheaf.map (homOfLE (X.basicOpen_le f)).op y
            = X.presheaf.map (homOfLE (X.basicOpen_le f)).op (f ^ n) • x)
        ∧ (∀ y : Γ(M, W.1), M.presheaf.map (homOfLE (X.basicOpen_le f)).op y = 0 →
            ∃ n : ℕ, (f ^ n : Γ(X, W.1)) • y = 0))
    {U V : X.Opens} (hU : IsAffineOpen U) (hV : IsAffineOpen V) (hVU : V ≤ U) :
    Submodule.span Γ(X, V) (Set.range (fun y : Γ(M, U) => M.presheaf.map (homOfLE hVU).op y)) = ⊤
      := by
  classical
  set S : Submodule Γ(X, V) Γ(M, V) :=
    Submodule.span Γ(X, V) (Set.range (fun y : Γ(M, U) => M.presheaf.map (homOfLE hVU).op y)) with
      hS
  rw [Submodule.eq_top_iff']
  intro s
  have key : ∀ f : Γ(X, U), X.basicOpen f ≤ V →
      ∃ N : ℕ, (X.presheaf.map (homOfLE hVU).op f) ^ N • s ∈ S := by
    intro f hfV
    set g : Γ(X, V) := X.presheaf.map (homOfLE hVU).op f with hg
    obtain ⟨n, y, hy⟩ :=
      (hloc ⟨U, hU⟩ f).1
        (M.presheaf.map (homOfLE hfV).op s)
    have hgf : X.basicOpen g ≤ X.basicOpen f := by
      rw [hg, Scheme.basicOpen_res]; exact inf_le_right
    set t : Γ(M, V) := g ^ n • s - M.presheaf.map (homOfLE hVU).op y with ht
    have htf : M.presheaf.map (homOfLE hfV).op t = 0 := by
      rw [ht, map_sub, Scheme.Modules.map_smul, map_pow, map_map, hg, ring_map_map, sub_eq_zero,
        ring_map_irrel ((homOfLE hVU).op ≫ (homOfLE hfV).op) (homOfLE (X.basicOpen_le f)).op,
        map_irrel M ((homOfLE hVU).op ≫ (homOfLE hfV).op) (homOfLE (X.basicOpen_le f)).op, hy,
          map_pow]
    have htg : M.presheaf.map (homOfLE (X.basicOpen_le g)).op t = 0 := by
      rw [map_irrel M (homOfLE (X.basicOpen_le g)).op ((homOfLE hfV).op ≫ (homOfLE hgf).op),
        ← map_map, htf, map_zero]
    obtain ⟨m, hm⟩ :=
      (hloc ⟨V, hV⟩ g).2 t htg
    refine ⟨m + n, ?_⟩
    have : g ^ (m + n) • s = g ^ m • M.presheaf.map (homOfLE hVU).op y := by
      rw [pow_add, mul_smul, ← sub_eq_zero, ← smul_sub, ← ht]; exact hm
    rw [this]
    exact S.smul_mem _ (Submodule.subset_span ⟨y, rfl⟩)
  suffices h1 : (1 : Γ(X, V)) ∈ S.colon {s} by
    simpa using Submodule.mem_colon_singleton.mp h1
  by_contra h1
  have hI : S.colon {s} ≠ ⊤ := fun h => h1 (h ▸ Submodule.mem_top)
  obtain ⟨𝔪, h𝔪, hI𝔪⟩ := Ideal.exists_le_maximal _ hI
  let p : PrimeSpectrum Γ(X, V) := ⟨𝔪, h𝔪.isPrime⟩
  have hxV : hV.fromSpec p ∈ V := by
    have h : hV.fromSpec p ∈ Set.range (hV.fromSpec : _ → X) := ⟨p, rfl⟩
    rw [hV.range_fromSpec] at h
    exact h
  obtain ⟨f, hfV, hxf⟩ := hU.exists_basicOpen_le ⟨_, hxV⟩ (hVU hxV)
  obtain ⟨N, hN⟩ := key f hfV
  set g : Γ(X, V) := X.presheaf.map (homOfLE hVU).op f with hg
  have hgI : g ^ N ∈ S.colon {s} := Submodule.mem_colon_singleton.mpr hN
  have hg𝔪 : g ∈ 𝔪 := h𝔪.isPrime.mem_of_pow_mem N (hI𝔪 hgI)
  have hxg : hV.fromSpec p ∈ X.basicOpen g := by
    rw [hg, Scheme.basicOpen_res]; exact ⟨hxV, hxf⟩
  have : p ∈ hV.fromSpec ⁻¹ᵁ X.basicOpen g := hxg
  rw [hV.fromSpec_preimage_basicOpen] at this
  exact (PrimeSpectrum.mem_basicOpen g p).mp this hg𝔪
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.algebraMap_basicOpen_apply
Source context 8 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
open TensorProduct
variable {X : Scheme.{u}}
theorem algebraMap_basicOpen_apply {U : X.Opens} (f : Γ(X, U)) (x : Γ(X, U)) :
    algebraMap Γ(X, U) Γ(X, X.basicOpen f) x = X.presheaf.map (homOfLE (X.basicOpen_le f)).op x
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.exists_pow_mul_eq_algebraMap
Source context 8 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
open TensorProduct
variable {X : Scheme.{u}}
theorem exists_pow_mul_eq_algebraMap {U V : X.Opens} (hU : IsAffineOpen U) (hV : IsAffineOpen V)
    (hVU : V ≤ U) [Algebra Γ(X, U) Γ(X, V)]
    (halg : ∀ a, algebraMap Γ(X, U) Γ(X, V) a = X.presheaf.map (homOfLE hVU).op a)
    (h : Γ(X, U)) (hDV : X.basicOpen h ≤ V) (b : Γ(X, V)) :
    ∃ (n : ℕ) (a : Γ(X, U)), algebraMap Γ(X, U) Γ(X, V) h ^ n * b = algebraMap Γ(X, U) Γ(X, V) a
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.algebraMap_tmul_eq_one_tmul_smul
Source context 8 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
open TensorProduct
variable {X : Scheme.{u}}
theorem algebraMap_tmul_eq_one_tmul_smul {A B P : Type*} [CommRing A] [CommRing B] [Algebra A B]
    [AddCommGroup P] [Module A P] (a : A) (p : P) :
    (algebraMap A B a) ⊗ₜ[A] p = (1 : B) ⊗ₜ[A] (a • p)
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.algebraMap_pow_smul_one_tmul
Source context 8 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
open TensorProduct
variable {X : Scheme.{u}}
theorem algebraMap_pow_smul_one_tmul {A B P : Type*} [CommRing A] [CommRing B] [Algebra A B]
    [AddCommGroup P] [Module A P] (a : A) (n : ℕ) (p : P) :
    (algebraMap A B a) ^ n • ((1 : B) ⊗ₜ[A] p) = (1 : B) ⊗ₜ[A] (a ^ n • p)
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.exists_baseChange_equiv
Source context 8 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
open TensorProduct
variable {X : Scheme.{u}}
theorem exists_baseChange_equiv (M : X.Modules)
    (hloc : ∀ (W : X.affineOpens) (f : Γ(X, W.1)),
      (∀ x : Γ(M, X.basicOpen f), ∃ (n : ℕ) (y : Γ(M, W.1)),
          M.presheaf.map (homOfLE (X.basicOpen_le f)).op y
            = X.presheaf.map (homOfLE (X.basicOpen_le f)).op (f ^ n) • x)
        ∧ (∀ y : Γ(M, W.1), M.presheaf.map (homOfLE (X.basicOpen_le f)).op y = 0 →
            ∃ n : ℕ, (f ^ n : Γ(X, W.1)) • y = 0))
    {U V : X.Opens} (hU : IsAffineOpen U) (hV : IsAffineOpen V) (hVU : V ≤ U)
    [alg : Algebra Γ(X, U) Γ(X, V)]
    (halg : ∀ a, algebraMap Γ(X, U) Γ(X, V) a = X.presheaf.map (homOfLE hVU).op a) :
    ∃ e : Γ(X, V) ⊗[Γ(X, U)] Γ(M, U) ≃ₗ[Γ(X, V)] Γ(M, V),
      ∀ m : Γ(M, U), e ((1 : Γ(X, V)) ⊗ₜ[Γ(X, U)] m) = M.presheaf.map (homOfLE hVU).op m
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.Mu

The pushforward of the structure module along π.

Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {X Y : Scheme.{u}}
abbrev Mu (π : Y ⟶ X) : X.Modules
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.ring_map_endo
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {X Y : Scheme.{u}}
theorem ring_map_endo {U : Y.Opens} (i : op U ⟶ op U) (x : Γ(Y, U)) : Y.presheaf.map i x = x
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.app_res_apply
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {X Y : Scheme.{u}}
theorem app_res_apply (π : Y ⟶ X) {U V : X.Opens} (i : U ⟶ V) (r : Γ(X, V)) :
    (π.app U).hom ((X.presheaf.map i.op).hom r) =
      (Y.presheaf.map ((Opens.map π.base).map i).op).hom ((π.app V).hom r)
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.pushforwardUnit_loc
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {X Y : Scheme.{u}}
theorem pushforwardUnit_loc (π : Y ⟶ X) (W : X.affineOpens) (hW' : IsAffineOpen (π ⁻¹ᵁ W.1))
    (f : Γ(X, W.1)) :
    ((∀ x : Γ(Mu π, X.basicOpen f), ∃ (n : ℕ) (y : Γ(Mu π, W.1)),
          (Mu π).presheaf.map (homOfLE (X.basicOpen_le f)).op y
            = X.presheaf.map (homOfLE (X.basicOpen_le f)).op (f ^ n) • x)
        ∧ (∀ y : Γ(Mu π, W.1), (Mu π).presheaf.map (homOfLE (X.basicOpen_le f)).op y = 0 →
            ∃ n : ℕ, (f ^ n : Γ(X, W.1)) • y = 0))
AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections.P2mWs11RBC.mainU
Source context 8 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open CategoryTheory AlgebraicGeometry Opposite TopologicalSpace
namespace P2mWs11RBC
variable {X Y : Scheme.{u}}
open TensorProduct in
theorem mainU {X Y : Scheme.{u}} (π : Y ⟶ X) [IsAffineHom π]
    {U V : X.Opens} (hU : IsAffineOpen U) (hV : IsAffineOpen V) (hVU : V ≤ U) :
    let : Algebra Γ(X, U) Γ(X, V) := (X.presheaf.map (homOfLE hVU).op).hom.toAlgebra
    ∃ e : Γ(X, V) ⊗[Γ(X, U)] Γ(Mu π, U) ≃ₗ[Γ(X, V)] Γ(Mu π, V),
      ∀ m : Γ(Mu π, U), e ((1 : Γ(X, V)) ⊗ₜ[Γ(X, U)] m) = (Mu π).presheaf.map (homOfLE hVU).op m :=
        by
  intro alg
  exact exists_baseChange_equiv (alg := alg) (Mu π)
    (fun W f => pushforwardUnit_loc π W (W.2.preimage π) f) hU hV hVU (fun _ => rfl)
AlgebraicGeometry.Scheme.Modules.exists_baseChange_sections_linearEquiv_pushforward_tensorUnit_of_affineOpen_le
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicGeometry.Scheme.Modules
open _root_.AlgebraicCurves.Geometry.Sheaves.Proofs.AffinePushforwardSections
universe u
open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Opposite _root_.TopologicalSpace
open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory _root_.AlgebraicGeometry
  _root_.TensorProduct in
theorem exists_baseChange_sections_linearEquiv_pushforward_tensorUnit_of_affineOpen_le
    {X Y : Scheme.{u}} (π : Y ⟶ X) [IsAffineHom π]
    {U V : X.Opens} (hU : IsAffineOpen U) (hV : IsAffineOpen V) (hVU : V ≤ U) :
    let : Algebra Γ(X, U) Γ(X, V) := (X.presheaf.map (homOfLE hVU).op).hom.toAlgebra
    ∃ e : Γ(X, V) ⊗[Γ(X, U)] Γ((Scheme.Modules.pushforward π).obj (𝟙_ Y.Modules), U) ≃ₗ[Γ(X, V)]
        Γ((Scheme.Modules.pushforward π).obj (𝟙_ Y.Modules), V),
      ∀ m : Γ((Scheme.Modules.pushforward π).obj (𝟙_ Y.Modules), U),
        e ((1 : Γ(X, V)) ⊗ₜ[Γ(X, U)] m) =
          ((Scheme.Modules.pushforward π).obj (𝟙_ Y.Modules)).presheaf.map (homOfLE hVU).op m := by
  exact P2mWs11RBC.mainU π hU hV hVU