-
Notifications
You must be signed in to change notification settings - Fork 176
Add accessors group and subgroup for SubgroupTransversal
#4839
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e5b7b18
Add `group` and `acting_group` for `SubgroupTransversal`
mjrodgers e938f44
Add `@ref` to `group`, `acting_group` in `SubgroupTransversal` docstring
mjrodgers dd9f40a
Add docstrings to main Documentation
mjrodgers c267fbd
improve docstring
mjrodgers eba7184
fix docstring
mjrodgers c2e19dd
rename `acting_group` to `subgroup`
mjrodgers 9d3c70b
export `subgroup`
mjrodgers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -373,9 +373,17 @@ end | |
|
|
||
| Type of left/right transversals of subgroups in groups. | ||
|
|
||
| For a group $G$ and a subgroup $H$ of $G$, $T$ is a right | ||
| (resp. left) transversal for $H$ in $G$ if $T$ contains | ||
| precisely one element of each right (resp. left) cosets of $H$ in $G$. | ||
|
|
||
| Objects of this type are created by [`right_transversal`](@ref) and | ||
| [`left_transversal`](@ref). | ||
|
|
||
| - [`group(T::SubgroupTransversal)`](@ref) returns $G$. | ||
|
|
||
| - [`subgroup(T::SubgroupTransversal)`](@ref) returns $H$. | ||
|
|
||
| # Note for developers | ||
|
|
||
| The elements are encoded via a right transversal object in GAP. | ||
|
|
@@ -436,6 +444,55 @@ function Base.keys(T::SubgroupTransversal) | |
| return keys(1:length(T)) | ||
| end | ||
|
|
||
| """ | ||
| group(T::SubgroupTransversal) | ||
|
|
||
| Return the group `G` that contains all of the elements in `T`. | ||
| That is, `T` is a left or right transversal of a subgroup of `G`. | ||
|
|
||
| # Examples | ||
| ```jldoctest | ||
| julia> G = symmetric_group(5) | ||
| Sym(5) | ||
|
|
||
| julia> H = sylow_subgroup(G, 2)[1] | ||
| Permutation group of degree 5 and order 8 | ||
|
|
||
| julia> T = right_transversal(G, H) | ||
| Right transversal of length 15 of | ||
| permutation group of degree 5 and order 8 in | ||
| Sym(5) | ||
|
|
||
| julia> group(T) == G | ||
| true | ||
| ``` | ||
| """ | ||
| group(T::SubgroupTransversal) = T.G | ||
|
|
||
| """ | ||
| subgroup(T::SubgroupTransversal) | ||
|
|
||
| Return the group `H` such that `T` is a (left or right) | ||
| transversal of `H`. | ||
|
|
||
| # Examples | ||
| ```jldoctest | ||
| julia> G = symmetric_group(5) | ||
| Sym(5) | ||
|
|
||
| julia> H = symmetric_group(3) | ||
| Sym(3) | ||
|
|
||
| julia> T = right_transversal(G, H) | ||
| Right transversal of length 20 of | ||
| Sym(3) in | ||
| Sym(5) | ||
|
|
||
| julia> subgroup(T) == H | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doctests fail because |
||
| true | ||
| ``` | ||
| """ | ||
| subgroup(T::SubgroupTransversal) = T.H | ||
|
|
||
| """ | ||
| right_transversal(G::GAPGroup, H::GAPGroup; check::Bool=true) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
But in how far is this group "acting"? If we look at the (right) cosets in$G/H = { Ha \mid a \in G }$ then I'd say this is a $G$ -set, not an $H$ -set (well, since $H$ is a subgroup, of course it would be valid to "restrict it" to $H$ , but the most general starting point is to view it as a $G$ -set.
Of course now we talk about a "transversal", which in general is neither a$G$ -set nor an $H$ -set. But one can in principle try to "fix" this, as follows: for `$r\in T$ and $g\in G$ , define $r.g$ as the element $r' \in T$ for which $Hrg = Hr'$ (and at that point $rg/r'$ is a Schreier generator of $H$ ). This again suggests $G$ as acting group. Don't get me wrong: I am not saying we should implement such an action. Rather, I am trying to find with a rational for this naming, and coming up empty.
What am I missing?
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.
hm, I see your point. I wanted to use the same method names as for the individual cosets; but I agree, in this context
Gis the group that would be acting on the cosets.I'm not really sure what would be a well-motivated way to name these methods (Magma doesn't have anything analogous, since they just treat a transversal as a generic ordered set)