Ticket #9280 (needs_review enhancement)

Opened 3 years ago

Last modified 3 months ago

Implement an example of a graded algebra with basis, and improve the later

Reported by: jhpalmieri Owned by: nthiery
Priority: minor Milestone:
Component: categories Keywords:
Cc: Work issues:
Report Upstream: N/A Reviewers:
Authors: John Palmieri, Nicolas M. Thiéry Merged in:
Dependencies: #10193 Stopgaps:

Description (last modified by jhpalmieri) (diff)

The summary says it all. See also the patch on the Sage-Combinat patch server:

 http://combinat.sagemath.org/hgwebdir.cgi/patches/file/tip/trac_9280-graded-algebras-example.patch

Thanks to Jason Bandlow and Franco Saliola who participated to the improvement of the example. It now depends on #10193.

Attachments

trac_9280-graded-algebras-example.patch Download (19.8 KB) - added by jhpalmieri 3 years ago.
trac_9280-ref.patch Download (4.0 KB) - added by jhpalmieri 3 years ago.
apply on top of sage-combinat patch

Change History

comment:1 Changed 3 years ago by jhpalmieri

  • Status changed from new to needs_review

Changed 3 years ago by jhpalmieri

comment:2 follow-up: ↓ 3 Changed 3 years ago by nthiery

Hi John,

For the record: we went through your patches with Franco and Jason, and discussed quite a bit around it. We will post here shortly an updated patch with some little suggestions.

comment:3 in reply to: ↑ 2 Changed 3 years ago by jhpalmieri

Replying to nthiery:

Hi John,

For the record: we went through your patches with Franco and Jason, and discussed quite a bit around it. We will post here shortly an updated patch with some little suggestions.

Is it "shortly" yet? :)

comment:4 Changed 3 years ago by nthiery

  • Summary changed from implement an example of a graded algebra with basis to Implement an example of a graded algebra with basis, and improve the later
  • Description modified (diff)
  • Authors changed from John Palmieri to John Palmieri, Nicolas M. Thiéry

comment:5 Changed 3 years ago by jhpalmieri

  • Description modified (diff)

comment:6 Changed 3 years ago by jhpalmieri

In the sage-combinat patch, there are a few typos and some other issues:

  • in sage/categories/graded_algebras_with_basis.py, the docstring for "degree" says "The degree of this element in the graded polynomial algebra." Delete "polynomial".
  • in sage/categories/examples/graded_algebras_with_basis.py, the docstring for "one_basis" contains '(0,...,0`), and I think this should be changed to ``(0,...,0)``.
  • in sage/categories/examples/graded_algebras_with_basis.py, the docstring for the main class is now outdated: it still refers to "basis_function" and "_basis_fcn", which don't exist any more, and also to "homogeneous_component", which is now part of the default implementation, not something specific to this example.

I'm attaching a referee patch which fixes these.

There are also some doctests for "basis" in sage/categories/graded_algebras_with_basis.py which are marked as "todo: not implemented". Do we need to wait for these to be fixed, or should we consider this ready for review? It may not be ideal, but we could also change

sage: A.basis(6) # todo: not implemented (output)
Family (y^{2}, x^{3}

to

sage: A.basis(6) # todo: not implemented (output)
Family (y^{2}, x^{3}
sage: list(A.basis(6))
[y^{2}, x^{3}]

By the way, all tests pass with this patch and with the one from #10193. So perhaps we could also delete the commented-out part at the beginning of the example, where it says

# TODO: double check that we can now discard this function

Changed 3 years ago by jhpalmieri

apply on top of sage-combinat patch

comment:7 Changed 2 years ago by chapoton

  • Dependencies set to #10193

comment:8 Changed 10 months ago by saliola

There are a couple of patches on the sage-combinat queue experimenting with moving some of the generic methods into the category GradedAlgebraWithBasis:

  • trac_9280-graded-algebras-example-review-fs.patch
  • trac_9280-graded-algebras-example.patch

comment:9 Changed 3 months ago by vdelecroix

Sorry for the long delay for the ticket but #10193 is now ready !!

Note: See TracTickets for help on using tickets.