Void simplicial complexes

asked 2014-10-23 18:25:13 +0100

Jeremy Martin gravatar image

updated 2014-10-24 18:12:28 +0100

The standard definition of a simplicial complex requires that it contain the empty face. However, sometimes one needs to distinguish between the complexes {} (the "void complex") and {{}} (the "irrelevant complex"). This comes up, e.g., when working with relative complexes or doing combinatorial commutative algebra (see, e.g., Stanley's Combinatorial Commutative Algebra, p.117, or Miller and Sturmfels, p.4). The SimplicialComplex class doesn't allow the void complex.

For example, if F is a facet of X then link_X(F) is the irrelevant complex, but if G is a nonface of X then link_X(G) is the void complex. However, the link method does not distinguish between the two, returning the irrelevant complex in both cases:

sage: X=SimplicialComplex([[1]])
sage: F=Simplex([1]); X.link(F)
Simplicial complex with vertex set () and facets {()}
sage: G=Simplex([2]); X.link(G)
Simplicial complex with vertex set () and facets {()}

This seems like a triviality but it would be helpful to have this distinction. What do others think?

edit retag flag offensive close merge delete

Comments

Note: to properly display lines of code, either indent them by 4 spaces, or select the code portion and click the code button (the icon with "010 101"). (Try editing your question and doing that.)

slelievre gravatar imageslelievre ( 2014-10-24 10:57:36 +0100 )edit

Done. Thanks; I'm new here and didn't know that.

Jeremy Martin gravatar imageJeremy Martin ( 2014-10-24 18:12:40 +0100 )edit