In this package, an abstract simplicial complex is represented by its Stanley–Reisner ideal in a polynomial ring. When the vertex set of $\Delta$ is a proper subset of the variables in its polynomial ring, this method creates an isomorphic abstract simplicial complex such that the generators of its polynomial ring are the vertices of $\Delta$.
i6 : Γ = simplicialComplex monomialIdeal(a, a*b, b*c, c*d)
o6 = simplicialComplex | ce bde |
o6 : SimplicialComplex
|
i7 : monomialIdeal Γ
o7 = monomialIdeal (a, b*c, c*d)
o7 : MonomialIdeal of S
|
i8 : prune Γ
o8 = simplicialComplex | ce bde |
o8 : SimplicialComplex
|
i9 : monomialIdeal prune Γ
o9 = monomialIdeal (b*c, c*d)
o9 : MonomialIdeal of QQ[b..e]
|
i10 : R = ring prune Γ;
|
i11 : (gens R, vertices Γ)
o11 = ({b, c, d, e}, {b, c, d, e})
o11 : Sequence
|
i12 : assert(ring Γ =!= ring prune Γ)
|
i13 : assert(gens R === apply(vertices Γ, x -> sub(x, R)))
|
i14 : Δ2 = simplexComplex(2, S)
o14 = simplicialComplex | abc |
o14 : SimplicialComplex
|
i15 : prune Δ2
o15 = simplicialComplex | abc |
o15 : SimplicialComplex
|
i16 : R = ring prune Δ2;
|
i17 : (gens R, vertices Δ2)
o17 = ({a, b, c}, {a, b, c})
o17 : Sequence
|
i18 : assert(ring Δ2 =!= ring prune Δ2)
|
i19 : assert(gens R === apply(vertices Δ2, x -> sub(x, R)))
|