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

Group algebra of nonstandard symmetric groups broken #18005

Closed
darijgr opened this issue Mar 20, 2015 · 5 comments
Closed

Group algebra of nonstandard symmetric groups broken #18005

darijgr opened this issue Mar 20, 2015 · 5 comments

Comments

@darijgr
Copy link
Contributor

darijgr commented Mar 20, 2015

I have found and recorded the problem in #16926, although it predates said ticket. Quoting src/sage/groups/perm_gps/permgroup_named.py:

    def algebra(self, base_ring):
        """
        Return the symmetric group algebra associated to ``self``.

        .. WARNING::

            This is broken!

                sage: S = SymmetricGroup([2,3,5])
                sage: S.an_element()
                (2,3,5)
                sage: S.algebra(QQ)(_)
                Traceback (most recent call last):
                ...
                ValueError: The permutation has length 3 but its maximal element is 5. Some
                 element may be repeated, or an element is missing, but there is something
                 wrong with its length.

            Best make it a usual group algebra with none of the bells and whistles
            of the SGA but with functioning methods.

        EXAMPLES::

            sage: S4 = SymmetricGroup(4)
            sage: S4.algebra(QQ)
            Symmetric group algebra of order 4 over Rational Field
        """
        from sage.combinat.symmetric_group_algebra import SymmetricGroupAlgebra
        return SymmetricGroupAlgebra(base_ring, self)

Depends on #16926

CC: @sagetrac-sage-combinat @tscrim @avirmaux @nthiery

Component: combinatorics

Keywords: symmetric group, group algebra, permutations

Reviewer: Travis Scrimshaw

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

@darijgr darijgr added this to the sage-6.6 milestone Mar 20, 2015
@darijgr

This comment has been minimized.

@nthiery
Copy link
Contributor

nthiery commented Mar 20, 2015

comment:2

I just implemented that in #16926; this ticket can probably be closed as duplicate.

@darijgr
Copy link
Contributor Author

darijgr commented Mar 20, 2015

comment:3

Great job! Can I ask you to review my doctests? (probably half a minute of work, thanks!)

@tscrim
Copy link
Collaborator

tscrim commented Mar 20, 2015

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Mar 20, 2015

comment:4

Done.

@tscrim tscrim removed this from the sage-6.6 milestone Mar 20, 2015
@vbraun vbraun closed this as completed Mar 21, 2015
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

4 participants