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
Create a category for Cartesian products of groups #16718
Comments
comment:1
This also works for infinitely generated groups, but it's a hack and is work very well. I've also copied this over to monoids as well. A note for the future, these functions should be split if we implement an axiom New commits:
|
Commit: |
comment:2
Helloooooooooooooooooo !! Why do you need to implement the same function twice ? Isn't there a way to say that Nathann |
comment:4
It's better to have two separate functions because the number of generators as group is often smaller the number of generators as a monoid (usually by a factor of 2 since the inverses need to be included as generators of the monoid for torsion free generators) -- albeit Sage currently does not make a distinction, nor has the functionality I believe. Plus |
comment:5
Hello !
The code that only exists in your head again ....
Why don't all groups have a Nathann |
comment:6
Replying to @nathanncohen:
There's thousands of lines by hundreds of people.
Yes, but as I stated above, there are often more generators as a monoid than as a group. For example, take As for why this is not there for many groups is that they were implemented before monoids were considered in Sage (I believe). |
comment:7
Hello !! Could you add doctests for the infinite case ? Also, why Nathann |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Replying to @nathanncohen:
Done.
I've changed this to |
comment:12
Yo.
It is also more costly. Really it would all be okay if this was compiled code, but I keep thinking of what happens when a line like
is executed and it really is awful...
Don't know ... Then you would have stuff which is detected as Okay. Despite the fact that I really do not like categories and probably never will, thank you for fixing that, your patch does the job. Can you fix the broken doctests ? It can be set to Nathann |
comment:13
Sorry, I forgot to give you the files
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Nathann Cohen |
comment:16
Replying to @nathanncohen:
I changed it to create
Another question for me to ask Nicolas next time I see him.
Thanks Nathann! |
comment:17
Yoooooooo !
Thanks for that Nathann |
Changed branch from public/groups/cartesian_product_category-16718 to |
We can define generators of a Cartesian (direct) product of groups as a Cartesian product of the generators with the identity elements. This will fix the issue noted in https://groups.google.com/forum/#!topic/sage-devel/nlRGZpr_Je8.
We will do so by defining a general method in the appropriate category.
CC: @nathanncohen @nthiery
Component: group theory
Keywords: cartesian product, generators
Author: Travis Scrimshaw
Branch/Commit:
8db0f51
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/16718
The text was updated successfully, but these errors were encountered: