/-
Copyright (c) 2024 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang, Riccardo Brasca
-/
module
public import Mathlib.LinearAlgebra.Dimension.OrzechProperty
public import Mathlib.LinearAlgebra.FreeModule.PID
public import Mathlib.LinearAlgebra.FreeModule.StrongRankCondition
public import Mathlib.RingTheory.Artinian.Ring
public import Mathlib.RingTheory.Ideal.Quotient.Index
public import Mathlib.RingTheory.LocalRing.ResidueField.Defs
import Mathlib.RingTheory.LocalRing.RingHom.Basic
import Mathlib.RingTheory.Nakayama
/-!
# Quotients of local rings
We gather results about the quotients of local rings.
-/
@[expose] public section
open Submodule Module
variable {R S : Type*} [CommRing R] [CommRing S] [Algebra R S] [IsLocalRing R] [Module.Finite R S]
namespace IsLocalRing
local notation "p" => maximalIdeal R
local notation "pS" => Ideal.map (algebraMap R S) p
theorem quotient_span_eq_top_iff_span_eq_top (s : Set S) :
span (R ⧸ p) ((Ideal.Quotient.mk (I := pS)) '' s) = ⊤ ↔ span R s = ⊤ := by
have H : (span (R ⧸ p) ((Ideal.Quotient.mk (I := pS)) '' s)).restrictScalars R =
(span R s).map (IsScalarTower.toAlgHom R S (S ⧸ pS) : S →ₗ[R] S ⧸ pS) := by
rw [map_span, ← restrictScalars_span R (R ⧸ p) Ideal.Quotient.mk_surjective,
LinearMap.coe_ofClass, IsScalarTower.coe_toAlgHom', Ideal.Quotient.algebraMap_eq]
constructor
· intro hs
rw [← top_le_iff]
apply le_of_le_smul_of_le_jacobson
· exact Module.finite_def.mp ‹_›
· exact (ringJacobson_eq_maximalIdeal R).ge
· rw [Ideal.smul_top_eq_map]
rintro x -
have : LinearMap.ker (IsScalarTower.toAlgHom R S (S ⧸ pS) : S →ₗ[R] S ⧸ pS) =
Submodule.restrictScalars R pS := by
ext; simp [Ideal.Quotient.eq_zero_iff_mem]
rw [← this, ← comap_map_eq, mem_comap, ← H, hs, restrictScalars_top]
exact mem_top
· intro hs
rwa [hs, Submodule.map_top, LinearMap.range_eq_top.mpr,
restrictScalars_eq_top_iff] at H
rw [LinearMap.coe_ofClass, IsScalarTower.coe_toAlgHom', Ideal.Quotient.algebraMap_eq]
exact Ideal.Quotient.mk_surjective
attribute [local instance] Ideal.Quotient.field
variable [Module.Free R S] {ι : Type*}
theorem finrank_quotient_map :
finrank (R ⧸ p) (S ⧸ pS) = finrank R S := by
have : Module.Finite (R ⧸ p) (S ⧸ pS) := Module.Finite.of_restrictScalars_finite R _ _
apply le_antisymm
· let b := Module.Free.chooseBasis R S
conv_rhs => rw [finrank_eq_card_chooseBasisIndex]
apply finrank_le_of_span_eq_top
rw [Set.range_comp]
apply (quotient_span_eq_top_iff_span_eq_top _).mpr b.span_eq
· let b := Module.Free.chooseBasis (R ⧸ p) (S ⧸ pS)
choose b' hb' using fun i ↦ Ideal.Quotient.mk_surjective (b i)
conv_rhs => rw [finrank_eq_card_chooseBasisIndex]
refine finrank_le_of_span_eq_top (v := b') ?_
apply (quotient_span_eq_top_iff_span_eq_top _).mp
rw [← Set.range_comp, show Ideal.Quotient.mk pS ∘ b' = ⇑b from funext hb']
exact b.span_eq
/-- Given a basis of `S`, the induced basis of `S / Ideal.map (algebraMap R S) p`. -/
noncomputable
def basisQuotient [Fintype ι] (b : Basis ι R S) : Basis ι (R ⧸ p) (S ⧸ pS) :=
basisOfTopLeSpanOfCardEqFinrank (Ideal.Quotient.mk pS ∘ b)
(by
rw [Set.range_comp]
exact ((quotient_span_eq_top_iff_span_eq_top _).mpr b.span_eq).ge)
(by rw [finrank_quotient_map, finrank_eq_card_basis b])
lemma basisQuotient_apply [Fintype ι] (b : Basis ι R S) (i) :
(basisQuotient b) i = Ideal.Quotient.mk pS (b i) := by
delta basisQuotient
rw [coe_basisOfTopLeSpanOfCardEqFinrank, Function.comp_apply]
lemma basisQuotient_repr {ι} [Fintype ι] (b : Basis ι R S) (x) (i) :
(basisQuotient b).repr (Ideal.Quotient.mk pS x) i =
Ideal.Quotient.mk p (b.repr x i) := by
refine congr_fun (g := Ideal.Quotient.mk p ∘ b.repr x) ?_ i
apply (Finsupp.linearEquivFunOnFinite (R ⧸ p) _ _).symm.injective
apply (basisQuotient b).repr.symm.injective
simp only [Finsupp.linearEquivFunOnFinite_symm_coe, LinearEquiv.symm_apply_apply,
Basis.repr_symm_apply]
rw [Finsupp.linearCombination_eq_fintype_linearCombination_apply (R ⧸ p),
Fintype.linearCombination_apply]
simp only [Function.comp_apply, basisQuotient_apply,
Ideal.Quotient.mk_smul_mk_quotient_map_quotient, ← Algebra.smul_def]
rw [← map_sum, Basis.sum_repr b x]
lemma exists_maximalIdeal_pow_le_of_isArtinianRing_quotient
(I : Ideal R) [IsArtinianRing (R ⧸ I)] : ∃ n, maximalIdeal R ^ n ≤ I := by
by_cases hI : I = ⊤
· simp [hI]
have : Nontrivial (R ⧸ I) := Ideal.Quotient.nontrivial_iff.mpr hI
have := IsLocalRing.of_surjective' (Ideal.Quotient.mk I) Ideal.Quotient.mk_surjective
have := IsLocalHom.of_surjective (Ideal.Quotient.mk I) Ideal.Quotient.mk_surjective
obtain ⟨n, hn⟩ := IsArtinianRing.isNilpotent_jacobson (R ⧸ I)
have : (maximalIdeal R).map (Ideal.Quotient.mk I) = maximalIdeal (R ⧸ I) := by
ext x
obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective x
simp [sup_eq_left.mpr (le_maximalIdeal hI)]
rw [ringJacobson_eq_maximalIdeal, ← this, ← Ideal.map_pow, Ideal.zero_eq_bot,
Ideal.map_eq_bot_iff_le_ker, Ideal.mk_ker] at hn
exact ⟨n, hn⟩
instance [IsNoetherianRing R] [Finite (ResidueField R)] (n : ℕ) :
Finite (R ⧸ maximalIdeal R ^ n) :=
have : Finite (R ⧸ maximalIdeal R) := ‹Finite (ResidueField R)›
Ideal.finite_quotient_pow (IsNoetherian.noetherian _) n
lemma finite_quotient_iff [IsNoetherianRing R] [Finite (ResidueField R)] {I : Ideal R} :
Finite (R ⧸ I) ↔ ∃ n, (maximalIdeal R) ^ n ≤ I :=
⟨fun _ ↦ exists_maximalIdeal_pow_le_of_isArtinianRing_quotient I, fun ⟨_, hn⟩ ↦
.of_surjective _ (Ideal.Quotient.factor_surjective hn)⟩
end IsLocalRing
¤ Dauer der Verarbeitung: 0.19 Sekunden
¤
*© Formatika GbR, Deutschland