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 / V10. Commutative algebra II: valuations, Dedekind domains, local algebra

Mathlib.RingTheory.Spectrum.Prime.FreeLocus

34 declarations. Mathlib docs · Source

The free locus of a module

Main definitions and results

Let M be a finitely presented R-module.

  • Module.freeLocus: The set of points x in Spec R such that Mₓ is free over Rₓ.
  • Module.freeLocus_eq_univ_iff: The free locus is the whole Spec R if and only if M is projective.
  • Module.basicOpen_subset_freeLocus_iff: D(f) is contained in the free locus if and only if M_f is projective over R_f.
  • Module.rankAtStalk: The function Spec R → ℕ sending x to rank_{Rₓ} Mₓ.
  • Module.isLocallyConstant_rankAtStalk: If M is flat over R, then rankAtStalk is locally constant.

def Module.freeLocus E1 #

(R : Type uR) → (M : Type uM) → [inst : CommRing R] → [inst_1 : AddCommGroup M] → [Module R M] → Set (PrimeSpectrum R)

The free locus of a module, i.e. the set of primes p such that Mₚ is free over Rₚ.

theorem Module.mem_freeLocus E0 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {p : PrimeSpectrum R},
  p ∈ Module.freeLocus R M ↔ Module.Free (Localization.AtPrime p.asIdeal) (LocalizedModule p.asIdeal.primeCompl M)

theorem Module.mem_freeLocus_of_isLocalization E0 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (p : PrimeSpectrum R)
  (Rₚ : Type u_1) (Mₚ : Type u_2) [inst_3 : CommRing Rₚ] [inst_4 : Algebra R Rₚ] [IsLocalization.AtPrime Rₚ p.asIdeal]
  [inst_6 : AddCommGroup Mₚ] [inst_7 : Module R Mₚ] (f : M →ₗ[R] Mₚ) [IsLocalizedModule p.asIdeal.primeCompl f]
  [inst_9 : Module Rₚ Mₚ] [IsScalarTower R Rₚ Mₚ], p ∈ Module.freeLocus R M ↔ Module.Free Rₚ Mₚ

theorem Module.mem_freeLocus_iff_tensor E0 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (p : PrimeSpectrum R)
  (Rₚ : Type u_1) [inst_3 : CommRing Rₚ] [inst_4 : Algebra R Rₚ] [IsLocalization.AtPrime Rₚ p.asIdeal],
  p ∈ Module.freeLocus R M ↔ Module.Free Rₚ (TensorProduct R Rₚ M)

theorem Module.freeLocus_congr E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {M' : Type u_1}
  [inst_3 : AddCommGroup M'] [inst_4 : Module R M'] (e : M ≃ₗ[R] M'), Module.freeLocus R M = Module.freeLocus R M'

theorem Module.comap_freeLocus_le E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {A : Type u_1}
  [inst_3 : CommRing A] [inst_4 : Algebra R A],
  PrimeSpectrum.comap (algebraMap R A) ⁻¹' Module.freeLocus R M ⊆ Module.freeLocus A (TensorProduct R A M)

theorem Module.freeLocus_localization E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (S : Submonoid R),
  Module.freeLocus (Localization S) (LocalizedModule S M) =
    PrimeSpectrum.comap (algebraMap R (Localization S)) ⁻¹' Module.freeLocus R M

theorem Module.freeLocus_eq_univ_iff E0 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  [Module.FinitePresentation R M], Module.freeLocus R M = Set.univ ↔ Module.Projective R M

theorem Module.freeLocus_eq_univ E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Finite R M]
  [Module.Flat R M], Module.freeLocus R M = Set.univ

theorem Module.basicOpen_subset_freeLocus_iff E0 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  [Module.FinitePresentation R M] {f : R},
  ↑(PrimeSpectrum.basicOpen f) ⊆ Module.freeLocus R M ↔
    Module.Projective (Localization.Away f) (LocalizedModule.Away f M)

theorem Module.isOpen_freeLocus E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  [Module.FinitePresentation R M], IsOpen (Module.freeLocus R M)

def Module.rankAtStalk E1 #

{R : Type uR} → (M : Type uM) → [inst : CommRing R] → [inst_1 : AddCommGroup M] → [Module R M] → PrimeSpectrum R → ℕ

The rank of M at the stalk of p is the rank of Mₚ as a Rₚ-module.

theorem Module.isLocallyConstant_rankAtStalk_freeLocus E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  [Module.FinitePresentation R M], IsLocallyConstant fun x ↦ Module.rankAtStalk M ↑x

theorem Module.isLocallyConstant_rankAtStalk E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  [Module.FinitePresentation R M] [Module.Flat R M], IsLocallyConstant (Module.rankAtStalk M)

theorem Module.rankAtStalk_eq_zero_of_subsingleton E0 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Subsingleton M],
  Module.rankAtStalk M = 0

theorem Module.nontrivial_of_rankAtStalk_pos E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M],
  0 < Module.rankAtStalk M → Nontrivial M

theorem Module.rankAtStalk_eq_of_equiv E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {N : Type u_1}
  [inst_3 : AddCommGroup N] [inst_4 : Module R N] (e : M ≃ₗ[R] N), Module.rankAtStalk M = Module.rankAtStalk N

theorem Module.rankAtStalk_eq_finrank_of_free E0 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Free R M],
  Module.rankAtStalk M = ↑(Module.finrank R M)

If M is R-free, its rank at stalks is constant and agrees with the R-rank of M.

theorem Module.rankAtStalk_self E1 #

∀ {R : Type uR} [inst : CommRing R] [Nontrivial R], Module.rankAtStalk R = 1

theorem Module.rankAtStalk_pi E1 #

∀ {R : Type uR} [inst : CommRing R] {ι : Type u_1} [Finite ι] (M : ι → Type u_2) [inst_2 : (i : ι) → AddCommGroup (M i)]
  [inst_3 : (i : ι) → Module R (M i)] [∀ (i : ι), Module.Flat R (M i)] [∀ (i : ι), Module.Finite R (M i)]
  (p : PrimeSpectrum R), Module.rankAtStalk ((i : ι) → M i) p = ∑ᶠ (i : ι), Module.rankAtStalk (M i) p

The rank of Π i, M i at a prime p is the sum of the ranks of M i at p.

theorem Module.rankAtStalk_eq_finrank_tensorProduct E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] (p : PrimeSpectrum R),
  Module.rankAtStalk M p =
    Module.finrank (Localization.AtPrime p.asIdeal) (TensorProduct R (Localization.AtPrime p.asIdeal) M)

theorem Module.rankAtStalk_eq_zero_iff_notMem_support E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] (p : PrimeSpectrum R), Module.rankAtStalk M p = 0 ↔ p ∉ Module.support R M

theorem Module.rankAtStalk_pos_iff_mem_support E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] (p : PrimeSpectrum R), 0 < Module.rankAtStalk M p ↔ p ∈ Module.support R M

theorem Module.rankAtStalk_eq_zero_iff_subsingleton E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M], Module.rankAtStalk M = 0 ↔ Subsingleton M

theorem Module.rankAtStalk_prod E1 #

∀ {R : Type uR} (M : Type uM) [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] (N : Type u_1) [inst_5 : AddCommGroup N] [inst_6 : Module R N] [Module.Flat R N]
  [Module.Finite R N], Module.rankAtStalk (M × N) = Module.rankAtStalk M + Module.rankAtStalk N

The rank of M × N at p is equal to the sum of the ranks.

theorem Module.rankAtStalk_baseChange E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] {S : Type u_1} [inst_5 : CommRing S] [inst_6 : Algebra R S] (p : PrimeSpectrum S),
  Module.rankAtStalk (TensorProduct R S M) p = Module.rankAtStalk M (PrimeSpectrum.comap (algebraMap R S) p)

theorem Module.rankAtStalk_isBaseChange E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] {S : Type u_1} {Mₛ : Type u_2} [inst_5 : CommRing S] [inst_6 : Algebra R S]
  [inst_7 : AddCommGroup Mₛ] [inst_8 : Module R Mₛ] [inst_9 : Module S Mₛ] [inst_10 : IsScalarTower R S Mₛ]
  {f : M →ₗ[R] Mₛ},
  IsBaseChange S f →
    ∀ (p : PrimeSpectrum S), Module.rankAtStalk Mₛ p = Module.rankAtStalk M (PrimeSpectrum.comap (algebraMap R S) p)

theorem Module.rankAtStalk_eq_of_le_of_finite_of_flat E1 #

∀ {R : Type uR} (M : Type uM) [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] {p q : PrimeSpectrum R}, p ≤ q → Module.rankAtStalk M p = Module.rankAtStalk M q

theorem Module.rankAtStalk_eq_of_le_of_finite_of_flat' E1 #

∀ {R : Type uR} (M : Type uM) [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] {p q : Ideal R} [hp : p.IsPrime] [hq : q.IsPrime],
  p ≤ q → Module.rankAtStalk M { asIdeal := p, isPrime := hp } = Module.rankAtStalk M { asIdeal := q, isPrime := hq }

theorem Module.rankAtStalk_tensorProduct E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] (N : Type u_1) [inst_5 : AddCommGroup N] [inst_6 : Module R N] [Module.Finite R N]
  [Module.Flat R N], Module.rankAtStalk (TensorProduct R M N) = Module.rankAtStalk M * Module.rankAtStalk N

See rankAtStalk_tensorProduct_of_isScalarTower for a hetero-basic version.

theorem Module.rankAtStalk_tensorProduct_of_isScalarTower E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] {S : Type u_1} [inst_5 : CommRing S] [inst_6 : Algebra R S] (N : Type u_2)
  [inst_7 : AddCommGroup N] [inst_8 : Module R N] [inst_9 : Module S N] [inst_10 : IsScalarTower R S N]
  [Module.Finite S N] [Module.Flat S N] (p : PrimeSpectrum S),
  Module.rankAtStalk (TensorProduct R N M) p =
    Module.rankAtStalk N p * Module.rankAtStalk M (PrimeSpectrum.comap (algebraMap R S) p)

theorem Module.rankAtStalk_eq E0 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] (p : PrimeSpectrum R),
  Module.rankAtStalk M p = Module.finrank p.asIdeal.ResidueField (p.asIdeal.Fiber M)

The rank of a module M at a prime p is equal to the dimension of κ(p) ⊗[R] M as a κ(p)-module.

theorem Ideal.finrank_fiber_eq_rankAtStalk E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] (p : Ideal R) [hp : p.IsPrime],
  Module.finrank p.ResidueField (p.Fiber M) = Module.rankAtStalk M { asIdeal := p, isPrime := hp }

Variant of Module.rankAtStalk_eq for better rewriting.

theorem Ideal.finrank_fiber_eq_finrank E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [Module.Flat R M]
  [Module.Finite R M] [IsDomain R] (p : Ideal R) [inst_6 : p.IsPrime],
  Module.finrank p.ResidueField (p.Fiber M) = Module.finrank R M