Macaulay2 » Documentation
Packages » DGAlgebras » Building DG algebras from existing DG algebras » subDGAlgebra
next | previous | forward | backward | up | index | toc

subDGAlgebra -- The sub-DG algebra generated by a chosen subset of DG generators

Description

The subset keepIdx must be d-closed: if the differential of a kept generator uses a dropped generator, subDGAlgebra raises an error rather than silently returning a non-DG object. This protects downstream code from accidentally producing inconsistent structures.

i1 : R = QQ[x, y] / ideal(x^2, y^2)

o1 = R

o1 : QuotientRing
i2 : A = koszulComplexDGA R

o2 = {Ring => R                          }
      Underlying algebra => R[T   ..T   ]
                               1,1   1,2
      Differential => {x, y}

o2 : DGAlgebra
i3 : B = subDGAlgebra(A, {0})

o3 = {Ring => R                    }
      Underlying algebra => R[T   ]
                               1,1
      Differential => {x}

o3 : DGAlgebra
i4 : numgens B.natural

o4 = 1

Dropping a generator whose image is referenced in a kept generator's differential is caught:

i5 : R = QQ[x] / ideal(x^2)

o5 = R

o5 : QuotientRing
i6 : A = koszulComplexDGA R

o6 = {Ring => R                    }
      Underlying algebra => R[T   ]
                               1,1
      Differential => {x}

o6 : DGAlgebra
i7 : A' = adjoinVariables(A, {x * (gens A.natural)#0})

o7 = {Ring => R                          }
      Underlying algebra => R[T   , T   ]
                               1,1   2,1
      Differential => {x, x*T   }
                             1,1

o7 : DGAlgebra
i8 : try subDGAlgebra(A', {1}) else "error: kept differential uses dropped generator"

o8 = error: kept differential uses dropped generator

Caveat

Duplicate or out-of-range entries in keepIdx raise an error. keepIdx is internally sorted, so the generator order of the output depends only on which indices appear.

See also

Ways to use subDGAlgebra:

  • subDGAlgebra(DGAlgebra,List)

For the programmer

The object subDGAlgebra is a method function with options.


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/DGAlgebras/doc.m2:6585:0.