-
-
Notifications
You must be signed in to change notification settings - Fork 626
Categories for finite/permutation/symmetric groups #8044
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
Comments
comment:1
Non finalized patch on: http://combinat.sagemath.org/hgwebdir.cgi/patches/file/tip/trac_8044-categories_finite_groups-nt.patch |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Changed keywords from Finite groups, permutation groups to Finite groups, permutation groups, symmetric groups |
This comment has been minimized.
This comment has been minimized.
Applies over the precedent patch. |
comment:5
Attachment: trac_8044_cayley_graph-sl.patch.gz I just added a patch which adds some examples of cayley graphs. It also adds |
This comment has been minimized.
This comment has been minimized.
comment:7
Applies fine to 4.3.2.a0 and passes sage -t (except those 2 apparently singular-related tests which failed before). I did not test sage -optional nor did I look carefully at how the category framework fits in with the rest of the category |
Reviewer: wdj |
comment:8
Replying to @wdjoyner:
Thanks much for your review! Florent: could you have a look at the Weyl group + Cayley graph part? |
comment:9
Replying to @nthiery:
Yes, I looked at it and also give that part a positive review. I like the way you handled
|
comment:10
Replying to @wdjoyner:
Thanks!
:-) Being able to choose at run time the category, and therefore the class hierarchy, as we could do in MuPAD, was one of my big incentive for writing the category code, and going for dynamic classes. |
comment:11
The category part looks fine to me. This is an amazing patch, btw! I am getting some doctests failures:
though they don't seem too serious. There are a couple of "The category of (multiplicative) finite semigroups" in the docstrings that should be corrected. For the rest, assuming that the doctest pass (it might be something with my sage, will try with a clean install at the office in a couple of hours), positive review. |
Changed reviewer from wdj to wdj, jlopez |
Attachment: trac_8044-categories_finite_groups-nt.patch.gz Apply only this one |
comment:12
Replying to @sagetrac-jlopez:
:-)
For the record, could you please post or attach here the complete log of the failures, even if it works at your office?
Oops, good catch. The updated patch fixes this.
Thanks! |
comment:13
All tests pass on a clean install, so most probably my previous failure was due to too much fiddling with patches and source files (will upload the failures later anyway). Postive review. |
Changed reviewer from wdj, jlopez to David Joyner, Javier López Peña |
Merged: sage-4.3.3.alpha0 |
This patch:
Introduces two new categories: FiniteGroups and FinitePermutationGroups
As a result, this standardizes the interface of those groups
(cardinality, one, ...).
Puts all pari, permutation, and matrix groups in the corresponding
categories. There remains to handle Galois groups in
sage/rings/number_field/.
Deprecates the abstract class sage.groups.group.FiniteGroup.
Content moved to the FiniteGroups category (see
cayley_graph
).It is not used anymore anywhere in Sage's library.
Merges cayley_graph with that for FiniteSemigroups:
elements
option(should this be vertices?) to handle large/infinite semigroups
sage: G.cayley_graph(connecting_set = [a,b,c])
is deprecated in favor of:
sage: G.cayley_graph(generators = [a,b,c])
sage: G.cayley_graph(connecting_set = a)
implementation = "networkx"
in the produced graph.Note: this changed the order of the edges, which required fixing
a test in sage.graphs.generic_graphs (color_by_label)
Adds cool examples of Cayley graphs plots, courtesy of Sebastien Labbe
Provides group_generators defined from gens, as well as
semigroup_generators defined from group_generators in the finite
and coxeter cases.
Puts the SymmetricGroup in the FiniteWeylGroups category.
Beware: as all Sage's permutation groups, this uses GAP's product
convention coming from left-to-right composition of permutations,
which can be surprising for combinatorists.
Beware: the generators of SymmetricGroup(n) are now its canonical
Weyl group generators, namely the elementary transpositions
Adds an has_descent method to permutation group elements
Makes all named permutation groups, as well as GL and SL have
UniqueRepresentation,
Makes more systematic use of TestSuite(...).run()
Makes a minor improvement to FiniteEnumeratedSets tests for
large finite enumerated sets
Strips away some unused imports
Updates a couple doctests here and there
Further debatable changes:
The underlying set of an alternating or symmetric group is now a
tuple. This is safer and helps UniqueRepresentation. However, this
could break backward compatibility. Also, the repr is now of the
form SymmetricGroup((1,3,4)) instead of SymmetricGroup([1,3,4]).
Due to the switch to UniqueRepresentation, with:
the following equality test fails:
True
Do we really want this feature? If yes, than the equality test
inherited from UniqueRepresentation will have to be fixed.
CC: @sagetrac-sage-combinat [email protected]
Component: group theory
Keywords: Finite groups, permutation groups, symmetric groups
Author: Nicolas M. Thiéry
Reviewer: David Joyner, Javier López Peña
Merged: sage-4.3.3.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/8044
The text was updated successfully, but these errors were encountered: