Synopsis:
A square free monomial ideal is an ideal generated by products of variables; in other words, a radical monomial ideal.
Square free monomial ideals correspond both to simplicial complexes and to unions of coordinate subspaces.
i1 : QQ[x,y,z]; |
i2 : J = monomialIdeal(x^3*y^5*z, y^5*z^4, y^3*z^5, |
i3 : isSquareFree J |
i4 : isSquareFree radical J |
Implemented by Greg Smith.
Code:
-- ../../../Macaulay2/m2/monideal.m2:311 isSquareFree MonomialIdeal := (I) -> all(first entries gens I, m -> all(first exponents m, i -> i<2))