Local unmixedness: if has a regular sequence in of length and is weakly regular, every associated prime of has height
ProvedDiazModulus.height_le_length_of_mem_associatedPrimesLet be a commutative Noetherian local ring with maximal ideal , and assume that has an -regular sequence of elements of with (so is Cohen–Macaulay). Let be a weakly -regular sequence of elements of . Then every associated prime of the -module has height at most . A list of elements of is weakly -regular when each is a nonzerodivisor on (Mathlib's IsWeaklyRegular; the last quotient may be zero), and -regular (IsRegular) when moreover . For a list , is the ideal generated by its entries and its length. Krull dimensions take values in and heights of prime ideals in .
Proof. is nonzero, since it has an associated prime. DiazModulus.exists_isRegular_quotient_ofList, with , gives an -regular sequence in with , and DiazModulus.length_le_ringKrullDim_quotient_of_mem_associatedPrimes gives . In any commutative ring, : in the prime spectrum the height of is its order height, its coheight, and the Krull dimension is the supremum of height plus coheight. Since , all these numbers are finite, and .
Novelty. Classical; routine formalisation.
import Mathlib
namespace DiazModulus
theorem height_le_length_of_mem_associatedPrimes {A : Type*} [CommRing A] [IsNoetherianRing A] [IsLocalRing A]
(zs : List A) (hz : RingTheory.Sequence.IsRegular A zs) (hzm : ∀ z ∈ zs, z ∈ IsLocalRing.maximalIdeal A)
(hdim : ringKrullDim A ≤ zs.length)
(ps : List A) (hps : RingTheory.Sequence.IsWeaklyRegular A ps) (hpm : ∀ p ∈ ps, p ∈ IsLocalRing.maximalIdeal A)
(𝔭 : Ideal A) (h𝔭 : 𝔭 ∈ associatedPrimes A (A ⧸ Ideal.ofList ps)) :
𝔭.height ≤ ps.length := by
sorry
end DiazModulus