This package defines the LocalRing class for localizations of polynomial rings and extends most basic commutative algebra computations to such local rings. Moreover, the functions hilbertSamuelFunction and length(Module) for Artinian modules over a local ring are implemented in this package.
For information about the classical way of working with local rings at maximal ideals see replacements for functions from version 1.0.
The following is an example of defining the rational quartic curve in $\PP^3$ localized at a maximal ideal and a prime ideal using two different methods.






An ideal, module, or chain complex may either be localized using promote or using the tensor product.



The computation above shows that the rational quartic curve is not locally CohenMacaulay at the origin. Therefore the curve is not CohenMacaulay
However, the curve is CohenMacaulay at the prime ideal $(a, b, c)$ (and in fact any other prime ideal).


The elementary definitions and operations are declared in localring.m2. Engine routines for core computations are implemented in e/localring.hpp.
The following commutative algebra computations are implemented in this package: syz, resolution, mingens, minimalPresentation, trim, length(Module), isSubset, inducedMap, quotient(Matrix,Matrix), remainder(Matrix,Matrix), quotient(Module,Module), saturate, annihilator. Most of these routines rely on the functions liftUp and pruneComplex and take advantage of Nakayama's lemma and flatness of local rings.
In addition, methods such as map, modulo, subquotient, kernel, cokernel, image, homology, Hom, Ext, Tor, etc. work over local rings automatically.
Currently limited to localization at prime ideals rather than arbitrary multiplicatively closed sets. Quotients of local rings are not implemented yet. Moreover, certain functions (such as symbol%, radical, minimalPrimes, leadingCoefficient) are ambiguous or not yet defined.
This documentation describes version 2.1 of LocalRings.
The source code from which this documentation is derived is in the file LocalRings.m2. The auxiliary files accompanying it are in the directory LocalRings/.
The object LocalRings is a package.