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

output of prune_with_map_projection #758

Closed
RafaelDavidMohr opened this issue Jan 24, 2024 · 2 comments
Closed

output of prune_with_map_projection #758

RafaelDavidMohr opened this issue Jan 24, 2024 · 2 comments
Labels

Comments

@RafaelDavidMohr
Copy link

I don't understand the output of prune_with_map_projection. To port it over to Oscar, I need this function to tell me which of the generators of the corresponding factor module are non-minimal. I.e. if I take

julia> R, (x, y) = Singular.polynomial_ring(Singular.QQ, ["x", "y"])
(Singular polynomial ring (QQ),(x,y),(dp(2),C), spoly{n_Q}[x, y])

julia> v = vector(R, x, R(-1))
x*gen(1)-gen(2)

julia> M = Singular.Module(R, v)
Singular Module over Singular polynomial ring (QQ),(x,y),(dp(2),C), with Generators:
x*gen(1)-gen(2)

then prune_with_map_projection returns

julia> Singular.prune_with_map_projection(M)
(Singular Module over Singular polynomial ring (QQ),(x,y),(dp(2),C), with Generators:
0, [0], Int32[1, 2])

and as far as I understood the last entry of this should instead be Int32[1] since we kept around gen(1) and scratched gen(2).
Similarly

julia> v = vector(R, R(-1), x)
x*gen(2)-gen(1)

julia> M = Singular.Module(R, v)
Singular Module over Singular polynomial ring (QQ),(x,y),(dp(2),C), with Generators:
x*gen(2)-gen(1)

julia> Singular.prune_with_map_projection(M)
(Singular Module over Singular polynomial ring (QQ),(x,y),(dp(2),C), with Generators:
0, [0], Int32[1, 1])

Here the last entry should instead be Int32[2] since we kept around gen(2) and scratched gen(1).

Maybe I just don't understand the output? @ederc @hannes14

@hannes14
Copy link
Member

hannes14 commented Jan 24, 2024 via email

@RafaelDavidMohr
Copy link
Author

I think I understand, thank you for the explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants