Module

RankLocalization.lean

Nyll.SchemeTheory.RingTheory.LinearAlgebra.RankLocalization
6 declarations indexed from sourceView source ↗

Stalk ranks preserved by local equivalences

Compares ranks at stalks using module equivalences after localization.

Module exists forall is Unit rank At Stalk base Change eq finrank residue Field tensor

Imports20
  • Mathlib.RingTheory.Spectrum.Prime.FreeLocus
  • Mathlib.RingTheory.Spectrum.Prime.Noetherian
  • Mathlib.RingTheory.IsTensorProduct
  • Mathlib.RingTheory.Localization.BaseChange
  • Mathlib.LinearAlgebra.TensorProduct.Pi
  • Mathlib.RingTheory.Artinian.Module
  • Mathlib.Algebra.Module.FinitePresentation
  • Mathlib.Algebra.Module.Projective
  • Mathlib.LinearAlgebra.Basis.VectorSpace
  • Mathlib.LinearAlgebra.Dimension.Finrank
  • Mathlib.LinearAlgebra.TensorProduct.Tower
  • Mathlib.RingTheory.Flat.Basic
  • Mathlib.RingTheory.Ideal.Operations
  • Mathlib.RingTheory.LocalRing.ResidueField.Ideal
  • Mathlib.RingTheory.Localization.Away.Basic
  • Mathlib.RingTheory.Localization.Ideal
  • Mathlib.RingTheory.Localization.Submodule
  • Mathlib.RingTheory.Spectrum.Prime.Topology
  • Mathlib.RingTheory.TensorProduct.Finite
  • Mathlib.Topology.LocallyConstant.Basic
Imported by4

Declarations

AlgebraicCurves.Foundations.Algebra.Proofs.Module_rankAtStalk_eq_of_forall_localizedModule_equiv.RankAtStalkLocallyIso.isLocalizedModule_id_of_forall_isUnit
Source context 10 commands

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

@[expose] public section
section Module_rankAtStalk_eq_of_forall_localizedModule_equiv
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_rankAtStalk_eq_of_forall_localizedModule_equiv
open TensorProduct
universe u
namespace RankAtStalkLocallyIso
section UnitsBaseChange
variable {A : Type*} [CommRing A] (S : Submonoid A) (T : Type*) [CommRing T] [Algebra A T]
  (X : Type*) [AddCommGroup X] [Module A X]
theorem isLocalizedModule_id_of_forall_isUnit (hT : ∀ s : S, IsUnit (algebraMap A T s)) :
    IsLocalizedModule S (LinearMap.id : T ⊗[A] X →ₗ[A] T ⊗[A] X) where
  map_units s := by
    rw [Module.End.isUnit_iff]
    have : ⇑(algebraMap A (Module.End A (T ⊗[A] X)) s) = fun y => algebraMap A T s • y := by
      funext y
      simp [Module.algebraMap_end_apply]
    rw [this]
    exact (hT s).smul_bijective
  surj y := ⟨(y, 1), one_smul _ _⟩
  exists_of_eq h := ⟨1, by simpa using h⟩
AlgebraicCurves.Foundations.Algebra.Proofs.Module_rankAtStalk_eq_of_forall_localizedModule_equiv.RankAtStalkLocallyIso.tensorLocalizedModuleEquiv

The tensor equivalence induced by localization when every denominator acts as a unit.

Source context 10 commands

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

@[expose] public section
section Module_rankAtStalk_eq_of_forall_localizedModule_equiv
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_rankAtStalk_eq_of_forall_localizedModule_equiv
open TensorProduct
universe u
namespace RankAtStalkLocallyIso
section UnitsBaseChange
variable {A : Type*} [CommRing A] (S : Submonoid A) (T : Type*) [CommRing T] [Algebra A T]
  (X : Type*) [AddCommGroup X] [Module A X]
def tensorLocalizedModuleEquiv (hT : ∀ s : S, IsUnit (algebraMap A T s)) :
    T ⊗[A] X ≃ₗ[T] T ⊗[A] LocalizedModule S X
AlgebraicCurves.Foundations.Algebra.Proofs.Module_rankAtStalk_eq_of_forall_localizedModule_equiv.RankAtStalkLocallyIso.finrank_eq_sum_finrank_localization
Source context 10 commands

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

@[expose] public section
section Module_rankAtStalk_eq_of_forall_localizedModule_equiv
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_rankAtStalk_eq_of_forall_localizedModule_equiv
open TensorProduct
universe u
namespace RankAtStalkLocallyIso
section Artinian
variable (k : Type*) [Field k] (B : Type*) [CommRing B] [Algebra k B] [IsArtinianRing B]
  (V : Type*) [AddCommGroup V] [Module B V] [Module k V] [IsScalarTower k B V] [Module.Finite k V]
theorem finrank_eq_sum_finrank_localization [Fintype (PrimeSpectrum B)] :
    Module.finrank k V =
      ∑ q : PrimeSpectrum B, Module.finrank k (Localization.AtPrime q.asIdeal ⊗[B] V)
AlgebraicCurves.Foundations.Algebra.Proofs.Module_rankAtStalk_eq_of_forall_localizedModule_equiv.RankAtStalkLocallyIso.finrank_eq_of_forall_localization_equiv
Source context 10 commands

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

@[expose] public section
section Module_rankAtStalk_eq_of_forall_localizedModule_equiv
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_rankAtStalk_eq_of_forall_localizedModule_equiv
open TensorProduct
universe u
namespace RankAtStalkLocallyIso
section Artinian
variable (k : Type*) [Field k] (B : Type*) [CommRing B] [Algebra k B] [IsArtinianRing B]
  (V : Type*) [AddCommGroup V] [Module B V] [Module k V] [IsScalarTower k B V] [Module.Finite k V]
theorem finrank_eq_of_forall_localization_equiv (W : Type*) [AddCommGroup W] [Module B W]
    [Module k W] [IsScalarTower k B W] [Module.Finite k W]
    (H : ∀ q : PrimeSpectrum B, Nonempty
      (Localization.AtPrime q.asIdeal ⊗[B] V ≃ₗ[k] Localization.AtPrime q.asIdeal ⊗[B] W)) :
    Module.finrank k V = Module.finrank k W
Module.rankAtStalk_eq_of_forall_localizedModule_equiv
Source context 8 commands

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

@[expose] public section
section Module_rankAtStalk_eq_of_forall_localizedModule_equiv
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_rankAtStalk_eq_of_forall_localizedModule_equiv
open TensorProduct
universe u
open RankAtStalkLocallyIso in
theorem _root_.Module.rankAtStalk_eq_of_forall_localizedModule_equiv
    {R A : Type u} [CommRing R] [CommRing A] [Algebra R A] [Module.Finite R A]
    (M N : Type u) [AddCommGroup M] [Module R M] [Module A M] [IsScalarTower R A M]
    [Module.Finite R M] [Module.Flat R M]
    [AddCommGroup N] [Module R N] [Module A N] [IsScalarTower R A N]
    [Module.Finite R N] [Module.Flat R N] (s : Set A) (hs : Ideal.span s = ⊤)
    (H : ∀ h ∈ s, Nonempty
      (LocalizedModule (Submonoid.powers h) M ≃ₗ[A] LocalizedModule (Submonoid.powers h) N)) :
    Module.rankAtStalk (R := R) M = Module.rankAtStalk N
Module.exists_forall_isUnit_rankAtStalk_baseChange_eq_finrank_residueField_tensor
Source context 7 commands

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

@[expose] public section
section Module_exists_forall_isUnit_rankAtStalk_baseChange_eq_finrank_residueField_tensor
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_exists_forall_isUnit_rankAtStalk_baseChange_eq_finrank_residueField_tensor
universe u
open TensorProduct
theorem _root_.Module.exists_forall_isUnit_rankAtStalk_baseChange_eq_finrank_residueField_tensor
    {R : Type u} [CommRing R] [IsNoetherianRing R]
    (M : Type u) [AddCommGroup M] [Module R M] [Module.Finite R M]
    (𝔭 : PrimeSpectrum R) (g : R) (hg : g ∉ 𝔭.asIdeal)
    (hproj : ∀ (A : Type u) [CommRing A] [Algebra R A], IsUnit (algebraMap R A g) →
      Module.Projective A (A ⊗[R] M)) :
    ∃ g' : R, g' ∉ 𝔭.asIdeal ∧
      (∀ (A : Type u) [CommRing A] [Algebra R A], IsUnit (algebraMap R A g') → IsUnit (algebraMap R
        A g)) ∧
      ∀ (A : Type u) [CommRing A] [Algebra R A], IsUnit (algebraMap R A g') →
        ∀ 𝔮 : PrimeSpectrum A,
          Module.rankAtStalk (A ⊗[R] M) 𝔮 =
            Module.finrank 𝔭.asIdeal.ResidueField (𝔭.asIdeal.ResidueField ⊗[R] M)