import Mathlib import Definitions.Def_Patching_SystemTypes set_option autoImplicit false namespace IsLocalRing variable (R : Type*) [CommRing R] [IsLocalRing R] def IsCohenMacaulayOfDim (d : ℕ) : Prop := ringKrullDim R = d ∧ Module.depth R R = d namespace IsCohenMacaulayOfDim variable {R} {d : ℕ} lemma ringKrullDim_eq (h : IsCohenMacaulayOfDim R d) : ringKrullDim R = d := h.1 lemma depth_eq (h : IsCohenMacaulayOfDim R d) : Module.depth R R = d := h.2 end IsCohenMacaulayOfDim end IsLocalRing