-
Notifications
You must be signed in to change notification settings - Fork 133
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
decide_du_val_singularity: Ideal does not describe a single K-point #2531
Comments
I tried to reproduce the bug with 50 runs of the offending test on julia 1.8.5 and the current master of Oscar (each time restarting julia from scratch to avoid influence of prior runs -- e.g. on the random seed of Singular or on cached data), but the error did not manifest itself. I also tried 50 runs on the same setup, but without restarting Julia/Oscar. Again the error did not manifest itself. I am a bit at a loss on how to reproduce the error. Any hint is welcome. |
I tracked it down: absolute_primary_decomposition may return something not fully decomposed in rare circomstances:
More readable version of the components:
The offending component is the second one and the whole decomposition is handed to Oscar by Singular.LibPrimdec.absPrimdecGTZ. @wdecker : Is it possible that some test on, whether a choice is sufficiently general, misses a case down in the Singular library (or even further down)? |
@afkafkafk13 your reproducing example is incomplete, there is no ring definition, could you provide one so we can more easily reproduce? |
Here is my guess:
|
It seems |
Yes, you see it in the multiplicities, and no, the erroneous one can also be 1,1,2,4. Usually, it decomposes into 9 parts as it should, but sometimes it misses a decomposition. I reran my test script again and made sure to copy properly today.
|
@hannes14 The bug seems to boil down to this strange behaviour:
|
The problem is already on the Singular side |
@afkafkafk13 just to clarify, I got 1,2,2,2 in a test run (out of many) so this can fail in multiple ways it seems |
@fingolfin This is precisely, what I understood. |
Is someone working on this? This pops up regularly in CI. |
fixed by Singular/Singular#1182 |
It looks like this was not really fixed, it recently happened here: It has since disappeared again on that PR but a similar error can be reproduced by running through a few random seeds: using Oscar, Test
mod = "$(Oscar.oscardir)/test/AlgebraicGeometry/Schemes/duValSing.jl";
seed = UInt32(0)
while (true)
seed = seed+1
println("running with seed $seed")
Oscar.randseed!(seed)
Oscar.set_seed!(seed)
Oscar.test_module(mod; new=false)
end On my setup this fails at seed 25:
This is on master, commit a91222c. Note that the failure of the reproducer is at Seed 94 gives the same error as the CI:
|
I confirm: It is the same old bug coming up from Singular. It is again an incomplete absolute primary decomposition. In the context of the code to reproduce provided by @benlorenz today, I see the following absolute primary decompositon in my debug output (newlines included for readability):
Note that this describes two conjugate points over the algebraic closure (i.e. this is not absolutely primary) , but the number at the end indicates just 1 (i.e. absolutely primary). This mistake arises from the fact the the third ideal in the list, which should provide an ideal of any of the two points over a algebraic suitable field extension, is in reality just the same ideal as the original one. @fieker originally tracked this down in the Singular library. The codeblock he changed in the Singular library, works fine now! Unfortunately, there seem to be additional copies of this precise codeblock in the file, which are still unchanged. (Look for randomLast in this file) |
Could @fieker and @hannes14 please jointly have a look at this? This is also linked to Singular's#1186 and it seems that @hannes14 might have reverted the bugfix in the meantime -- on the other hand, the original problem (independently reported by fchyzak to Singular) might still have persisted after the original fix, just because only one of three or four occurrences had been fixed by @fieker . |
sShould be fixed with Singular/Singular@70c8c34 |
Thank you for the quick reaction. |
should be fixed upstream. If someone sees it again, please re-open. |
Describe the bug
Infrequent bug during the tests after the merge of #2468 by @afkafkafk13, observed on julia 1.8 (ubuntu) and julia nightly (ubuntu)
To Reproduce
Maybe run the tests repeatedly?
Full error message:
System (please complete the following information):
Current Oscar master on github actions, see logs for details.
The text was updated successfully, but these errors were encountered: