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

generic exterior algebra #4097

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

HechtiDerLachs
Copy link
Collaborator

This PR adds a generic implementation for exterior algebras over arbitrary commutative base_rings. The application is computation of relative BGG. To this end, we also introduce the Cartan-Eilenberg resolution of a complex of modules.

Comment on lines +53 to +57
if !haskey(fac.kernel_resolutions, i)
Z, _ = kernel(fac.c, i)
fac.kernel_resolutions[i] = free_resolution(SimpleFreeResolution, Z)[1]
end
return fac.kernel_resolutions[i]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the kind of code for which get! exists to avoid performing and hashing three times (for haskey, for storing, and then for looking it up again)

Suggested change
if !haskey(fac.kernel_resolutions, i)
Z, _ = kernel(fac.c, i)
fac.kernel_resolutions[i] = free_resolution(SimpleFreeResolution, Z)[1]
end
return fac.kernel_resolutions[i]
return get!(fac.kernel_resolutions, i) do
Z, _ = kernel(fac.c, i)
return free_resolution(SimpleFreeResolution, Z)[1]
end

Same applies to boundary_resolution and induced_map

@lgoettgens lgoettgens marked this pull request as draft September 16, 2024 19:15
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.

3 participants