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

For Modules over PBWAlgRing and PBWAlgQuo #3900

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

Conversation

Lax202
Copy link
Contributor

@Lax202 Lax202 commented Jul 1, 2024

This is a draft pull request for the work to extend FreeMod, SubModuleofFreeModule, SubquoModule to PBWAlgRing and PBWAlgQuo. The aim is to extend the Groaner machinery as well.

@fingolfin fingolfin mentioned this pull request Jul 1, 2024
@@ -0,0 +1,61 @@
@testset "modules over PBWAlgQuo" begin
#Free Module tests
E,x = exterior_algebra(QQ, 3)
Copy link
Member

Choose a reason for hiding this comment

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

This function is part of experimental and should thus not be used in the tests for src/ code

Copy link
Member

Choose a reason for hiding this comment

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

True. Though maybe we need to look into promoting exterior_algebra one of these days?

In any case, note that this PR is still a very early draft, I mainly asked @Lax202 to open it so we can better see what she's doing and what the state is, and then discuss it. The code still needs to be consolidated into a new source file, and that may very well ultimately end up in the experimental tree. We'll see.

Copy link
Member

Choose a reason for hiding this comment

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

In the meantime this was merged as part of PR #3988 which copied the tests from here. If we still don't want the exterior_algebra call here, then someone else should remove it from there.

@fingolfin
Copy link
Member

This needs a decision how to proceed regarding the orderings. Perhaps @wdecker will be in this week, so we can have a chat about it? Or Zoom/Phone/whatever?

@wdecker
Copy link
Collaborator

wdecker commented Jul 22, 2024

@fingolfin Zooom, gathertown is o.k. when?

Copy link
Member

@lgoettgens lgoettgens left a comment

Choose a reason for hiding this comment

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

Some rather technical (not mathematics-related) comments


function length(x::PBWAlgQuoElem)
return length(x.data.sdata)
end
Copy link
Member

Choose a reason for hiding this comment

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

These two functions don't belong in this file, but should instead be with the other PBWAlgQuo machinery

return FreeMod{elem_type(R)}(n, R, [Symbol("$name[$i]") for i=1:n])
end

function FreeMod(R::PBWAlgQuo, names::Vector{String}; cached::Bool=false)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
function FreeMod(R::PBWAlgQuo, names::Vector{String}; cached::Bool=false)
function FreeMod(R::PBWAlgQuo, names::Vector{<:VarName}; cached::Bool=false)

To allow more types of inputs

return FreeMod{elem_type(R)}(length(names), R, Symbol.(names))
end

function FreeMod(R::PBWAlgRing, names::Vector{String}; cached::Bool=false)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
function FreeMod(R::PBWAlgRing, names::Vector{String}; cached::Bool=false)
function FreeMod(R::PBWAlgRing, names::Vector{<:VarName}; cached::Bool=false)

# singelem = x.data.sdata
# ptr = singelem.ptr

#end
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#end
#end

Empty line at end of file missing

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.

4 participants