-
Notifications
You must be signed in to change notification settings - Fork 120
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
Repair flattenings of graded modules #3217
Repair flattenings of graded modules #3217
Conversation
@@ -28,7 +28,7 @@ function presentation(SQ::SubquoModule) | |||
end | |||
else | |||
if is_graded(SQ) | |||
s, _ = kernel(graded_map(ambient_free_module(SQ), gens(SQ.sum))) | |||
s, _ = kernel(graded_map(ambient_free_module(SQ), filter(!iszero, gens(SQ.sum)))) |
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.
@jankoboehm : There is an issue when calling graded_map
with any zero in the second argument. The error could be fixed here by adding the filter
, but I am not 100% sure this is legitimate. Either way, the rest of the code for presentation
should eventually be checked as to whether it suffers from similar issues. But I found it too hard to read to actually understand what's going on and simply adding filter
to the other calls to graded_map
made things worse. So I only did this one change for the moment.
@@ -1000,7 +1000,8 @@ function is_zero(m::SubquoModuleElem) | |||
return (ambient_representative(m) in parent(m).quo) | |||
end | |||
|
|||
function iszero(m::SubquoModuleElem{<:MPolyRingElem}) | |||
# Method only for the cases which can be handled by singular | |||
function iszero(m::SubquoModuleElem{<:MPolyRingElem{T}}) where {T<:Union{<:FieldElem, ZZRingElem}} |
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.
@jankoboehm : This function is not generic, but works only for rings with a singular backend. When writing up your different module layers, this should be corrected, eventually.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #3217 +/- ##
==========================================
- Coverage 81.62% 81.58% -0.04%
==========================================
Files 545 545
Lines 72751 72812 +61
==========================================
+ Hits 59381 59406 +25
- Misses 13370 13406 +36
|
* let `right_cosets` return a G-set - add `GSetByRightTransversal` - change `right_cosets` to return a `GSetByRightTransversal` object - change `show` methods for `GSetByElements` and `GroupCoset` * address comments * adjust `show` values
b81f718
to
3a5c65b
Compare
Some improvements to handle certain derived pushforwards requested by externals. See the added tests for details.