torAlgData R or torAlgData I
Computes invariants of the local ring obtained by localizing R at the irrelevant maximal ideal and, provided that it has codepth at most 3, classifies it as belonging to one of the (parametrized) classes B, C(c), G(r), H(p,q), S, or T. Rings of higher codepth are classified as C(c) (complete intersection), Gorenstein, Golod, or no class. Gorenstein rings of codepth 4 are further classified as belonging to one of the (parametrized) classes C(4), GS, GT, or GH(p). It is also possible to call the function on the defining ideal of R; see torAlgData(Ideal).
Returns a hash table with the following data of the local ring:
"c": codepth
"e": embedding dimension
"h": CohenMacaulay defect
"m": minimal number of generators of defining ideal
"n": type
"Class": class ('B', 'C', 'G', 'GH', 'GS', 'GT', 'H', 'S', 'T', 'Golod', 'Gorenstein' `zero ring', or 'no class')
"p": classification parameter
"q": classification parameter
"r": classification parameter
"isCI": boolean
"isGorenstein": boolean
"isGolod": boolean
"PoincareSeries": Poincar\'e series in closed from (rational function)
"BassSeries": Bass series in closed from (rational function)









To extract data from the hash table returned by the function one may use torAlgDataList and torAlgDataPrint.
If the embedding dimension of R is large, then the response time may be longer, in particular if R is a quotient of a polynomial algebra over a small field. The reason is that the function attempts to reduce R modulo a generic regular sequence of generators of the irrelevant maximal ideal. The total number of attempts made can be controlled with setAttemptsAtGenericReduction.
If R is a quotient of a polynomial algebra by a homogeneous ideal, then it is graded and the relevant invariants of the local ring obtained by localizing R at the irrelevant maximal ideal can be determined directly from R. If R is a quotient of a polynomial algebra by a nonhomogeneous ideal, then the function uses the package LocalRings to compute some of the invariants.
The object torAlgData is a method function.