-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use fast method for composing with identity mapping if source &…
… range don't match
- Loading branch information
1 parent
30d4edc
commit 470a3ee
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# There was a bug where composition of an identity mapping and another | ||
# mapping x where the Source of the identity mapping contained the | ||
# ImagesSource of x, but not its whole range, simply returned x, | ||
# resulting in a composition whose Range was strictly bigger than that | ||
# of its first argument, and causing problems in IsomorphismPermGroup | ||
# | ||
gap> g := SymmetricGroup(7);; | ||
gap> phi := GroupGeneralMappingByImages(g,g,[(1,2,3,4,5),(1,2)],[(1,2,3,4,6),(1,2)]); | ||
[ (1,2,3,4,5), (1,2) ] -> [ (1,2,3,4,6), (1,2) ] | ||
gap> psi := IdentityMapping(SymmetricGroup(6)); | ||
IdentityMapping( Sym( [ 1 .. 6 ] ) ) | ||
gap> Range(CompositionMapping(psi,phi)); | ||
Sym( [ 1 .. 6 ] ) |