/-
Copyright (c) 2025 Nailin Guan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nailin Guan
-/
module
public import Mathlib.Algebra.Module.FinitePresentation
public import Mathlib.Algebra.Module.Torsion.Basic
public import Mathlib.RingTheory.Nakayama
public import Mathlib.RingTheory.QuotSMulTop
import Mathlib.Algebra.GroupWithZero.Action.Regular
import Mathlib.RingTheory.Ideal.Finsupp
/-!
# Freeness of `QuotSMulTop` by a regular element
Let `M` be a finitely presented module over a commutative ring `R`. If `x` is in the
Jacobson radical of `R` and `x` is `M`-regular, then `M/xM` is free over `R/(x)` if and only if
`M` is free over `R`.
-/
public section
variable (R : Type*) [CommRing R] (M : Type*) [AddCommGroup M] [Module R M]
instance [Module.Free R M] (x : R) : Module.Free (R ⧸ Ideal.span {x}) (QuotSMulTop x M) :=
Module.Free.of_equiv ((QuotSMulTop.equivQuotTensor x M).extendScalarsOfSurjective
Ideal.Quotient.mk_surjective).symm
open Pointwise in
lemma Module.free_quotSMulTop_iff_free [Module.FinitePresentation R M] {x : R}
(mem : x ∈ Ring.jacobson R) (reg : IsSMulRegular M x) :
Module.Free (R ⧸ Ideal.span {x}) (QuotSMulTop x M) ↔ Module.Free R M := by
refine ⟨fun free ↦ ?_, fun free ↦ inferInstance⟩
have := Module.Finite.of_restrictScalars_finite R (R ⧸ Ideal.span {x}) (QuotSMulTop x M)
let I := Module.Free.ChooseBasisIndex (R ⧸ Ideal.span {x}) (QuotSMulTop x M)
let b := Module.Free.chooseBasis (R ⧸ Ideal.span {x}) (QuotSMulTop x M)
let b' : QuotSMulTop x M ≃ₗ[R] I →₀ R ⧸ Ideal.span {x} := b.1.restrictScalars R
let f := b'.symm.toLinearMap.comp (Finsupp.mapRange.linearMap (Submodule.mkQ (Ideal.span {x})))
rcases Module.projective_lifting_property (Submodule.mkQ (x • (⊤ : Submodule R M))) f
(Submodule.mkQ_surjective _) with ⟨g, hg⟩
have surjf : Function.Surjective f := by
simpa [f] using! Finsupp.mapRange_surjective _ rfl (Submodule.mkQ_surjective (Ideal.span {x}))
have lejac : Ideal.span {x} ≤ Ring.jacobson R := by simpa
have surjg : Function.Surjective g := by
apply g.surjective_of_surjective_comp_mkQ (Ideal.span {x}) lejac
rwa [Submodule.ideal_span_singleton_smul x ⊤, hg]
have kerf : LinearMap.ker f = x • (⊤ : Submodule R (I →₀ R)) := by
simp only [LinearEquiv.ker_comp, f]
rw [Finsupp.ker_mapRange, Submodule.ker_mkQ, ← (Ideal.span {x}).mul_top, ← smul_eq_mul,
Finsupp.submodule_smul]
simp [Submodule.ideal_span_singleton_smul]
have injg : Function.Injective g := by
rw [← LinearMap.ker_eq_bot]
have fg : (LinearMap.ker g).FG := Module.FinitePresentation.fg_ker g surjg
apply Submodule.eq_bot_of_le_smul_of_le_jacobson (Ideal.span {x}) _ fg _ lejac
rw [Submodule.ideal_span_singleton_smul]
intro y hy
have : y ∈ x • (⊤ : Submodule R (I →₀ R)) := by simp [← kerf, ← hg, LinearMap.mem_ker.mp hy]
rcases (Submodule.mem_smul_pointwise_iff_exists _ _ _).mp this with ⟨z, _, hz⟩
simp only [← hz, LinearMap.mem_ker, map_smul] at hy
have := LinearMap.mem_ker.mpr (IsSMulRegular.right_eq_zero_of_smul reg hy)
simpa [hz] using Submodule.smul_mem_pointwise_smul z x _ this
exact Module.Free.of_equiv (LinearEquiv.ofBijective g ⟨injg, surjg⟩)
¤ Dauer der Verarbeitung: 0.6 Sekunden
¤
*© Formatika GbR, Deutschland