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

refresh the shuffle algebra file #28881

Closed
fchapoton opened this issue Dec 13, 2019 · 26 comments
Closed

refresh the shuffle algebra file #28881

fchapoton opened this issue Dec 13, 2019 · 26 comments

Comments

@fchapoton
Copy link
Contributor

fixing a very wrong coproduct

enhancing the category

some pep8 changes

CC: @tscrim @jm58660

Component: combinatorics

Author: Frédéric Chapoton, Travis Scrimshaw

Branch/Commit: 3787e45

Reviewer: Travis Scrimshaw, Frédéric Chapoton

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

@fchapoton fchapoton added this to the sage-9.0 milestone Dec 13, 2019
@fchapoton
Copy link
Contributor Author

Commit: 3631eea

@fchapoton
Copy link
Contributor Author

Branch: u/chapoton/28881

@fchapoton
Copy link
Contributor Author

New commits:

3631eearefreshing the shuffle algebra file

@tscrim
Copy link
Collaborator

tscrim commented Dec 13, 2019

comment:2

Well, technically the shuffle algebra should be in the category of commutative Hopf algebras, so it might be better to use the category of Bialgebras(R).Commutative(). However, the antipode is easy to implement: reverse the order of the n letters times (-1)n (see this MathOverflow post). So I would propose changing the category to HopfAlgebras(R).Commutative() and adding

def antipode_on_basis(self, w):
    """
    Return the antipode on the basis element ``w``.
    """
    mone = -self.base_ring().one()
    return self.term(w.reversal(), mone**len(w))

along with in the dual PBW basis

def antipode(self, elt):
    """
    Return the antipode of the element ``elt``.
    """
    return self(self.expansion(elt).antipode())

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 14, 2019

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

7056cc1more work on shuffle Hopf algebra

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 14, 2019

Changed commit from 3631eea to 7056cc1

@fchapoton
Copy link
Contributor Author

comment:4

mmm; not so easy. I am hitting problems in the testsuites.

@tscrim
Copy link
Collaborator

tscrim commented Dec 14, 2019

comment:5

Hmm...maybe the product and coproduct implemented are not compatible? I will check it on Monday (Australian time).

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 14, 2019

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

0722049some more care for shuffle counit

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 14, 2019

Changed commit from 7056cc1 to 0722049

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 14, 2019

Changed commit from 0722049 to 065860a

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 14, 2019

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

065860afix coproduct for shuffle algebra

@fchapoton
Copy link
Contributor Author

comment:8

The coproduct was indeed broken. There still remains a failure..

@tscrim
Copy link
Collaborator

tscrim commented Dec 14, 2019

comment:9

It almost seems like the old coproduct is meant to be the inflation product. (The coproduct was added in #15212, but there is little information available there.)

@tscrim
Copy link
Collaborator

tscrim commented Dec 15, 2019

comment:10

So the problem seems to come from the coproduct in the dual PBW basis. It is only converting basis indices over (whereas the implementation was meant to be treating them as monomials). Here is a fix that doesn't try to be clever and just uses the coercion framework.

@tscrim
Copy link
Collaborator

tscrim commented Dec 15, 2019

Changed commit from 065860a to abccb82

@tscrim
Copy link
Collaborator

tscrim commented Dec 15, 2019

Reviewer: Travis Scrimshaw, Frédéric Chapoton

@tscrim
Copy link
Collaborator

tscrim commented Dec 15, 2019

Changed author from Frédéric Chapoton to Frédéric Chapoton, Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Dec 15, 2019

comment:11

I fixed it, and I also made the shuffle algebra know it is a graded connected Hopf algebra.


New commits:

d29de54Fixing dual PBW coproduct and adding grading.
9d8dceeA few other little PEP8 tweaks.
abccb82Added connected to the category.

@tscrim
Copy link
Collaborator

tscrim commented Dec 15, 2019

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 15, 2019

Changed commit from abccb82 to 3787e45

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 15, 2019

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

3787e45trac 28881 fixing the pyflakes warning

@fchapoton

This comment has been minimized.

@fchapoton
Copy link
Contributor Author

comment:13

Thanks a lot. Looks good now. I have fixed a pyflakes warning, and added some #long tags on the TestSuites.

Now launching the bot.

@tscrim
Copy link
Collaborator

tscrim commented Dec 15, 2019

comment:14

Worked locally for me, so I am going to assume the patchbot comes back green. Thank you.

@vbraun
Copy link
Member

vbraun commented Dec 17, 2019

Changed branch from public/algebras/refresh_shuffle_algebras-28881 to 3787e45

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

3 participants