Skip to content
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

Conversation

HechtiDerLachs
Copy link
Collaborator

Some improvements to handle certain derived pushforwards requested by externals. See the added tests for details.

@@ -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))))
Copy link
Collaborator Author

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}}
Copy link
Collaborator Author

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.

Copy link

codecov bot commented Jan 22, 2024

Codecov Report

Merging #3217 (8e37b25) into master (68a19c2) will decrease coverage by 0.04%.
The diff coverage is 97.22%.

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     
Files Coverage Δ
src/Modules/ModulesGraded.jl 79.93% <100.00%> (-1.86%) ⬇️
src/Modules/UngradedModules/Presentation.jl 97.67% <100.00%> (ø)
...c/Modules/UngradedModules/SubModuleOfFreeModule.jl 71.21% <100.00%> (ø)
src/Modules/UngradedModules/SubquoModuleElem.jl 84.92% <100.00%> (ø)
src/Modules/flattenings.jl 94.65% <96.96%> (+1.50%) ⬆️

... and 1 file with indirect coverage changes

@fingolfin fingolfin marked this pull request as draft January 24, 2024 10:49
ThomasBreuer and others added 26 commits January 26, 2024 14:58
* 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
@HechtiDerLachs HechtiDerLachs force-pushed the repair_flattenings_of_graded_modules branch from b81f718 to 3a5c65b Compare January 26, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants