Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jhpalmieri opened this issue Jun 20, 2010 · 32 comments
Open

Comments

@jhpalmieri
Copy link
Member

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.

Depends on #10193
Depends on #12453

Component: categories

Keywords: graded algebra

Author: John Palmieri, Nicolas M. Thiéry

Branch/Commit: public/categories/graded_examples-9280 @ fb05e6c

Reviewer: Frédéric Chapoton, Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/9280

@nthiery
Copy link
Contributor

nthiery commented Jul 21, 2010

comment:2

Attachment: trac_9280-graded-algebras-example.patch.gz

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.

@jhpalmieri
Copy link
Member Author

comment:3

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? :)

@nthiery
Copy link
Contributor

nthiery commented Oct 31, 2010

Changed author from John Palmieri to John Palmieri, Nicolas M. Thiéry

@nthiery

This comment has been minimized.

@nthiery nthiery changed the title implement an example of a graded algebra with basis Implement an example of a graded algebra with basis, and improve the later Oct 31, 2010
@jhpalmieri

This comment has been minimized.

@jhpalmieri
Copy link
Member Author

comment:6

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

@jhpalmieri
Copy link
Member Author

Attachment: trac_9280-ref.patch.gz

apply on top of sage-combinat patch

@fchapoton
Copy link
Contributor

Dependencies: #10193

@saliola
Copy link

saliola commented Jul 13, 2012

comment:8

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

@videlec
Copy link
Contributor

videlec commented Feb 13, 2013

comment:9

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

@fchapoton
Copy link
Contributor

Changed keywords from none to graded algebra

@fchapoton
Copy link
Contributor

comment:11

Franco, Nicolas, what can we do with this ticket ? Should we use the patch from the combinat queue or the patch here ?

@fchapoton
Copy link
Contributor

@fchapoton
Copy link
Contributor

comment:12

let me take the patch of sage-combinat as a starting point.

for the bot: apply only trac_9280-graded-algebras-example-fs.patch

@jhpalmieri
Copy link
Member Author

comment:13

I don't know why I'm listed as an author in the file "sage/categories/examples/graded_modules_with_basis.py"; I don't think I had anything to do with that.

@fchapoton
Copy link
Contributor

comment:14

The part of this patch concerning modules has been separated into ticket #11688 : the ticket #11688 should go first, then this one will need to be rebased on it.

I upload here the "algebra only patch" that will be the new starting point.

@fchapoton
Copy link
Contributor

Attachment: trac_9280_nomodule.patch.gz

@fchapoton
Copy link
Contributor

comment:15

this needs to be rebased

@tscrim
Copy link
Collaborator

tscrim commented Dec 20, 2013

comment:16

Since the graded algebras with basis example is using (weighted) integer vectors, we need #12453. I'd like to attach the branch "public/categories/graded_examples-9280", but trac is giving me an error when I try...

@tscrim
Copy link
Collaborator

tscrim commented Dec 20, 2013

Changed dependencies from #10193 to #10193 #12453

@tscrim
Copy link
Collaborator

tscrim commented Dec 21, 2013

@tscrim
Copy link
Collaborator

tscrim commented Dec 21, 2013

Commit: 32dc807

@tscrim
Copy link
Collaborator

tscrim commented Dec 21, 2013

New commits:

32dc807Fixed failing doctests.
c467bdbMerge branch 'public/refactor_integer_vectors-12453' into public/categories/graded_examples-9280
ef2ddce#12453: Refactored IntegerVectors to use ClonableIntArray.
c82765fInitial review changes.
e2c3ae8Merge branch 'public/categories/examples-9280' into public/categoires/graded_example-9280
6fffda7Merge branch 'master' into public/categories/examples-9280
3491e78imported patch trac_9280_nomodule.patch

@tscrim
Copy link
Collaborator

tscrim commented Dec 21, 2013

Reviewer: Frederic Chapoton, Travis Scrimshaw

@fchapoton
Copy link
Contributor

Changed reviewer from Frederic Chapoton, Travis Scrimshaw to Frédéric Chapoton, Travis Scrimshaw

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 25, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

161cedbMerge branch 'develop' into public/categories/graded_examples-9280
badae2aMerge branch 'develop' into public/categories/graded_examples-9280
eb793ccMerge branch 'develop' into public/refactor_integer_vectors-12453
b9f278eMerge branch 'develop' into public/refactor_integer_vectors-12453
2346b02Merge branch 'public/refactor_integer_vectors-12453' into public/categories/graded_examples-9280

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 25, 2014

Changed commit from 32dc807 to 2346b02

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 8, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

12bac19Merge branch 'develop' into public/refactor_integer_vectors-12453
fb05e6cMerge branch 'public/refactor_integer_vectors-12453' into public/categories/graded_examples-9280

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 8, 2014

Changed commit from 2346b02 to fb05e6c

@fchapoton
Copy link
Contributor

comment:21

needs rebase

@fchapoton fchapoton added this to the sage-6.8 milestone Jul 17, 2015
@jhpalmieri
Copy link
Member Author

comment:23

Yet another instance of someone asking a question related to this. Six (!) years ago, when I opened this ticket, I thought it would be good to have an example in the Sage library and in the documentation, and I really can't understand why this hasn't been taken care of yet. I am not interested in working on it myself any more, but I find it incredibly frustrating that this ticket has languished for so long.

http://ask.sagemath.org/question/34577/can-sage-compute-a-basis-for-the-graded-parts-of-a-graded-ring/

@tscrim
Copy link
Collaborator

tscrim commented Aug 25, 2016

comment:24

It is because of the dependency on integer vectors, which led to #12453. We can either give a new example based on another object or we review #12453 (which I just did a [non-trivial] rebase to the latest beta).

@tscrim tscrim modified the milestones: sage-6.8, sage-7.4 Aug 25, 2016
@mkoeppe mkoeppe removed this from the sage-7.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants