GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
1[1X4 [33X[0;0YLocalize Rings[133X[101X23[33X[0;0YThe package [5XLocalizeRingForHomalg[105X defines the classes of local(ized) rings,4local ring elements and local matrices. These three objects can be used as5data structures defined in [5XMatricesForHomalg[105X on which the [5Xhomalg[105X project can6rely to do homological computations over localized rings.[133X78[33X[0;0YA [5Xhomalg[105X local ring element contains two [5Xhomalg[105X ring elements, a numerator9(--> [2XNumerator[102X ([14X4.3-4[114X)) and a denominator (--> [2XDenominator[102X ([14X4.3-6[114X)). A10[5Xhomalg[105X local matrix contains a global [5Xhomalg[105X matrix as a numerator (-->11[2XNumerator[102X ([14X4.3-5[114X)) and a ring element as a denominator (--> [2XDenominator[102X12([14X4.3-7[114X)). New constructors for ring elements and matrices are13[2XHomalgLocalRingElement[102X ([14X4.3-17[114X) and [2XHomalgLocalMatrix[102X ([14X4.3-18[114X) in addition14to the standard contructors introduced in other packages of the [5Xhomalg[105X15project.[133X1617[33X[0;0YThe local rings most prominently can be used with methods known from general18[5Xhomalg[105X rings. The methods for doing the computations are presented in the19appendix ([14XA[114X), since they are not for external use. The new attributes and20operations are documented here.[133X2122[33X[0;0YSince the objects inplemented here are representations from objects23elsewhere in the [5Xhomalg[105X project (i.e. [5XMatricesForHomalg[105X), we want to stress24that there are many other operations in [5Xhomalg[105X, which can be used in25connection with the ones presented here. A few of them can be found in the26examples and the appendix of this documentation.[133X272829[1X4.1 [33X[0;0YCategory and Representations[133X[101X3031[1X4.1-1 IsHomalgLocalRingRep[101X3233[29X[2XIsHomalgLocalRingRep[102X( [3XR[103X ) [32X Representation34[6XReturns:[106X [33X[0;10Ytrue or false[133X3536[33X[0;0YThe representation of [5Xhomalg[105X local rings.[133X3738[33X[0;0Y(It is a subrepresentation of the [5XGAP[105X representation[133X39[33X[0;0Y[10XIsHomalgRingOrFinitelyPresentedModuleRep[110X.)[133X4041[4X[32X Code [32X[104X42[4XDeclareRepresentation( "IsHomalgLocalRingRep",[104X43[4X IsHomalgRing[104X44[4X and IsHomalgRingOrFinitelyPresentedModuleRep,[104X45[4X [ "ring" ] );[104X46[4X[32X[104X4748[1X4.1-2 IsHomalgLocalRingElementRep[101X4950[29X[2XIsHomalgLocalRingElementRep[102X( [3Xr[103X ) [32X Representation51[6XReturns:[106X [33X[0;10Ytrue or false[133X5253[33X[0;0YThe representation of elements of [5Xhomalg[105X local rings.[133X5455[33X[0;0Y(It is a representation of the [5XGAP[105X category [10XIsHomalgRingElement[110X.)[133X5657[4X[32X Code [32X[104X58[4XDeclareRepresentation( "IsHomalgLocalRingElementRep",[104X59[4X IsHomalgRingElement,[104X60[4X [ "pointer" ] );[104X61[4X[32X[104X6263[1X4.1-3 IsHomalgLocalMatrixRep[101X6465[29X[2XIsHomalgLocalMatrixRep[102X( [3XA[103X ) [32X Representation66[6XReturns:[106X [33X[0;10Ytrue or false[133X6768[33X[0;0YThe representation of [5Xhomalg[105X matrices with entries in a [5Xhomalg[105X local ring.[133X6970[33X[0;0Y(It is a representation of the [5XGAP[105X category [10XIsHomalgMatrix[110X.)[133X7172[4X[32X Code [32X[104X73[4XDeclareRepresentation( "IsHomalgLocalMatrixRep",[104X74[4X IsHomalgMatrix,[104X75[4X [ ] );[104X76[4X[32X[104X777879[1X4.2 [33X[0;0YRings: Attributes[133X[101X8081[1X4.2-1 GeneratorsOfMaximalLeftIdeal[101X8283[29X[2XGeneratorsOfMaximalLeftIdeal[102X( [3XR[103X ) [32X attribute84[6XReturns:[106X [33X[0;10Ya [5Xhomalg[105X matrix[133X8586[33X[0;0YReturns the generators of the maximal ideal, at which R was created. The87generators are given as a column over the associated global ring.[133X8889[1X4.2-2 GeneratorsOfMaximalRightIdeal[101X9091[29X[2XGeneratorsOfMaximalRightIdeal[102X( [3XR[103X ) [32X attribute92[6XReturns:[106X [33X[0;10Ya [5Xhomalg[105X matrix[133X9394[33X[0;0YReturns the generators of the maximal ideal, at which R was created. The95generators are given as a row over the associated global ring.[133X969798[1X4.3 [33X[0;0YOperations and Functions[133X[101X99100[1X4.3-1 AssociatedGlobalRing[101X101102[29X[2XAssociatedGlobalRing[102X( [3XR[103X ) [32X operation103[6XReturns:[106X [33X[0;10Ya (global) [5Xhomalg[105X ring[133X104105[33X[0;0YThe global [5Xhomalg[105X ring, from which the local ring [3XR[103X was created.[133X106107[1X4.3-2 AssociatedGlobalRing[101X108109[29X[2XAssociatedGlobalRing[102X( [3Xr[103X ) [32X operation110[6XReturns:[106X [33X[0;10Ya (global) [5Xhomalg[105X ring[133X111112[33X[0;0YThe global [5Xhomalg[105X ring, from which the local ring element [3Xr[103X was created.[133X113114[1X4.3-3 AssociatedGlobalRing[101X115116[29X[2XAssociatedGlobalRing[102X( [3Xmat[103X ) [32X operation117[6XReturns:[106X [33X[0;10Ya (global) [5Xhomalg[105X ring[133X118119[33X[0;0YThe global [5Xhomalg[105X ring, from which the local matrix [3Xmat[103X was created.[133X120121[1X4.3-4 Numerator[101X122123[29X[2XNumerator[102X( [3Xr[103X ) [32X operation124[6XReturns:[106X [33X[0;10Ya (global) [5Xhomalg[105X ring element[133X125126[33X[0;0YThe numerator from a local ring element [3Xr[103X, which is a [5Xhomalg[105X ring element127from the computation ring.[133X128129[1X4.3-5 Numerator[101X130131[29X[2XNumerator[102X( [3Xmat[103X ) [32X operation132[6XReturns:[106X [33X[0;10Ya (global) [5Xhomalg[105X matrix[133X133134[33X[0;0YThe numerator from a local matrix [3Xmat[103X, which is a [5Xhomalg[105X matrix from the135computation ring.[133X136137[1X4.3-6 Denominator[101X138139[29X[2XDenominator[102X( [3Xr[103X ) [32X operation140[6XReturns:[106X [33X[0;10Ya (global) [5Xhomalg[105X ring element[133X141142[33X[0;0YThe denominator from a local ring element [3Xr[103X, which is a [5Xhomalg[105X ring element143from the computation ring.[133X144145[1X4.3-7 Denominator[101X146147[29X[2XDenominator[102X( [3Xmat[103X ) [32X operation148[6XReturns:[106X [33X[0;10Ya (global) [5Xhomalg[105X ring element[133X149150[33X[0;0YThe denominator from a local matrix [3Xmat[103X, which is a [5Xhomalg[105X matrix from the151computation ring.[133X152153[1X4.3-8 Name[101X154155[29X[2XName[102X( [3Xr[103X ) [32X operation156[6XReturns:[106X [33X[0;10Ya string[133X157158[33X[0;0YThe name of the local ring element [3Xr[103X.[133X159160[1X4.3-9 SetMatElm[101X161162[29X[2XSetMatElm[102X( [3Xmat[103X, [3Xi[103X, [3Xj[103X, [3Xr[103X, [3XR[103X ) [32X operation163164[33X[0;0YChanges the entry ([3Xi,j[103X) of the local matrix [3Xmat[103X to the value [3Xr[103X. Here [3XR[103X is165the (local) [5Xhomalg[105X ring involved in these computations.[133X166167[1X4.3-10 AddToMatElm[101X168169[29X[2XAddToMatElm[102X( [3Xmat[103X, [3Xi[103X, [3Xj[103X, [3Xr[103X, [3XR[103X ) [32X operation170171[33X[0;0YChanges the entry ([3Xi,j[103X) of the local matrix [3Xmat[103X by adding the value [3Xr[103X to it.172Here [3XR[103X is the (local) [5Xhomalg[105X ring involved in these computations.[133X173174[1X4.3-11 MatElmAsString[101X175176[29X[2XMatElmAsString[102X( [3Xmat[103X, [3Xi[103X, [3Xj[103X, [3XR[103X ) [32X operation177[6XReturns:[106X [33X[0;10Ya string[133X178179[33X[0;0YReturns the entry ([3Xi,j[103X) of the local matrix [3Xmat[103X as a string. Here [3XR[103X is the180(local) [5Xhomalg[105X ring involved in these computations.[133X181182[1X4.3-12 MatElm[101X183184[29X[2XMatElm[102X( [3Xmat[103X, [3Xi[103X, [3Xj[103X, [3XR[103X ) [32X operation185[6XReturns:[106X [33X[0;10Ya local ring element[133X186187[33X[0;0YReturns the entry ([3Xi,j[103X) of the local matrix [3Xmat[103X. Here [3XR[103X is the (local)188[5Xhomalg[105X ring involved in these computations.[133X189190[1X4.3-13 Cancel[101X191192[29X[2XCancel[102X( [3Xa[103X, [3Xb[103X ) [32X operation193[6XReturns:[106X [33X[0;10Ytwo ring elements[133X194195[33X[0;0YFor [22X[3Xa[103X=a'*c[122X and [22X[3Xb[103X=b'*c[122X return [22Xa'[122X and [22Xb'[122X. The exact form of [22Xc[122X depends on196whether a procedure for gcd computation is included in the ring package.[133X197198[1X4.3-14 LocalizeAt[101X199200[29X[2XLocalizeAt[102X( [3XR[103X, [3Xl[103X ) [32X operation201[6XReturns:[106X [33X[0;10Ya local ring[133X202203[33X[0;0YIf [3Xl[103X is a list of elements of the global ring [3XR[103X generating a maximal ideal,204the method creates the corresponding localization of [3XR[103X at the complement of205the maximal ideal.[133X206207[1X4.3-15 LocalizeAtZero[101X208209[29X[2XLocalizeAtZero[102X( [3XR[103X ) [32X operation210[6XReturns:[106X [33X[0;10Ya local ring[133X211212[33X[0;0YThis method creates the corresponding localization of [3XR[103X at the complement of213the maximal ideal generated by the indeterminates ("at zero").[133X214215[1X4.3-16 LocalizePolynomialRingAtZeroWithMora[101X216217[29X[2XLocalizePolynomialRingAtZeroWithMora[102X( [3XR[103X ) [32X operation218[6XReturns:[106X [33X[0;10Ya local ring[133X219220[33X[0;0YThis method localizes the ring [3XR[103X at zero and this localized ring is221returned. The ring table uses Mora's algorithm as implemented [5XSingular[105X for222low level computations.[133X223224[1X4.3-17 HomalgLocalRingElement[101X225226[29X[2XHomalgLocalRingElement[102X( [3Xnumer[103X, [3Xdenom[103X, [3XR[103X ) [32X function227[29X[2XHomalgLocalRingElement[102X( [3Xnumer[103X, [3XR[103X ) [32X function228[6XReturns:[106X [33X[0;10Ya local ring element[133X229230[33X[0;0YCreates the local ring element [22X[3Xnumer[103X/[3Xdenom[103X[122X or in the second case [22X[3Xnumer[103X/1[122X for231the local ring [3XR[103X. Both [3Xnumer[103X and [3Xdenom[103X may either be a string describing a232valid global ring element or from the global ring or computation ring.[133X233234[1X4.3-18 HomalgLocalMatrix[101X235236[29X[2XHomalgLocalMatrix[102X( [3Xnumer[103X, [3Xdenom[103X, [3XR[103X ) [32X function237[29X[2XHomalgLocalMatrix[102X( [3Xnumer[103X, [3XR[103X ) [32X function238[6XReturns:[106X [33X[0;10Ya local matrix[133X239240[33X[0;0YCreates the local matrix [22X[3Xnumer[103X/[3Xdenom[103X[122X or in the second case [22X[3Xnumer[103X/1[122X for the241local ring [3XR[103X. Both [3Xnumer[103X and [3Xdenom[103X may either be from the global ring or the242computation ring.[133X243244245246