Macaulay2 / Macaulay2/M2

RandomIdeals: improving class of output

Open
#868 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

package issue
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

There are three methods for creating a monomial ideal using the package RandomIdeals, but only one returns an ideal with type MonomialIdeal.

i1 : loadPackage "RandomIdeals";

i2 : R = kk[a];

i3 : I = randomMonomialIdeal ({2},R);
***** there are only 1 monomials of degree 2
o3 : Ideal of R

i4 : J = randomSquareFreeMonomialIdeal ({1},R);
***** there are only 1 square-free monomials of degree 1
o4 : Ideal of R

i5 : K = randomShellableIdeal (R, 0, 1);
o5 : MonomialIdeal of R

Is there a good reason for the first two methods not to return a MonomialIdeal "out of the box"?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read M2/Macaulay2/packages/RandomIdeals.m2 and inspect the definitions of randomMonomialIdeal, randomSquareFreeMonomialIdeal, and randomShellableIdeal. Determine whether their differing return types are intentional; done means documenting the rationale or making the relevant behavior consistent, then checking the examples in the issue.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.