-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Failing doctests in src/sage/modular/modform_hecketriangle #35273
Comments
I see this with 10.0.beta4 but not 10.0.beta2 (both built today on the same machine), so it's not caused by recent homebrew upgrades, for example. (Unless I'm confused, which is certainly possible.) |
Perhaps caused by #35045. |
I tried with a linux virtual machine and doctests passed, so somehow it seems to be platform-dependent. |
Marking as a blocker since we get failing doctests. |
(Replying to #35045 (comment):) I don't see how something like that can be platform-dependent. Have you compared the parents of the output on Linux and OSX, or checked if manually created expressions in the same parent failed to simplify too? |
I don't know the mathematics, so I don't know what to try. If I do |
Maybe there is some different system package, and this behavior is revealing that difference somehow. |
What about the parent of |
For both platforms, I see the same behavior:
At least on OS X I see the same behavior in vanilla 10.0.beta3 — without the branch at #35045. (I haven't tried on linux.) |
The behavior looks very strange to me, even before #35045. With 10.0.beta3:
The last two expressions evaluate as equal, so why don't they print the same way? Maybe #35045 just changed how the expression is defined, from something along the lines of |
Maybe it's Singular. When I use |
Yes, most probably. |
Ok: not a bug, then? |
It causes doctests to fail, so it needs to be fixed. |
Maybe... It is quite common to see a few failing doctests when using system packages for dependencies like pari, gap, or singular. I tend to view that as normal, though I agree that ideally it should be fixed (if we can do it by adapting the code or the tests, not by restricting the range of allowed versions of the dependency when the version for which the tests fail works fine otherwise). |
Whatever the cause, I do not see any reason to get |
Even if the difference in behavior between systems observed here is due to different versions of Singular, the fact that fractions are not normalized as one would expect looks a lot like the issue discussed in #35221 (comment). |
A potential fix: replace doctests like
with
(Probably have to inject some variables first so that the right side is defined.) This is not altogether satisfying because I agree that we should see |
I tried creating some doctests of the form I mentioned in the previous comment, but I was unsuccessful. If someone else wants to try, I'm happy to test. |
The doctests all have properly normalized fractions, so the fact that they aren't is imho indicative of a bigger problem and we shouldn't "fix" it by allowing the wrong normalization. We do have multiple OSX buildbots and they don't reproduce the issue, so its a Singular 4.3.2 bug or a bug in homebrew's packaging. Either way, it shouldn't block us from making a release. |
This is just a guess, but I think: (1) there is a bigger problem, namely that rational fractions are not properly normalized in Sage in general; (2) but that problem is known and documented in other issues and the fact that it pops up here is an accident. |
Should we disallow this version of the system Singular? |
This issue seems related to Homebrew's Singular version 4.3.2p2, as it does not appear with Singular SPKG version 4.3.1p3. See #35833. |
The same version built from the updated SPKG (#35934) passes the tests. The difference with the homebrew formula https://github.com/Homebrew/homebrew-core/blob/master/Formula/singular.rb#L56 is that we build Singular with FLINT. |
We could for example reject system singular if it does not use FLINT. Done now in #35934 |
Upstream does not test configurations without FLINT, it seems: https://github.com/Singular/Singular/blob/spielwiese/.github/workflows/runtests.yml#L15 |
Does anyone here know anything about homebrew's development process? Would they be receptive to a pull request to bulid with FLINT? |
Is there an existing issue for this?
Did you read the documentation and troubleshoot guide?
Environment
Steps To Reproduce
make ptestlong
givesExpected Behavior
All tests passed!
Actual Behavior
Additional Information
Why plus/minus signs are not simplified in fractions?
The text was updated successfully, but these errors were encountered: