/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesForMathlib.RingTheory.SystemOfParameters

Small and big Cohen-Macaulay modules

Let R be a local ring. A small Cohen-Macaulay module, also called a maximal Cohen-Macaulay module, is a finitely generated nonzero R-module M such that some system of parameters of R is a regular sequence on M. A balanced big Cohen-Macaulay module is an R-module W, not necessarily finitely generated, with m • W ≠ W and such that every system of parameters of R is a regular sequence on W. Over a Noetherian local ring the two notions agree for finitely generated modules.

Both definitions are only intended for Noetherian local rings, where systems of parameters exist.

Main declarations

    Module.IsSmallCohenMacaulay R M: M is a small Cohen-Macaulay R-module.

    Module.IsBalancedBigCohenMacaulay R W: W is a balanced big Cohen-Macaulay R-module.

@[expose] public sectionopen IsLocalRingnamespace Modulevariable (R : Type*) [CommRing R] [IsLocalRing R]variable (M : Type*) [AddCommGroup M] [Module R M]

A small Cohen-Macaulay module over a local ring R is a finitely generated R-module M, necessarily nonzero, such that some system of parameters of R is a regular sequence on M. Such a module is also called a maximal Cohen-Macaulay module. Nonzeroness is automatic, see Module.IsSmallCohenMacaulay.nontrivial.

structure IsSmallCohenMacaulay : Prop where

A small Cohen-Macaulay module is finitely generated.

finite : Module.Finite R M

Some system of parameters of R is a regular sequence on M.

exists_isRegular : ∃ rs, IsSystemOfParameters R rs ∧ RingTheory.Sequence.IsRegular M rs

A balanced big Cohen-Macaulay module over a local ring R is an R-module M, not necessarily finitely generated, with m • M ≠ M and such that every system of parameters of R is a regular sequence on M.

Part of the literature calls this simply a big Cohen-Macaulay module, and reserves the weaker condition that some system of parameters is a regular sequence for that name. Over a Noetherian local ring the field smul_top_ne_top follows from isRegular, see Module.smul_top_ne_top_of_isRegular.

structure IsBalancedBigCohenMacaulay : Prop where

The maximal ideal does not act by the identity on the module.

smul_top_ne_top : maximalIdeal R • (⊤ : Submodule R M) ≠ ⊤

Every system of parameters of R is a regular sequence on M.

isRegular : ∀ rs, IsSystemOfParameters R rs → RingTheory.Sequence.IsRegular M rsvariable {R M}

A small Cohen-Macaulay module is nonzero: a regular sequence on M is one for which M is not killed by the ideal it generates.

R:Type u_1inst✝³:CommRing Rinst✝²:IsLocalRing RM:Type u_2inst✝¹:AddCommGroup Minst✝:Module R Mh:IsSmallCohenMacaulay R Mrs:List Rhrs:RingTheory.Sequence.IsRegular M rshM:Subsingleton M⊢ False All goals completed! 🐙

A balanced big Cohen-Macaulay module is nonzero: on the zero module the maximal ideal acts by the identity.

R:Type u_1inst✝³:CommRing Rinst✝²:IsLocalRing RM:Type u_2inst✝¹:AddCommGroup Minst✝:Module R Mh:IsBalancedBigCohenMacaulay R MhM:Subsingleton M⊢ False All goals completed! 🐙

Over a Noetherian local ring, m • M ≠ M follows from the regularity of a single system of parameters, because the ideal that a system of parameters generates contains a power of the maximal ideal.

R:Type u_1inst✝⁴:CommRing Rinst✝³:IsLocalRing RM:Type u_2inst✝²:AddCommGroup Minst✝¹:Module R Minst✝:IsNoetherianRing Rrs:List Rhrs:IsSystemOfParameters R rsh:RingTheory.Sequence.IsRegular M rshm:maximalIdeal R • ⊤ = ⊤n:ℕhn:maximalIdeal R ^ n ≤ Ideal.ofList rskey:∀ (k : ℕ), maximalIdeal R ^ k • ⊤ = ⊤⊢ False All goals completed! 🐙

Over a field K, the module K is a small Cohen-Macaulay module.

theorem isSmallCohenMacaulay_self (K : Type*) [Field K] : IsSmallCohenMacaulay K K where finite := inferInstance exists_isRegular := ⟨[], isSystemOfParameters_nil K, RingTheory.Sequence.IsRegular.nil K K⟩end Module