codim M -- calculate the codimension of the support of a module M.
codim I -- calculate the codimension of the quotient ring R/I.
If M is an R-module, then the number return by this
routine is dim R - dim M. This does not agree with the usual
definition of codimension unless Spec R is irreducible.