-
-
Notifications
You must be signed in to change notification settings - Fork 713
Implement basic multivariate polynomial species #38446
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
Conversation
…groups Also added various miscellaneous functions
Co-authored-by: Martin Rubey <[email protected]>
Also some fixes to _element_constructor_ ConjugacyClassesOfSubgroups
Added _repr_ for ConjugacyClassesOfSubgroups I now output B[(gens or name if available)] as _repr_ for generators, for example B[1] + 2*B[(2,3,4)]
…y and doctest updates
…ial case in construct_element
Cool, that worked and looks much better! Thank you! |
src/sage/rings/species.py
Outdated
| INPUT: | ||
|
|
||
| - ``dis`` -- a directly indecomposable permutation group | ||
| - ``domain_partition`` -- a `k`-tuple of ``frozenset``s, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - ``domain_partition`` -- a `k`-tuple of ``frozenset``s, | |
| - ``domain_partition`` -- a `k`-tuple of ``frozenset`` entries, |
This will not format properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, should all of this information should be moved to the (public facing) class level?
Co-authored-by: Travis Scrimshaw <[email protected]>
Co-authored-by: Travis Scrimshaw <[email protected]>
src/sage/rings/species.py
Outdated
| H = _stabilizer_subgroups(S, X, a) | ||
| if len(H) > 1: | ||
| raise ValueError("action is not transitive") | ||
| return self(H[0], pi, check=check) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| return self(H[0], pi, check=check) | |
| return self._element_constructor_(H[0], pi, check=check) |
This is where you expect it to always end up (without any coercion being done), right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. I reorganized so that recursion is avoided, because it is a pain when debugging.
Also, the error message was (mathematically) wrong.
Co-authored-by: Travis Scrimshaw <[email protected]>
|
Thank you for being careful, I especially like that we caught the wrong error message! |
|
Thank you for all the changes. If the bot comes back (morally) green, then you can set a positive review. |
mantepse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved via tscrim
|
yippie! |
sagemathgh-38446: Implement basic multivariate polynomial species Related to sagemath#30727. We implement basic functionality for multivariate polynomial species, using its representation as a pair of a permutation group and a mapping between the domain of the permutation group and some variables. We provide addition, multiplication, and (partitional) composition (for some special cases). We also allow it to be constructed as a group action (or a sequence thereof). Atomic and molecular decompositions are automatically computed thanks to sagemath#38371. ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#38446 Reported by: Mainak Roy Reviewer(s): Mainak Roy, Martin Rubey, Travis Scrimshaw
sagemathgh-38446: Implement basic multivariate polynomial species Related to sagemath#30727. We implement basic functionality for multivariate polynomial species, using its representation as a pair of a permutation group and a mapping between the domain of the permutation group and some variables. We provide addition, multiplication, and (partitional) composition (for some special cases). We also allow it to be constructed as a group action (or a sequence thereof). Atomic and molecular decompositions are automatically computed thanks to sagemath#38371. ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. URL: sagemath#38446 Reported by: Mainak Roy Reviewer(s): Mainak Roy, Martin Rubey, Travis Scrimshaw
sagemathgh-38883: provide the tilde species of a species See https://mathoverflow.net/questions/480823/the-tilde-species Dependencies: sagemath#38446 URL: sagemath#38883 Reported by: Martin Rubey Reviewer(s): Frédéric Chapoton
sagemathgh-38883: provide the tilde species of a species See https://mathoverflow.net/questions/480823/the-tilde-species Dependencies: sagemath#38446 URL: sagemath#38883 Reported by: Martin Rubey Reviewer(s): Frédéric Chapoton
sagemathgh-38883: provide the tilde species of a species See https://mathoverflow.net/questions/480823/the-tilde-species Dependencies: sagemath#38446 URL: sagemath#38883 Reported by: Martin Rubey Reviewer(s): Frédéric Chapoton
sagemathgh-38544: Lazy species We provide an implementation of combinatorial species based on the lazy series framework and sagemath#38446. dependencies: sagemath#38974 URL: sagemath#38544 Reported by: Martin Rubey Reviewer(s): Martin Rubey, Travis Scrimshaw
sagemathgh-38544: Lazy species We provide an implementation of combinatorial species based on the lazy series framework and sagemath#38446. dependencies: sagemath#38974 URL: sagemath#38544 Reported by: Martin Rubey Reviewer(s): Martin Rubey, Travis Scrimshaw
sagemathgh-38544: Lazy species We provide an implementation of combinatorial species based on the lazy series framework and sagemath#38446. dependencies: sagemath#38974 URL: sagemath#38544 Reported by: Martin Rubey Reviewer(s): Martin Rubey, Travis Scrimshaw
Related to #30727.
We implement basic functionality for multivariate polynomial species, using its representation as a pair of a permutation group and a mapping between the domain of the permutation group and some variables. We provide addition, multiplication, and (partitional) composition (for some special cases). We also allow it to be constructed as a group action (or a sequence thereof). Atomic and molecular decompositions are automatically computed thanks to #38371.
📝 Checklist