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

Fix for binomial primary decomposition #459

Merged
merged 17 commits into from
Jun 16, 2021
Merged

Conversation

CarloSircana
Copy link
Contributor

No description provided.

@CarloSircana
Copy link
Contributor Author

I just noticed that there is a conflict with the pull request #455, that handles the Groebner basis problem properly. Don't merge this for now.

@thofma
Copy link
Collaborator

thofma commented Jun 4, 2021

Needs a rebase now.

@thofma
Copy link
Collaborator

thofma commented Jun 9, 2021

Some tests are failing.

@thofma
Copy link
Collaborator

thofma commented Jun 11, 2021

Some tests are still failing @CarloSircana?

@thofma thofma merged commit 6cbe290 into oscar-system:master Jun 16, 2021
@thofma
Copy link
Collaborator

thofma commented Jun 16, 2021

Finally we made it.

@wdecker
Copy link
Collaborator

wdecker commented Jun 16, 2021

great!

@wdecker
Copy link
Collaborator

wdecker commented Jun 16, 2021

@CarloSircana, @thofma: I found the following problem:

julia> R, x = PolynomialRing(QQ, "x"=>1:3)
(Multivariate Polynomial Ring in x[1], x[2], x[3] over Rational Field, fmpq_mpoly[x[1], x[2], x[3]])

julia> I = ideal(R, [x[3]^2*(x[1]^2-x[2]^2), x[3](x[1]^4-x[2]^4), x[3]^3])
ideal generated by: x[1]^2
x[3]^2 - x[2]^2x[3]^2, x[1]^4x[3] - x[2]^4*x[3], x[3]^3

julia> iscellular(I)
(true, [1, 2])

julia> cellular_minimal_associated_primes(I)
ERROR: UndefVarError: QabField not defined
Stacktrace:
[1] cellular_minimal_associated_primes(::MPolyIdeal{fmpq_mpoly}) at /Users/decker/.julia/dev/Oscar/src/Rings/binomial_ideals.jl:670
[2] top-level scope at REPL[14]:1

@wdecker
Copy link
Collaborator

wdecker commented Jun 17, 2021

@CarloSircana, @thofma: Sorry, another problem

julia> I = ideal(R, [x[1]x[4]^2-x[2]x[5]^2, x[1]^3x[3]^3-x[2]^4x[4]^2, x[2]x[4]^8-x[3]^3x[5]^6])
ideal generated by: x[1]x[4]^2 - x[2]x[5]^2, x[1]^3x[3]^3 - x[2]^4x[4]^2, x[2]x[4]^8 - x[3]^3x[5]^6

julia> binomial_primary_decomposition(I)
ERROR: input ideal is not cellular
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] partial_character_from_ideal(::MPolyIdeal{fmpq_mpoly}, ::FmpqMPolyRing) at /Users/decker/.julia/dev/Oscar/src/Rings/binomial_ideals.jl:419
[3] cellular_associated_primes(::MPolyIdeal{fmpq_mpoly}, ::AbstractAlgebra.Generic.MPolyRing{Oscar.QabModule.QabElem}) at /Users/decker/.julia/dev/Oscar/src/Rings/binomial_ideals.jl:626
[4] cellular_primary_decomposition(::MPolyIdeal{fmpq_mpoly}, ::AbstractAlgebra.Generic.MPolyRing{Oscar.QabModule.QabElem}) at /Users/decker/.julia/dev/Oscar/src/Rings/binomial_ideals.jl:731
[5] binomial_primary_decomposition(::MPolyIdeal{fmpq_mpoly}) at /Users/decker/.julia/dev/Oscar/src/Rings/binomial_ideals.jl:779
[6] top-level scope at REPL[23]:1

@fingolfin
Copy link
Member

@wdecker perhaps best to open an issue for that?

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