-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
IsIntegralRing
to return false
for rings that are euclidean b…
…ut not integral by changing `IsUniqueFactorizationRing` and `IsEuclideanRing` to not imply `IsIntegralRing` anymore (#5817) * Bugfix and test for IsIntegralRing This fixes an off-by-one error causing missing the case when zero appears in the diagonal in the multiplication table. Closes #3975. * Remove incorrect text in IsUniqueFactorizationRing docs Fields are in filter IsUniqueFactorizationRing since GAP 4.8 * IsUniqueFactorizationRing no longer implies IsIntegral Hence IsEuclideanRing also does not anymore --------- Co-authored-by: Alexander Konovalov <alexk@mcs.st-andrews.ac.uk>
- Loading branch information
Showing
3 changed files
with
39 additions
and
19 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
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,34 @@ | ||
gap> START_TEST("ring.tst"); | ||
|
||
##################################################################### | ||
# | ||
# Tests for IsIntegralRing | ||
# | ||
# Trivial ring | ||
gap> IsIntegralRing( SmallRing(1,1) ); | ||
false | ||
|
||
# Non-commutative ring | ||
gap> IsIntegralRing( SmallRing(4,7) ); | ||
false | ||
|
||
# Zero divisors on the diagonal | ||
gap> IsIntegralRing( SmallRing(4,3) ); | ||
false | ||
|
||
# Zero divisors not on the diagonal | ||
gap> IsIntegralRing( Integers mod 6 ); | ||
false | ||
|
||
# Integral rings | ||
gap> IsIntegralRing( GF(5) ); | ||
true | ||
gap> IsIntegralRing( Integers ); | ||
true | ||
gap> IsIntegralRing( Rationals ); | ||
true | ||
gap> IsIntegralRing( CF(4) ); | ||
true | ||
|
||
# | ||
gap> STOP_TEST( "ring.tst" ); |